From 7babd31e92e7642411ec29dc9cf0a3fbefdb64cd Mon Sep 17 00:00:00 2001 From: Sabina Talipova Date: Wed, 1 May 2024 11:41:25 +1200 Subject: [PATCH] MNT Replace sass-lint with stylelint --- .stylelintignore | 1 + .stylelintrc.js | 1 + package.json | 6 +++--- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 .stylelintignore create mode 100644 .stylelintrc.js diff --git a/.stylelintignore b/.stylelintignore new file mode 100644 index 00000000..8688292d --- /dev/null +++ b/.stylelintignore @@ -0,0 +1 @@ +client/src/**/*.js diff --git a/.stylelintrc.js b/.stylelintrc.js new file mode 100644 index 00000000..ef7353b7 --- /dev/null +++ b/.stylelintrc.js @@ -0,0 +1 @@ +module.exports = require('@silverstripe/eslint-config/.stylelintrc'); diff --git a/package.json b/package.json index ab0fcc38..64eba4ca 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "build": "yarn && yarn lint && rm -rf client/dist/* && NODE_ENV=production webpack --mode production --bail --progress", "dev": "NODE_ENV=development webpack --progress", "watch": "NODE_ENV=development webpack --watch --progress", - "lint": "eslint client/src && sass-lint client/src" + "lint": "eslint client/src && stylelint client/src" }, "author": "SilverStripe Ltd", "license": "BSD-2-Clause", @@ -18,8 +18,8 @@ "homepage": "https://github.com/silverstripe/silverstripe-subsites#readme", "dependencies": {}, "devDependencies": { - "@silverstripe/eslint-config": "^1.1.0", - "@silverstripe/webpack-config": "^2.0.0", + "@silverstripe/eslint-config": "^1.2.1", + "@silverstripe/webpack-config": "^2.1.0", "webpack": "^5.74.0", "webpack-cli": "^5.0.0" },