Created
September 27, 2016 07:34
-
-
Save lamogura/361ba8daea876685640a627fabce4392 to your computer and use it in GitHub Desktop.
eslint rules for react project
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
{ | |
"install-then-remove": "npm i -D eslint eslint-config-standard eslint-config-standard-jsx eslint-config-standard-react eslint-plugin-babel eslint-plugin-promise eslint-plugin-react eslint-plugin-standard", | |
"extends": ["standard", "standard-react", "plugin:react/recommended"], | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"parser": "babel-eslint", | |
"plugins": [ | |
"react" | |
], | |
"globals": { | |
"__NODE_ENV__": false | |
}, | |
"rules": { | |
"brace-style": ["error", "stroustrup"], | |
"comma-dangle": ["error", "only-multiline"], | |
"curly": ["error", "all"], | |
"react/jsx-no-bind": ["error", {"allowArrowFunctions": true}] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment