Skip to content

ng lint does not recognize type safe eslint config file (eslint.config.ts) in root folder #2205

Closed
@Minecraftschurli

Description

@Minecraftschurli

Description and reproduction of the issue

Description

Eslint supports type safe flat configurations using eslint.config.ts but it seems that ng lint using @angular-eslint/builder:lint is not recognizing it as a valid eslint config file.

Reproduction

Use a eslint.config.ts file for configuring eslint.

Versions

package version
@angular-eslint/builder 18.4.3
ESLint 9.18.0
node 22.13.0
     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 18.2.12
Node: 22.13.0
Package Manager: npm 10.9.2
OS: win32 x64

Angular: 18.2.13
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
... service-worker

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1802.12
@angular-devkit/core         18.2.12
@angular-devkit/schematics   18.2.12
@angular/build               18.2.12
@angular/cli                 18.2.12
@schematics/angular          18.2.12
rxjs                         7.8.1
typescript                   5.5.4
webpack                      5.96.1
zone.js                      0.14.10
  • I have updated to the latest supported version of the packages and checked my ng version output per the instructions given here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpackage: builderAngular CLI builder which enables executing ESLint in Angular CLI workspaces

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions