question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'noEslintrc' option has been declared with a 'no' prefix in the schema

See original GitHub issue

When 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:

https://github.com/angular/angular-cli/pull/23405/files#diff-2a058eb2b652edc5f9764c20613cf50955b198f8745fcf4d22be814a1b385594R237-R240

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:closed
  • Created a year ago
  • Reactions:74
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
JamesHenrycommented, Jul 12, 2022

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

7reactions
JamesHenrycommented, Jul 9, 2022

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-eslintrc

I 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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found