diff --git a/package.json b/package.json index 18fd70af20..f584a8dda4 100644 --- a/package.json +++ b/package.json @@ -105,6 +105,7 @@ "eslint-import-resolver-node": "^0.3.4", "eslint-module-utils": "^2.6.0", "has": "^1.0.3", + "is-core-module": "^1.0.2", "minimatch": "^3.0.4", "object.values": "^1.1.1", "read-pkg-up": "^2.0.0", diff --git a/src/core/importType.js b/src/core/importType.js index 25ab2bdced..d5fd7db10e 100644 --- a/src/core/importType.js +++ b/src/core/importType.js @@ -1,4 +1,4 @@ -import coreModules from 'resolve/lib/core' +import coreModules from 'is-core-module' import resolve from 'eslint-module-utils/resolve'