Skip to content

eslint output indentation breaks problem matcher (Nx monorepo support) #1244

Closed
@fregante

Description

@fregante

Description:

Annotations don't appear when eslint is indented. This happens when using tools like https://nx.dev that orchestrate and group script/tasks in large repos.

It seems that Jest's matcher is not affected

Action version:

v4

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

  "engines": {
    "node": "22.14.0",
    "npm": "10.9.2"
  },

Repro steps:

Output this code to console on CI

Problem matched:

/home/runner/work/repo/file.ts
    55:5  warning  Unexpected 'todo' comment: 'TODO: Add test for this eventuality:...'     no-warning-comments

Problem not matched:

  /home/runner/work/repo/file.ts
    14:1  error  'webext-messenger' should be listed in the project's dependencies. Run 'npm i -S webext-messenger' to add it  import/no-extraneous-dependencies

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions