-
Notifications
You must be signed in to change notification settings - Fork 115
/
.eslintrc.cjs
62 lines (62 loc) · 1.51 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
},
extends: [
"prettier",
"plugin:@typescript-eslint/recommended",
"eslint:recommended",
"plugin:storybook/recommended",
"plugin:lit/recommended",
"plugin:wc/recommended",
],
plugins: ["prettier", "unused-imports", "@typescript-eslint"],
env: {
browser: true,
node: true,
},
globals: {
process: "readonly",
},
rules: {
"prettier/prettier": "error",
"strict": ["error", "never"],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double", { avoidEscape: true }],
"semi": ["error", "always"],
"no-empty": "off",
"unused-imports/no-unused-imports": "error",
"padding-line-between-statements": [
"error",
{ blankLine: "always", prev: ["const", "let", "var"], next: "*" },
{ blankLine: "any", prev: ["const", "let", "var"], next: ["const", "let", "var"] },
],
"space-in-parens": "error",
"no-multiple-empty-lines": "error",
"no-irregular-whitespace": "error",
"space-before-function-paren": [
"error",
{
anonymous: "always",
named: "never",
asyncArrow: "always",
},
],
},
overrides: [
{
files: ["*.ts"],
parser: "@typescript-eslint/parser",
extends: ["plugin:@typescript-eslint/recommended"],
plugins: ["@typescript-eslint"],
},
{
files: ["web-test-runner.config.js"],
env: {
node: true,
},
},
],
};