From d988cb849c429b078bb1ac380a194ee791e08abb Mon Sep 17 00:00:00 2001 From: Kevin Dew Date: Tue, 25 Apr 2023 08:22:09 +0100 Subject: [PATCH] Remove deprecated stylistic rules With version 15 of Stylelint stylistic rules have been deprecated with the expectation that a tool such as prettier will be used instead. This removes these deprecated rules from our rule set. --- css-rules.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/css-rules.js b/css-rules.js index 6c674c7..91269f6 100644 --- a/css-rules.js +++ b/css-rules.js @@ -18,15 +18,6 @@ module.exports = { // that tool across GDS products. // https://stylelint.io/user-guide/rules/list/at-rule-no-vendor-prefix/ 'at-rule-no-vendor-prefix': null, - // Always require a newline after a closing brace of a rule - // https://stylelint.io/user-guide/rules/list/block-closing-brace-newline-after/ - // Originates from: https://github.com/kristerkari/stylelint-scss/blob/f54d9861e35891312bda98afe2404a993a4262e0/docs/examples/if-else.md - 'block-closing-brace-newline-after': [ - 'always', { - // Exceptions for conditionals, particularly useful for SCSS. - ignoreAtRules: ['if', 'else'] - } - ], // Require commas to separate numbers in colour functions, this is // required for Internet Explorer support which doesn't understand the // modern syntax. @@ -100,10 +91,6 @@ module.exports = { // than a previous rule. // https://stylelint.io/user-guide/rules/list/no-descending-specificity/ 'no-descending-specificity': null, - // Disallow prefixing decimals with a 0 - // https://stylelint.io/user-guide/rules/list/number-leading-zero/ - // Originates from: https://github.com/alphagov/govuk-frontend/blob/e248b4027102b2684f592a0501630075bdfa1fab/config/.sass-lint.yml#L119 - 'number-leading-zero': 'never', // This rule expects autoprefixer to be used but we don't consistently use // that tool across GDS products. // https://stylelint.io/user-guide/rules/list/property-no-vendor-prefix/