bump eslint ecmaVersion to 2020

this is supported from node v14
This commit is contained in:
Kent Rasmussen
2025-05-22 14:00:57 +09:00
parent 23e4ce8c8c
commit fd80951074
+23 -23
View File
@@ -1,25 +1,25 @@
{ {
"extends": ["eslint:recommended", "eslint-config-prettier"], "extends": ["eslint:recommended", "eslint-config-prettier"],
"env": { "env": {
"node": true "node": true
}, },
"parserOptions": { "parserOptions": {
"ecmaVersion": 10 "ecmaVersion": 2020
}, },
"plugins": ["prettier"], "plugins": ["prettier"],
"rules": { "rules": {
"no-constant-condition": "off", "no-constant-condition": "off",
"no-dupe-else-if": "off", "no-dupe-else-if": "off",
"indent": "off", "indent": "off",
"no-empty": "warn", "no-empty": "warn",
"no-inner-declarations": "warn", "no-inner-declarations": "warn",
"no-unreachable": "warn", "no-unreachable": "warn",
"no-undef": "warn", "no-undef": "warn",
"no-unused-vars": "warn", "no-unused-vars": "warn",
"no-redeclare": "warn", "no-redeclare": "warn",
"curly": "error", "curly": "error",
"prettier/prettier": "error", "prettier/prettier": "error",
"one-var": ["error", "never"], "one-var": ["error", "never"],
"no-sequences": "error" "no-sequences": "error"
} }
} }