-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
42 lines (42 loc) · 1.11 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
{
"root": true,
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"extends": [ "eslint:recommended" ],
"ignorePatterns": [ "**/dist/**", "**/iCloud" ],
"overrides": [
{
"files": [ "**.cjs" ],
"parserOptions": { "sourceType": "commonjs" },
"globals": { "require": "readonly" }
},
{
"files": [ "**/*.@(ts|js)" ],
"plugins": [ "@typescript-eslint" ],
"parser": "@typescript-eslint/parser",
"extends": [ "plugin:@typescript-eslint/recommended" ],
"rules": {
"semi": [ "error", "always", { "omitLastInOneLineBlock": true } ],
"semi-style": [ "error", "last" ],
"@typescript-eslint/consistent-type-imports": [ "error", { "fixStyle": "inline-type-imports" } ]
}
},
{
"files": [ "**/tests/**/*.@(ts|js|cjs)" ],
"plugins": [
"jest",
"jest-formatting"
],
"extends": [
"plugin:jest/recommended",
"plugin:jest-formatting/strict"
],
"rules": {
"jest/prefer-called-with": "error",
"jest/prefer-spy-on": "error"
}
}
]
}