Created
March 21, 2016 16:22
-
-
Save MathRobin/856b776b53e3c4625c69 to your computer and use it in GitHub Desktop.
Config ESlint
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
{ | |
"globals": { | |
}, | |
"ecmaFeatures": { | |
"arrowFunctions": false, | |
"binaryLiterals": true, | |
"blockBindings": true, | |
"classes": true, | |
"defaultParams": true, | |
"destructuring": true, | |
"forOf": true, | |
"generators": true, | |
"modules": true, | |
"objectLiteralComputedProperties": true, | |
"objectLiteralDuplicateProperties": true, | |
"objectLiteralShorthandMethods": true, | |
"objectLiteralShorthandProperties": true, | |
"octalLiterals": true, | |
"regexUFlag": true, | |
"regexYFlag": true, | |
"restParams": true, | |
"spread": true, | |
"superInFunctions": true, | |
"templateStrings": true, | |
"unicodeCodePointEscapes": true, | |
"globalReturn": false, | |
"jsx": false | |
}, | |
"rules": { | |
"camelcase": [ | |
2, | |
{ | |
"properties": "always" | |
} | |
], | |
"comma-dangle": [2, "never"], | |
"comma-spacing": [ | |
2, { | |
"before": false, | |
"after": true | |
} | |
], | |
"complexity": [1, 6], | |
"constructor-super": 0, | |
"curly": 2, | |
"eol-last": 0, | |
"eqeqeq": 2, | |
"generator-star-spacing": 2, | |
"id-length": 2, | |
"indent": [2, 4], | |
"linebreak-style": [2, "unix"], | |
"max-depth": [2, 5], | |
"max-params": [2, 6], | |
"max-statements": [2, 30], | |
"new-cap": 1, | |
"no-alert": 2, | |
"no-cond-assign": [2, "always"], | |
"no-console": 1, | |
"no-const-assign": 2, | |
"no-empty": 2, | |
"no-ex-assign": 2, | |
"no-extra-semi": 2, | |
"no-extra-strict": 0, | |
"no-mixed-spaces-and-tabs": 2, | |
"no-multi-str": 2, | |
"no-nested-ternary": 2, | |
"no-octal": 2, | |
"no-shadow": 2, | |
"no-sparse-arrays": 2, | |
"no-this-before-super": 0, | |
"no-undef": 2, | |
"no-underscore-dangle": 2, | |
"no-unreachable": 2, | |
"no-var": 2, | |
"object-shorthand": [2, "never"], | |
"one-var": [2, "always"], | |
"prefer-const": 2, | |
"quotes": [2, "single"], | |
"radix": 2, | |
"require-yield": 2, | |
"semi": [2, "always"], | |
"valid-typeof": 2, | |
"vars-on-top": 2, | |
"yoda": [2, "always"] | |
} | |
} |
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
{ | |
"globals": { | |
}, | |
"ecmaFeatures": { | |
"arrowFunctions": false, | |
"binaryLiterals": true, | |
"blockBindings": true, | |
"classes": true, | |
"defaultParams": true, | |
"destructuring": true, | |
"forOf": true, | |
"generators": true, | |
"modules": true, | |
"objectLiteralComputedProperties": true, | |
"objectLiteralDuplicateProperties": true, | |
"objectLiteralShorthandMethods": true, | |
"objectLiteralShorthandProperties": true, | |
"octalLiterals": true, | |
"regexUFlag": true, | |
"regexYFlag": true, | |
"restParams": true, | |
"spread": true, | |
"superInFunctions": true, | |
"templateStrings": true, | |
"unicodeCodePointEscapes": true, | |
"globalReturn": false, | |
"jsx": false | |
}, | |
"rules": { | |
"camelcase": [ | |
1, | |
{ | |
"properties": "always" | |
} | |
], | |
"comma-dangle": [2, "never"], | |
"comma-spacing": [ | |
2, { | |
"before": false, | |
"after": true | |
} | |
], | |
"complexity": [1, 8], | |
"constructor-super": 0, | |
"curly": 2, | |
"eol-last": 2, | |
"eqeqeq": 2, | |
"generator-star-spacing": 2, | |
"id-length": [ | |
2, | |
{ | |
"min": 3, | |
"properties": "always" | |
} | |
], | |
"indent": [ | |
2, 4, | |
{ | |
"SwitchCase": 1 | |
} | |
], | |
"linebreak-style": [2, "unix"], | |
"max-depth": [2, 5], | |
"max-params": [2, 6], | |
"max-statements": [2, 50], | |
"new-cap": 1, | |
"no-alert": 2, | |
"no-cond-assign": [2, "always"], | |
"no-console": 0, | |
"no-const-assign": 2, | |
"no-empty": 2, | |
"no-ex-assign": 2, | |
"no-extra-semi": 2, | |
"no-extra-strict": 0, | |
"no-mixed-spaces-and-tabs": 2, | |
"no-multi-str": 2, | |
"no-nested-ternary": 2, | |
"no-octal": 2, | |
"no-shadow": 2, | |
"no-sparse-arrays": 2, | |
"no-this-before-super": 0, | |
"no-undef": 2, | |
"no-underscore-dangle": 2, | |
"no-unreachable": 2, | |
"object-shorthand": [2, "never"], | |
"one-var": [2, "always"], | |
// A changer quand les navs supportés supporteront tous ES6 | |
"prefer-const": 0, | |
"quotes": [2, "single"], | |
"radix": 2, | |
"require-yield": 2, | |
"semi": [2, "always"], | |
"valid-typeof": 2, | |
"vars-on-top": 2, | |
"yoda": [2, "always"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment