Skip to content

Commit 6f35ef6

Browse files
committed
Disable no-non-null-assertion for test files
1 parent c1f32e5 commit 6f35ef6

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.eslintrc

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,22 @@
5151
"warn", { "argsIgnorePattern": "^_" }
5252
],
5353
"@typescript-eslint/lines-between-class-members": "off"
54-
}
54+
},
55+
"overrides": [
56+
{
57+
"files": [
58+
"*.spec.ts",
59+
"*.spec.tsx",
60+
"*.spec.js",
61+
"*.spec.jsx",
62+
"*.test.ts",
63+
"*.test.tsx",
64+
"*.test.js",
65+
"*.test.jsx"
66+
],
67+
"rules": {
68+
"@typescript-eslint/no-non-null-assertion": "off"
69+
}
70+
}
71+
]
5572
}

0 commit comments

Comments
 (0)