From d1bf460e979f01170e2da7faa9d8fc081124b1b6 Mon Sep 17 00:00:00 2001 From: Sabina Talipova <87288324+sabina-talipova@users.noreply.github.com> Date: Wed, 1 May 2024 17:01:17 +1200 Subject: [PATCH] MNT Replace sass-lint with stylelint (#123) --- .stylelintrc.js | 1 + package.json | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 .stylelintrc.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 421fbec..87665a3 100644 --- a/package.json +++ b/package.json @@ -9,12 +9,12 @@ "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/js && sass-lint client/src/styles" + "lint": "eslint client/src/js && stylelint client/src/styles" }, "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" },