Skip to content

Instantly share code, notes, and snippets.

@rogeriotaques
Created April 19, 2018 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rogeriotaques/20ea6c5689a35f4cd30434045d1de0eb to your computer and use it in GitHub Desktop.
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.
{
"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