From d76158988b500b68c7f3cf2120bdb1d00c4cc521 Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Fri, 6 Jan 2023 01:25:45 +0900 Subject: [PATCH 1/4] Add deprecated rule warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To notify deprecation and make the migration easier. Such warnings are added to a linting result and reporting output. For example of a report: ```console $ cd scripts $ ../bin/stylelint.js visual.css --config=visual-config.json Deprecation Warning: The "string-quotes" rule is deprecated and will be removed in the next major release. Deprecation Warning: The "unit-case" rule is deprecated and will be removed in the next major release. visual.css 1:9 ✖ Expected "url("foo.css")" to be ""foo.css"" import-notation 1:13 ✖ Expected single quotes string-quotes 4:9 ✖ Unexpected invalid hex color "#4f" color-no-invalid-hex 6:1 ✖ Expected ".foo.bar" to have no more than 1 class selector-max-class 7:10 ✖ Unexpected unit "px" unit-disallowed-list 8:3 ⚠ Expected custom property name to be kebab-case custom-property-pattern 6 problems (5 errors, 1 warning) ``` --- .changeset/gold-llamas-pump.md | 5 + lib/__tests__/integration.test.js | 2 +- .../__tests__/githubFormatter.test.js | 4 +- .../__tests__/verboseFormatter.test.js | 28 +- lib/formatters/githubFormatter.js | 12 +- lib/formatters/verboseFormatter.js | 13 +- lib/lintPostcssResult.js | 20 +- scripts/visual-config.json | 4 +- .../001/__snapshots__/fs.test.js.snap | 433 +++++++++++++++++- .../001/__snapshots__/no-fs.test.js.snap | 433 +++++++++++++++++- .../002/__snapshots__/fs.test.js.snap | 97 +++- .../002/__snapshots__/no-fs.test.js.snap | 97 +++- .../003/__snapshots__/fs.test.js.snap | 433 +++++++++++++++++- .../003/__snapshots__/no-fs.test.js.snap | 247 +++++++++- 14 files changed, 1800 insertions(+), 28 deletions(-) create mode 100644 .changeset/gold-llamas-pump.md diff --git a/.changeset/gold-llamas-pump.md b/.changeset/gold-llamas-pump.md new file mode 100644 index 0000000000..83adf39a68 --- /dev/null +++ b/.changeset/gold-llamas-pump.md @@ -0,0 +1,5 @@ +--- +"stylelint": minor +--- + +Added: deprecated rule warnings diff --git a/lib/__tests__/integration.test.js b/lib/__tests__/integration.test.js index e344c9940b..bc786e1511 100644 --- a/lib/__tests__/integration.test.js +++ b/lib/__tests__/integration.test.js @@ -60,7 +60,7 @@ describe('integration test expecting warnings', () => { }); it('number and type', () => { - expect(result.messages).toHaveLength(5); + expect(result.messages).toHaveLength(6); expect(result.messages.every((m) => m.type === 'warning')).toBeTruthy(); expect(result.messages.every((m) => m.plugin === 'stylelint')).toBeTruthy(); }); diff --git a/lib/formatters/__tests__/githubFormatter.test.js b/lib/formatters/__tests__/githubFormatter.test.js index 123d1ade0e..66bfe55f73 100644 --- a/lib/formatters/__tests__/githubFormatter.test.js +++ b/lib/formatters/__tests__/githubFormatter.test.js @@ -47,13 +47,13 @@ test('githubFormatter', () => { const returnValue = { ruleMetadata: { foo: { url: 'https://stylelint.io/rules/foo' }, - bar: { fixable: true }, + bar: { url: 'https://stylelint.io/rules/bar', fixable: true, deprecated: true }, }, }; expect(githubFormatter(results, returnValue)) .toBe(`::error file=path/to/file.css,line=1,col=2,endLine=1,endColumn=5,title=Stylelint problem::Unexpected "foo" (foo) - https://stylelint.io/rules/foo -::warning file=a.css,line=10,col=20,title=Stylelint problem::Unexpected "bar" (bar) [maybe fixable] +::warning file=a.css,line=10,col=20,title=Stylelint problem::Unexpected "bar" (bar) [maybe fixable, deprecated] - https://stylelint.io/rules/bar ::error file=a.css,line=20,col=1,title=Stylelint problem::Cannot parse foo (foo-error) ::error file=a.css,line=20,col=3,title=Stylelint problem::Anonymous error`); }); diff --git a/lib/formatters/__tests__/verboseFormatter.test.js b/lib/formatters/__tests__/verboseFormatter.test.js index 53328bfabc..fd2e7098dd 100644 --- a/lib/formatters/__tests__/verboseFormatter.test.js +++ b/lib/formatters/__tests__/verboseFormatter.test.js @@ -337,6 +337,20 @@ describe('verboseFormatter', () => { severity: 'error', text: 'Unexpected foo', }, + { + line: 1, + column: 2, + rule: 'no-bar', + severity: 'error', + text: 'Unexpected bar', + }, + { + line: 1, + column: 2, + rule: 'no-baz', + severity: 'error', + text: 'Unexpected baz', + }, ], deprecations: [], invalidOptionWarnings: [], @@ -344,7 +358,9 @@ describe('verboseFormatter', () => { ]; const returnValue = { ruleMetadata: { - 'no-foo': { url: 'https://stylelint.io', fixable: true }, + 'no-foo': { url: 'https://stylelint.io', fixable: true, deprecated: true }, + 'no-bar': { url: 'https://stylelint.io', fixable: true }, + 'no-baz': { url: 'https://stylelint.io', deprecated: true }, }, }; @@ -353,14 +369,18 @@ describe('verboseFormatter', () => { expect(output).toBe(stripIndent` file.css 1:2 × Unexpected foo no-foo + 1:2 × Unexpected bar no-bar + 1:2 × Unexpected baz no-baz - 1 problem (1 error, 0 warnings) + 3 problems (3 errors, 0 warnings) 1 source checked file.css - 1 error found - no-foo: 1 (maybe fixable) + 3 errors found + no-foo: 1 (maybe fixable, deprecated) + no-bar: 1 (maybe fixable) + no-baz: 1 (deprecated) You may fix some problems with the "--fix" option.`); }); diff --git a/lib/formatters/githubFormatter.js b/lib/formatters/githubFormatter.js index 51609fb057..d1fe0c9d72 100644 --- a/lib/formatters/githubFormatter.js +++ b/lib/formatters/githubFormatter.js @@ -35,7 +35,15 @@ function buildMessage(msg, metadata) { if (!metadata) return msg; const url = metadata.url ? ` - ${metadata.url}` : ''; - const fixable = metadata.fixable ? ' [maybe fixable]' : ''; - return `${msg}${fixable}${url}`; + let additional = [ + metadata.fixable ? 'maybe fixable' : '', + metadata.deprecated ? 'deprecated' : '', + ] + .filter(Boolean) + .join(', '); + + additional = additional ? ` [${additional}]` : ''; + + return `${msg}${additional}${url}`; } diff --git a/lib/formatters/verboseFormatter.js b/lib/formatters/verboseFormatter.js index 094c2c5d64..a3a3619a5d 100644 --- a/lib/formatters/verboseFormatter.js +++ b/lib/formatters/verboseFormatter.js @@ -72,12 +72,17 @@ module.exports = function verboseFormatter(results, returnValue) { const metadata = returnValue.ruleMetadata; for (const [rule, list] of Object.entries(problemsByRule)) { - const meta = metadata[rule]; - const fixable = meta && meta.fixable ? ' (maybe fixable)' : ''; + const meta = metadata[rule] || {}; - output += dim(` ${ruleLink(rule, meta)}: ${list.length}${fixable}\n`); + let additional = [meta.fixable ? 'maybe fixable' : '', meta.deprecated ? 'deprecated' : ''] + .filter(Boolean) + .join(', '); - if (!fixableProblemsFound && meta && meta.fixable) { + additional = additional ? ` (${additional})` : ''; + + output += dim(` ${ruleLink(rule, meta)}: ${list.length}${additional}\n`); + + if (!fixableProblemsFound && meta.fixable) { fixableProblemsFound = true; } } diff --git a/lib/lintPostcssResult.js b/lib/lintPostcssResult.js index 7f9421e5bf..0a584bbd21 100644 --- a/lib/lintPostcssResult.js +++ b/lib/lintPostcssResult.js @@ -16,7 +16,7 @@ const getStylelintRule = require('./utils/getStylelintRule'); * @param {StylelintConfig} config * @returns {Promise} */ -function lintPostcssResult(stylelintOptions, postcssResult, config) { +module.exports = function lintPostcssResult(stylelintOptions, postcssResult, config) { postcssResult.stylelint.ruleSeverities = {}; postcssResult.stylelint.customMessages = {}; postcssResult.stylelint.ruleMetadata = {}; @@ -77,6 +77,10 @@ function lintPostcssResult(stylelintOptions, postcssResult, config) { continue; } + if (ruleFunction.meta && ruleFunction.meta.deprecated) { + warnDeprecatedRule(postcssResult, ruleName); + } + const ruleSettings = config.rules && config.rules[ruleName]; if (ruleSettings === null || ruleSettings[0] === null) { @@ -114,7 +118,7 @@ function lintPostcssResult(stylelintOptions, postcssResult, config) { } return Promise.all(performRules); -} +}; /** * There are currently some bugs in the autofixer of Stylelint. @@ -131,4 +135,14 @@ function isFixCompatible({ stylelint }) { return true; } -module.exports = lintPostcssResult; +/** + * @param {PostcssResult} result + * @param {string} ruleName + * @returns {void} + */ +function warnDeprecatedRule(result, ruleName) { + result.warn( + `The "${ruleName}" rule is deprecated and will be removed in the next major release.`, + { stylelintType: 'deprecation' }, + ); +} diff --git a/scripts/visual-config.json b/scripts/visual-config.json index ceb8613fd7..0900fe4515 100644 --- a/scripts/visual-config.json +++ b/scripts/visual-config.json @@ -10,6 +10,8 @@ "severity": "warning" } ], - "import-notation": "string" + "import-notation": "string", + "unit-case": null, + "string-quotes": "single" } } diff --git a/system-tests/001/__snapshots__/fs.test.js.snap b/system-tests/001/__snapshots__/fs.test.js.snap index 2d18ac822d..acd8855321 100644 --- a/system-tests/001/__snapshots__/fs.test.js.snap +++ b/system-tests/001/__snapshots__/fs.test.js.snap @@ -6,7 +6,191 @@ exports[`fs - valid sanitize.css and their config 1`] = ` "errored": false, "output": [ { - "deprecations": [], + "deprecations": [ + { + "text": "The "at-rule-name-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "at-rule-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-closing-brace-empty-line-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-closing-brace-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-closing-brace-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-closing-brace-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-opening-brace-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-opening-brace-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-opening-brace-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "color-hex-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-bang-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-bang-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-block-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-block-semicolon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-block-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-block-trailing-semicolon" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-colon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-colon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-colon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-parentheses-newline-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-whitespace-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-feature-colon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-feature-colon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-feature-name-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-feature-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-feature-range-operator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-feature-range-operator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-query-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-query-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-query-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "no-eol-whitespace" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "no-extra-semicolons" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "no-missing-end-of-source-newline" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "number-no-trailing-zeros" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "property-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-attribute-brackets-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-attribute-operator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-attribute-operator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-combinator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-combinator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-pseudo-class-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-pseudo-element-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "unit-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "value-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "value-list-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "indentation" rule is deprecated and will be removed in the next major release.", + }, + ], "errored": false, "invalidOptionWarnings": [], "parseErrors": [], @@ -16,7 +200,252 @@ exports[`fs - valid sanitize.css and their config 1`] = ` "reportedDisables": [], "results": [ { - "deprecations": [], + "deprecations": [ + { + "reference": undefined, + "text": "The "at-rule-name-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "at-rule-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-closing-brace-empty-line-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-closing-brace-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-closing-brace-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-closing-brace-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-opening-brace-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-opening-brace-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-opening-brace-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "color-hex-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-bang-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-bang-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-block-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-block-semicolon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-block-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-block-trailing-semicolon" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-colon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-colon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-colon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-parentheses-newline-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-whitespace-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-colon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-colon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-name-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-range-operator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-range-operator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-query-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-query-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-query-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "no-eol-whitespace" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "no-extra-semicolons" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "no-missing-end-of-source-newline" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "number-no-trailing-zeros" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "property-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-attribute-brackets-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-attribute-operator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-attribute-operator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-combinator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-combinator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-pseudo-class-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-pseudo-element-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "unit-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "indentation" rule is deprecated and will be removed in the next major release.", + }, + ], "errored": false, "ignored": undefined, "invalidOptionWarnings": [], diff --git a/system-tests/001/__snapshots__/no-fs.test.js.snap b/system-tests/001/__snapshots__/no-fs.test.js.snap index aee876d4f3..b80a655b02 100644 --- a/system-tests/001/__snapshots__/no-fs.test.js.snap +++ b/system-tests/001/__snapshots__/no-fs.test.js.snap @@ -6,7 +6,191 @@ exports[`no-fs - valid sanitize.css and their config 1`] = ` "errored": false, "output": [ { - "deprecations": [], + "deprecations": [ + { + "text": "The "at-rule-name-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "at-rule-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-closing-brace-empty-line-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-closing-brace-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-closing-brace-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-closing-brace-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-opening-brace-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-opening-brace-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-opening-brace-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "color-hex-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-bang-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-bang-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-block-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-block-semicolon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-block-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-block-trailing-semicolon" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-colon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-colon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-colon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-parentheses-newline-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-whitespace-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-feature-colon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-feature-colon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-feature-name-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-feature-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-feature-range-operator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-feature-range-operator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-query-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-query-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-query-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "no-eol-whitespace" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "no-extra-semicolons" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "no-missing-end-of-source-newline" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "number-no-trailing-zeros" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "property-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-attribute-brackets-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-attribute-operator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-attribute-operator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-combinator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-combinator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-pseudo-class-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-pseudo-element-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "unit-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "value-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "value-list-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "indentation" rule is deprecated and will be removed in the next major release.", + }, + ], "errored": false, "invalidOptionWarnings": [], "parseErrors": [], @@ -16,7 +200,252 @@ exports[`no-fs - valid sanitize.css and their config 1`] = ` "reportedDisables": [], "results": [ { - "deprecations": [], + "deprecations": [ + { + "reference": undefined, + "text": "The "at-rule-name-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "at-rule-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-closing-brace-empty-line-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-closing-brace-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-closing-brace-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-closing-brace-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-opening-brace-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-opening-brace-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-opening-brace-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "color-hex-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-bang-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-bang-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-block-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-block-semicolon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-block-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-block-trailing-semicolon" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-colon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-colon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-colon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-parentheses-newline-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-whitespace-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-colon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-colon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-name-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-range-operator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-range-operator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-query-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-query-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-query-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "no-eol-whitespace" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "no-extra-semicolons" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "no-missing-end-of-source-newline" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "number-no-trailing-zeros" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "property-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-attribute-brackets-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-attribute-operator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-attribute-operator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-combinator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-combinator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-pseudo-class-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-pseudo-element-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "unit-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "indentation" rule is deprecated and will be removed in the next major release.", + }, + ], "errored": false, "ignored": undefined, "invalidOptionWarnings": [], diff --git a/system-tests/002/__snapshots__/fs.test.js.snap b/system-tests/002/__snapshots__/fs.test.js.snap index 9a4462cbc4..966af60934 100644 --- a/system-tests/002/__snapshots__/fs.test.js.snap +++ b/system-tests/002/__snapshots__/fs.test.js.snap @@ -6,7 +6,47 @@ exports[`fs - invalid twbs buttons and their config 1`] = ` "errored": true, "output": [ { - "deprecations": [], + "deprecations": [ + { + "text": "The "at-rule-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-block-semicolon-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-list-comma-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "string-quotes" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "unicode-bom" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "value-list-comma-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + ], "errored": true, "invalidOptionWarnings": [], "parseErrors": [], @@ -44,7 +84,60 @@ exports[`fs - invalid twbs buttons and their config 1`] = ` "reportedDisables": [], "results": [ { - "deprecations": [], + "deprecations": [ + { + "reference": undefined, + "text": "The "at-rule-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-block-semicolon-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-list-comma-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "string-quotes" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "unicode-bom" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-comma-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + ], "errored": true, "ignored": undefined, "invalidOptionWarnings": [], diff --git a/system-tests/002/__snapshots__/no-fs.test.js.snap b/system-tests/002/__snapshots__/no-fs.test.js.snap index fdaaf560e3..16fe741667 100644 --- a/system-tests/002/__snapshots__/no-fs.test.js.snap +++ b/system-tests/002/__snapshots__/no-fs.test.js.snap @@ -6,7 +6,47 @@ exports[`no-fs - invalid twbs buttons and their config 1`] = ` "errored": true, "output": [ { - "deprecations": [], + "deprecations": [ + { + "text": "The "at-rule-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-block-semicolon-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-list-comma-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "string-quotes" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "unicode-bom" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "value-list-comma-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + ], "errored": true, "invalidOptionWarnings": [], "parseErrors": [], @@ -44,7 +84,60 @@ exports[`no-fs - invalid twbs buttons and their config 1`] = ` "reportedDisables": [], "results": [ { - "deprecations": [], + "deprecations": [ + { + "reference": undefined, + "text": "The "at-rule-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-block-semicolon-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-list-comma-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "string-quotes" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "unicode-bom" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-comma-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + ], "errored": true, "ignored": undefined, "invalidOptionWarnings": [], diff --git a/system-tests/003/__snapshots__/fs.test.js.snap b/system-tests/003/__snapshots__/fs.test.js.snap index 4d1fd99f04..e4b73dd14c 100644 --- a/system-tests/003/__snapshots__/fs.test.js.snap +++ b/system-tests/003/__snapshots__/fs.test.js.snap @@ -6,7 +6,191 @@ exports[`fs - zen garden CSS with standard config 1`] = ` "errored": true, "output": [ { - "deprecations": [], + "deprecations": [ + { + "text": "The "at-rule-name-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "at-rule-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-closing-brace-empty-line-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-closing-brace-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-closing-brace-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-closing-brace-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-opening-brace-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-opening-brace-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "block-opening-brace-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "color-hex-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-bang-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-bang-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-block-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-block-semicolon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-block-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-block-trailing-semicolon" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-colon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-colon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "declaration-colon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-parentheses-newline-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "function-whitespace-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-feature-colon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-feature-colon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-feature-name-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-feature-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-feature-range-operator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-feature-range-operator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-query-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-query-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "media-query-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "no-eol-whitespace" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "no-extra-semicolons" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "no-missing-end-of-source-newline" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "number-no-trailing-zeros" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "property-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-attribute-brackets-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-attribute-operator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-attribute-operator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-combinator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-combinator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-pseudo-class-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "selector-pseudo-element-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "unit-case" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "value-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "value-list-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "text": "The "indentation" rule is deprecated and will be removed in the next major release.", + }, + ], "errored": true, "invalidOptionWarnings": [], "parseErrors": [], @@ -26,7 +210,252 @@ exports[`fs - zen garden CSS with standard config 1`] = ` "reportedDisables": [], "results": [ { - "deprecations": [], + "deprecations": [ + { + "reference": undefined, + "text": "The "at-rule-name-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "at-rule-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-closing-brace-empty-line-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-closing-brace-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-closing-brace-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-closing-brace-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-opening-brace-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-opening-brace-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-opening-brace-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "color-hex-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-bang-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-bang-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-block-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-block-semicolon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-block-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-block-trailing-semicolon" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-colon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-colon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-colon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-parentheses-newline-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-whitespace-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-colon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-colon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-name-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-range-operator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-range-operator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-query-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-query-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-query-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "no-eol-whitespace" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "no-extra-semicolons" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "no-missing-end-of-source-newline" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "number-no-trailing-zeros" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "property-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-attribute-brackets-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-attribute-operator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-attribute-operator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-combinator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-combinator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-pseudo-class-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-pseudo-element-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "unit-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "indentation" rule is deprecated and will be removed in the next major release.", + }, + ], "errored": true, "ignored": undefined, "invalidOptionWarnings": [], diff --git a/system-tests/003/__snapshots__/no-fs.test.js.snap b/system-tests/003/__snapshots__/no-fs.test.js.snap index 0b069e0b5d..af72659192 100644 --- a/system-tests/003/__snapshots__/no-fs.test.js.snap +++ b/system-tests/003/__snapshots__/no-fs.test.js.snap @@ -218,7 +218,252 @@ footer a:visited { "reportedDisables": [], "results": [ { - "deprecations": [], + "deprecations": [ + { + "reference": undefined, + "text": "The "at-rule-name-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "at-rule-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-closing-brace-empty-line-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-closing-brace-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-closing-brace-newline-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-closing-brace-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-opening-brace-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-opening-brace-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "block-opening-brace-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "color-hex-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-bang-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-bang-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-block-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-block-semicolon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-block-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-block-trailing-semicolon" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-colon-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-colon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "declaration-colon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-parentheses-newline-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "function-whitespace-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-colon-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-colon-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-name-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-range-operator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-feature-range-operator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-query-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-query-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "media-query-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "no-eol-whitespace" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "no-extra-semicolons" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "no-missing-end-of-source-newline" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "number-no-trailing-zeros" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "property-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-attribute-brackets-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-attribute-operator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-attribute-operator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-combinator-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-combinator-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-pseudo-class-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "selector-pseudo-element-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "unit-case" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "value-list-max-empty-lines" rule is deprecated and will be removed in the next major release.", + }, + { + "reference": undefined, + "text": "The "indentation" rule is deprecated and will be removed in the next major release.", + }, + ], "errored": true, "ignored": undefined, "invalidOptionWarnings": [], From ff83ba86caa9d5b3f9db47903fbb29ec1f6bb98d Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Fri, 13 Jan 2023 16:37:05 +0900 Subject: [PATCH 2/4] Simplify deprecation warning messages in console --- .../__tests__/stringFormatter.test.js | 7 +- lib/formatters/stringFormatter.js | 21 +- lib/lintPostcssResult.js | 5 +- .../001/__snapshots__/fs.test.js.snap | 244 +++++++++--------- .../001/__snapshots__/no-fs.test.js.snap | 244 +++++++++--------- .../002/__snapshots__/fs.test.js.snap | 52 ++-- .../002/__snapshots__/no-fs.test.js.snap | 52 ++-- .../003/__snapshots__/fs.test.js.snap | 244 +++++++++--------- .../003/__snapshots__/no-fs.test.js.snap | 122 ++++----- types/stylelint/index.d.ts | 2 +- 10 files changed, 496 insertions(+), 497 deletions(-) diff --git a/lib/formatters/__tests__/stringFormatter.test.js b/lib/formatters/__tests__/stringFormatter.test.js index b6e1ba2c75..188d0b3767 100644 --- a/lib/formatters/__tests__/stringFormatter.test.js +++ b/lib/formatters/__tests__/stringFormatter.test.js @@ -145,7 +145,7 @@ path/to/file.css source: 'file.css', deprecations: [ { - text: 'Deprecated foo', + text: 'Deprecated foo.', reference: 'bar', }, ], @@ -160,7 +160,7 @@ path/to/file.css source: 'file2.css', deprecations: [ { - text: 'Deprecated foo', + text: 'Deprecated foo.', reference: 'bar', }, ], @@ -178,7 +178,8 @@ path/to/file.css expect(output).toBe(stripIndent` Invalid Option: Unexpected option for baz -Deprecation Warning: Deprecated foo See: bar`); +Deprecation Warning: + - Deprecated foo. See: bar`); }); it('handles ignored file', () => { diff --git a/lib/formatters/stringFormatter.js b/lib/formatters/stringFormatter.js index 7a31bee928..097c2c97a0 100644 --- a/lib/formatters/stringFormatter.js +++ b/lib/formatters/stringFormatter.js @@ -47,22 +47,23 @@ function deprecationsFormatter(results) { } const seenText = new Set(); + const lines = []; - return allDeprecationWarnings.reduce((output, warning) => { - if (seenText.has(warning.text)) return output; + for (const { text, reference } of allDeprecationWarnings) { + if (seenText.has(text)) continue; - seenText.add(warning.text); + seenText.add(text); - output += yellow('Deprecation Warning: '); - output += warning.text; + let line = ` ${dim('-')} ${text}`; - if (warning.reference) { - output += dim(' See: '); - output += dim(underline(warning.reference)); + if (reference) { + line += dim(` See: ${underline(reference)}`); } - return `${output}\n`; - }, '\n'); + lines.push(line); + } + + return ['', yellow('Deprecation Warning:'), ...lines, ''].join('\n'); } /** diff --git a/lib/lintPostcssResult.js b/lib/lintPostcssResult.js index 0a584bbd21..b88d84200e 100644 --- a/lib/lintPostcssResult.js +++ b/lib/lintPostcssResult.js @@ -141,8 +141,5 @@ function isFixCompatible({ stylelint }) { * @returns {void} */ function warnDeprecatedRule(result, ruleName) { - result.warn( - `The "${ruleName}" rule is deprecated and will be removed in the next major release.`, - { stylelintType: 'deprecation' }, - ); + result.warn(`The "${ruleName}" rule is deprecated.`, { stylelintType: 'deprecation' }); } diff --git a/system-tests/001/__snapshots__/fs.test.js.snap b/system-tests/001/__snapshots__/fs.test.js.snap index acd8855321..a1f9161080 100644 --- a/system-tests/001/__snapshots__/fs.test.js.snap +++ b/system-tests/001/__snapshots__/fs.test.js.snap @@ -8,187 +8,187 @@ exports[`fs - valid sanitize.css and their config 1`] = ` { "deprecations": [ { - "text": "The "at-rule-name-case" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-name-case" rule is deprecated.", }, { - "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-name-space-after" rule is deprecated.", }, { - "text": "The "at-rule-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-semicolon-newline-after" rule is deprecated.", }, { - "text": "The "block-closing-brace-empty-line-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-empty-line-before" rule is deprecated.", }, { - "text": "The "block-closing-brace-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-newline-after" rule is deprecated.", }, { - "text": "The "block-closing-brace-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-newline-before" rule is deprecated.", }, { - "text": "The "block-closing-brace-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-space-before" rule is deprecated.", }, { - "text": "The "block-opening-brace-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-newline-after" rule is deprecated.", }, { - "text": "The "block-opening-brace-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-space-after" rule is deprecated.", }, { - "text": "The "block-opening-brace-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-space-before" rule is deprecated.", }, { - "text": "The "color-hex-case" rule is deprecated and will be removed in the next major release.", + "text": "The "color-hex-case" rule is deprecated.", }, { - "text": "The "declaration-bang-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-bang-space-after" rule is deprecated.", }, { - "text": "The "declaration-bang-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-bang-space-before" rule is deprecated.", }, { - "text": "The "declaration-block-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-newline-after" rule is deprecated.", }, { - "text": "The "declaration-block-semicolon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-space-after" rule is deprecated.", }, { - "text": "The "declaration-block-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-space-before" rule is deprecated.", }, { - "text": "The "declaration-block-trailing-semicolon" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-trailing-semicolon" rule is deprecated.", }, { - "text": "The "declaration-colon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-newline-after" rule is deprecated.", }, { - "text": "The "declaration-colon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-space-after" rule is deprecated.", }, { - "text": "The "declaration-colon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-space-before" rule is deprecated.", }, { - "text": "The "function-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-newline-after" rule is deprecated.", }, { - "text": "The "function-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-space-after" rule is deprecated.", }, { - "text": "The "function-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-space-before" rule is deprecated.", }, { - "text": "The "function-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "function-max-empty-lines" rule is deprecated.", }, { - "text": "The "function-parentheses-newline-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "function-parentheses-newline-inside" rule is deprecated.", }, { - "text": "The "function-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "function-parentheses-space-inside" rule is deprecated.", }, { - "text": "The "function-whitespace-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-whitespace-after" rule is deprecated.", }, { - "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "max-empty-lines" rule is deprecated.", }, { - "text": "The "media-feature-colon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-colon-space-after" rule is deprecated.", }, { - "text": "The "media-feature-colon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-colon-space-before" rule is deprecated.", }, { - "text": "The "media-feature-name-case" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-name-case" rule is deprecated.", }, { - "text": "The "media-feature-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-parentheses-space-inside" rule is deprecated.", }, { - "text": "The "media-feature-range-operator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-range-operator-space-after" rule is deprecated.", }, { - "text": "The "media-feature-range-operator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-range-operator-space-before" rule is deprecated.", }, { - "text": "The "media-query-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-newline-after" rule is deprecated.", }, { - "text": "The "media-query-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-space-after" rule is deprecated.", }, { - "text": "The "media-query-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-space-before" rule is deprecated.", }, { - "text": "The "no-eol-whitespace" rule is deprecated and will be removed in the next major release.", + "text": "The "no-eol-whitespace" rule is deprecated.", }, { - "text": "The "no-extra-semicolons" rule is deprecated and will be removed in the next major release.", + "text": "The "no-extra-semicolons" rule is deprecated.", }, { - "text": "The "no-missing-end-of-source-newline" rule is deprecated and will be removed in the next major release.", + "text": "The "no-missing-end-of-source-newline" rule is deprecated.", }, { - "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + "text": "The "number-leading-zero" rule is deprecated.", }, { - "text": "The "number-no-trailing-zeros" rule is deprecated and will be removed in the next major release.", + "text": "The "number-no-trailing-zeros" rule is deprecated.", }, { - "text": "The "property-case" rule is deprecated and will be removed in the next major release.", + "text": "The "property-case" rule is deprecated.", }, { - "text": "The "selector-attribute-brackets-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-brackets-space-inside" rule is deprecated.", }, { - "text": "The "selector-attribute-operator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-operator-space-after" rule is deprecated.", }, { - "text": "The "selector-attribute-operator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-operator-space-before" rule is deprecated.", }, { - "text": "The "selector-combinator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-combinator-space-after" rule is deprecated.", }, { - "text": "The "selector-combinator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-combinator-space-before" rule is deprecated.", }, { - "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated.", }, { - "text": "The "selector-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-newline-after" rule is deprecated.", }, { - "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-space-before" rule is deprecated.", }, { - "text": "The "selector-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-max-empty-lines" rule is deprecated.", }, { - "text": "The "selector-pseudo-class-case" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-class-case" rule is deprecated.", }, { - "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated.", }, { - "text": "The "selector-pseudo-element-case" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-element-case" rule is deprecated.", }, { - "text": "The "unit-case" rule is deprecated and will be removed in the next major release.", + "text": "The "unit-case" rule is deprecated.", }, { - "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-newline-after" rule is deprecated.", }, { - "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-space-after" rule is deprecated.", }, { - "text": "The "value-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-space-before" rule is deprecated.", }, { - "text": "The "value-list-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-max-empty-lines" rule is deprecated.", }, { - "text": "The "indentation" rule is deprecated and will be removed in the next major release.", + "text": "The "indentation" rule is deprecated.", }, ], "errored": false, @@ -203,247 +203,247 @@ exports[`fs - valid sanitize.css and their config 1`] = ` "deprecations": [ { "reference": undefined, - "text": "The "at-rule-name-case" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-name-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-name-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "at-rule-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-semicolon-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-closing-brace-empty-line-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-empty-line-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-closing-brace-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-closing-brace-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-newline-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-closing-brace-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-opening-brace-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-opening-brace-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-opening-brace-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "color-hex-case" rule is deprecated and will be removed in the next major release.", + "text": "The "color-hex-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-bang-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-bang-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-bang-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-bang-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-block-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-block-semicolon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-block-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-block-trailing-semicolon" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-trailing-semicolon" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-colon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-colon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-colon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "function-max-empty-lines" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-parentheses-newline-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "function-parentheses-newline-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "function-parentheses-space-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-whitespace-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-whitespace-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "max-empty-lines" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-colon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-colon-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-colon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-colon-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-name-case" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-name-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-parentheses-space-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-range-operator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-range-operator-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-range-operator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-range-operator-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-query-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-query-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-query-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "no-eol-whitespace" rule is deprecated and will be removed in the next major release.", + "text": "The "no-eol-whitespace" rule is deprecated.", }, { "reference": undefined, - "text": "The "no-extra-semicolons" rule is deprecated and will be removed in the next major release.", + "text": "The "no-extra-semicolons" rule is deprecated.", }, { "reference": undefined, - "text": "The "no-missing-end-of-source-newline" rule is deprecated and will be removed in the next major release.", + "text": "The "no-missing-end-of-source-newline" rule is deprecated.", }, { "reference": undefined, - "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + "text": "The "number-leading-zero" rule is deprecated.", }, { "reference": undefined, - "text": "The "number-no-trailing-zeros" rule is deprecated and will be removed in the next major release.", + "text": "The "number-no-trailing-zeros" rule is deprecated.", }, { "reference": undefined, - "text": "The "property-case" rule is deprecated and will be removed in the next major release.", + "text": "The "property-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-attribute-brackets-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-brackets-space-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-attribute-operator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-operator-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-attribute-operator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-operator-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-combinator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-combinator-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-combinator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-combinator-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-max-empty-lines" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-pseudo-class-case" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-class-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-pseudo-element-case" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-element-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "unit-case" rule is deprecated and will be removed in the next major release.", + "text": "The "unit-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-max-empty-lines" rule is deprecated.", }, { "reference": undefined, - "text": "The "indentation" rule is deprecated and will be removed in the next major release.", + "text": "The "indentation" rule is deprecated.", }, ], "errored": false, diff --git a/system-tests/001/__snapshots__/no-fs.test.js.snap b/system-tests/001/__snapshots__/no-fs.test.js.snap index b80a655b02..f670e62a31 100644 --- a/system-tests/001/__snapshots__/no-fs.test.js.snap +++ b/system-tests/001/__snapshots__/no-fs.test.js.snap @@ -8,187 +8,187 @@ exports[`no-fs - valid sanitize.css and their config 1`] = ` { "deprecations": [ { - "text": "The "at-rule-name-case" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-name-case" rule is deprecated.", }, { - "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-name-space-after" rule is deprecated.", }, { - "text": "The "at-rule-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-semicolon-newline-after" rule is deprecated.", }, { - "text": "The "block-closing-brace-empty-line-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-empty-line-before" rule is deprecated.", }, { - "text": "The "block-closing-brace-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-newline-after" rule is deprecated.", }, { - "text": "The "block-closing-brace-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-newline-before" rule is deprecated.", }, { - "text": "The "block-closing-brace-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-space-before" rule is deprecated.", }, { - "text": "The "block-opening-brace-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-newline-after" rule is deprecated.", }, { - "text": "The "block-opening-brace-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-space-after" rule is deprecated.", }, { - "text": "The "block-opening-brace-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-space-before" rule is deprecated.", }, { - "text": "The "color-hex-case" rule is deprecated and will be removed in the next major release.", + "text": "The "color-hex-case" rule is deprecated.", }, { - "text": "The "declaration-bang-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-bang-space-after" rule is deprecated.", }, { - "text": "The "declaration-bang-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-bang-space-before" rule is deprecated.", }, { - "text": "The "declaration-block-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-newline-after" rule is deprecated.", }, { - "text": "The "declaration-block-semicolon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-space-after" rule is deprecated.", }, { - "text": "The "declaration-block-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-space-before" rule is deprecated.", }, { - "text": "The "declaration-block-trailing-semicolon" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-trailing-semicolon" rule is deprecated.", }, { - "text": "The "declaration-colon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-newline-after" rule is deprecated.", }, { - "text": "The "declaration-colon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-space-after" rule is deprecated.", }, { - "text": "The "declaration-colon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-space-before" rule is deprecated.", }, { - "text": "The "function-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-newline-after" rule is deprecated.", }, { - "text": "The "function-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-space-after" rule is deprecated.", }, { - "text": "The "function-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-space-before" rule is deprecated.", }, { - "text": "The "function-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "function-max-empty-lines" rule is deprecated.", }, { - "text": "The "function-parentheses-newline-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "function-parentheses-newline-inside" rule is deprecated.", }, { - "text": "The "function-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "function-parentheses-space-inside" rule is deprecated.", }, { - "text": "The "function-whitespace-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-whitespace-after" rule is deprecated.", }, { - "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "max-empty-lines" rule is deprecated.", }, { - "text": "The "media-feature-colon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-colon-space-after" rule is deprecated.", }, { - "text": "The "media-feature-colon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-colon-space-before" rule is deprecated.", }, { - "text": "The "media-feature-name-case" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-name-case" rule is deprecated.", }, { - "text": "The "media-feature-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-parentheses-space-inside" rule is deprecated.", }, { - "text": "The "media-feature-range-operator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-range-operator-space-after" rule is deprecated.", }, { - "text": "The "media-feature-range-operator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-range-operator-space-before" rule is deprecated.", }, { - "text": "The "media-query-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-newline-after" rule is deprecated.", }, { - "text": "The "media-query-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-space-after" rule is deprecated.", }, { - "text": "The "media-query-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-space-before" rule is deprecated.", }, { - "text": "The "no-eol-whitespace" rule is deprecated and will be removed in the next major release.", + "text": "The "no-eol-whitespace" rule is deprecated.", }, { - "text": "The "no-extra-semicolons" rule is deprecated and will be removed in the next major release.", + "text": "The "no-extra-semicolons" rule is deprecated.", }, { - "text": "The "no-missing-end-of-source-newline" rule is deprecated and will be removed in the next major release.", + "text": "The "no-missing-end-of-source-newline" rule is deprecated.", }, { - "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + "text": "The "number-leading-zero" rule is deprecated.", }, { - "text": "The "number-no-trailing-zeros" rule is deprecated and will be removed in the next major release.", + "text": "The "number-no-trailing-zeros" rule is deprecated.", }, { - "text": "The "property-case" rule is deprecated and will be removed in the next major release.", + "text": "The "property-case" rule is deprecated.", }, { - "text": "The "selector-attribute-brackets-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-brackets-space-inside" rule is deprecated.", }, { - "text": "The "selector-attribute-operator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-operator-space-after" rule is deprecated.", }, { - "text": "The "selector-attribute-operator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-operator-space-before" rule is deprecated.", }, { - "text": "The "selector-combinator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-combinator-space-after" rule is deprecated.", }, { - "text": "The "selector-combinator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-combinator-space-before" rule is deprecated.", }, { - "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated.", }, { - "text": "The "selector-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-newline-after" rule is deprecated.", }, { - "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-space-before" rule is deprecated.", }, { - "text": "The "selector-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-max-empty-lines" rule is deprecated.", }, { - "text": "The "selector-pseudo-class-case" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-class-case" rule is deprecated.", }, { - "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated.", }, { - "text": "The "selector-pseudo-element-case" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-element-case" rule is deprecated.", }, { - "text": "The "unit-case" rule is deprecated and will be removed in the next major release.", + "text": "The "unit-case" rule is deprecated.", }, { - "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-newline-after" rule is deprecated.", }, { - "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-space-after" rule is deprecated.", }, { - "text": "The "value-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-space-before" rule is deprecated.", }, { - "text": "The "value-list-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-max-empty-lines" rule is deprecated.", }, { - "text": "The "indentation" rule is deprecated and will be removed in the next major release.", + "text": "The "indentation" rule is deprecated.", }, ], "errored": false, @@ -203,247 +203,247 @@ exports[`no-fs - valid sanitize.css and their config 1`] = ` "deprecations": [ { "reference": undefined, - "text": "The "at-rule-name-case" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-name-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-name-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "at-rule-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-semicolon-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-closing-brace-empty-line-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-empty-line-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-closing-brace-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-closing-brace-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-newline-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-closing-brace-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-opening-brace-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-opening-brace-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-opening-brace-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "color-hex-case" rule is deprecated and will be removed in the next major release.", + "text": "The "color-hex-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-bang-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-bang-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-bang-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-bang-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-block-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-block-semicolon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-block-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-block-trailing-semicolon" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-trailing-semicolon" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-colon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-colon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-colon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "function-max-empty-lines" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-parentheses-newline-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "function-parentheses-newline-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "function-parentheses-space-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-whitespace-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-whitespace-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "max-empty-lines" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-colon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-colon-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-colon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-colon-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-name-case" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-name-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-parentheses-space-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-range-operator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-range-operator-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-range-operator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-range-operator-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-query-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-query-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-query-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "no-eol-whitespace" rule is deprecated and will be removed in the next major release.", + "text": "The "no-eol-whitespace" rule is deprecated.", }, { "reference": undefined, - "text": "The "no-extra-semicolons" rule is deprecated and will be removed in the next major release.", + "text": "The "no-extra-semicolons" rule is deprecated.", }, { "reference": undefined, - "text": "The "no-missing-end-of-source-newline" rule is deprecated and will be removed in the next major release.", + "text": "The "no-missing-end-of-source-newline" rule is deprecated.", }, { "reference": undefined, - "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + "text": "The "number-leading-zero" rule is deprecated.", }, { "reference": undefined, - "text": "The "number-no-trailing-zeros" rule is deprecated and will be removed in the next major release.", + "text": "The "number-no-trailing-zeros" rule is deprecated.", }, { "reference": undefined, - "text": "The "property-case" rule is deprecated and will be removed in the next major release.", + "text": "The "property-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-attribute-brackets-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-brackets-space-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-attribute-operator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-operator-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-attribute-operator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-operator-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-combinator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-combinator-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-combinator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-combinator-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-max-empty-lines" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-pseudo-class-case" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-class-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-pseudo-element-case" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-element-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "unit-case" rule is deprecated and will be removed in the next major release.", + "text": "The "unit-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-max-empty-lines" rule is deprecated.", }, { "reference": undefined, - "text": "The "indentation" rule is deprecated and will be removed in the next major release.", + "text": "The "indentation" rule is deprecated.", }, ], "errored": false, diff --git a/system-tests/002/__snapshots__/fs.test.js.snap b/system-tests/002/__snapshots__/fs.test.js.snap index 89f6230da7..3d5cb66377 100644 --- a/system-tests/002/__snapshots__/fs.test.js.snap +++ b/system-tests/002/__snapshots__/fs.test.js.snap @@ -8,43 +8,43 @@ exports[`fs - invalid twbs buttons and their config 1`] = ` { "deprecations": [ { - "text": "The "at-rule-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-semicolon-space-before" rule is deprecated.", }, { - "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-name-space-after" rule is deprecated.", }, { - "text": "The "declaration-block-semicolon-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-newline-before" rule is deprecated.", }, { - "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "max-empty-lines" rule is deprecated.", }, { - "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + "text": "The "number-leading-zero" rule is deprecated.", }, { - "text": "The "selector-list-comma-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-newline-before" rule is deprecated.", }, { - "text": "The "selector-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-space-after" rule is deprecated.", }, { - "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-space-before" rule is deprecated.", }, { - "text": "The "string-quotes" rule is deprecated and will be removed in the next major release.", + "text": "The "string-quotes" rule is deprecated.", }, { - "text": "The "unicode-bom" rule is deprecated and will be removed in the next major release.", + "text": "The "unicode-bom" rule is deprecated.", }, { - "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-newline-after" rule is deprecated.", }, { - "text": "The "value-list-comma-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-newline-before" rule is deprecated.", }, { - "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-space-after" rule is deprecated.", }, ], "errored": true, @@ -87,55 +87,55 @@ exports[`fs - invalid twbs buttons and their config 1`] = ` "deprecations": [ { "reference": undefined, - "text": "The "at-rule-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-semicolon-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-name-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-block-semicolon-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-newline-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "max-empty-lines" rule is deprecated.", }, { "reference": undefined, - "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + "text": "The "number-leading-zero" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-list-comma-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-newline-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "string-quotes" rule is deprecated and will be removed in the next major release.", + "text": "The "string-quotes" rule is deprecated.", }, { "reference": undefined, - "text": "The "unicode-bom" rule is deprecated and will be removed in the next major release.", + "text": "The "unicode-bom" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-comma-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-newline-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-space-after" rule is deprecated.", }, ], "errored": true, diff --git a/system-tests/002/__snapshots__/no-fs.test.js.snap b/system-tests/002/__snapshots__/no-fs.test.js.snap index 4ca3dbb0cf..1fb9b3ff90 100644 --- a/system-tests/002/__snapshots__/no-fs.test.js.snap +++ b/system-tests/002/__snapshots__/no-fs.test.js.snap @@ -8,43 +8,43 @@ exports[`no-fs - invalid twbs buttons and their config 1`] = ` { "deprecations": [ { - "text": "The "at-rule-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-semicolon-space-before" rule is deprecated.", }, { - "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-name-space-after" rule is deprecated.", }, { - "text": "The "declaration-block-semicolon-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-newline-before" rule is deprecated.", }, { - "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "max-empty-lines" rule is deprecated.", }, { - "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + "text": "The "number-leading-zero" rule is deprecated.", }, { - "text": "The "selector-list-comma-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-newline-before" rule is deprecated.", }, { - "text": "The "selector-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-space-after" rule is deprecated.", }, { - "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-space-before" rule is deprecated.", }, { - "text": "The "string-quotes" rule is deprecated and will be removed in the next major release.", + "text": "The "string-quotes" rule is deprecated.", }, { - "text": "The "unicode-bom" rule is deprecated and will be removed in the next major release.", + "text": "The "unicode-bom" rule is deprecated.", }, { - "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-newline-after" rule is deprecated.", }, { - "text": "The "value-list-comma-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-newline-before" rule is deprecated.", }, { - "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-space-after" rule is deprecated.", }, ], "errored": true, @@ -87,55 +87,55 @@ exports[`no-fs - invalid twbs buttons and their config 1`] = ` "deprecations": [ { "reference": undefined, - "text": "The "at-rule-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-semicolon-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-name-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-block-semicolon-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-newline-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "max-empty-lines" rule is deprecated.", }, { "reference": undefined, - "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + "text": "The "number-leading-zero" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-list-comma-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-newline-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "string-quotes" rule is deprecated and will be removed in the next major release.", + "text": "The "string-quotes" rule is deprecated.", }, { "reference": undefined, - "text": "The "unicode-bom" rule is deprecated and will be removed in the next major release.", + "text": "The "unicode-bom" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-comma-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-newline-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-space-after" rule is deprecated.", }, ], "errored": true, diff --git a/system-tests/003/__snapshots__/fs.test.js.snap b/system-tests/003/__snapshots__/fs.test.js.snap index e4b73dd14c..058e80cbfc 100644 --- a/system-tests/003/__snapshots__/fs.test.js.snap +++ b/system-tests/003/__snapshots__/fs.test.js.snap @@ -8,187 +8,187 @@ exports[`fs - zen garden CSS with standard config 1`] = ` { "deprecations": [ { - "text": "The "at-rule-name-case" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-name-case" rule is deprecated.", }, { - "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-name-space-after" rule is deprecated.", }, { - "text": "The "at-rule-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-semicolon-newline-after" rule is deprecated.", }, { - "text": "The "block-closing-brace-empty-line-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-empty-line-before" rule is deprecated.", }, { - "text": "The "block-closing-brace-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-newline-after" rule is deprecated.", }, { - "text": "The "block-closing-brace-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-newline-before" rule is deprecated.", }, { - "text": "The "block-closing-brace-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-space-before" rule is deprecated.", }, { - "text": "The "block-opening-brace-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-newline-after" rule is deprecated.", }, { - "text": "The "block-opening-brace-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-space-after" rule is deprecated.", }, { - "text": "The "block-opening-brace-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-space-before" rule is deprecated.", }, { - "text": "The "color-hex-case" rule is deprecated and will be removed in the next major release.", + "text": "The "color-hex-case" rule is deprecated.", }, { - "text": "The "declaration-bang-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-bang-space-after" rule is deprecated.", }, { - "text": "The "declaration-bang-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-bang-space-before" rule is deprecated.", }, { - "text": "The "declaration-block-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-newline-after" rule is deprecated.", }, { - "text": "The "declaration-block-semicolon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-space-after" rule is deprecated.", }, { - "text": "The "declaration-block-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-space-before" rule is deprecated.", }, { - "text": "The "declaration-block-trailing-semicolon" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-trailing-semicolon" rule is deprecated.", }, { - "text": "The "declaration-colon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-newline-after" rule is deprecated.", }, { - "text": "The "declaration-colon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-space-after" rule is deprecated.", }, { - "text": "The "declaration-colon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-space-before" rule is deprecated.", }, { - "text": "The "function-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-newline-after" rule is deprecated.", }, { - "text": "The "function-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-space-after" rule is deprecated.", }, { - "text": "The "function-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-space-before" rule is deprecated.", }, { - "text": "The "function-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "function-max-empty-lines" rule is deprecated.", }, { - "text": "The "function-parentheses-newline-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "function-parentheses-newline-inside" rule is deprecated.", }, { - "text": "The "function-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "function-parentheses-space-inside" rule is deprecated.", }, { - "text": "The "function-whitespace-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-whitespace-after" rule is deprecated.", }, { - "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "max-empty-lines" rule is deprecated.", }, { - "text": "The "media-feature-colon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-colon-space-after" rule is deprecated.", }, { - "text": "The "media-feature-colon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-colon-space-before" rule is deprecated.", }, { - "text": "The "media-feature-name-case" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-name-case" rule is deprecated.", }, { - "text": "The "media-feature-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-parentheses-space-inside" rule is deprecated.", }, { - "text": "The "media-feature-range-operator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-range-operator-space-after" rule is deprecated.", }, { - "text": "The "media-feature-range-operator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-range-operator-space-before" rule is deprecated.", }, { - "text": "The "media-query-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-newline-after" rule is deprecated.", }, { - "text": "The "media-query-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-space-after" rule is deprecated.", }, { - "text": "The "media-query-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-space-before" rule is deprecated.", }, { - "text": "The "no-eol-whitespace" rule is deprecated and will be removed in the next major release.", + "text": "The "no-eol-whitespace" rule is deprecated.", }, { - "text": "The "no-extra-semicolons" rule is deprecated and will be removed in the next major release.", + "text": "The "no-extra-semicolons" rule is deprecated.", }, { - "text": "The "no-missing-end-of-source-newline" rule is deprecated and will be removed in the next major release.", + "text": "The "no-missing-end-of-source-newline" rule is deprecated.", }, { - "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + "text": "The "number-leading-zero" rule is deprecated.", }, { - "text": "The "number-no-trailing-zeros" rule is deprecated and will be removed in the next major release.", + "text": "The "number-no-trailing-zeros" rule is deprecated.", }, { - "text": "The "property-case" rule is deprecated and will be removed in the next major release.", + "text": "The "property-case" rule is deprecated.", }, { - "text": "The "selector-attribute-brackets-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-brackets-space-inside" rule is deprecated.", }, { - "text": "The "selector-attribute-operator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-operator-space-after" rule is deprecated.", }, { - "text": "The "selector-attribute-operator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-operator-space-before" rule is deprecated.", }, { - "text": "The "selector-combinator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-combinator-space-after" rule is deprecated.", }, { - "text": "The "selector-combinator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-combinator-space-before" rule is deprecated.", }, { - "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated.", }, { - "text": "The "selector-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-newline-after" rule is deprecated.", }, { - "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-space-before" rule is deprecated.", }, { - "text": "The "selector-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-max-empty-lines" rule is deprecated.", }, { - "text": "The "selector-pseudo-class-case" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-class-case" rule is deprecated.", }, { - "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated.", }, { - "text": "The "selector-pseudo-element-case" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-element-case" rule is deprecated.", }, { - "text": "The "unit-case" rule is deprecated and will be removed in the next major release.", + "text": "The "unit-case" rule is deprecated.", }, { - "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-newline-after" rule is deprecated.", }, { - "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-space-after" rule is deprecated.", }, { - "text": "The "value-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-space-before" rule is deprecated.", }, { - "text": "The "value-list-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-max-empty-lines" rule is deprecated.", }, { - "text": "The "indentation" rule is deprecated and will be removed in the next major release.", + "text": "The "indentation" rule is deprecated.", }, ], "errored": true, @@ -213,247 +213,247 @@ exports[`fs - zen garden CSS with standard config 1`] = ` "deprecations": [ { "reference": undefined, - "text": "The "at-rule-name-case" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-name-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-name-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "at-rule-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-semicolon-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-closing-brace-empty-line-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-empty-line-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-closing-brace-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-closing-brace-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-newline-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-closing-brace-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-opening-brace-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-opening-brace-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-opening-brace-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "color-hex-case" rule is deprecated and will be removed in the next major release.", + "text": "The "color-hex-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-bang-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-bang-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-bang-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-bang-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-block-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-block-semicolon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-block-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-block-trailing-semicolon" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-trailing-semicolon" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-colon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-colon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-colon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "function-max-empty-lines" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-parentheses-newline-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "function-parentheses-newline-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "function-parentheses-space-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-whitespace-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-whitespace-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "max-empty-lines" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-colon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-colon-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-colon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-colon-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-name-case" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-name-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-parentheses-space-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-range-operator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-range-operator-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-range-operator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-range-operator-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-query-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-query-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-query-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "no-eol-whitespace" rule is deprecated and will be removed in the next major release.", + "text": "The "no-eol-whitespace" rule is deprecated.", }, { "reference": undefined, - "text": "The "no-extra-semicolons" rule is deprecated and will be removed in the next major release.", + "text": "The "no-extra-semicolons" rule is deprecated.", }, { "reference": undefined, - "text": "The "no-missing-end-of-source-newline" rule is deprecated and will be removed in the next major release.", + "text": "The "no-missing-end-of-source-newline" rule is deprecated.", }, { "reference": undefined, - "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + "text": "The "number-leading-zero" rule is deprecated.", }, { "reference": undefined, - "text": "The "number-no-trailing-zeros" rule is deprecated and will be removed in the next major release.", + "text": "The "number-no-trailing-zeros" rule is deprecated.", }, { "reference": undefined, - "text": "The "property-case" rule is deprecated and will be removed in the next major release.", + "text": "The "property-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-attribute-brackets-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-brackets-space-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-attribute-operator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-operator-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-attribute-operator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-operator-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-combinator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-combinator-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-combinator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-combinator-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-max-empty-lines" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-pseudo-class-case" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-class-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-pseudo-element-case" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-element-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "unit-case" rule is deprecated and will be removed in the next major release.", + "text": "The "unit-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-max-empty-lines" rule is deprecated.", }, { "reference": undefined, - "text": "The "indentation" rule is deprecated and will be removed in the next major release.", + "text": "The "indentation" rule is deprecated.", }, ], "errored": true, diff --git a/system-tests/003/__snapshots__/no-fs.test.js.snap b/system-tests/003/__snapshots__/no-fs.test.js.snap index af72659192..dc4f461296 100644 --- a/system-tests/003/__snapshots__/no-fs.test.js.snap +++ b/system-tests/003/__snapshots__/no-fs.test.js.snap @@ -221,247 +221,247 @@ footer a:visited { "deprecations": [ { "reference": undefined, - "text": "The "at-rule-name-case" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-name-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "at-rule-name-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-name-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "at-rule-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "at-rule-semicolon-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-closing-brace-empty-line-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-empty-line-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-closing-brace-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-closing-brace-newline-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-newline-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-closing-brace-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-closing-brace-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-opening-brace-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-opening-brace-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "block-opening-brace-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "block-opening-brace-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "color-hex-case" rule is deprecated and will be removed in the next major release.", + "text": "The "color-hex-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-bang-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-bang-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-bang-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-bang-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-block-semicolon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-block-semicolon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-block-semicolon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-semicolon-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-block-trailing-semicolon" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-block-trailing-semicolon" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-colon-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-colon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "declaration-colon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "declaration-colon-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "function-comma-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "function-max-empty-lines" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-parentheses-newline-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "function-parentheses-newline-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "function-parentheses-space-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "function-whitespace-after" rule is deprecated and will be removed in the next major release.", + "text": "The "function-whitespace-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "max-empty-lines" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-colon-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-colon-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-colon-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-colon-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-name-case" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-name-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-parentheses-space-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-range-operator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-range-operator-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-feature-range-operator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-feature-range-operator-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-query-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-query-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "media-query-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "media-query-list-comma-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "no-eol-whitespace" rule is deprecated and will be removed in the next major release.", + "text": "The "no-eol-whitespace" rule is deprecated.", }, { "reference": undefined, - "text": "The "no-extra-semicolons" rule is deprecated and will be removed in the next major release.", + "text": "The "no-extra-semicolons" rule is deprecated.", }, { "reference": undefined, - "text": "The "no-missing-end-of-source-newline" rule is deprecated and will be removed in the next major release.", + "text": "The "no-missing-end-of-source-newline" rule is deprecated.", }, { "reference": undefined, - "text": "The "number-leading-zero" rule is deprecated and will be removed in the next major release.", + "text": "The "number-leading-zero" rule is deprecated.", }, { "reference": undefined, - "text": "The "number-no-trailing-zeros" rule is deprecated and will be removed in the next major release.", + "text": "The "number-no-trailing-zeros" rule is deprecated.", }, { "reference": undefined, - "text": "The "property-case" rule is deprecated and will be removed in the next major release.", + "text": "The "property-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-attribute-brackets-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-brackets-space-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-attribute-operator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-operator-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-attribute-operator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-attribute-operator-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-combinator-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-combinator-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-combinator-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-combinator-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-descendant-combinator-no-non-space" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-list-comma-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-max-empty-lines" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-pseudo-class-case" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-class-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-class-parentheses-space-inside" rule is deprecated.", }, { "reference": undefined, - "text": "The "selector-pseudo-element-case" rule is deprecated and will be removed in the next major release.", + "text": "The "selector-pseudo-element-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "unit-case" rule is deprecated and will be removed in the next major release.", + "text": "The "unit-case" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-comma-newline-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-newline-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-comma-space-after" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-space-after" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-comma-space-before" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-comma-space-before" rule is deprecated.", }, { "reference": undefined, - "text": "The "value-list-max-empty-lines" rule is deprecated and will be removed in the next major release.", + "text": "The "value-list-max-empty-lines" rule is deprecated.", }, { "reference": undefined, - "text": "The "indentation" rule is deprecated and will be removed in the next major release.", + "text": "The "indentation" rule is deprecated.", }, ], "errored": true, diff --git a/types/stylelint/index.d.ts b/types/stylelint/index.d.ts index a891a03ec8..ae87e9015f 100644 --- a/types/stylelint/index.d.ts +++ b/types/stylelint/index.d.ts @@ -323,7 +323,7 @@ declare module 'stylelint' { source?: string; deprecations: { text: string; - reference: string; + reference: string | undefined; }[]; invalidOptionWarnings: { text: string; From d6108a9934b86faef54222d131d945d4737ab5d8 Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Sat, 14 Jan 2023 11:50:38 +0900 Subject: [PATCH 3/4] Fix `LintResult.deprecations[].reference` type --- types/stylelint/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/stylelint/index.d.ts b/types/stylelint/index.d.ts index ae87e9015f..cda50372a2 100644 --- a/types/stylelint/index.d.ts +++ b/types/stylelint/index.d.ts @@ -323,7 +323,7 @@ declare module 'stylelint' { source?: string; deprecations: { text: string; - reference: string | undefined; + reference?: string; }[]; invalidOptionWarnings: { text: string; From bec7cdc7cfb988390814acdb8bcd9c67f0a1e62c Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Sat, 14 Jan 2023 11:53:24 +0900 Subject: [PATCH 4/4] Improve warning text in console --- lib/formatters/__tests__/stringFormatter.test.js | 2 +- lib/formatters/stringFormatter.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/formatters/__tests__/stringFormatter.test.js b/lib/formatters/__tests__/stringFormatter.test.js index 188d0b3767..b4ef3247e7 100644 --- a/lib/formatters/__tests__/stringFormatter.test.js +++ b/lib/formatters/__tests__/stringFormatter.test.js @@ -178,7 +178,7 @@ path/to/file.css expect(output).toBe(stripIndent` Invalid Option: Unexpected option for baz -Deprecation Warning: +Deprecation warnings: - Deprecated foo. See: bar`); }); diff --git a/lib/formatters/stringFormatter.js b/lib/formatters/stringFormatter.js index 097c2c97a0..e58ee01f58 100644 --- a/lib/formatters/stringFormatter.js +++ b/lib/formatters/stringFormatter.js @@ -63,7 +63,7 @@ function deprecationsFormatter(results) { lines.push(line); } - return ['', yellow('Deprecation Warning:'), ...lines, ''].join('\n'); + return ['', yellow('Deprecation warnings:'), ...lines, ''].join('\n'); } /**