Skip to content

Commit

Permalink
Vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum committed Oct 31, 2024
1 parent 2112f2d commit 28ec0ae
Show file tree
Hide file tree
Showing 179 changed files with 4,259 additions and 5,393 deletions.
5 changes: 2 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@
},
"[typescriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"jest.jestCommandLine": "jest",
}
}
}
25 changes: 4 additions & 21 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import stylisticTs from '@stylistic/eslint-plugin-ts'
import tsdoc from 'eslint-plugin-tsdoc';
import jest from 'eslint-plugin-jest';
import vitest from 'eslint-plugin-vitest';
import globals from 'globals';
import tsParser from '@typescript-eslint/parser';
import react from 'eslint-plugin-react';
Expand All @@ -18,7 +18,7 @@ export default [
'@typescript-eslint': typescriptEslint,
'@stylistic': stylisticTs,
tsdoc,
jest,
vitest,
},

linterOptions: {
Expand Down Expand Up @@ -99,23 +99,7 @@ export default [
max: 1,
}],

'tsdoc/syntax': 'warn',
'jest/no-commented-out-tests': 'error',
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/prefer-to-contain': 'warn',
'jest/prefer-to-have-length': 'warn',
'jest/valid-expect': 'error',
'jest/prefer-to-be': 'warn',
'jest/no-alias-methods': 'warn',
'jest/no-interpolation-in-snapshots': 'warn',

'jest/no-large-snapshots': ['warn', {
maxSize: 50,
inlineMaxSize: 20,
}],

'jest/no-deprecated-functions': 'warn',
'tsdoc/syntax': 'warn'
},
},
{
Expand Down Expand Up @@ -153,5 +137,4 @@ export default [
},
},
},

];
];
67 changes: 0 additions & 67 deletions jest.config.ts

This file was deleted.

Loading

0 comments on commit 28ec0ae

Please sign in to comment.