Skip to content

Commit

Permalink
Merge pull request #53 from ntwb/styelelint-six-three
Browse files Browse the repository at this point in the history
Add stylelint 6.3.x rules
  • Loading branch information
ntwb committed May 31, 2020
1 parent f81ab2f commit 253bb41
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
8 changes: 8 additions & 0 deletions packages/stylelint-config-wordpress/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# HEAD

* 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.

# 5.0.0

* Added: `at-rule-name-case` rule.
Expand Down
5 changes: 5 additions & 0 deletions packages/stylelint-config-wordpress/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
ignore: ["after-comment"],
} ],
"at-rule-name-case": "lower",
"at-rule-name-space-after": "always-single-line",
"at-rule-semicolon-newline-after": "always",
"block-closing-brace-newline-after": "always",
"block-closing-brace-newline-before": "always",
Expand Down Expand Up @@ -47,6 +48,7 @@ module.exports = {
"media-query-list-comma-space-after": "always-single-line",
"media-query-list-comma-space-before": "never",
"no-eol-whitespace": true,
"no-extra-semicolons": true,
"no-invalid-double-slash-comments": true,
"no-missing-eof-newline": true,
"number-leading-zero": "always",
Expand All @@ -60,10 +62,13 @@ module.exports = {
ignore: ["after-comment"],
} ],
"selector-attribute-brackets-space-inside": "never",
"selector-attribute-operator-space-after": "never",
"selector-attribute-operator-space-before": "never",
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-list-comma-newline-after": "always",
"selector-list-comma-space-before": "never",
"selector-max-empty-lines": 0,
"selector-pseudo-class-case": "lower",
"selector-pseudo-class-parentheses-space-inside": "never",
"selector-pseudo-element-case": "lower",
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 @@ -29,10 +29,10 @@
"eslint-plugin-ava": "^2.2.1",
"eslint-config-stylelint": "^1.0.0",
"npmpub": "^3.0.3",
"stylelint": "^6.0.0"
"stylelint": "^6.3.3"
},
"peerDependencies": {
"stylelint": "^6.0.0"
"stylelint": "^6.3.3"
},
"scripts": {
"ava": "ava --verbose \"__tests__/**/*.js\"",
Expand Down

0 comments on commit 253bb41

Please sign in to comment.