-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
55 lines (51 loc) · 1.63 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
{
"extends": [
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"plugins": ["prettier", "@typescript-eslint", "import", "simple-import-sort", "react", "react-hooks"],
"parser": "@typescript-eslint/parser",
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
}
},
"rules": {
"prettier/prettier": "error",
"no-implicit-coercion": "error",
"@typescript-eslint/naming-convention": [
"error",
{
"format": ["camelCase", "UPPER_CASE", "PascalCase"],
"selector": "variable",
"leadingUnderscore": "allow"
},
{ "format": ["camelCase", "PascalCase"], "selector": "function" },
{ "format": ["PascalCase"], "selector": "interface" },
{ "format": ["PascalCase"], "selector": "typeAlias" }
],
"@typescript-eslint/array-type": ["error", { "default": "array-simple" }],
"@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true }],
"prefer-const": "error",
"no-var": "error",
"import/no-duplicates": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"simple-import-sort/imports": [
"error",
{
"groups": [
["^react$", "^next", "^@", "^~", "^[a-z]"],
["^\\.\\.(?!/?$)", "^\\.\\./?$", "^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"],
["^\\u0000"]
]
}
],
"simple-import-sort/exports": "error",
"import/default": "off",
"react/jsx-key": "off"
},
"ignorePatterns": ["node_modules", "dist", "*.js"]
}