Working from a base of eslint:recommended
plus a few additions/removals of internal rules.
Last active
May 7, 2024 14:46
-
-
Save magnetikonline/fbea6cc76f2d1309ef740c3cd849e1fb to your computer and use it in GitHub Desktop.
My ESLint configuration template.
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
Show hidden characters
{ | |
"root": true, | |
"parserOptions": { | |
"sourceType": "module" | |
}, | |
"env": { | |
"es2020": true, | |
"node": true | |
}, | |
"extends": [ | |
"eslint:recommended" | |
], | |
"rules": { | |
"comma-dangle": [ | |
"error", | |
{ | |
"arrays": "always-multiline", | |
"imports": "always-multiline", | |
"objects": "always-multiline" | |
} | |
], | |
"eqeqeq": "error", | |
"no-prototype-builtins": "off", | |
"no-unused-vars": [ | |
"error", | |
{ | |
"args": "none" | |
} | |
], | |
"quotes": [ | |
"error", | |
"single" | |
], | |
"semi": [ | |
"error", | |
"always" | |
], | |
"semi-spacing": "error", | |
"spaced-comment": "error" | |
}, | |
"ignorePatterns": [ | |
"PATH_01", | |
"PATH_02" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment