New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular ESLint recommended config does not include TypeScript recommended rules #1174
Comments
Hey @belyan. Have you seen the Premade configs doc? The recommended section suggests configuring If there is something in the docs that led you to believe that |
In section Recommended of the docs, the plugin
Docs also emphasize that Angular recommended rules are based on ES and TypeScript recommended rules.
But all examples of Angular recommended config doesn't include
Also pay attention, that TypeScript recommended config includes ES recommended rules: But Angular recommended config breaks this chain of dependencies: |
I can see how this may give the impression that the angular-eslint recommended config extends the TypeScript recommended rules. @JamesHenry is it intended for the angular-eslint recommended config to extend the TS recommended rules? If so, an update to the config will be required. Otherwise, perhaps an update to the docs to clarify how these configurations work. |
As of v15, all new workspaces will extend from the |
Good work. Thanks! |
Description and reproduction of the issue
I am using ESLint config file that recommended and created using Angular ESLint schematics command:
ng add @angular-eslint/schematics
.My
eslintrc.json
file looks like:Because the package
@angular-eslint/eslint-plugin
depends on the package@typescript-eslint/eslint-plugin
I expect that Angular ESLint plugin inherits all the recommended rules from TypeScript ESLint plugin.I mean these rules:
https://github.com/typescript-eslint/typescript-eslint/blob/v5.41.0/packages/eslint-plugin/src/configs/recommended.ts
But in fact all the recommended TypeScript ESLint rules does not working.
Versions
@angular-eslint/eslint-plugin
13.5.0
@typescript-eslint/parser
5.41.0
ESLint
7.32.0
node
16.14.2
# Please run `npx ng version` in your project and paste the full output here: Angular CLI: 13.3.9 Node: 16.14.2 Package Manager: npm 8.19.2 OS: darwin x64 Angular: 13.3.11 ... animations, common, compiler, compiler-cli, core, forms ... language-service, localize, platform-browser ... platform-browser-dynamic, router Package Version --------------------------------------------------------- @angular-devkit/architect 0.1303.9 @angular-devkit/build-angular 13.3.9 @angular-devkit/core 13.3.9 @angular-devkit/schematics 13.3.9 @angular/cli 13.3.9 @schematics/angular 13.3.9 rxjs 7.5.7 typescript 4.6.4
ng version
output per the instructions given here.The text was updated successfully, but these errors were encountered: