From 446fe79bb4472c5d578c4b625f9555ac69bb477b Mon Sep 17 00:00:00 2001 From: "@scriptdaemon" Date: Thu, 14 Dec 2017 23:22:18 -0800 Subject: [PATCH] feat(recommended): add plugin and globals env Add the 'jest' plugin and 'jest/globals' environment to the recommended config so the user doesn't have to include these manually. Closes #37 --- index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.js b/index.js index b516c1430..22018bc5a 100644 --- a/index.js +++ b/index.js @@ -14,6 +14,12 @@ const snapshotProcessor = require('./processors/snapshot-processor'); module.exports = { configs: { recommended: { + plugins: [ + 'jest' + ], + env: { + 'jest/globals': true + }, rules: { 'jest/no-disabled-tests': 'warn', 'jest/no-focused-tests': 'error',