Skip to content

Commit

Permalink
Merge pull request #33 from SuperITMan/bugfix/disable-incorrect-style…
Browse files Browse the repository at this point in the history
…lint-rules

fix(stylelint): disable 3 stylelint rules incorrectly enabled starting from stylelint 10.0.x
  • Loading branch information
nicanac authored Feb 19, 2020
2 parents d0ced2a + 4c9a213 commit 8268713
Show file tree
Hide file tree
Showing 6 changed files with 121 additions and 121 deletions.
40 changes: 20 additions & 20 deletions lib/stylelint/10.0.x/stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ module.exports = {
],

/*---------- These rules are handled by Prettier ----------*/
"function-comma-space-after": [
"always",
{
message: "Always put a space after commas in functions to be consistent and improve readability."
}
],
// "function-comma-space-after": [
// "always",
// {
// message: "Always put a space after commas in functions to be consistent and improve readability."
// }
// ],
"function-comma-space-before": [
"never",
{
Expand Down Expand Up @@ -346,14 +346,14 @@ module.exports = {
message: "Never put spaces inside media feature parentheses to avoid unnecessary whitespace."
}
],
"at-rule-empty-line-before": [
"always",
{
ignore: ["after-comment", "blockless-after-same-name-blockless"],
ignoreAtRules: ["import"],
message: "Always put an empty line before each @ rule, except after a comment or for @import."
}
],
// "at-rule-empty-line-before": [
// "always",
// {
// ignore: ["after-comment", "blockless-after-same-name-blockless"],
// ignoreAtRules: ["import"],
// message: "Always put an empty line before each @ rule, except after a comment or for @import."
// }
// ],
"at-rule-name-space-after": [
"always",
{
Expand All @@ -372,12 +372,12 @@ module.exports = {
message: "Never put a newline after the ending @ rule semicolon to avoid unnecessary whitespace."
}
],
"number-leading-zero": [
"never",
{
message: "Should not contain leading zeros to avoid unnecessary code."
}
],
// "number-leading-zero": [
// "never",
// {
// message: "Should not contain leading zeros to avoid unnecessary code."
// }
// ],
"color-hex-case": [
"lower",
{
Expand Down
42 changes: 21 additions & 21 deletions lib/stylelint/10.1.x/stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ module.exports = {
],

/*---------- These rules are handled by Prettier ----------*/
"function-comma-space-after": [
"always",
{
message: "Always put a space after commas in functions to be consistent and improve readability."
}
],
// "function-comma-space-after": [
// "always",
// {
// message: "Always put a space after commas in functions to be consistent and improve readability."
// }
// ],
"function-comma-space-before": [
"never",
{
Expand Down Expand Up @@ -307,7 +307,7 @@ module.exports = {
"selector-descendant-combinator-no-non-space": [
true,
{
message: "Don't put tabs, newlines, nor multiple spaces between selector descendants to improve readability."
message: "Don't put tabs, newlines, nor multiple spaces between selector descendants to improve readability."
}
],
"selector-list-comma-newline-after": [
Expand Down Expand Up @@ -346,14 +346,14 @@ module.exports = {
message: "Never put spaces inside media feature parentheses to avoid unnecessary whitespace."
}
],
"at-rule-empty-line-before": [
"always",
{
ignore: ["after-comment", "blockless-after-same-name-blockless"],
ignoreAtRules: ["import"],
message: "Always put an empty line before each @ rule, except after a comment or for @import."
}
],
// "at-rule-empty-line-before": [
// "always",
// {
// ignore: ["after-comment", "blockless-after-same-name-blockless"],
// ignoreAtRules: ["import"],
// message: "Always put an empty line before each @ rule, except after a comment or for @import."
// }
// ],
"at-rule-name-space-after": [
"always",
{
Expand All @@ -372,12 +372,12 @@ module.exports = {
message: "Never put a newline after the ending @ rule semicolon to avoid unnecessary whitespace."
}
],
"number-leading-zero": [
"never",
{
message: "Should not contain leading zeros to avoid unnecessary code."
}
],
// "number-leading-zero": [
// "never",
// {
// message: "Should not contain leading zeros to avoid unnecessary code."
// }
// ],
"color-hex-case": [
"lower",
{
Expand Down
40 changes: 20 additions & 20 deletions lib/stylelint/11.0.x/stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ module.exports = {
],

/*---------- These rules are handled by Prettier ----------*/
"function-comma-space-after": [
"always",
{
message: "Always put a space after commas in functions to be consistent and improve readability."
}
],
// "function-comma-space-after": [
// "always",
// {
// message: "Always put a space after commas in functions to be consistent and improve readability."
// }
// ],
"function-comma-space-before": [
"never",
{
Expand Down Expand Up @@ -346,14 +346,14 @@ module.exports = {
message: "Never put spaces inside media feature parentheses to avoid unnecessary whitespace."
}
],
"at-rule-empty-line-before": [
"always",
{
ignore: ["after-comment", "blockless-after-same-name-blockless"],
ignoreAtRules: ["import"],
message: "Always put an empty line before each @ rule, except after a comment or for @import."
}
],
// "at-rule-empty-line-before": [
// "always",
// {
// ignore: ["after-comment", "blockless-after-same-name-blockless"],
// ignoreAtRules: ["import"],
// message: "Always put an empty line before each @ rule, except after a comment or for @import."
// }
// ],
"at-rule-name-space-after": [
"always",
{
Expand All @@ -372,12 +372,12 @@ module.exports = {
message: "Never put a newline after the ending @ rule semicolon to avoid unnecessary whitespace."
}
],
"number-leading-zero": [
"never",
{
message: "Should not contain leading zeros to avoid unnecessary code."
}
],
// "number-leading-zero": [
// "never",
// {
// message: "Should not contain leading zeros to avoid unnecessary code."
// }
// ],
"color-hex-case": [
"lower",
{
Expand Down
40 changes: 20 additions & 20 deletions lib/stylelint/11.1.x/stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ module.exports = {
],

/*---------- These rules are handled by Prettier ----------*/
"function-comma-space-after": [
"always",
{
message: "Always put a space after commas in functions to be consistent and improve readability."
}
],
// "function-comma-space-after": [
// "always",
// {
// message: "Always put a space after commas in functions to be consistent and improve readability."
// }
// ],
"function-comma-space-before": [
"never",
{
Expand Down Expand Up @@ -346,14 +346,14 @@ module.exports = {
message: "Never put spaces inside media feature parentheses to avoid unnecessary whitespace."
}
],
"at-rule-empty-line-before": [
"always",
{
ignore: ["after-comment", "blockless-after-same-name-blockless"],
ignoreAtRules: ["import"],
message: "Always put an empty line before each @ rule, except after a comment or for @import."
}
],
// "at-rule-empty-line-before": [
// "always",
// {
// ignore: ["after-comment", "blockless-after-same-name-blockless"],
// ignoreAtRules: ["import"],
// message: "Always put an empty line before each @ rule, except after a comment or for @import."
// }
// ],
"at-rule-name-space-after": [
"always",
{
Expand All @@ -372,12 +372,12 @@ module.exports = {
message: "Never put a newline after the ending @ rule semicolon to avoid unnecessary whitespace."
}
],
"number-leading-zero": [
"never",
{
message: "Should not contain leading zeros to avoid unnecessary code."
}
],
// "number-leading-zero": [
// "never",
// {
// message: "Should not contain leading zeros to avoid unnecessary code."
// }
// ],
"color-hex-case": [
"lower",
{
Expand Down
40 changes: 20 additions & 20 deletions lib/stylelint/12.0.x/stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ module.exports = {
],

/*---------- These rules are handled by Prettier ----------*/
"function-comma-space-after": [
"always",
{
message: "Always put a space after commas in functions to be consistent and improve readability."
}
],
// "function-comma-space-after": [
// "always",
// {
// message: "Always put a space after commas in functions to be consistent and improve readability."
// }
// ],
"function-comma-space-before": [
"never",
{
Expand Down Expand Up @@ -346,14 +346,14 @@ module.exports = {
message: "Never put spaces inside media feature parentheses to avoid unnecessary whitespace."
}
],
"at-rule-empty-line-before": [
"always",
{
ignore: ["after-comment", "blockless-after-same-name-blockless"],
ignoreAtRules: ["import"],
message: "Always put an empty line before each @ rule, except after a comment or for @import."
}
],
// "at-rule-empty-line-before": [
// "always",
// {
// ignore: ["after-comment", "blockless-after-same-name-blockless"],
// ignoreAtRules: ["import"],
// message: "Always put an empty line before each @ rule, except after a comment or for @import."
// }
// ],
"at-rule-name-space-after": [
"always",
{
Expand All @@ -372,12 +372,12 @@ module.exports = {
message: "Never put a newline after the ending @ rule semicolon to avoid unnecessary whitespace."
}
],
"number-leading-zero": [
"never",
{
message: "Should not contain leading zeros to avoid unnecessary code."
}
],
// "number-leading-zero": [
// "never",
// {
// message: "Should not contain leading zeros to avoid unnecessary code."
// }
// ],
"color-hex-case": [
"lower",
{
Expand Down
40 changes: 20 additions & 20 deletions lib/stylelint/13.0.x/stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ module.exports = {
],

/*---------- These rules are handled by Prettier ----------*/
"function-comma-space-after": [
"always",
{
message: "Always put a space after commas in functions to be consistent and improve readability."
}
],
// "function-comma-space-after": [
// "always",
// {
// message: "Always put a space after commas in functions to be consistent and improve readability."
// }
// ],
"function-comma-space-before": [
"never",
{
Expand Down Expand Up @@ -346,14 +346,14 @@ module.exports = {
message: "Never put spaces inside media feature parentheses to avoid unnecessary whitespace."
}
],
"at-rule-empty-line-before": [
"always",
{
ignore: ["after-comment", "blockless-after-same-name-blockless"],
ignoreAtRules: ["import"],
message: "Always put an empty line before each @ rule, except after a comment or for @import."
}
],
// "at-rule-empty-line-before": [
// "always",
// {
// ignore: ["after-comment", "blockless-after-same-name-blockless"],
// ignoreAtRules: ["import"],
// message: "Always put an empty line before each @ rule, except after a comment or for @import."
// }
// ],
"at-rule-name-space-after": [
"always",
{
Expand All @@ -372,12 +372,12 @@ module.exports = {
message: "Never put a newline after the ending @ rule semicolon to avoid unnecessary whitespace."
}
],
"number-leading-zero": [
"never",
{
message: "Should not contain leading zeros to avoid unnecessary code."
}
],
// "number-leading-zero": [
// "never",
// {
// message: "Should not contain leading zeros to avoid unnecessary code."
// }
// ],
"color-hex-case": [
"lower",
{
Expand Down

0 comments on commit 8268713

Please sign in to comment.