Skip to content

Bug: Conflict with eslint-plugin-yml #11332

Closed as not planned
Closed as not planned
@paul4156

Description

@paul4156

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

Issue Description

I expected typescriptEslint.configs.recommendedTypeChecked to work with eslint-plugin-yml.

But eslint parses yaml files as ts files and reports false positives:

/path/to/lint-yaml/config.yaml
  2:12  error  Parsing error: ';' expected

I can only use a workaround as in ota-meshi/eslint-plugin-yml#261. Is there a better way? Thanks.

Reproduction Repository Link

https://github.com/paul4156/lint-yaml

Repro Steps

  1. clone the repo
  2. npm install
  3. npm run lint

Versions

package version
@typescript-eslint/eslint-plugin 8.34.1
TypeScript 5.8.3
ESLint 9.29.0
node v22.15.1
eslint-plugin-yml 1.18.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfix: user errorissue was fixed by correcting the configuration / correcting the codelocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.working as intendedIssues that are closed as they are working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions