From 88b4e3d191c2577e2e1a283cc5f825feea6271cc Mon Sep 17 00:00:00 2001 From: Jake Ob Date: Tue, 31 Aug 2021 13:09:28 +0300 Subject: [PATCH] Docs: Make clear how rule options are overridden (fixes #14962) (#14976) * Docs: Make clear how rule options are overridden (fixes #14962) * Docs: Use always double quotes for uniformity --- docs/user-guide/configuring/configuration-files.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/user-guide/configuring/configuration-files.md b/docs/user-guide/configuring/configuration-files.md index 244fb0e9855..f4feb2fe25b 100644 --- a/docs/user-guide/configuring/configuration-files.md +++ b/docs/user-guide/configuring/configuration-files.md @@ -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