-
Notifications
You must be signed in to change notification settings - Fork 151
Expand file tree
/
Copy path.eslintrc.json
More file actions
51 lines (51 loc) · 1.69 KB
/
.eslintrc.json
File metadata and controls
51 lines (51 loc) · 1.69 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"extends": ["eslint:recommended"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2022
},
"env": {
"browser": true,
"es6": true
},
"rules": {
"no-undef": ["error"],
"no-restricted-globals": ["error", "event", "self"],
"no-const-assign": ["error"],
"no-debugger": ["error"],
"no-dupe-class-members": ["error"],
"no-dupe-keys": ["error"],
"no-dupe-args": ["error"],
"no-dupe-else-if": ["error"],
"no-unsafe-negation": ["error"],
"no-duplicate-imports": ["error"],
"valid-typeof": ["error"],
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false, "caughtErrors": "all" }],
"curly": ["error", "all"],
"no-restricted-syntax": ["error", "PrivateIdentifier"],
"prefer-const": ["error", {
"destructuring": "all",
"ignoreReadBeforeAssign": true
}],
"no-console": ["warn"],
"no-var": ["error"],
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["error"],
"brace-style": ["error"],
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error"],
"comma-dangle": ["error", "always-multiline"],
"semi": ["error", "always"],
"quotes": ["error", "double"],
"indent": ["error", 4, { "SwitchCase": 1 }],
"eol-last": ["error"],
"no-multiple-empty-lines": ["error"],
"no-trailing-spaces": ["error"]
},
"globals": {
"diff_match_patch": "readonly",
"$": "readonly",
"jQuery": "readonly",
"Chart": "readonly"
}
}