Skip to content

Commit fdb530d

Browse files
chore: Add eslint vitest plugin (#98)
1 parent 293044a commit fdb530d

File tree

3 files changed

+682
-785
lines changed

3 files changed

+682
-785
lines changed

.eslintrc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
"plugin:react/recommended",
77
"plugin:react-hooks/recommended",
88
"plugin:prettier/recommended",
9-
"prettier/@typescript-eslint"
9+
"prettier/@typescript-eslint",
10+
"plugin:@vitest/legacy-recommended"
1011
],
1112
"parserOptions": {
1213
"ecmaVersion": 2018,
1314
"sourceType": "module"
1415
},
15-
"plugins": ["unicorn", "header"],
16+
"plugins": ["unicorn", "header", "@vitest"],
1617
"rules": {
1718
"@typescript-eslint/ban-ts-comment": ["error", { "ts-expect-error": "allow-with-description" }],
1819
"@typescript-eslint/interface-name-prefix": "off",
@@ -29,7 +30,8 @@
2930
"error",
3031
"line",
3132
[" Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.", " SPDX-License-Identifier: Apache-2.0"]
32-
]
33+
],
34+
"@vitest/no-focused-tests": "error"
3335
},
3436
"settings": {
3537
"react": {

0 commit comments

Comments
 (0)