Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

461
Views
Cannot find "lint" target for the specified project OR Data path "" must have required property 'lintFilePatterns'

After changing my project structure to a monorepo structure in Angular according to this tutorial, I encountered numerous config bugs that I managed to squash after lots of troubleshooting.

The full error reads

Cannot find "lint" target for the specified project.

You should add a package that implements linting capabilities

A variation of this error reads

Schema validation failed with the following errors:  
Data path "" must have required property 'lintFilePatterns'.

Both errors can be fixed with proper configuration of your angular.json.

Find the details to the fix below

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

The required config can be automatically added using:

ng add @angular-eslint/schematics

From Angular ESLint README

over 4 years ago · Santiago Trujillo Report

0

Go to angular.json -> <your-projects-root-directory> -> <your-project-name> -> architect and add or modify

"lint": {
          "builder": "@angular-eslint/builder:lint",
          "options": {
            "lintFilePatterns": [
              "<your-projects-root-directory>/<your-project-name>/src/**/*.ts",
              "<your-projects-root-directory>/<your-project-name>/src/**/*.html"
            ]
          }
        },

This tells the ng lint command which linter to use in the respective project (builder) and which files to lint (lintFilePatterns).

Typically your project root directory is named projects. You might have to replace the "builder" property by another linter, if you use tslint for example. See your package.json for details.

Remember to set this for all your projects that are defined in angular.json.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!