diff --git a/packages/stylelint-config-wordpress/__tests__/__snapshots__/media-queries.test.js.snap b/packages/stylelint-config-wordpress/__tests__/__snapshots__/media-queries.test.js.snap index e666a544b529f..e5f02f1c72b82 100644 --- a/packages/stylelint-config-wordpress/__tests__/__snapshots__/media-queries.test.js.snap +++ b/packages/stylelint-config-wordpress/__tests__/__snapshots__/media-queries.test.js.snap @@ -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, @@ -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)", - }, ] `; diff --git a/packages/stylelint-config-wordpress/__tests__/__snapshots__/properties.test.js.snap b/packages/stylelint-config-wordpress/__tests__/__snapshots__/properties.test.js.snap index 135fc340e7088..cb4c5a5bf2a9c 100644 --- a/packages/stylelint-config-wordpress/__tests__/__snapshots__/properties.test.js.snap +++ b/packages/stylelint-config-wordpress/__tests__/__snapshots__/properties.test.js.snap @@ -16,6 +16,13 @@ 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, @@ -23,6 +30,13 @@ Array [ "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, @@ -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)", - }, ] `; diff --git a/packages/stylelint-config-wordpress/__tests__/__snapshots__/scss.test.js.snap b/packages/stylelint-config-wordpress/__tests__/__snapshots__/scss.test.js.snap index 9106d11179dae..42a9060f041cb 100644 --- a/packages/stylelint-config-wordpress/__tests__/__snapshots__/scss.test.js.snap +++ b/packages/stylelint-config-wordpress/__tests__/__snapshots__/scss.test.js.snap @@ -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, @@ -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, @@ -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)", }, ] `; diff --git a/packages/stylelint-config-wordpress/__tests__/__snapshots__/structure.test.js.snap b/packages/stylelint-config-wordpress/__tests__/__snapshots__/structure.test.js.snap index e1f58805efed6..45da6df964818 100644 --- a/packages/stylelint-config-wordpress/__tests__/__snapshots__/structure.test.js.snap +++ b/packages/stylelint-config-wordpress/__tests__/__snapshots__/structure.test.js.snap @@ -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, @@ -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)", - }, ] `; diff --git a/packages/stylelint-config-wordpress/package.json b/packages/stylelint-config-wordpress/package.json index 016bd88152922..2c407674fc015 100644 --- a/packages/stylelint-config-wordpress/package.json +++ b/packages/stylelint-config-wordpress/package.json @@ -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",