mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 13:57:09 +01:00
Use jest with eslint
This commit is contained in:
parent
8a2a2093e5
commit
4344e43b30
1 changed files with 16 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
import github from 'eslint-plugin-github'
|
import github from 'eslint-plugin-github'
|
||||||
import prettier from 'eslint-plugin-prettier'
|
import prettier from 'eslint-plugin-prettier'
|
||||||
|
import jest from 'eslint-plugin-jest'
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
github.getFlatConfigs().recommended,
|
github.getFlatConfigs().recommended,
|
||||||
|
|
@ -20,12 +21,26 @@ export default [
|
||||||
'@typescript-eslint/no-shadow': ['error'],
|
'@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: [
|
ignores: [
|
||||||
'dist/**',
|
'dist/**',
|
||||||
'lib/**',
|
'lib/**',
|
||||||
'node_modules/**',
|
'node_modules/**',
|
||||||
'__tests__/**',
|
|
||||||
'__tests__/__snapshots__/**',
|
'__tests__/__snapshots__/**',
|
||||||
'__tests__/__results__/**',
|
'__tests__/__results__/**',
|
||||||
'assets/**',
|
'assets/**',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue