Created
April 19, 2018 05:08
-
-
Save rogeriotaques/20ea6c5689a35f4cd30434045d1de0eb to your computer and use it in GitHub Desktop.
Standard ESLint configuration file I am using in my projects with jQuery and Gulp.
This file contains hidden or 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, | |
"jquery": true | |
}, | |
"extends": ["airbnb-base"], | |
"rules": { | |
"arrow-parens": ["error", "always"], | |
"camelcase": "off", | |
"comma-dangle": ["error", "only-multiline"], | |
"class-methods-use-this": "off", | |
"function-paren-newline": "off", | |
"indent": "off", | |
"import/no-unresolved": "off", | |
"import/no-extraneous-dependencies": "off", | |
"import/extensions": [ | |
"error", | |
"never", | |
{ | |
"js": "off", | |
"svg": "always", | |
"scss": "always", | |
"css": "always" | |
} | |
], | |
"max-len": [ | |
"error", | |
{ | |
"code": 100, | |
"ignoreUrls": true, | |
"ignoreRegExpLiterals": true, | |
"ignoreStrings": true | |
} | |
], | |
"no-console": "off", | |
"no-mixed-operators": "off", | |
"no-restricted-globals": "off", | |
"no-underscore-dangle": "off", | |
"object-curly-newline": ["error", { "consistent": true }], | |
"require-jsdoc": [ | |
"warn", | |
{ | |
"require": { | |
"FunctionDeclaration": true, | |
"MethodDefinition": false, | |
"ClassDeclaration": false, | |
"ArrowFunctionExpression": false | |
} | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment