/
.eslintrc.json
56 lines (56 loc) · 1.38 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
{
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:lit/all",
"plugin:wc/recommended",
"plugin:prettier/recommended"
],
"plugins": ["@typescript-eslint", "wc", "prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2019
},
"env": {
"browser": true
},
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"import/extensions": "off",
"import/no-import-module-exports": "off",
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"lit/no-template-map": "off",
"lit/prefer-static-styles": "off",
"class-methods-use-this": [
"error",
{
"exceptMethods": ["render", "update"]
}
],
"no-console": ["error", { "allow": ["error"] }],
"no-param-reassign": "off",
"no-plusplus": "off",
"no-underscore-dangle": "off",
"prefer-destructuring": "off"
},
"overrides": [
{
"files": ["src/@types/*.d.ts"],
"rules": {
"@typescript-eslint/no-explicit-any": "off"
}
},
{
"files": ["scripts/*.js"],
"rules": {
"import/no-extraneous-dependencies": "off",
"no-console": "off",
"no-restricted-syntax": "off"
}
}
]
}