Open
Description
If any plugins are specified in the .eslintrc.js then typescript-eslint-language-service fails to load.
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
sourceType: 'module'
},
plugins: [
'@typescript-eslint',
],
extends: [],
rules: {
'@typescript-eslint/no-unused-vars': ['error'],
}
};
In the TSS logs I see the following output:
Info 4136 [18:25:57.648] [typescript-eslint-language-service] Failed to load plugin '@typescript-eslint' declared in '....\src\myproject.eslintrc.js': Cannot find module '@typescript-eslint/eslint-plugin'
Require stack:
- C:\WINDOWS\system32\__placeholder__.js
- os: Windows 10
- eslint: 6.8.0
- typescript-eslint-language-service: 2.1.8
Metadata
Metadata
Assignees
Labels
No labels