Skip to content

Instantly share code, notes, and snippets.

@magnetikonline
Last active May 22, 2023 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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-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