Skip to content

Commit

Permalink
chore: temporary disable test file rules because jest doesn't have su…
Browse files Browse the repository at this point in the history
…pport yet
  • Loading branch information
gutyerrez committed May 26, 2024
1 parent 3d67db2 commit d5919a6
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,37 +206,37 @@ export default [
]
}
},
{
files: [ '**/*.spec.ts' ],
settings: {
env: {
jest: true
}
},
plugins: { Jest },
rules: {
'jest/expect-expect': 'warn',
'jest/no-alias-methods': 'error',
'jest/no-commented-out-tests': 'warn',
'jest/no-conditional-expect': 'error',
'jest/no-conditional-in-test': 'error',
'jest/no-deprecated-functions': 'error',
'jest/no-disabled-tests': 'error',
'jest/no-done-callback': 'error',
'jest/no-export': 'error',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/no-interpolation-in-snapshots': 'error',
'jest/no-jasmine-globals': 'error',
'jest/no-mocks-import': 'error',
'jest/no-standalone-expect': 'error',
'jest/no-test-prefixes': 'error',
'jest/valid-describe-callback': 'error',
'jest/valid-expect': 'error',
'jest/valid-expect-in-promise': 'error',
'jest/valid-title': 'error'
}
},
// {
// files: [ '**/*.spec.ts' ],
// settings: {
// env: {
// jest: true
// }
// },
// plugins: { Jest },
// rules: {
// 'jest/expect-expect': 'warn',
// 'jest/no-alias-methods': 'error',
// 'jest/no-commented-out-tests': 'warn',
// 'jest/no-conditional-expect': 'error',
// 'jest/no-conditional-in-test': 'error',
// 'jest/no-deprecated-functions': 'error',
// 'jest/no-disabled-tests': 'error',
// 'jest/no-done-callback': 'error',
// 'jest/no-export': 'error',
// 'jest/no-focused-tests': 'error',
// 'jest/no-identical-title': 'error',
// 'jest/no-interpolation-in-snapshots': 'error',
// 'jest/no-jasmine-globals': 'error',
// 'jest/no-mocks-import': 'error',
// 'jest/no-standalone-expect': 'error',
// 'jest/no-test-prefixes': 'error',
// 'jest/valid-describe-callback': 'error',
// 'jest/valid-expect': 'error',
// 'jest/valid-expect-in-promise': 'error',
// 'jest/valid-title': 'error'
// }
// },
{
files: [ 'eslint.config.mjs' ],
rules: {
Expand Down

0 comments on commit d5919a6

Please sign in to comment.