-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
57 lines (57 loc) · 1.33 KB
/
.eslintrc.json
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
52
53
54
55
56
57
{
"plugins": [
"import",
"office-addins"
],
"extends": [
"plugin:office-addins/recommended"
],
"env": {
"browser": true,
"es6": true
},
"globals": {
"Office": "readonly",
"$": "readonly"
},
"rules": {
"no-const-assign": "error",
"prefer-const": ["warn", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}],
"no-var": "error",
"no-unused-vars": ["warn", {
"vars": "all",
"args": "after-used",
"argsIgnorePattern": "^_",
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_"
}],
"no-use-before-define": ["error", {
"functions": false,
"classes": true
}],
"no-unused-expressions": "error",
"no-unused-labels": "error",
"no-undef": ["error", {
"typeof": true
}],
"import/default": "error",
"import/namespace": "error",
"import/no-duplicates": "error",
"import/export": "error",
"import/extensions": ["error", "always"],
"import/first": "error",
"import/named": "error",
"import/no-named-as-default": "error",
"import/no-named-as-default-member": "error",
"import/no-cycle": ["warn", {
}],
"import/no-self-import": "error",
"import/no-unresolved": ["error", {
"caseSensitive": true
}],
"import/no-useless-path-segments": "error"
}
}