# Allow users to configure ESLint's \`rulesCustomizations\` settings \(\#11135\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ca187c838606a5cb15b7636f798511e8b5c50bea)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ca187c838606a5cb15b7636f798511e8b5c50bea

Requested commit: ca187c838606a5cb15b7636f798511e8b5c50bea

Commit: ca187c838606a5cb15b7636f798511e8b5c50bea

Tree: 9184f142db0faedcc8d108534bcd16536f2ed13b

Author: William Villeneuve

Committer: GitHub

## Message

````
Allow users to configure ESLint's `rulesCustomizations` settings (#11135)

https://github.com/zed-industries/zed/assets/2072378/18f0bb28-0546-4234-a11f-39af6c9fcc12

`rulesCustomizations` is an array of rule severity overrides. Globs can
be used to apply default severities for multiple rules. See
[docs](https://github.com/microsoft/vscode-eslint/blob/553e632fb4cf073fce1549fb6c3c1b5140a52ebb/README.md?plain=1#L312-L333)
& [type
definitions](https://github.com/microsoft/vscode-eslint/blob/553e632fb4cf073fce1549fb6c3c1b5140a52ebb/%24shared/settings.ts#L168)

Example Zed `settings.json` to override all eslint errors to warnings:
```jsonc
{
    "lsp": {
        "eslint": {
            "settings": {
                "rulesCustomizations": [
                    // set all eslint errors/warnings to show as warnings
                    { "rule": "*", "severity": "warn" }
                ]
            }
        }
    }
}
```


Release Notes:

- Added support for configuring ESLint's `rulesCustomizations` settings,
ie. `{"lsp": {"eslint": {"settings": {"rulesCustomizations": [{"rule":
"*", "severity": "warn"}]}}}}`
````

## Parents

- [f72cf2afe34f77bf498454cd5486aa2c31b820d6](https://git.cafe/gitcafe/zed/commit/f72cf2afe34f77bf498454cd5486aa2c31b820d6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ca187c838606a5cb15b7636f798511e8b5c50bea?format=markdown)
