27 questions
1
vote
1
answer
43
views
Using ESLint through "ng lint" CLI command returns error "All files matching the following patterns are ignored: - '/src/**/*.ts' - '/src/**/*.html'
I'm trying to run ESLint through the ng lint CLI command, but it fails, returning the following error:
Error when running ESLint: All files matching the following patterns are ignored:
- '/src/\*\*/\*....
3
votes
1
answer
570
views
@angular-eslint: You have used a rule which requires type information, but don't have parserOptions set to generate type
In my NX 20 + Angular 19 project, I got this error while trying to upgrade to the latest 19.x version of Angular and Angular eslint:
Error while loading rule '@angular-eslint/no-uncalled-signals': ...
1
vote
1
answer
634
views
Why eslint checks index.html file?
Why eslint checks index.html file?
I'm Trying to lint an analogjs project created with nx monorepo with this eslint config (i know what the problem in that config because if i delete path to the ...
2
votes
5
answers
486
views
Gitlab job / docker execution hangs on node command forever
We are upgrading our Anguar project from v.17 to v.18.1.0. Everything works nicely, but we get a problem during our CI/CD pipelines.
I have the following commands to run as part of a gitlab pipeline:
...
2
votes
0
answers
971
views
How to update the specific package to a desired version (in an Nx project)?
I want to learn what is the best approach for updating a package version in an Nx project, because updating it directly seems to produce a handful of issues with depending packages.
To be more precise,...
1
vote
0
answers
265
views
angular.json : linting configuration for multiple library projects
My Angular application is composed of one 'Application' project and 20+ 'library' project. These libraries are consumed inside my main application. Everything is working fine.
I am using eslint ...
0
votes
1
answer
515
views
Failing to apply lint parserOptions.project pointing at project tsconfig.json after Angular migration
To migrate Angular 15 to Angular 16.2.x I also had to update devDependencies, including eslint from ~8.33.0 to ^8.39.0
Now I am receiving the error message:
You have attempted to use a lint rule ...
9
votes
1
answer
12k
views
ESlint SyntaxError: Failed to load plugin '@angular-eslint' declared in '.eslintrc.json#overrides[0]': Unexpected token '??='
I have clean(with only eslint and prettier) angular 16 project and this package.json. My IDE showing me a error, screenshot on post footer. In a project with a lower version of angular, this error ...
6
votes
0
answers
865
views
Use two different eslint parser for the same group file (html)
I was trying to add a new eslint rule (here is a link to the rule I'm trying to use) to my angular project and stumbled on an issue that I can't overcome. Eslint does not seem to handle two different ...
3
votes
1
answer
4k
views
Extending multiple rule-sets using "typescript-eslint/recommended" with "@angular-eslint/recommended" is this okay to do?
I have downloaded and installed ESLint rule-sets as packages to my current project. The rule sets I downloaded are for adding ESLint support for Angular, TypeScript, (and of-course ECMAScript) to the ...
1
vote
0
answers
344
views
Adding plugin:prettier/recommended to the eslintrc.json the ng lint goes infinite
If I use plugin:prettier/recommended to the exlintrc.json the ng lint goes infinite.
.eslintrc.json
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
&...
2
votes
2
answers
4k
views
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory Angular 13 application
I have upgraded the angular application from 12 to 13 and added the eslint and Prettier.
While doing the ng lint I am facing the below error
macbook@macbooks-MacBook-Air LegalRegTech.Web.Host % ng ...
7
votes
1
answer
4k
views
use of indent rule in @angular-eslint/template
I have a project made with Angular.
I want to set a indent rule for the Angular *.html file.
I do that in my .eslintrc :
{
"files": ["*.html"],
"extends": [
"...
3
votes
1
answer
10k
views
Migrate tslint to @angular-eslint/schematics: ERESOLVE unable to resolve dependency tree: @angular/[email protected]
I'm trying to migrate tslint to eslint in my angular 11 library using the official documentation here.
When I run the cmd ng add @angular-eslint/[email protected] I'm getting the following error:
✖ ...