Skip to content

Commit de465c5

Browse files
committed
fix(vitest): add ESLint configuration message on exit
1 parent 10197ef commit de465c5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/unit-vitest/src/install.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,10 @@ module.exports = async function (api) {
8888
extendPackageJson = __mergeDeep(extendPackageJson, scripts);
8989

9090
api.extendPackageJson(extendPackageJson);
91+
92+
if (await api.hasLint()) {
93+
api.onExitLog(
94+
'Check out https://github.com/quasarframework/quasar-testing/tree/dev/packages/unit-vitest to see how to add proper Vitest linting configuration to your project.',
95+
);
96+
}
9197
};

test-vite-app-v2/eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ config.push({
130130
'@typescript-eslint/no-unsafe-call': 'error',
131131
'@typescript-eslint/no-unsafe-member-access': 'error',
132132
'@typescript-eslint/no-unsafe-return': 'error',
133-
}
133+
},
134134
});
135135

136136
export default config;

0 commit comments

Comments
 (0)