Last active
November 24, 2015 22:00
-
-
Save maxArturo/86aef6ce7126aa25d7a9 to your computer and use it in GitHub Desktop.
eslintrc proposal
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
{ | |
// we want to use babel-eslint | |
"parser": "babel-eslint", | |
"env": { | |
// we don't need browser global vars | |
"browser": false, | |
// we do need node global vars | |
"node": true, | |
"mocha": true | |
}, | |
// To give you an idea how to override rule options: | |
// I've put only warnings for several rules that require changing | |
// large swaths of the codebase. Let's talk about these and then | |
// immplement later | |
"rules": { | |
// indent with 4 spaces | |
"indent": [2, 4], | |
// strict mode permitted | |
"strict": 0, | |
// dangling comma on objects to make diffs cleaner | |
"comma-dangle": 0, | |
// multiline spaces for better readability | |
"no-multi-spaces": 0, | |
// single quotes preferred | |
"quotes": [1, "single"], | |
// func names for debugging preferred | |
"func-names": 1, | |
// dangles allowed (some node vars use it) | |
"no-underscore-dangle": 0, | |
// require let or const instead of var | |
"no-var": 0, | |
// require unix style linebreaks | |
"linebreak-style": [2, "unix"], | |
"semi": [2, "always"], | |
// we seem to use a lot of fallthroughs | |
"no-fallthrough": 0, | |
// we have es5 code, so just warn for vars on top | |
"vars-on-top": 1, | |
// don't use things before defining them (except hosited functions) | |
"no-use-before-define": [2, "nofunc"], | |
// prefer const to vars | |
"prefer-const": 1 | |
}, | |
"extends": "airbnb/base" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment