From c5b09bcfeae7dbfb4759dae2910ad34159ba5700 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Tue, 7 May 2024 10:37:02 -0400 Subject: [PATCH] Move reportNeedlessDisables into shared configuration --- .stylelintrc.json | 3 +-- app/javascript/packages/stylelint-config/CHANGELOG.md | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.stylelintrc.json b/.stylelintrc.json index e216e395d45..d975da860ba 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -1,5 +1,4 @@ { "extends": "@18f/identity-stylelint-config", - "ignoreFiles": "**/fixtures/**/*", - "reportNeedlessDisables": true + "ignoreFiles": "**/fixtures/**/*" } diff --git a/app/javascript/packages/stylelint-config/CHANGELOG.md b/app/javascript/packages/stylelint-config/CHANGELOG.md index 3f1e47d46f3..93fb812367e 100644 --- a/app/javascript/packages/stylelint-config/CHANGELOG.md +++ b/app/javascript/packages/stylelint-config/CHANGELOG.md @@ -12,6 +12,7 @@ - [`scss/dollar-variable-empty-line-before`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-empty-line-before/README.md) - [`scss/double-slash-comment-empty-line-before`](https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/double-slash-comment-empty-line-before/README.md) - [`color-function-notation`](https://stylelint.io/user-guide/rules/color-function-notation/) (due to [Sass incompatibilities](https://github.com/sass/sass/issues/2831)) +- The ruleset now configures [`"reportNeedlessDisables": true`](https://stylelint.io/user-guide/options/#reportneedlessdisables), which will report inline configuration that disables rules unnecessarily. ## 4.1.0