-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
35 lines (35 loc) · 963 Bytes
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"extends": ["eslint:recommended"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"ignorePatterns": ["src/css/ext/nwsapi.js"],
"rules": {
"no-import-assign": "warn",
"prefer-regex-literals": "error",
"multiline-ternary": "off",
"camelcase": "off",
"arrow-parens": "off",
"space-before-function-paren": ["error", "never"],
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }],
"no-trailing-spaces": "error",
"semi": ["error", "always"],
"eqeqeq": "off",
"indent": ["error", 2],
"no-constant-condition": ["error", { "checkLoops": false }],
"prefer-const": "off",
"one-var": "off",
"no-useless-return": "off",
"keyword-spacing": ["error", { "overrides": {
"if": { "after": false },
"for": { "after": false },
"while": { "after": false }
}}]
}
}