-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
34 lines (34 loc) · 1.07 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
{
"extends": ["next/core-web-vitals", "plugin:react-hooks/recommended"],
"plugins": ["@typescript-eslint", "unused-imports"],
"parser": "@typescript-eslint/parser",
"rules": {
"no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"import/order": [
"error",
{
// グループごとの並び順
"groups": [
"builtin", // 1. fsや path などの node "builtin" のモジュール
"external", // 2. npm install したパッケージ
"internal", // 3. webpack などでパス設定したモジュール
["parent", "sibling"], // 4. 親階層と小階層のファイル
"object", // object"-imports
"type", // 型だけをインポートする type imports
"index" // 同階層のファイル
],
"alphabetize": { "order": "asc" }
}
],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
]
}
}