Last active
July 1, 2018 18:32
-
-
Save MadMaxMcKinney/1c3faaa2c6421a87b9d1e6e040bc1b9a to your computer and use it in GitHub Desktop.
My personal config for ESLint and React
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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