Skip to content

Instantly share code, notes, and snippets.

@aderaaij
Last active October 6, 2017 13:37
Show Gist options
  • Save aderaaij/3975bae3ffad3548b27f6593b3e83677 to your computer and use it in GitHub Desktop.
Save aderaaij/3975bae3ffad3548b27f6593b3e83677 to your computer and use it in GitHub Desktop.
React ESLINT config
{
"env": {
"node": true,
"browser": true,
"es6": true
},
"extends": "airbnb-base",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"no-use-before-define": [
1,
{
"functions": false,
"classes": false
}
],
"func-names": 0,
"no-unused-vars": 1,
"no-underscore-dangle": 0,
"no-console": 0,
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"no-plusplus": [
"warn"
],
"import/no-unresolved": [
"warn"
],
"import/extensions": [
"warn"
],
"import/no-extraneous-dependencies": [
"warn"
],
"max-len": [
"warn"
],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment