-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
95 lines (95 loc) · 2.87 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
{
"env": { "browser": true, "es2020": true, "node": true },
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:import/typescript",
"plugin:tailwindcss/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["prettier", "import", "@typescript-eslint", "sort-export-all"],
"rules": {
"prettier/prettier": "error",
"react/jsx-no-target-blank": "warn",
"react/jsx-boolean-value": "error",
"react-hooks/exhaustive-deps": "error",
"import/order": [
"error",
{
"pathGroups": [
{
"pattern": "@/**",
"group": "internal"
},
{
"pattern": "~/**",
"group": "sibling"
}
],
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
"pathGroupsExcludedImportTypes": ["builtin"],
"newlines-between": "always",
"alphabetize": { "order": "asc", "caseInsensitive": true },
"warnOnUnassignedImports": true
}
],
"import/consistent-type-specifier-style": ["error", "prefer-inline"],
"import/no-duplicates": ["error", { "prefer-inline": true }],
"import/newline-after-import": "error",
"import/extensions": ["error", "never", { "png": "always", "svg": "always" }],
"no-restricted-imports": [
"error",
{
"patterns": [
"@/apis/**",
"!@/assets/**",
"@/atoms/**",
"@/constants/**",
"@/hooks/**",
"!@/hooks/queries",
"!@/hooks/mutations",
"@/types/**",
"@/utils/**"
]
}
],
"no-unused-vars": "error",
"object-shorthand": ["error", "always"],
"no-implicit-coercion": "error",
"require-await": "error",
"sort-imports": ["error", { "ignoreDeclarationSort": true }],
"prefer-object-has-own": "error",
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-useless-return": "error",
"no-console": ["error"],
"prefer-exponentiation-operator": "error",
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "export",
"next": "multiline-block-like"
}
],
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-unnecessary-condition": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/no-inferrable-types": "error",
"sort-export-all/sort-export-all": "error"
}
}