Skip to content

Instantly share code, notes, and snippets.

@lamogura
Created September 27, 2016 07:34
Show Gist options
  • Save lamogura/361ba8daea876685640a627fabce4392 to your computer and use it in GitHub Desktop.
Save lamogura/361ba8daea876685640a627fabce4392 to your computer and use it in GitHub Desktop.
eslint rules for react project
{
"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