Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change
extends
in overrides
to be consistent with plugins
behav…
…iour (#6380) Co-authored-by: Richard Hallows <jeddy3@users.noreply.github.com> Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
- Loading branch information
1 parent
4b2e4ab
commit a6cd1f3
Showing
5 changed files
with
87 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"stylelint": major | ||
--- | ||
|
||
Change: `extends` in `overrides` to merge to be consistent with `plugins` behaviour |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Migrating to 15.0.0 | ||
|
||
## Change of `overrides.extends` behavior | ||
|
||
We changed the `overrides.extends` behavior to merge rather than replace, to make it consistent with the `overrides.plugins`. | ||
|
||
If you would like to keep the previous behavior, you should change your config to: | ||
|
||
```diff json | ||
{ | ||
- "extends": ["config-a"], | ||
"overrides": [ | ||
{ | ||
"rules": ["*.module.css"], | ||
"extends": ["config-b"] | ||
}, | ||
+ { | ||
+ "rules": ["*.css"], | ||
+ "extends": ["config-a"] | ||
+ } | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters