Last active
April 18, 2018 20:05
-
-
Save joseluisq/b2149c9319e7bd62e04307090cd0604c to your computer and use it in GitHub Desktop.
My custom ESLint + Standard 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
/.nyc_output | |
/.vscode | |
/coverage | |
/node_modules | |
/tests/fixtures | |
/tests/integrations/*/node_modules |
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": { | |
"node": true, | |
"es6": true | |
}, | |
"extends": "standard", | |
"rules": { | |
"array-bracket-spacing": [ | |
"error", | |
"always" | |
], | |
"object-curly-spacing": [ | |
"error", | |
"always" | |
], | |
"max-len": [ | |
"error", | |
{ | |
"code": 132, | |
"ignoreUrls": true, | |
"ignoreStrings": true, | |
"ignoreTemplateLiterals": true, | |
"ignoreRegExpLiterals": true | |
} | |
], | |
"no-unused-vars": [ | |
"error", | |
{ | |
"vars": "all", | |
"args": "after-used", | |
"ignoreRestSiblings": false | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
Install ESLint and Standard dependencies:
Automatic lint your files:
Add to your
package.json
scripts:VS Code with auto formatting (ctrl + s)
Install vscode-eslint extension and then add to your
settings.json
: