This repository was archived by the owner on Mar 4, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 164
Expand file tree
/
Copy path.eslintrc.json
More file actions
73 lines (73 loc) · 1.73 KB
/
.eslintrc.json
File metadata and controls
73 lines (73 loc) · 1.73 KB
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
{
"extends": "./node_modules/gts",
"overrides": [
{
"files": [
"dev/src/**/*.ts"
],
"excludedFiles": [
"dev/src/v1/*.ts",
"dev/src/v1beta1/*.ts"
],
"parser": "@typescript-eslint/parser",
"rules": {
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true
}
],
"no-console": ["error", {"allow": ["error"]}],
"@typescript-eslint/no-unused-vars": [
"warn",
{
// Ignore args that are underscore only
"argsIgnorePattern": "^_$"
}
]
}
},
{
"files": [
"dev/test/*.ts",
"dev/system-test/*.ts"
],
"parser": "@typescript-eslint/parser",
"rules": {
"no-restricted-properties": [
"error",
{
"object": "describe",
"property": "only"
},
{
"object": "it",
"property": "only"
}
],
"@typescript-eslint/no-unused-vars": [
"warn",
{
// Ignore args that are underscore only
"argsIgnorePattern": "^_$"
}
],
"@typescript-eslint/no-floating-promises": "warn"
}
},
{
"files": [
"dev/src/v1/**/*.ts",
"dev/src/v1beta1/**/*.ts",
"dev/test/gapic_firestore_v1.ts",
"dev/test/gapic_firestore_admin_v1.ts",
"dev/test/gapic_firestore_admin_v1.ts"
],
"rules": {
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/no-floating-promises": ["off"]
}
}
]
}