-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
42 lines (42 loc) · 1.22 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
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:jest/recommended",
"plugin:jest/style",
"prettier"
],
"plugins": [
"jest",
"@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": [
"src/tsconfig.json",
"test/tsconfig.json"
]
},
"env": {
"jest/globals": true,
"es2021": true,
"node": true
},
"rules": {
"jest/consistent-test-it": ["error", { "fn": "test" }],
"jest/require-top-level-describe": ["error"],
// テンプレートリテラルでundefinedやunknownを使えるように
"@typescript-eslint/restrict-template-expressions": "off",
// _で始まる変数/引数等は対象外
"@typescript-eslint/no-unused-vars": [
"error", {
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_"
}
]
}
}