From 33fba84537467f5a69fae5493f43eef6416e5a4f Mon Sep 17 00:00:00 2001 From: Sabina Talipova <87288324+sabina-talipova@users.noreply.github.com> Date: Wed, 1 May 2024 17:01:51 +1200 Subject: [PATCH] MNT Replace sass-lint with stylelint (#566) --- .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 0000000..8688292 --- /dev/null +++ b/.stylelintignore @@ -0,0 +1 @@ +client/src/**/*.js diff --git a/.stylelintrc.js b/.stylelintrc.js new file mode 100644 index 0000000..ef7353b --- /dev/null +++ b/.stylelintrc.js @@ -0,0 +1 @@ +module.exports = require('@silverstripe/eslint-config/.stylelintrc'); diff --git a/package.json b/package.json index ab0fcc3..64eba4c 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" },