From c71814d575b0ae1c239e553b486d116c0a1efcb5 Mon Sep 17 00:00:00 2001 From: James Harries Date: Mon, 21 Oct 2024 21:16:14 +0100 Subject: [PATCH] FCL-223 | use ds caselaw frontend stylelint config --- package-lock.json | 4 ++-- package.json | 2 +- stylelint.config.js | 16 +--------------- 3 files changed, 4 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index 66064c58e..1d9256853 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "ISC", "dependencies": { - "@nationalarchives/ds-caselaw-frontend": "github:nationalarchives/ds-caselaw-frontend#v2.0.6", + "@nationalarchives/ds-caselaw-frontend": "github:nationalarchives/ds-caselaw-frontend#v2.0.7", "nodemon": "^3.0.3", "sass": "^1.58.3" }, @@ -1804,7 +1804,7 @@ }, "node_modules/@nationalarchives/ds-caselaw-frontend": { "version": "2.0.4", - "resolved": "git+ssh://git@github.com/nationalarchives/ds-caselaw-frontend.git#9f7061dc591332adf8e28796a40108758801395e", + "resolved": "git+ssh://git@github.com/nationalarchives/ds-caselaw-frontend.git#5d9825999c04ee4b374337f0642bd581746d0692", "license": "MIT" }, "node_modules/@nodelib/fs.scandir": { diff --git a/package.json b/package.json index ec582cb1d..9657e9108 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "webpack-cli": "^5.0.0" }, "dependencies": { - "@nationalarchives/ds-caselaw-frontend": "github:nationalarchives/ds-caselaw-frontend#v2.0.6", + "@nationalarchives/ds-caselaw-frontend": "github:nationalarchives/ds-caselaw-frontend#v2.0.7", "nodemon": "^3.0.3", "sass": "^1.58.3" } diff --git a/stylelint.config.js b/stylelint.config.js index dfd646762..336472565 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -1,17 +1,3 @@ module.exports = { - extends: [ - "stylelint-config-standard-scss", - "stylelint-config-clean-order/error", - ], - rules: { - "selector-class-pattern": [ - "^[a-z]([-]?[a-z0-9]+)*(__[a-z0-9]([-]?[a-z0-9]+)*)?(--[a-z0-9]([-]?[a-z0-9]+)*)?$", - { - resolveNestedSelectors: true, - message: function expected(selectorValue) { - return `Expected class selector "${selectorValue}" to match BEM CSS pattern.`; - }, - }, - ], - }, + extends: ["@nationalarchives/ds-caselaw-frontend/stylelint.config.js"], };