Created
October 16, 2014 13:21
-
-
Save RomainEndelin/427e4170be42eb987e4f to your computer and use it in GitHub Desktop.
Sensible javascript syntax rules
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
{ | |
"env": { | |
"browser": true, | |
"node": true | |
}, | |
"globals": { | |
"Ember": false | |
}, | |
"rules": { | |
"block-scoped-var": 2, | |
"brace-style": [1, "1tbs", {"allowSingleLine": true}], | |
"camelcase": 1, | |
"consistent-return": 0, | |
"curly": 1, | |
"dot-notation": 1, | |
"eqeqeq": [2, "smart"], | |
"func-names": 1, | |
"func-style": [1, "expression"], | |
"max-depth": [1, 5], | |
"max-statements": [1, 30], | |
"max-len": [1, 80], | |
"new-cap": 1, | |
"no-extend-native": 2, | |
"no-inner-declarations": 1, | |
"no-mixed-spaces-and-tabs": 2, | |
"no-sequences": 1, | |
"no-sync": 2, | |
"no-trailing-spaces": 2, | |
"no-use-before-define": [2, "nofunc"], | |
"no-unused-vars": [1, {"vars": "local"}], | |
"no-unused-expressions": 1, | |
"quotes": [1, "single", "avoid-escape"], | |
"semi": [1, "always"], | |
"space-after-keywords": [1, "always"], | |
"space-in-brackets": [1, "never"], | |
"space-in-parens": [1, "never"], | |
"space-infix-ops": 1, | |
"space-unary-word-ops": 2, | |
"strict": 0, | |
"yoda": [1, "never"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment