Skip to content

linter: incorrect docs for eslint/curly #18661

@camc314

Description

@camc314

Besides, the docs are wrong: https://oxc.rs/docs/guide/usage/linter/rules/eslint/curly.html#configuration

It says: This rule accepts a configuration object with the following properties:

While the following do not work at all and fallback to default behavior:

    "curly": ["warn", { "curlyType": "multi-or-nest", "consistent": true }],

The plugin is still expecting a old eslint-style configuration same as comments in the documentation:

/* curly: ["error", "multi-or-nest", "consistent"] */

This rule accepts a configuration object with the following properties:

If oxlint does not support this, the above wording MUST be improved; it is confusing to use "accepts a configuration object with the following properties" while it does not.

Originally posted by @Mister-Hope in #18566

Metadata

Metadata

Assignees

Labels

C-docsCategory - Documentation. Related to user-facing or internal documentation

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions