forked from dso-toolkit/dso-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
59 lines (59 loc) · 1.73 KB
/
.eslintrc.js
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
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
parser: "@typescript-eslint/parser",
overrides: [
{
files: ["*.js"],
rules: {
"@typescript-eslint/no-var-requires": ["off"],
},
},
{
files: ["packages/core/src/**/*{.ts,.tsx}"],
parserOptions: {
project: "./packages/core/tsconfig.json",
},
extends: ["@infoprojects/eslint-config", "plugin:@stencil-community/strict", "prettier"],
rules: {
// @stencil-community overrides
"func-style": [2, "declaration", { allowArrowFunctions: true }],
"no-shadow": 0,
"react/jsx-no-bind": 0,
"@typescript-eslint/no-shadow": 2,
"@stencil-community/strict-boolean-conditions": 0,
"@stencil-community/decorators-style": [
"error",
{
prop: "multiline",
state: "multiline",
element: "multiline",
event: "multiline",
method: "multiline",
watch: "multiline",
listen: "multiline",
},
],
},
},
],
plugins: ["@typescript-eslint", "only-warn", "lit"],
extends: ["@infoprojects/eslint-config", "prettier"],
rules: {
"lit/attribute-value-entities": "error",
"lit/binding-positions": "error",
"lit/no-duplicate-template-bindings": "error",
"lit/no-invalid-escape-sequences": "error",
"lit/no-invalid-html": "error",
"lit/no-legacy-template-syntax": "error",
"lit/no-private-properties": "error",
"lit/no-property-change-update": "error",
"lit/no-template-bind": "error",
"lit/no-useless-template-literals": "error",
"lit/quoted-expressions": "error",
"no-duplicate-imports": "error",
},
};