Skip to content

Commit

Permalink
Docs: Make clear how rule options are overridden (fixes #14962) (#14976)
Browse files Browse the repository at this point in the history
* Docs: Make clear how rule options are overridden (fixes #14962)

* Docs: Use always double quotes for uniformity
  • Loading branch information
tzeikob committed Aug 31, 2021
1 parent 4165c7f commit 88b4e3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/user-guide/configuring/configuration-files.md
Expand Up @@ -192,6 +192,10 @@ The `rules` property can do any of the following to extend (or override) the set
* Base config: `"quotes": ["error", "single", "avoid-escape"]`
* Derived config: `"quotes": ["error", "single"]`
* Resulting actual config: `"quotes": ["error", "single"]`
* override options for rules given as object from base configurations:
* Base config: `"max-lines": ["error", { "max": 200, "skipBlankLines": true, "skipComments": true }]`
* Derived config: `"max-lines": ["error", { "max": 100 }]`
* Resulting actual config: `"max-lines": ["error", { "max": 100 }]` where `skipBlankLines` and `skipComments` default to `false`

### Using a shareable configuration package

Expand Down

0 comments on commit 88b4e3d

Please sign in to comment.