1
0
Fork 0
mirror of https://github.com/dorny/test-reporter.git synced 2026-03-21 23:52:12 +01:00

Use jest with eslint

This commit is contained in:
Jozef Izso 2025-06-07 15:47:32 +02:00
parent ba26a20f41
commit d788b88f54
Failed to extract signature

View file

@ -1,4 +1,5 @@
import github from 'eslint-plugin-github'
import jest from 'eslint-plugin-jest'
export default [
github.getFlatConfigs().recommended,
@ -15,12 +16,26 @@ export default [
'@typescript-eslint/no-shadow': ['error'],
},
},
{
files: ['__tests__/**/*.test.ts'],
...jest.configs['flat/recommended'],
plugins: {
jest,
},
languageOptions: {
globals: jest.environments.globals.globals,
},
rules: {
'i18n-text/no-en': 'off',
'import/no-namespace': 'off',
"@typescript-eslint/array-type": ['error', {default: 'array'}],
},
},
{
ignores: [
'dist/**',
'lib/**',
'node_modules/**',
'__tests__/**',
'__tests__/__snapshots__/**',
'__tests__/__results__/**',
'assets/**',