Created
April 3, 2018 09:11
-
-
Save yingray/8a94861e0abdda7c5f226ad7d330f33f to your computer and use it in GitHub Desktop.
Airbnb ESlint configuration
This file contains hidden or 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
{ | |
"extends": ["eslint:recommended", "airbnb"], | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true, | |
"mocha": true | |
}, | |
"parser": "babel-eslint", | |
"parserOptions": { | |
"ecmaVersion": 6, | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"jsx": true | |
} | |
}, | |
"rules": { | |
"indent": ["error", 2], | |
"linebreak-style": ["error", "unix"], | |
"quotes": ["error", "single"], | |
"semi": 0, | |
"no-cond-assign": ["error", "always"], | |
"no-console": "off", | |
"object-curly-spacing": 0 | |
} | |
} |
This file contains hidden or 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
yarn add -D eslint \ | |
babel-eslint \ | |
eslint-config-airbnb \ | |
eslint-plugin-import \ | |
eslint-plugin-jsx-a11y \ | |
eslint-plugin-react |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reference: https://github.com/airbnb/javascript