/
.eslintrc.json
50 lines (50 loc) · 1.65 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
{
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/all",
"plugin:import/typescript",
"plugin:require-extensions/recommended",
"plugin:jest/all",
"plugin:lit-a11y/recommended",
"plugin:lit/all",
"plugin:storybook/csf",
"plugin:storybook/recommended",
"plugin:wc/best-practice",
"prettier"
],
"env": { "browser": true },
"overrides": [
{
"files": [".storybook/**", "*.e2e.*", "*.spec.*", "*.stories.*"],
"rules": {
"@typescript-eslint/no-magic-numbers": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"max-lines": "off",
"max-lines-per-function": "off"
}
},
{
"files": ["*.e2e.*"],
"env": { "jest": true },
"globals": { "browser": true, "context": true, "jestPuppeteer": true, "page": true }
},
{ "files": ["*.stories.*"], "rules": { "import/extensions": ["error", "never"] } }
],
"parserOptions": { "project": "./tsconfig.json" },
"settings": { "import/resolver": { "typescript": {} } },
"rules": {
"@typescript-eslint/no-magic-numbers": ["error", { "ignore": [0, 1] }],
"@typescript-eslint/prefer-readonly-parameter-types": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/unbound-method": "off",
"import/extensions": "off",
"jest/no-hooks": "off",
"jest/prefer-expect-assertions": "off",
"max-lines": ["error", { "max": 130, "skipBlankLines": true, "skipComments": true }],
"max-lines-per-function": [
"error",
{ "max": 20, "skipBlankLines": true, "skipComments": true }
],
"storybook/prefer-pascal-case": "off"
}
}