-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy path.eslintrc
62 lines (62 loc) · 1.68 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
{
"extends": [
"react-app",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"plugins": ["import", "prettier", "no-type-assertion"],
"parser": "@typescript-eslint/parser",
"overrides": [{
"files": ["*.ts", "*.tsx"],
"parserOptions": {
"project": ["./tsconfig.json", "./e2e/tsconfig.json", "./webpack/tsconfig.json"]
}
}],
"settings": {
"import/resolver": {
"typescript": {
"project": ["tsconfig.json", "e2e/tsconfig.json"]
},
"node": {
"extensions": [".d.ts"]
}
}
},
"ignorePatterns": "src/**/*.embed.js",
"rules": {
"prettier/prettier": "error",
"prefer-const": "error",
"import/no-duplicates": "error",
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"import/no-self-import": "error",
"import/no-cycle": "error",
"import/order": [
"error",
{
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react"],
"groups": [["external", "builtin"], "internal", "parent", "sibling", "index"],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"newlines-between": "always"
}
],
"no-type-assertion/no-type-assertion": "warn",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/prefer-ts-expect-error": "error",
"react-hooks/rules-of-hooks": "warn",
"react-hooks/exhaustive-deps": ["warn", {
"additionalHooks": "(useMemoWithCompare|useDidUpdate)"
}]
}
}