35 lines
690 B
JavaScript
35 lines
690 B
JavaScript
module.exports = {
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": "eslint:recommended",
|
|
"overrides": [
|
|
{
|
|
"env": {
|
|
"node": true
|
|
},
|
|
"files": [
|
|
".eslintrc.{js,cjs}"
|
|
],
|
|
"parserOptions": {
|
|
"sourceType": "script"
|
|
}
|
|
}
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
"object-curly-spacing": ["always"],
|
|
"no-unused-vars": ["warn"],
|
|
"no-console": "off",
|
|
"indent": ["error", 2, { "SwitchCase": 1 }],
|
|
"no-trailing-spaces": ["warn"],
|
|
"no-multi-spaces": ["warn"],
|
|
"space-infix-ops": ["warn"],
|
|
"keyword-spacing": ["warn"]
|
|
}
|
|
};
|