Last active
June 24, 2021 05:48
-
-
Save jlafitte/ccc695f244ceb473a530fbdc130c0296 to your computer and use it in GitHub Desktop.
Idiomatic ESLint
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
//Put this in your home directory... Unless you need project specific settings | |
{ | |
"extends": "idiomatic", | |
"rules": { | |
"quotes": ["warn","double"], | |
"space-in-parens": ["warn","never"], | |
"array-bracket-spacing": ["warn","never"], | |
"computed-property-spacing": ["warn","never"], | |
"one-var-declaration-per-line": ["warn","initializations"], | |
"semi": ["error","always",{ | |
"omitLastInOneLineBlock": false | |
}], | |
"one-var": ["warn",{ | |
"initialized": "never", | |
"uninitialized": "always" | |
}], | |
"indent": ["warn", 2, { | |
"SwitchCase": 1 | |
}] | |
} | |
} |
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
npm install -g [email protected] https://github.com/BrandExtract/eslint-config-idiomatic.git | |
# You can add the following command in your crontab to update automagically. | |
curl "https://gist.githubusercontent.com/jlafitte/ccc695f244ceb473a530fbdc130c0296/raw/.eslintrc" > ~/.eslintrc | |
# cron example | |
# 0 12 * * * curl -s "https://gist.githubusercontent.com/jlafitte/ccc695f244ceb473a530fbdc130c0296/raw/a863715446f948a06eeef73279e999cbb600b465/.eslintrc" > ~/.eslintrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment