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"],
"env": {
"node": true
},
"parserOptions": {
"ecmaVersion": 10
},
"plugins": ["prettier"],
"rules": {
"no-constant-condition": "off",
"no-dupe-else-if": "off",
"indent": "off",
"no-empty": "warn",
"no-inner-declarations": "warn",
"no-unreachable": "warn",
"no-undef": "warn",
"no-unused-vars": "warn",
"no-redeclare": "warn",
"curly": "error",
"prettier/prettier": "error",
"one-var": ["error", "never"],
"no-sequences": "error"
}
"extends": ["eslint:recommended", "eslint-config-prettier"],
"env": {
"node": true
},
"parserOptions": {
"ecmaVersion": 2020
},
"plugins": ["prettier"],
"rules": {
"no-constant-condition": "off",
"no-dupe-else-if": "off",
"indent": "off",
"no-empty": "warn",
"no-inner-declarations": "warn",
"no-unreachable": "warn",
"no-undef": "warn",
"no-unused-vars": "warn",
"no-redeclare": "warn",
"curly": "error",
"prettier/prettier": "error",
"one-var": ["error", "never"],
"no-sequences": "error"
}
}