-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
141 lines (141 loc) · 3.64 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"env": {
"es2021": true,
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:wc/best-practice",
"plugin:lit/recommended",
"plugin:lit-a11y/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
"plugins": ["anti-trojan-source", "@typescript-eslint", "wc", "lit", "lit-a11y", "import"],
"reportUnusedDisableDirectives": true,
"root": true,
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.json"
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"rules": {
"@typescript-eslint/unbound-method": "warn"
}
}
],
"rules": {
"anti-trojan-source/no-bidi": "error",
"no-template-curly-in-string": "error",
"array-callback-return": "error",
"comma-dangle": "off",
"consistent-return": "error",
"curly": "off",
"default-param-last": "error",
"eqeqeq": "error",
"lit-a11y/click-events-have-key-events": "warn",
"no-constructor-return": "error",
"no-empty-function": "warn",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-floating-decimal": "error",
"no-implicit-coercion": "off",
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-octal-escape": "error",
"no-proto": "error",
"no-return-assign": "warn",
"no-script-url": "error",
"no-self-compare": "warn",
"no-sequences": "warn",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
"no-unused-expressions": "warn",
"no-useless-call": "error",
"no-useless-concat": "error",
"no-useless-return": "warn",
"prefer-promise-reject-errors": "error",
"radix": "off",
"require-await": "error",
"wrap-iife": ["warn", "inside"],
"no-shadow": "error",
"no-array-constructor": "error",
"no-bitwise": "error",
"no-multi-assign": "warn",
"no-new-object": "error",
"no-useless-computed-key": "warn",
"no-useless-rename": "warn",
"no-var": "error",
"prefer-const": "warn",
"prefer-numeric-literals": "warn",
"prefer-object-spread": "warn",
"prefer-rest-params": "warn",
"prefer-spread": "warn",
"prefer-template": "off",
"no-else-return": "off",
"func-names": ["warn", "never"],
"one-var": ["warn", "never"],
"operator-assignment": "warn",
"prefer-arrow-callback": "warn",
"no-restricted-imports": [
"warn",
{
"paths": [
{
"name": ".",
"message": "Usage of local index imports is not allowed."
},
{
"name": "./index",
"message": "Import from the source file instead."
}
]
}
],
"import/extensions": [
"error",
"always",
{
"ignorePackages": true,
"pattern": {
"js": "always",
"ts": "never"
}
}
],
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"]
}
],
"import/no-duplicates": "warn",
"wc/guard-super-call": "off"
},
"settings": {
"import/resolver": {
"typescript": {
"typescript": true,
"node": true
}
}
}
}