Skip to content

Commit

Permalink
fix: ensure jest globals are enabled in styles config
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Sep 9, 2022
1 parent 3a2a683 commit 2a020ad
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/index.ts
Expand Up @@ -68,15 +68,12 @@ export = {
configs: {
all: createConfig(allRules),
recommended: createConfig(recommendedRules),
style: {
plugins: ['jest'],
rules: {
'jest/no-alias-methods': 'warn',
'jest/prefer-to-be': 'error',
'jest/prefer-to-contain': 'error',
'jest/prefer-to-have-length': 'error',
},
},
style: createConfig({
'jest/no-alias-methods': 'warn',
'jest/prefer-to-be': 'error',
'jest/prefer-to-contain': 'error',
'jest/prefer-to-have-length': 'error',
}),
},
environments: {
globals: {
Expand Down

0 comments on commit 2a020ad

Please sign in to comment.