initial
This commit is contained in:
34
.eslintrc.js
Normal file
34
.eslintrc.js
Normal file
@@ -0,0 +1,34 @@
|
||||
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"]
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user