-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.json
148 lines (148 loc) · 3.59 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
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
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"parser": "@typescript-eslint/parser",
"plugins": [
"import",
"prettier",
"react-hooks",
"@typescript-eslint",
"react",
"@next/next"
],
"parserOptions": {
"sourceType": "module"
},
"settings": {
"react": {
"version": "detect"
},
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "optionalDependencies": true, "peerDependencies": true}],
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx",
".d.ts",
".web.js",
".web.jsx",
".web.ts",
".web.tsx"
]
}
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@next/next/recommended"
],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"@next/next/no-page-custom-font": "off",
"no-undef": "off",
"quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"max-params": ["error", 3],
"no-empty-pattern": 1,
"@typescript-eslint/no-empty-function": 1,
"@typescript-eslint/ban-ts-comment": 2,
"@typescript-eslint/no-explicit-any": 1,
"@typescript-eslint/explicit-module-boundary-types": 0,
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".tsx"] }],
"import/no-extraneous-dependencies": 2,
"import/extensions": ["error", "never", { "svg": "always" }],
"for-direction": 2,
"no-cond-assign": 2,
"no-constant-condition": 2,
"no-inline-comments": 2,
"no-promise-executor-return": 2,
"no-fallthrough": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-import-assign": 2,
"no-dupe-else-if": 2,
"no-duplicate-imports": 2,
"no-ex-assign": 2,
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": "*", "next": "export" }
],
"no-shadow": 0,
"sort-imports": [
"error",
{
"ignoreCase": true,
"ignoreDeclarationSort": true
}
],
"import/order": [
"error",
{
"groups": [
"internal",
"external",
"builtin",
"index",
"sibling",
"parent"
],
"pathGroups": [
{
"pattern": "react+(|-*)",
"group": "external",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": [],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"import/no-duplicates": 2,
"import/no-useless-path-segments": 2,
"import/prefer-default-export": 0,
"import/named": 0,
"import/namespace": 0,
"import/default": 0,
"import/no-named-as-default-member": 0,
"import/no-named-as-default": 0,
"import/no-unused-modules": 0,
"import/no-deprecated": 0,
"@typescript-eslint/indent": 0,
"import/no-anonymous-default-export": 2,
"react-hooks/rules-of-hooks": 1,
"react-hooks/exhaustive-deps": [
"warn",
{ "additionalHooks": "(useDidMount)" }
],
"camelcase": 0,
"prefer-destructuring": 2,
"no-nested-ternary": 2,
"comma-dangle": 0,
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"react/jsx-sort-props": 1
},
"env": {
"node": true,
"es2020": true
}
}