microsoft / vscode-typescript-tslint-plugin

VS Code extension that provides TSLint support using the typescript-tslint-plugin
https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-tslint-plugin
MIT License
189 stars 34 forks source link

TSLint throws error with Angular CLI generated components #119

Closed kresdjan closed 1 year ago

kresdjan commented 5 years ago

Issue Type: Bug

Add a new component with the Angular CLI ng g c my-component. The CLI automatically adds the component to the declarations array. But VSCode / TSLint doesn't pick up on it and throw an error.

Component 'MyComponent' is not included in a module... Consider adding it to a NgModule declaration

Saving all files doesn't remove the error, not does making a modification to the my-component.ts. Only restarting the VSCode removes the error. Basically generate a new component and restart the editor.

14 26 53

Extension version: 1.2.2 VS Code version: Code 1.38.1 (b37e54c98e1a74ba89e03073e5a3761284e3ffb0, 2019-09-11T13:31:32.854Z) OS version: Darwin x64 18.7.0

mjbvz commented 1 year ago

Closing as TSLint has been deprecated in favor of ESLint and this extension is no longer being maintained

Please look into migrating to use ESLint and the ESLint VS Code extension