-
-
Save lloydlobo/d10e1649bb0b76ff3bf66c4b55ab051a 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