From 2a020adcb272dd870b74e7a16598eccaa4fc42b6 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sat, 10 Sep 2022 08:10:18 +1200 Subject: [PATCH] fix: ensure jest globals are enabled in `styles` config --- src/index.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/index.ts b/src/index.ts index 2297d3bb7..44254e380 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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: {