Skip to content

Commit

Permalink
chore: use vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
tsvetomir committed Jan 1, 2025
1 parent a8bc67c commit 3eeeb13
Show file tree
Hide file tree
Showing 4 changed files with 1,572 additions and 3,258 deletions.
13 changes: 4 additions & 9 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import globals from 'globals';
import pluginJs from '@eslint/js';
import pluginJest from 'eslint-plugin-jest';
import vitest from "@vitest/eslint-plugin";

/** @type {import('eslint').Linter.Config[]} */
export default [
Expand All @@ -18,15 +18,10 @@ export default [
{
// update this to match your test files
files: ['**/*.spec.js', '**/*.test.js'],
plugins: { jest: pluginJest },
languageOptions: {
globals: pluginJest.environments.globals.globals,
},
languageOptions: { sourceType: 'module' },
plugins: { vitest },
rules: {
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/valid-expect': 'error',
...vitest.configs.recommended.rules
},
},
{ languageOptions: { globals: globals.browser } },
Expand Down
Loading

0 comments on commit 3eeeb13

Please sign in to comment.