-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc
56 lines (56 loc) · 1.4 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
55
56
{
"root": true,
"env": {
"browser": true,
"es2021": true,
"mocha": true,
"jest": true,
},
"globals": {
"module": true,
"webviewApi": true,
"messenger": true,
"CodeMirror": true,
"DDDot": true,
"CodeMirror5Manager": true,
"App": true
},
"parser": "@typescript-eslint/parser",
"plugins": [
"react-hooks",
"@typescript-eslint"
],
"extends": [
"airbnb-base",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"indent": ["error", 4],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-empty-function": "off",
"import/extensions": "off",
"no-await-in-loop": "off",
"class-methods-use-this": "off",
"import/no-unresolved": "off",
"quotes": [2, "double"],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-console": ["error", { "allow": ["warn", "error"] }],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": '^_',
"caughtErrorsIgnorePattern": "^_",
}
],
"import/prefer-default-export": "off",
"no-empty-function": "off",
"no-alert": "off",
"react-hooks/exhaustive-deps": "error"
}
}