-
Notifications
You must be signed in to change notification settings - Fork 100
/
Copy pathmain.ts
61 lines (59 loc) · 1.73 KB
/
main.ts
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
58
59
60
61
/* global module */
import rules from "./rules";
module.exports = {
rules,
configs: {
recommended: {
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "office-addins", "prettier"],
parserOptions: {
ecmaVersion: 6,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
extends: ["eslint:recommended", "prettier"],
rules: {
"@typescript-eslint/no-unused-vars": "error",
"no-delete-var": "warn",
"no-eval": "error",
"no-inner-declarations": "warn",
"no-octal": "warn",
"no-unused-vars": "off",
"office-addins/call-sync-after-load": "error",
"office-addins/call-sync-before-read": "error",
"office-addins/load-object-before-read": "error",
"office-addins/no-context-sync-in-loop": "warn",
"office-addins/no-empty-load": "warn",
"office-addins/no-navigational-load": "warn",
"office-addins/no-office-initialize": "warn",
"office-addins/test-for-null-using-isNullObject": "error",
"prettier/prettier": ["error", { endOfLine: "auto" }],
},
},
react: {
plugins: ["office-addins", "react"],
extends: ["plugin:office-addins/recommended", "plugin:react/recommended"],
settings: {
react: {
version: "detect",
},
},
},
reactnative: {
plugins: ["office-addins", "react-native"],
extends: ["plugin:office-addins/recommended", "plugin:react-native/all"],
settings: {
react: {
version: "detect",
},
},
},
test: {
plugins: ["office-addins"],
extends: ["plugin:office-addins/recommended"],
rules: {},
},
},
};