- Updated
stylelint
peer dependency requirement to^16.8.2
(#64828). - Updated
stylelint-config-recommended
to^14.0.1
and disabled new rules (#64828). - Updated
stylelint-config-recommended-scss
to^14.1.0
and disabled new rules (#64828). - Added
@stylistic/stylelint-plugin
dependency at^3.0.1
(#64828). - Migrated stylelint's deprecated rules from v15 to use
@stylistic/stylelint-plugin
(#64828). For more information, see the stylelint migration guide. To migrate your rule overrides, you just need to add@stylistic/
in front of the rule names. - Created new
stylistic
andscss-stylistic
configs (#64828). If you want to continue using the exact same rule set as before, you should use these, however if you currently use something likestylelint-config-prettier
to disable formatting rules, you will want to use the non-stylistic configs (using the same names as before). scss/at-import-partial-extension
has been renamed (#64828). You must convert this rule toscss/load-partial-extension
instead (name only change).
- Fixes
declaration-block-no-duplicate-properties
in thescss
config to use the same value as the base config (#64828).
- Increase the minimum required Node.js version to v18.12.0 matching long-term support releases (#31270). Learn more about Node.js releases.
- Increase the minimum Node.js version to 14 (#43141).
- Increased minimum peer dependency of
stylelint
to14.2.0
(#38091). See official migration guide to v14 for details.
- Increase the minimum Node.js version to 12 (#27934).
- Increased minimum peer dependency of
stylelint
to13.7.0
.
- Fixed deprecation warning for
declaration-property-unit-whitelist
.
- Increase the minimum Node.js version to 12 (#27934).
- Imported from
WordPress-Coding-Standards/stylelint-config-wordpress
repository toWordPress/gutenberg
(#22777)
- Updated:
stylelint-scss
to3.17.2
. - Updated:
stylelint
to13.0.0
.
- Fixed:
selector-class-pattern
rule regex to account for numerals, case detection, and ensure kebab-case over snake_case. - Fixed:
selector-id-pattern
rule regex to account for numerals, case detection, and ensure kebab-case over snake_case. - Updated:
stylelint-config-recommended-scss
to4.1.0
. - Updated:
stylelint-find-rules
to2.2.0
. - Updated:
stylelint-scss
to3.13.0
. - Updated:
stylelint
to11.0.0
.
- Added: NodeJS 12.x.x support.
- Updated:
stylelint
to11.0.0
. - Removed:
stylelint < 10.1.0
compatibility. - Updated:
stylelint-config-recommended
to3.0.0
. - Updated:
stylelint-config-recommended-scss
to4.0.0
. - Updated: Bump minimum Node.js required version to
10.0.0
.
- Updated:
stylelint
to10.0.0
. - Updated:
stylelint-scss
to3.6.0
. - Updated:
stylelint-config-recommended
to2.2.0
.
- Added: Added SCSS shared config
extends
tests. - Changed:
stylelint-config-wordpress/scss
now extendsstylelint-config-recommended-scss
(the net result of this change results in no rule changes for this SCSS config). - Updated:
stylelint-scss
to3.3.0
. - Updated:
stylelint
to9.5.0
.
- Added: stylelint
9.1.3
support. - Changed: Updated
stylelint
peer dependency version to^9.1.3
. - Changed: Improved
no-duplicate-selectors
tests. - Removed: Jest snapshots.
- Removed:
stylelint < 9.1.3
compatibility. - Updated:
selector-pseudo-element-colon-notation
to usedouble
- Updated:
stylelint-config-recommended
to2.1.0
. - Updated:
stylelint-scss
to2.1.0
. - Updated: Bump minimum Node.js required version to
8.9.3
.
- Changed:
stylelint-config-wordpress
now extendsstylelint-config-recommended
, which turns on theat-rule-no-unknown
,block-no-empty
,comment-no-empty
,declaration-block-no-ignored-properties
,declaration-block-no-redundant-longhand-properties
,font-family-no-duplicate-names
,media-feature-name-no-unknown
,no-empty-source
rule. These rules are part of stylelint's possible errors rules. - Removed:
stylelint-scss < 1.5.1
compatibility. - Removed: Removed style guide docs.
- Removed:
at-rule-no-unknown
customignoreAtRules
options instylelint-config-wordpress/scss
shared config. - Added:
scss/at-rule-no-unknown
rule instylelint-config-wordpress/scss
shared config. - Added: NodeJS 8.x.x support.
- Added: npm 5.x.x support.
- Added: Jest snapshots to help detect and prevent regressions.
- Added:
declaration-property-unit-whitelist
rule to allowpx
and exclude%
andem
units inline-height
values. - Changed: Relocated repo to https://github.com/WordPress-Coding-Standards.
- Fixed: Include CSS config
at-rule-empty-line-before
rules in SCSS config.
- Added: Added
import
toignoreAtRules
option inat-rule-empty-line-before
rule for SCSS config.
- Removed:
rule-non-nested-empty-line-before
rule from SCSS config. This rule is deprecated in stylelint v8, the newrule-empty-line-before
rule already exists in the primary config.
- Added:
scss/selector-no-redundant-nesting-selector
rule instylelint-config-wordpress/scss
shared config. - Added:
selector-no-empty
rule. - Added: NodeJS 7.x.x support
- Fixed: Added
stylelint-scss
plugin @if/@else placement rules. - Fixed: Ignore
relative
keyword names infont-weight-notation
rule. - Fixed: Ignore proprietary
DXImageTransform.Microsoft
MS filters - Fixed: Removed
@debug
fromignoreAtRules
array ofat-rule-no-unknown
rule instylelint-config-wordpress/scss
chared config. - Deprecated
blockless-group
option forat-rule-empty-line-before
rule. Use the newblockless-after-blockless
option instead. - Deprecated
media-feature-no-missing-punctuation
rule. - Deprecated
rule-nested-empty-line-before
andrule-non-nested-empty-line-before
rules. Use the newrule-empty-line-before
rule instead. - Deprecated
selector-no-empty
rule. - Refactor: Switch from AVA to Jest for tests.
- Refactor: Switch from eslint-plugin-ava to eslint-plugin-jest.
- Removed:
stylelint < 7.10.1
compatibility. - Removed:
stylelint-scss < 1.4.4
compatibility. - Removed: NodeJS 4.x support,
stylelint
andstylelint-config-wordpress
now require NodeJS > 6.9.1 LTS or greater
- Fixed: Re-releasing failed npmjs.com 9.1.0 release as 9.1.1.
- Added:
stylelint-config-wordpress/scss
preset.
- Removed:
stylelint < 7.2.0
compatibility. - Removed: NodeJS 0.12.x support,
stylelint
andstylelint-config-wordpress
now require NodeJS > 4.2.1 LTS or greater - Added:
at-rule-no-unknown
rule. - Added:
selector-attribute-quotes
rule. - Added:
font-weight-notation
rule. - Added:
max-line-length
rule. - Added:
property-no-unknown
rule. - Added:
selector-class-pattern
rule. - Added:
selector-id-pattern
rule. - Deprecated
no-missing-eof-newline
rule. Use the newno-missing-end-of-source-newline
rule instead. - Fixed
font-family-name-quotes
test warning message invalues.js
.
- Removed:
stylelint < 6.6.0
compatibility. - Removed:
number-zero-length-no-unit
rule. - Added:
length-zero-no-unit
rule. - Added:
value-keyword-case
rule.
- Fixed: Re-releasing failed npmjs.com 7.0.0 release as 7.1.1.
- Fixed:
font-family-name-quotes
rule deprecated optiondouble-where-recommended
to newalways-where-recommended
option. - Fixed:
function-url-quotes
rule deprecated optionnone
to newnever
option. - Removed:
stylelint < 6.5.1
compatibility. - Changed: Improved tests and documentation.
- Added:
comment-empty-line-before
rule.
- Added:
keyframe-declaration-no-important
rule. - Added:
selector-pseudo-class-no-unknown
rule. - Added:
selector-pseudo-element-no-unknown
rule. - Added:
selector-type-no-unknown
rule.
- Added:
at-rule-name-space-after
rule. - Added:
no-extra-semicolons
rule. - Added:
selector-attribute-operator-space-after
rule. - Added:
selector-attribute-operator-space-before
rule. - Added:
selector-max-empty-liness
rule.
- Added:
at-rule-name-case
rule. - Added:
declaration-block-no-duplicate-properties
rule. - Added:
function-max-empty-lines
rule. - Added:
function-name-case
rule. - Added:
property-case
rule. - Added:
selector-attribute-brackets-space-inside
rule. - Added:
selector-pseudo-class-case
rule. - Added:
selector-pseudo-class-parentheses-space-inside
rule. - Added:
selector-pseudo-element-case
rule. - Added:
shorthand-property-no-redundant-values
rule. - Added:
unit-case
rule. - Added:
unit-no-unknown
rule.
- Removed:
stylelint < 5.2.0
compatibility. - Added:
at-rule-semicolon-newline-after
rule. - Added:
selector-type-case
rule.
- Added:
stylelint
version^4.5.0
as a peer dependency topeerDependencies
inpackage.json
- Removed:
stylelint < 4.5.0
compatibility. - Deprecated:
rule-no-shorthand-property-overrides
rule. Use the newdeclaration-block-no-shorthand-property-overrides
rule instead. - Deprecated:
rule-trailing-semicolon
rule. Use the newdeclaration-block-trailing-semicolon
rule instead. - Added:
color-named
rule. - Added:
declaration-block-no-shorthand-property-overrides
rule. - Added:
declaration-block-trailing-semicolon
rule. - Added:
string-no-newline
rule.
- Added:
max-empty-lines
rule, limits the number of adjacent empty lines to 2. - Changed:
rule-nested-empty-line-before
rule optionignore: ["after-comment"]
. - Removed all vendor prefixes, lets autoprefixer handle vendor prefixes:
- Removed:
at-rule-no-vendor-prefix
- Removed:
media-feature-name-no-vendor-prefix
- Removed:
property-no-vendor-prefix
- Removed:
selector-no-vendor-prefix
- Removed:
value-no-vendor-prefix
- Removed:
- Fixed another npmjs.com release issue
- Fixed npmjs.com release
- Removed:
media-query-parentheses-space-inside
rule. - Removed:
stylelint < 4.3.4
compatibility. - Added:
font-family-name-quotes
rule with double quotes where recommended option. - Added:
media-feature-no-missing-punctuation
rule. - Added:
no-invalid-double-slash-comments
rule.
- Changed:
rule-non-nested-empty-line-before
with optionignore: ["after-comment"],
.
- Added:
selector-pseudo-element-colon-notation
with optionsingle
- Changed: config syntax.
- Removed:
stylelint < 3.0.0
compatibility. - Changed: renamed the
function-space-after
rule tofunction-whitespace-after
. - Changed:
at-rule-empty-line-before
with optionignore: ["after-comment"],
. - Changed:
declaration-colon-space-after
with optionalways-single-line
. - Added:
declaration-colon-newline-after
with optionalways-multi-line
. - Added:
function-linear-gradient-no-nonstandard-direction
.
- Fixed: No quotes for URLs ->
"function-url-quotes": [ 2, "none" ]
.
Initial release.