41 lines
1.3 KiB
JSON
41 lines
1.3 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": [
|
|
"eslint:all"
|
|
],
|
|
"rules": {
|
|
"semi": "warn",
|
|
"spaced-comment": "warn",
|
|
"padded-blocks": ["warn", "never"],
|
|
"camelcase": "warn",
|
|
"multiline-comment-style": "off",
|
|
"max-len": "warn",
|
|
"prefer-template": "warn",
|
|
"object-curly-spacing" : ["warn", "always"],
|
|
"func-style": ["warn", "declaration"],
|
|
"key-spacing": "warn",
|
|
"one-var": ["warn", "never"],
|
|
"quotes": "warn",
|
|
"space-before-function-paren": ["warn", "never"],
|
|
"no-undefined": "off",
|
|
"strict": ["error", "global"],
|
|
"keyword-spacing": "warn",
|
|
"function-call-argument-newline": "warn",
|
|
"operator-assignment": "off",
|
|
"space-before-blocks": "warn",
|
|
"brace-style": ["warn", "allman", {"allowSingleLine": true}],
|
|
"function-call-argument-newline" : ["warn", "consistent"],
|
|
"function-paren-newline": ["warn", "consistent"],
|
|
"no-magic-numbers": ["error", {"ignore": [0,1,2,100]}],
|
|
"quote-props": ["warn", "as-needed"],
|
|
"no-unused-vars": ["error", {"argsIgnorePattern": "^_"}],
|
|
"max-len" : ["warn", {"code": 88}],
|
|
"capitalized-comments": "off",
|
|
"operator-linebreak": ["warn", "before"],
|
|
"max-lines": "off"
|
|
}
|
|
}
|