From 88275c23a9b88965dde8ca273c98db32e1f854e0 Mon Sep 17 00:00:00 2001 From: Sabina Talipova Date: Wed, 1 May 2024 11:30:46 +1200 Subject: [PATCH] MNT Replace sass-lint with stylelint --- .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 d7a18a3..4297817 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" },