-
Notifications
You must be signed in to change notification settings - Fork 32
/
.eslintrc
54 lines (54 loc) · 1.54 KB
/
.eslintrc
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
{
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:wc/recommended",
"plugin:jest/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:unicorn/all",
"@open-wc/eslint-config",
"prettier",
],
"settings": {
"import/resolver": {
"node": true,
"typescript": true,
},
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"project": "./tsconfig.json",
},
"plugins": ["@typescript-eslint"],
"env": {
"browser": true,
"es6": true,
"jest": true,
},
"rules": {
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-template": "error",
"no-var": "error",
"eqeqeq": "error",
"no-eval": "error",
"no-console": "error",
"no-unused-vars": "error",
"import/extensions": "off",
"import/no-cycle": "off",
"unicorn/template-indent": "off",
"unicorn/prefer-string-replace-all": "off",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-unsafe-call": "error",
"@typescript-eslint/no-unsafe-return": "error",
"@typescript-eslint/no-floating-promises": "error",
},
}