diff --git a/package.json b/package.json index 798c8719..c7051be8 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "@types/eslint-scope": "^3.7.0", "@types/eslint-visitor-keys": "^1.0.0", "@types/mocha": "^9.0.0", - "@types/node": "^14.0.13", + "@types/node": "^16.0.0", "@typescript-eslint/eslint-plugin": "^5.0.0", "@typescript-eslint/parser": "^5.0.0", "code-red": "^0.2.0", diff --git a/src/parser/espree.ts b/src/parser/espree.ts index 6843a55c..8d58a4c8 100644 --- a/src/parser/espree.ts +++ b/src/parser/espree.ts @@ -6,6 +6,7 @@ const createRequire: (filename: string) => (modName: string) => any = // Added in v12.2.0 Module.createRequire || // Added in v10.12.0, but deprecated in v12.2.0. + // @ts-expect-error -- old type Module.createRequireFromPath || // Polyfill - This is not executed on the tests on node@>=10. /* istanbul ignore next */