update eslint config

This commit is contained in:
Emily 2020-10-17 15:59:10 +11:00
parent 7e140d1ce8
commit 27c06e1739

View file

@ -1,54 +1,29 @@
{ {
"parserOptions": { "env": {
"ecmaVersion": 2018 "commonjs": true,
}, "es2021": true,
"env": { "node": true
"es6": true, },
"node": true "extends": "eslint:recommended",
}, "parserOptions": {
"extends": "eslint:recommended", "ecmaVersion": 12
"rules": { },
"no-console": "off", "rules": {
"indent": [ "indent": [
"error", "error",
2, 4
{ ],
"SwitchCase": 1 "linebreak-style": [
} "error",
], "unix"
"quotes": [ ],
"warn", "quotes": [
"double" "error",
], "single"
"semi": [ ],
"warn", "semi": [
"always" "error",
], "always"
"keyword-spacing": [ ]
"error", { }
"before": true,
"after": true
}
],
"space-before-blocks": [
"error", {
"functions":"always",
"keywords": "always",
"classes": "always"
}
],
"space-before-function-paren": [
"error", {
"anonymous": "always",
"named": "always",
"asyncArrow": "always"
}
],
"prefer-const": [
"error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
]
}
} }