-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
89 lines (89 loc) · 2.36 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 11,
"ecmaFeatures": {
"jsx": true
},
"project": "./tsconfig.json"
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "src/"]
}
},
"react": {
"pragma": "React",
"version": "detect"
}
},
"plugins": ["react", "react-hooks"],
"extends": [
"eslint:recommended",
"plugin:react-hooks/recommended",
"prettier",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"airbnb",
"airbnb-typescript",
"plugin:prettier/recommended"
],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/prop-types": "off",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"no-console": ["error", { "allow": ["warn", "error"] }],
"react/react-in-jsx-scope": "off",
"react/display-name": 0,
"import/no-extraneous-dependencies": 0,
"import/prefer-default-export": 0,
"import/no-cycle": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/lines-between-class-members": "off",
"prettier/prettier": ["error"],
"consistent-return": 0,
"@typescript-eslint/no-throw-literal": 0,
"no-underscore-dangle": 0,
"react/function-component-definition": 0,
"testing-library/render-result-naming-convention": "off",
"import/order": [
"error",
{
"groups": [
["builtin", "external"],
["internal", "parent", "sibling", "index"]
],
"pathGroups": [
{ "pattern": "assets/**", "group": "sibling", "position": "after" },
{
"pattern": "@external/**/*.css",
"group": "sibling",
"position": "after"
},
{
"pattern": "*.css",
"group": "index",
"patternOptions": { "matchBase": true },
"position": "after"
}
],
"warnOnUnassignedImports": true,
"pathGroupsExcludedImportTypes": ["css"],
"newlines-between": "always"
}
]
},
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"testing-library/render-result-naming-convention": "off"
}
}
]
}