mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
refactor: remove jest and lint vitest (#62330)
This commit is contained in:
committed by
GitHub
parent
d96d528e8c
commit
51eba06a7d
@@ -11,7 +11,7 @@ import jsxAllyPlugin from 'eslint-plugin-jsx-a11y';
|
||||
import prettierConfig from 'eslint-config-prettier';
|
||||
import reactPlugin from 'eslint-plugin-react';
|
||||
import testingLibraryPlugin from 'eslint-plugin-testing-library';
|
||||
import jestDomPlugin from 'eslint-plugin-jest-dom';
|
||||
import vitest from '@vitest/eslint-plugin';
|
||||
import tsParser from '@typescript-eslint/parser';
|
||||
import tseslint from 'typescript-eslint';
|
||||
import jsdoc from 'eslint-plugin-jsdoc';
|
||||
@@ -62,7 +62,6 @@ export default tseslint.config(
|
||||
...globals.browser,
|
||||
...globals.mocha,
|
||||
...globals.node,
|
||||
...globals.jest,
|
||||
Promise: true,
|
||||
window: true,
|
||||
$: true,
|
||||
@@ -167,10 +166,12 @@ export default tseslint.config(
|
||||
{
|
||||
files: ['client/**/*.test.[jt]s?(x)'],
|
||||
|
||||
extends: [
|
||||
testingLibraryPlugin.configs['flat/react'],
|
||||
jestDomPlugin.configs['flat/recommended']
|
||||
]
|
||||
extends: [testingLibraryPlugin.configs['flat/react']]
|
||||
},
|
||||
{
|
||||
files: ['**/*.test.[jt]s?(x)'],
|
||||
plugins: { vitest },
|
||||
extends: [vitest.configs.recommended]
|
||||
},
|
||||
{
|
||||
files: ['e2e/*.ts'],
|
||||
|
||||
Reference in New Issue
Block a user