Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ async function init() {
// Provide data for the oxlintrc.json template
callbacks.push(async (dataStore) => {
const oxlintrcPath = path.resolve(root, '.oxlintrc.json')
dataStore[oxlintrcPath] = { needsTypeScript }
dataStore[oxlintrcPath] = { needsTypeScript, needsVitest }
})
if (needsPrettier || needsOxfmt) {
render('linting/formatter')
Expand Down
2 changes: 1 addition & 1 deletion template/linting/oxlint/_oxlintrc.json.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint"<%_ if (needsTypeScript) { _%>, "typescript"<%_ } _%>, "unicorn", "oxc", "vue"],
"plugins": ["eslint"<%_ if (needsTypeScript) { _%>, "typescript"<%_ } _%>, "unicorn", "oxc", "vue"<%_ if (needsVitest) { _%>, "vitest"<%_ } _%>],
"env": {
"browser": true
},
Expand Down