[oxlint] automated docs for rule configurations #12058
Replies: 2 comments 1 reply
-
|
To have the configuration added to the docs like this https://oxc.rs/docs/guide/usage/linter/rules/eslint/func-style.html#configuration, the config needs to be supplied to the I know of at least 2 problems with this approach right now.
In any case, I'll look into what I can add here. I expect most of them should be able to use this approach or easily modified to use it. |
Beta Was this translation helpful? Give feedback.
-
|
I would also really like to see this, if it's possible! I've found that quite a few rules lack options documentation at all, despite implementation the options: #14743 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
There's many rules that miss documentation on each of the possible configurations.
I made a manual fix for one here:
https://github.com/oxc-project/oxc/pull/12019/files
But I'm struggling understanding all the configurations possible for eg. this one:
oxc/crates/oxc_linter/src/rules/typescript/explicit_function_return_type.rs
Line 113 in a257d97
never having learned rust : P
Isn't there an automated way that we can show all the possible configurations per rule based on the automated tests for each rule configuration?
Beta Was this translation helpful? Give feedback.
All reactions