forked from vaadin/web-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
116 lines (116 loc) · 2.87 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
{
"env": {
"es6": true,
"browser": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2019
},
"plugins": [
"no-only-tests",
"simple-import-sort",
"es"
],
"extends": [
"vaadin/typescript",
"vaadin/testing",
"vaadin/prettier"
],
"rules": {
"@typescript-eslint/class-literal-property-style": "off",
"@typescript-eslint/consistent-indexed-object-style": "off",
"@typescript-eslint/no-dynamic-delete": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-extraneous-class": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/prefer-optional-chain": "off",
"no-only-tests/no-only-tests": "error",
"simple-import-sort/imports": [
"error",
{
"groups": [
[
// Side-effects group
"^\\u0000",
// External group
"^",
// Vaadin group
"^@vaadin",
// Parent group
"^\\.\\.",
// Sibling group
"^\\."
]
]
}
],
"arrow-body-style": "off",
"class-methods-use-this": "off",
"consistent-return": "off",
"func-names": "off",
"max-depth": "off",
"max-params": "off",
"no-await-in-loop": "off",
"no-bitwise": "off",
"no-multi-assign": "off",
"no-param-reassign": "off",
"no-shadow": "off",
"no-unused-vars": "off",
"no-use-before-define": "off",
"one-var": "off",
"prefer-destructuring": "off",
"prefer-object-has-own": "off",
"prefer-promise-reject-errors": "off",
"radix": "off",
"sort-keys": "off"
},
"overrides": [
{
// Prevent using optional-chaining in source files, as it is not supported by Polymer analyzer
"files": ["packages/*/src/**/*.js"],
"rules": {
"es/no-optional-chaining": "error"
}
},
{
"files": ["scripts/**/*.js", "*.js"],
"rules": {
"@typescript-eslint/no-require-imports": "off",
"no-console": "off"
}
},
{
"files": ["packages/**/test/**", "integration/tests/**"],
"env": {
"mocha": true
},
"rules": {
"no-await-in-loop": "off",
"max-classes-per-file": "off",
"simple-import-sort/imports": [
"error",
{
"groups": [
[
// Testing tools group
"^(@esm-bundle|@web|@vaadin/testing-helpers|sinon)",
// Side-effects group
"^\\u0000",
// External group
"^",
// Vaadin group
"^@vaadin",
// Parent group
"^\\.\\.",
// Sibling group
"^\\."
]
]
}
]
}
}
]
}