Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Docs: update CLI flags migration instructions #20085

@fasttime

Description

@fasttime

Docs page(s)

https://eslint.org/docs/latest/use/configure/migration-guide#cli-flag-changes

What documentation issue do you want to solve?

The section "CLI Flag Changes" in the flat config migration guide is currently outdated.

When erslintrc support is dropped in ESLint v10, the CLI documentation will no longer include legacy flags. I think at that point it will be even more important for eslintrc users to know how to upgrade.

What do you think is the correct solution?

The documentation should provide instructions to migrate away from eslintrc flags. The flags are:

  • --env
  • --ignore-path
  • --no-eslintrc
  • --resolve-plugins-relative-to (already documented)
  • --rulesdir (already documented)

The --ext flag has migration instructions that are no longer needed since that flag has been reintroduced in ESLint v9.21.0.

Participation

  • I am willing to submit a pull request for this change.

Additional comments

refs #20037

Metadata

Metadata

Assignees

Labels

acceptedThere is consensus among the team that this change meets the criteria for inclusiondocumentationRelates to ESLint's documentation

Type

No type

Projects

Status

Complete

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions