Last active
August 29, 2015 14:27
-
-
Save JakeSidSmith/83010e0c92f429fa3094 to your computer and use it in GitHub Desktop.
ES Lint Config
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
/* | |
* Also consider rules from this | |
* https://github.com/yannickcr/eslint-plugin-react | |
*/ | |
{ | |
"rules": { | |
"strict": [ | |
2, | |
"function" | |
], | |
"indent": [ | |
2, | |
2 | |
], | |
"quotes": [ | |
2, | |
"single" | |
], | |
"linebreak-style": [ | |
2, | |
"unix" | |
], | |
"semi": [ | |
2, | |
"always" | |
], | |
"id-length": [ | |
2, | |
{ | |
"min": 3, | |
"max": 20, | |
"exceptions": [ | |
"i", | |
"j", | |
"x", | |
"y", | |
"z", | |
"_", | |
"$" | |
] | |
} | |
], | |
"max-nested-callbacks": [ | |
2, | |
2 | |
], | |
"comma-style": [ | |
2, | |
"last" | |
], | |
"comma-spacing": [ | |
2, | |
{ | |
"before": false, | |
"after": true | |
} | |
], | |
"no-multiple-empty-lines": [ | |
1, | |
{ | |
"max": 1 | |
} | |
], | |
"max-len": [ | |
2, | |
100, | |
2, | |
{ | |
"ignoreComments": true, | |
"ignoreUrls": true, | |
"ignorePattern": "SOMETHING_THAT_MATCHES_JSX" | |
} | |
], | |
"no-fallthrough": 2, | |
"no-plusplus": 2, | |
"no-trailing-spaces": 2, | |
"no-lonely-if": 2, | |
"no-nested-ternary": 2, | |
"no-mixed-spaces-and-tabs": 2, | |
"no-undef": 2, | |
"no-unreachable": 2, | |
"no-unused-vars": 2, | |
"no-dupe-keys": 2, | |
"no-extra-boolean-cast": 2, | |
"no-irregular-whitespace": 2, | |
"no-multi-spaces": 2, | |
"no-else-return": 2, | |
"no-eval": 2, | |
"no-multi-str": 2, | |
"no-self-compare": 2, | |
"no-useless-call": 2, | |
"no-shadow-restricted-names": 2, | |
"no-shadow": 2, | |
"no-undef-init": 2, | |
"no-use-before-define": 2, | |
"radix": 2, | |
"curly": 2 | |
}, | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
"ecmaFeatures": { | |
"jsx": true | |
}, | |
"plugins": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment