-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
135 lines (133 loc) · 3.43 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"root": true,
"rules": {
"sort-imports": [
"warn",
{
"ignoreDeclarationSort": true,
"ignoreCase": true
}
],
"prefer-template": "off",
"no-var": 1,
"no-console": "off",
"no-template-curly-in-string": 1,
"no-self-compare": 1,
"import/prefer-default-export": 0,
"arrow-body-style": 0,
"import/no-extraneous-dependencies": ["off", { "devDependencies": false }],
"import/no-unresolved": "off",
"import/extensions": "off",
"no-underscore-dangle": "off",
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/member-delimiter-style": "error",
"@typescript-eslint/member-ordering": "warn",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/method-signature-style": "warn",
"@typescript-eslint/no-unused-expressions": [
"error",
{
"allowShortCircuit": false,
"allowTernary": true,
"allowTaggedTemplates": false
}
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-types": [
"error",
{
"extendDefaults": true,
"types": {
"object": false
}
}
],
"class-methods-use-this": "off",
"no-implicit-coercion": "error",
"no-param-reassign": ["error", { "props": false }],
"indent": "off",
"no-multiple-empty-lines": ["error", { "max": 1 }],
"eslint-comments/disable-enable-pair": [
"error",
{ "allowWholeFile": true }
],
"default-case": "error",
"import/order": [
"error",
{
"groups": [
["builtin", "external"],
"internal",
"parent",
"sibling",
"index"
],
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
},
{
"pattern": "jazz-*/**",
"group": "external",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": ["builtin"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
]
},
"ignorePatterns": ["dist", "node_modules", "webpack.*"],
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-plugin/recommended",
"plugin:eslint-plugin-eslint-comments/recommended",
"plugin:eslint-plugin-import/recommended",
"plugin:eslint-plugin-import/typescript",
"plugin:eslint-plugin-react-hooks/recommended",
"eslint-config-prettier"
],
"plugins": [
"prettier",
"@typescript-eslint/eslint-plugin",
"eslint-plugin-import",
"eslint-plugin-eslint-comments",
"eslint-plugin-react-hooks"
],
"overrides": [
{
"files": ["*.d.ts"],
"rules": {
"@typescript-eslint/method-signature-style": "off"
}
},
{
"files": ["*.js", "*.mjs"],
"rules": {
"no-undef": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
]
}