forked from MyCryptoHQ/wallets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
97 lines (97 loc) · 2.8 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
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
87
88
89
90
91
92
93
94
95
96
97
{
"root": true,
"parser": "@typescript-eslint/parser",
"extends": ["eslint:recommended", "eslint-config-prettier"],
"plugins": ["eslint-plugin-import"],
"ignorePatterns": "jest.config.ts",
"rules": {
"comma-dangle": ["error", "never"],
"curly": "error",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-deprecated": "warn",
"import/no-duplicates": "error",
"import/no-mutable-exports": "error",
"import/no-namespace": "error",
"import/no-self-import": "error",
"import/no-useless-path-segments": "error",
"import/order": [
"error",
{
"newlines-between": "always",
"groups": [["builtin", "external"], "internal", ["parent", "sibling", "index"]],
"pathGroupsExcludedImportTypes": [],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"no-console": "error",
"no-restricted-globals": ["error", "Buffer"],
"quotes": ["error", "single", "avoid-escape"]
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:eslint-plugin-import/typescript"
],
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/consistent-type-assertions": [
"error",
{
"assertionStyle": "as"
}
],
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/explicit-member-accessibility": [
"error",
{
"accessibility": "no-public"
}
],
"@typescript-eslint/method-signature-style": ["error", "method"],
"@typescript-eslint/no-empty-function": [
"error",
{
"allow": ["private-constructors"]
}
],
"@typescript-eslint/no-inferrable-types": [
"error",
{
"ignoreParameters": true
}
],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/strict-boolean-expressions": ["error", { "allowNullableBoolean": true }]
},
"parserOptions": {
"project": ["./tsconfig.json"],
"ecmaFeatures": {
"jsx": true
}
}
},
{
"files": ["*.test.ts", "*.test.tsx", "jest.config.ts"],
"env": {
"node": true,
"jest": true
},
"extends": ["plugin:eslint-plugin-jest/recommended", "plugin:eslint-plugin-jest/style"],
"plugins": ["eslint-plugin-jest"]
}
]
}