Skip to content

Commit

Permalink
Trivial fixes in Readme (#1903)
Browse files Browse the repository at this point in the history
Co-authored-by: Dirk Bäumer <dirkb@microsoft.com>
  • Loading branch information
denis-sokolov and dbaeumer authored Jul 31, 2024
1 parent 5356bef commit 6e13da7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,11 @@ This extension contributes the following variables to the [settings](https://cod
]
```

- `eslint.rules.customizations` (@since 2.1.20) - force rules to report a different severity within VS Code compared to the project's true ESLint configuration. Contains two properties:
- `eslint.rules.customizations` (@since 2.1.20) - force rules to report a different severity within VS Code compared to the project's true ESLint configuration. Contains these properties:
- `"rule`": Select on rules with names that match, factoring in asterisks as wildcards: `{ "rule": "no-*", "severity": "warn" }`
- Prefix the name with a `"!"` to target all rules that _don't_ match the name: `{ "rule": "!no-*", "severity": "info" }`
- `"severity"`: Sets a new severity for matched rule(s), `"downgrade"`s them to a lower severity, `"upgrade"`s them to a higher severity, or `"default"`s them to their original severity
- `"fixable`": Select only autofixable rules: `{ "rule": "no-*", "fixable": true, "severity": "info" }`
- `"fixable"`: Select only autofixable rules: `{ "rule": "no-*", "fixable": true, "severity": "info" }`

In this example, all rules are overridden to warnings:

Expand Down

0 comments on commit 6e13da7

Please sign in to comment.