Skip to content

Commit be3d2ee

Browse files
committed
Fix scale-unlimited/declaration-strict-value being applied twice to background-color declarations
1 parent e08af8d commit be3d2ee

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66

77
## Unreleased
88

9+
### Bug fixes
10+
11+
- Fix `scale-unlimited/declaration-strict-value` being applied twice to `background-color` declarations.
12+
913
## [0.4.0](https://github.com/torchbox/stylelint-config-torchbox/compare/v0.3.0...v0.4.0) (2019-10-08)
1014

1115
### Features

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ To get the most out of this config, it is assumed that projects have the followi
7878
- [`a11y/no-obsolete-element`](https://github.com/YozhikM/stylelint-a11y#readme)
7979
- [`a11y/no-text-align-justify`](https://github.com/YozhikM/stylelint-a11y#readme)
8080
- [`a11y/no-outline-none`](https://github.com/YozhikM/stylelint-a11y#readme)
81-
- [`scale-unlimited/declaration-strict-value`](https://github.com/AndyOGo/stylelint-declaration-strict-value#readme): `color, background-color, fill, stroke, /-color/, ignoreKeywords: currentColor, inherit, transparent, initial`
81+
- [`scale-unlimited/declaration-strict-value`](https://github.com/AndyOGo/stylelint-declaration-strict-value#readme): `color, fill, stroke, /-color/, ignoreKeywords: currentColor, inherit, transparent, initial`
8282

8383
#### Rules of `stylelint-config-standard`
8484

config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports = {
6060
'a11y/no-text-align-justify': true,
6161
'a11y/no-outline-none': true,
6262
'scale-unlimited/declaration-strict-value': [
63-
['color', 'background-color', 'fill', 'stroke', '/-color/'],
63+
['color', 'fill', 'stroke', '/-color/'],
6464
{
6565
ignoreKeywords: [
6666
'currentColor',

src/__snapshots__/semver.test.js.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ Object {
223223
"scale-unlimited/declaration-strict-value": Array [
224224
Array [
225225
"color",
226-
"background-color",
227226
"fill",
228227
"stroke",
229228
"/-color/",

0 commit comments

Comments
 (0)