Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 759c0e2

Browse files
committedSep 30, 2023
Update createESLintRC too
1 parent 3e3414a commit 759c0e2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
 

Diff for: ‎src/steps/writing/creation/createESLintRC.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ describe("createESLintRC", () => {
126126
\\"plugin:n/recommended\\",
127127
\\"plugin:perfectionist/recommended-natural\\",
128128
\\"plugin:regexp/recommended\\",
129+
\\"plugin:vitest/recommended\\",
129130
],
130131
overrides: [
131132
{

Diff for: ‎src/steps/writing/creation/createESLintRC.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ module.exports = {
2020
? ""
2121
: `
2222
"plugin:perfectionist/recommended-natural",`
23-
}${options.excludeLintRegex ? "" : `"plugin:regexp/recommended",`}
23+
}${options.excludeLintRegex ? "" : `"plugin:regexp/recommended",`}${
24+
options.excludeTests ? "" : `"plugin:vitest/recommended",`
25+
}
2426
],
2527
overrides: [${
2628
options.excludeLintMd

0 commit comments

Comments
 (0)
Please sign in to comment.