mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
feat(linter): Format the configuration documentation correctly (#8583)
The categories section in the documentation is not formatted correctly. This fix aims to correct the formatting. Before <img width="1194" alt="before" src="https://github.com/user-attachments/assets/d2eb682b-5971-43ee-bdf0-92eb2e9c78a2" /> After <img width="1266" alt="after" src="https://github.com/user-attachments/assets/a4b992c2-fe33-4781-ad0b-de822f87c2d6" />
This commit is contained in:
parent
4a59d29c30
commit
538b24a719
4 changed files with 4 additions and 4 deletions
|
|
@ -61,7 +61,7 @@ Configure an entire category of rules all at once.
|
|||
|
||||
Rules enabled or disabled this way will be overwritten by individual rules in the `rules` field.
|
||||
|
||||
# Example
|
||||
Example
|
||||
```json
|
||||
{
|
||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||
|
|
|
|||
|
|
@ -305,7 +305,7 @@ snapshot_kind: text
|
|||
},
|
||||
"OxlintCategories": {
|
||||
"title": "Rule Categories",
|
||||
"description": "Configure an entire category of rules all at once.\n\nRules enabled or disabled this way will be overwritten by individual rules in the `rules` field.\n\n# Example\n```json\n{\n \"$schema\": \"./node_modules/oxlint/configuration_schema.json\",\n \"categories\": {\n \"correctness\": \"warn\"\n },\n \"rules\": {\n \"eslint/no-unused-vars\": \"error\"\n }\n}\n```",
|
||||
"description": "Configure an entire category of rules all at once.\n\nRules enabled or disabled this way will be overwritten by individual rules in the `rules` field.\n\nExample\n```json\n{\n \"$schema\": \"./node_modules/oxlint/configuration_schema.json\",\n \"categories\": {\n \"correctness\": \"warn\"\n },\n \"rules\": {\n \"eslint/no-unused-vars\": \"error\"\n }\n}\n```",
|
||||
"examples": [
|
||||
{
|
||||
"correctness": "warn"
|
||||
|
|
|
|||
|
|
@ -300,7 +300,7 @@
|
|||
},
|
||||
"OxlintCategories": {
|
||||
"title": "Rule Categories",
|
||||
"description": "Configure an entire category of rules all at once.\n\nRules enabled or disabled this way will be overwritten by individual rules in the `rules` field.\n\n# Example\n```json\n{\n \"$schema\": \"./node_modules/oxlint/configuration_schema.json\",\n \"categories\": {\n \"correctness\": \"warn\"\n },\n \"rules\": {\n \"eslint/no-unused-vars\": \"error\"\n }\n}\n```",
|
||||
"description": "Configure an entire category of rules all at once.\n\nRules enabled or disabled this way will be overwritten by individual rules in the `rules` field.\n\nExample\n```json\n{\n \"$schema\": \"./node_modules/oxlint/configuration_schema.json\",\n \"categories\": {\n \"correctness\": \"warn\"\n },\n \"rules\": {\n \"eslint/no-unused-vars\": \"error\"\n }\n}\n```",
|
||||
"examples": [
|
||||
{
|
||||
"correctness": "warn"
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ Configure an entire category of rules all at once.
|
|||
|
||||
Rules enabled or disabled this way will be overwritten by individual rules in the `rules` field.
|
||||
|
||||
# Example
|
||||
Example
|
||||
```json
|
||||
{
|
||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||
|
|
|
|||
Loading…
Reference in a new issue