task: make eslint work on windows

This commit is contained in:
Jakub P
2025-05-09 09:19:16 +02:00
parent 7fd1589b9b
commit 6047158c71

View File

@@ -19,12 +19,21 @@ export default defineConfig(() => {
plugins: ['@emotion/babel-plugin'],
},
}),
eslint({
eslintPath: require.resolve('eslint'),
cache: false,
include: ['src/**/*.js', 'src/**/*.jsx'],
exclude: ['node_modules'],
}),
{
...eslint({
include: ['src/**/*.js', 'src/**/*.jsx'],
}),
apply: 'build',
},
{
...eslint({
include: ['src/**/*.js', 'src/**/*.jsx'],
failOnWarning: false,
failOnError: false,
}),
apply: 'serve',
enforce: 'post',
},
],
resolve: {
alias: {