From 164e2095642420c393236e21dcaeddfdfb507c76 Mon Sep 17 00:00:00 2001 From: Anton Savoskin Date: Thu, 24 Oct 2019 14:31:33 +0700 Subject: [PATCH] chore: fix linting error on macOS (#9066) --- .eslintrc.js | 1 + packages/jest-haste-map/src/lib/FSEventsWatcher.ts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 9ea41ebe643d..29230dde3409 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -105,6 +105,7 @@ module.exports = { ], }, ], + 'import/no-unresolved': [2, {ignore: ['fsevents']}], // This has to be disabled until all type and module imports are combined // https://github.com/benmosher/eslint-plugin-import/issues/645 'import/order': 0, diff --git a/packages/jest-haste-map/src/lib/FSEventsWatcher.ts b/packages/jest-haste-map/src/lib/FSEventsWatcher.ts index 468193e3d539..b275fd6011cd 100644 --- a/packages/jest-haste-map/src/lib/FSEventsWatcher.ts +++ b/packages/jest-haste-map/src/lib/FSEventsWatcher.ts @@ -11,7 +11,6 @@ import * as path from 'path'; import {EventEmitter} from 'events'; import anymatch, {Matcher} from 'anymatch'; import micromatch = require('micromatch'); -// eslint-disable-next-line import {Watcher} from 'fsevents'; // @ts-ignore no types import walker from 'walker';