Skip to content

Instantly share code, notes, and snippets.

@MadMaxMcKinney
Last active July 1, 2018 18:32
Show Gist options
  • Save MadMaxMcKinney/1c3faaa2c6421a87b9d1e6e040bc1b9a to your computer and use it in GitHub Desktop.
Save MadMaxMcKinney/1c3faaa2c6421a87b9d1e6e040bc1b9a to your computer and use it in GitHub Desktop.
My personal config for ESLint and React
module.exports = {
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true
},
"settings": {
"ecmascript": 6,
"jsx": true
},
"parserOptions": {
"ecmaVersion": 2017,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"experimentalDecorators": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react",
],
"extends": "airbnb",
"rules": {
"react/jsx-filename-extension": 0,
"function-paren-newline": 0,
"no-tabs": 0,
"indent": [2, "tab"],
"react/jsx-indent": [2, "tab"],
"react/jsx-one-expression-per-line": 0,
"implicit-arrow-linebreak": ["error", "beside"],
"react/destructuring-assignment": 0,
"no-console": 0
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment