Skip to content

Commit

Permalink
Merge pull request #43 from ntwb/stylelint5
Browse files Browse the repository at this point in the history
Stylelint 5.2 compatibility and new rules
  • Loading branch information
ntwb committed May 31, 2020
1 parent 537be27 commit 5334870
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/stylelint-config-wordpress/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# HEAD

* Removed: `stylelint < 5.2.0` compatibility.
* Added: `at-rule-semicolon-newline-after` rule.
* Added: `selector-type-case` rule.

# 3.0.1

* Add `stylelint` version `^4.5.0` as a peer dependency to `peerDependencies` in `package.json`
Expand Down
2 changes: 2 additions & 0 deletions packages/stylelint-config-wordpress/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
except: ["blockless-group"],
ignore: ["after-comment"],
} ],
"at-rule-semicolon-newline-after": "always",
"block-closing-brace-newline-after": "always",
"block-closing-brace-newline-before": "always",
"block-opening-brace-newline-after": "always",
Expand Down Expand Up @@ -56,6 +57,7 @@ module.exports = {
"selector-list-comma-newline-after": "always",
"selector-list-comma-space-before": "never",
"selector-pseudo-element-colon-notation": "single",
"selector-type-case": "lower",
"string-no-newline": true,
"string-quotes": "double",
"value-list-comma-newline-after": "always-multi-line",
Expand Down
4 changes: 2 additions & 2 deletions packages/stylelint-config-wordpress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"eslint": "^2.4.0",
"eslint-config-stylelint": "^1.0.0",
"npmpub": "^3.0.3",
"stylelint": "^4.5.0"
"stylelint": "^5.2.0"
},
"peerDependencies": {
"stylelint": "^4.5.0 || ^5.0.0"
"stylelint": "^5.2.0"
},
"scripts": {
"ava": "ava --verbose \"__tests__/**/*.js\"",
Expand Down

0 comments on commit 5334870

Please sign in to comment.