Skip to content

Instantly share code, notes, and snippets.

@magnetikonline
Last active May 7, 2024 14:46
Show Gist options
  • Save magnetikonline/fbea6cc76f2d1309ef740c3cd849e1fb to your computer and use it in GitHub Desktop.
Save magnetikonline/fbea6cc76f2d1309ef740c3cd849e1fb to your computer and use it in GitHub Desktop.
My ESLint configuration template.
{
"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