Skip to content

Commit

Permalink
chore(package): update stylelint to version 10.0.1 (#215)
Browse files Browse the repository at this point in the history
Closes #214
  • Loading branch information
ntwb committed May 31, 2020
1 parent 5432cb1 commit be4fceb
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ Array [
"severity": "error",
"text": "Unexpected whitespace before \\":\\" (media-feature-colon-space-before)",
},
Object {
"column": 17,
"line": 11,
"rule": "media-feature-name-no-unknown",
"severity": "error",
"text": "Unexpected unknown media feature name \\"max-width 699px\\" (media-feature-name-no-unknown)",
},
Object {
"column": 28,
"line": 16,
Expand Down Expand Up @@ -72,12 +79,5 @@ Array [
"severity": "error",
"text": "Unexpected whitespace before \\",\\" (media-query-list-comma-space-before)",
},
Object {
"column": 17,
"line": 11,
"rule": "media-feature-name-no-unknown",
"severity": "error",
"text": "Unexpected unknown media feature name \\"max-width 699px\\" (media-feature-name-no-unknown)",
},
]
`;
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,27 @@ Array [
"severity": "error",
"text": "Expected \\"#FFFFFF\\" to be \\"#FFF\\" (color-hex-length)",
},
Object {
"column": 2,
"line": 5,
"rule": "declaration-block-no-shorthand-property-overrides",
"severity": "error",
"text": "Unexpected shorthand \\"margin\\" after \\"margin-left\\" (declaration-block-no-shorthand-property-overrides)",
},
Object {
"column": 13,
"line": 2,
"rule": "declaration-colon-space-after",
"severity": "error",
"text": "Expected single space after \\":\\" with a single-line declaration (declaration-colon-space-after)",
},
Object {
"column": 2,
"line": 6,
"rule": "property-no-unknown",
"severity": "error",
"text": "Unexpected unknown property \\"argin\\" (property-no-unknown)",
},
Object {
"column": 15,
"line": 4,
Expand All @@ -37,19 +51,5 @@ Array [
"severity": "error",
"text": "Expected \\"BLOCK\\" to be \\"block\\" (value-keyword-case)",
},
Object {
"column": 2,
"line": 5,
"rule": "declaration-block-no-shorthand-property-overrides",
"severity": "error",
"text": "Unexpected shorthand \\"margin\\" after \\"margin-left\\" (declaration-block-no-shorthand-property-overrides)",
},
Object {
"column": 2,
"line": 6,
"rule": "property-no-unknown",
"severity": "error",
"text": "Unexpected unknown property \\"argin\\" (property-no-unknown)",
},
]
`;
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
exports[`flags warnings with invalid scss snapshot matches warnings 1`] = `
Array [
Object {
"column": 2,
"line": 22,
"rule": "at-rule-empty-line-before",
"column": 1,
"line": 1,
"rule": "scss/at-rule-no-unknown",
"severity": "error",
"text": "Unexpected empty line before at-rule (at-rule-empty-line-before)",
"text": "Unexpected unknown at-rule \\"@unknown\\" (at-rule-no-unknown) (scss/at-rule-no-unknown)",
},
Object {
"column": 5,
"line": 14,
"rule": "block-opening-brace-space-before",
"column": 2,
"line": 12,
"rule": "scss/at-if-closing-brace-space-after",
"severity": "error",
"text": "Expected single space before \\"{\\" (block-opening-brace-space-before)",
"text": "Expected single space after \\"}\\" of @if statement (scss/at-if-closing-brace-space-after)",
},
Object {
"column": 1,
Expand All @@ -32,17 +32,17 @@ Array [
},
Object {
"column": 2,
"line": 12,
"rule": "scss/at-if-closing-brace-space-after",
"line": 22,
"rule": "at-rule-empty-line-before",
"severity": "error",
"text": "Expected single space after \\"}\\" of @if statement (scss/at-if-closing-brace-space-after)",
"text": "Unexpected empty line before at-rule (at-rule-empty-line-before)",
},
Object {
"column": 7,
"line": 31,
"rule": "number-leading-zero",
"column": 5,
"line": 14,
"rule": "block-opening-brace-space-before",
"severity": "error",
"text": "Expected a leading zero (number-leading-zero)",
"text": "Expected single space before \\"{\\" (block-opening-brace-space-before)",
},
Object {
"column": 15,
Expand All @@ -52,11 +52,11 @@ Array [
"text": "Unexpected extra semicolon (no-extra-semicolons)",
},
Object {
"column": 1,
"line": 1,
"rule": "scss/at-rule-no-unknown",
"column": 7,
"line": 31,
"rule": "number-leading-zero",
"severity": "error",
"text": "Unexpected unknown at-rule \\"@unknown\\" (at-rule-no-unknown) (scss/at-rule-no-unknown)",
"text": "Expected a leading zero (number-leading-zero)",
},
]
`;
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ Array [
"severity": "error",
"text": "Expected newline after \\";\\" (declaration-block-semicolon-newline-after)",
},
Object {
"column": 12,
"line": 1,
"rule": "selector-list-comma-newline-after",
"severity": "error",
"text": "Expected newline after \\",\\" (selector-list-comma-newline-after)",
},
Object {
"column": 25,
"line": 1,
"rule": "selector-list-comma-newline-after",
"severity": "error",
"text": "Expected newline after \\",\\" (selector-list-comma-newline-after)",
},
Object {
"column": 3,
"line": 4,
Expand All @@ -44,19 +58,5 @@ Array [
"severity": "error",
"text": "Expected indentation of 1 tab (indentation)",
},
Object {
"column": 12,
"line": 1,
"rule": "selector-list-comma-newline-after",
"severity": "error",
"text": "Expected newline after \\",\\" (selector-list-comma-newline-after)",
},
Object {
"column": 25,
"line": 1,
"rule": "selector-list-comma-newline-after",
"severity": "error",
"text": "Expected newline after \\",\\" (selector-list-comma-newline-after)",
},
]
`;
4 changes: 2 additions & 2 deletions packages/stylelint-config-wordpress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
"remark-cli": "^6.0.0",
"remark-preset-lint-consistent": "^2.0.2",
"remark-preset-lint-recommended": "^3.0.2",
"stylelint": "^9.5.0",
"stylelint": "^10.0.1",
"stylelint-find-rules": "^2.0.0"
},
"peerDependencies": {
"stylelint": "^9.5.0"
"stylelint": "^9.5.0 || ^10.0.0"
},
"scripts": {
"commitmsg": "commitlint -e $GIT_PARAMS",
Expand Down

0 comments on commit be4fceb

Please sign in to comment.