-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
86 lines (77 loc) · 2.06 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"ignorePatterns": [
"/packages/landing/build/**",
"/packages/firefox/bundle/**",
"/packages/chromium/bundle/**"
],
"root": true,
"extends": ["standard", "prettier"],
"reportUnusedDisableDirectives": true,
"rules": {
"import/order": [
"error",
{ "alphabetize": { "order": "asc" }, "newlines-between": "always" }
],
"no-unused-vars": [
"error",
{ "varsIgnorePattern": "[iI]gnored", "argsIgnorePattern": "^_" }
],
"curly": "error",
"default-case": "error"
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{ "varsIgnorePattern": "[iI]gnored", "argsIgnorePattern": "^_" }
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-void": ["error", { "allowAsStatement": true }],
"@typescript-eslint/no-floating-promises": [
"error",
{ "ignoreVoid": true }
],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": [
"error",
{ "functions": false, "classes": false }
],
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error"
}
},
{
"files": ["**/*.jsx", "**/*.tsx"],
"extends": ["plugin:react-hooks/recommended"]
},
{
"files": [
"**/*.spec.ts",
"**/*.spec.js",
"**/__mocks__/**/*.ts",
"**/__mocks__/**/*.js"
],
"rules": {
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/unbound-method": "off"
}
},
{
"files": ["**/*.js"],
"rules": {
"strict": ["error", "global"]
}
}
]
}