'noEslintrc' option has been declared with a 'no' prefix in the schema
See original GitHub issueWhen running the command ng lint
after adding @angular-eslint/schematics
to a new Angular CLI v14 project with the command ng add @angular-eslint/schematics
, the follwoing warning is displayed in the console:
Warning: 'noEslintrc' option has been declared with a 'no' prefix in the schema.Please file an issue with the author of this package.
The Angular CLI displays this message for this package due to the following recent change:
Environment
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 14.0.3
Node: 16.13.2
Package Manager: npm 8.1.2
OS: linux x64
Angular: 14.0.3
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1400.3
@angular-devkit/build-angular 14.0.3
@angular-devkit/core 14.0.3
@angular-devkit/schematics 14.0.3
@schematics/angular 14.0.3
rxjs 7.5.5
typescript 4.7.4
Issue Analytics
- State:
- Created a year ago
- Reactions:74
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Warns: Option has been declared with a 'no' prefix
Please file an issue with the author of this package. Warning: 'noStackTrace' option has been declared with a 'no' prefix in the schema....
Read more >'noEslintrc' option has been declared with a 'no' prefix in the ...
'noEslintrc' option has been declared with a 'no' prefix in the schema.
Read more >How to Configure ESLint and Prettier in an Angular Application
Migrate from TSLint to ESLint #. With the release of Angular 11, it was announced that TSlint (deprecated in 2019) has been replaced...
Read more >Adding ESLint and Cypress to a New Angular Project
Angular currently comes without any linting tool and without an end to ... The package.json has been updated in the scripts and dependencies ......
Read more >@nrwl/angular: Versions | Openbase
angular: host tests were failing due to no navigation (#11825) (458e89b) ... angular: amend wrong project name schema options to hint nx console...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Good news, the Angular CLI team decided to revert this decision: https://github.com/angular/angular-cli/pull/23536
So from the next version of the Angular CLI this warning will no longer occur. I will leave this open for now until there is a version published with the warning gone that we can advise folks move to
Thanks folks, I also wish this wasn’t the case. As @samherrmann noted in the original description this was added on the Angular CLI side and I currently have no way to suppress it.
As you may or not know, this has always been called
noEslintrc
to align with the ESLint CLI’s option: https://eslint.org/docs/latest/user-guide/command-line-interface#--no-eslintrcI also cannot do a breaking change version until Angular next does, so renaming the option is not possible until v15.
I have reached out to the Angular CLI team to ask them for a way to suppress this in the meantime