From 724a85aba3eea424e326e5df5bbf0d052a91ec9f Mon Sep 17 00:00:00 2001 From: Dru Hill Date: Wed, 9 Oct 2024 09:19:01 +0100 Subject: [PATCH] ci: rename .stylelintrc.json --- .stylelintrc.js | 23 ----------------------- .stylelintrc.json | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 23 deletions(-) delete mode 100644 .stylelintrc.js create mode 100644 .stylelintrc.json diff --git a/.stylelintrc.js b/.stylelintrc.js deleted file mode 100644 index 92d31855..00000000 --- a/.stylelintrc.js +++ /dev/null @@ -1,23 +0,0 @@ -/** @type {import('stylelint').Config} */ -module.exports = { - extends: ["stylelint-config-standard", "stylelint-config-standard-scss"], - - /* - These rules are intended to be configured to: - - Avoid errors (no invalid selectors etc) - - Enforce conventions for how consumers use the tokens (eg CSS variables to be kebab cased) - - Fixing how values are formatted is much less important and a nice to have. Anything which we - choose not to fix should be disabled in this file. - */ - rules: { - "alpha-value-notation": null, // Has no end user impact - "color-function-notation": null, // Has no end user impact - "color-hex-length": null, // Has no end user impact apart from affecting the size of the CSS file by a tiny amount - "comment-whitespace-inside": null, // Ignoring as this is managed by `ts/descriptionToComment` transform and has no end user impact - "length-zero-no-unit": null, // Has no end user impact apart from affecting the size of the CSS file by a tiny amount - "scss/comment-no-empty": null, // Ignoring as this is managed by `ts/descriptionToComment` transform and has no end user impact - "scss/operator-no-unspaced": null, // Has no end user impact - "value-keyword-case": null, // Ignore to allow for correct casing of typography font names - }, -}; diff --git a/.stylelintrc.json b/.stylelintrc.json new file mode 100644 index 00000000..0300f609 --- /dev/null +++ b/.stylelintrc.json @@ -0,0 +1,14 @@ + +{ + "extends": ["stylelint-config-standard", "stylelint-config-standard-scss"], + "rules": { + "alpha-value-notation": null, + "color-function-notation": null, + "color-hex-length": null, + "comment-whitespace-inside": null, + "length-zero-no-unit": null, + "scss/comment-no-empty": null, + "scss/operator-no-unspaced": null, + "value-keyword-case": null + } +}