typescript-eslint: Change from base.json to base.ts breaks vscode-eslint
Unsure whose bug this is, but latest version of the ESLint extension along with the latest version of @typescript-eslint/eslint-plugin is now failing with:
Referenced from: /Users/****/node_modules/@typescript-eslint/eslint-plugin/dist/index.js
at Object.openSync (fs.js:447:3)
at Object.func (electron/js2c/asar.js:140:31)
at Object.func [as openSync] (electron/js2c/asar.js:140:31)
at Object.readFileSync (fs.js:349:35)
at Object.fs.readFileSync (electron/js2c/asar.js:542:40)
at Object.fs.readFileSync (electron/js2c/asar.js:542:40)
at readFile (/Users/****/node_modules/eslint/lib/cli-engine/config-array-factory.js:118:15)
at loadJSONConfigFile (/Users/****/node_modules/eslint/lib/cli-engine/config-array-factory.js:156:41)
at loadConfigFile (/Users/****/node_modules/eslint/lib/cli-engine/config-array-factory.js:290:20)
at ConfigArrayFactory._loadConfigData (/Users/****/node_modules/eslint/lib/cli-engine/config-array-factory.js:496:13)
(node:80940) UnhandledPromiseRejectionWarning: Error: Cannot read config file: /Users/****/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.json
Error: ENOENT: no such file or directory, open '/Users/****/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.json'
Does not repro when running from CLI.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (5 by maintainers)
I ran into this after:
Then I closed the editor and reopend it. I noticed a little ⚠️ warning sign next to the ESLint item in the bottom right.
Output from vscode:
One thing to note is that vscode is using a different version of node than the shell, coincidentally.
I’m unable to repro this now. I believe it was due to some kind of stale state during configuration changes/reinstalls.