Skip to content

Commit b12dd74

Browse files
authored
fix(test): Fixed coverage, removed unneeded explicit resolver (#282)
1 parent 787900e commit b12dd74

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

eslint.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import css from '@eslint/css';
44
import eslint from '@eslint/js';
55
import html from '@html-eslint/eslint-plugin';
66
import stylistic from '@stylistic/eslint-plugin';
7-
import { createTypeScriptImportResolver } from 'eslint-import-resolver-typescript';
87
import { importX } from 'eslint-plugin-import-x';
98
import jsonc from 'eslint-plugin-jsonc';
109
import jsxA11y from 'eslint-plugin-jsx-a11y';
@@ -57,9 +56,6 @@ export default defineConfig(
5756
{ allowNumber: true },
5857
],
5958
},
60-
settings: {
61-
'import-x/resolve-next': [createTypeScriptImportResolver()],
62-
},
6359
},
6460
{
6561
extends: [

vite.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default defineConfig(({ mode }) => ({
99
base: loadEnv(mode, process.cwd(), '')['BASE'] ?? '',
1010
plugins: [
1111
tailwindcss(),
12-
solid(),
12+
solid({ hot: mode === 'development' }),
1313
checker({
1414
eslint: {
1515
lintCommand: 'eslint . --max-warnings 0',
@@ -26,6 +26,9 @@ export default defineConfig(({ mode }) => ({
2626
alias: {
2727
'@/': new URL('./src/', import.meta.url).pathname,
2828
},
29+
coverage: {
30+
exclude: ['./src/index.css'],
31+
},
2932
environment: 'happy-dom',
3033
},
3134
}));

0 commit comments

Comments
 (0)