From 73f7a0daf8749aa662c4dd2922a9a20f80218f4c Mon Sep 17 00:00:00 2001 From: Sabina Talipova <87288324+sabina-talipova@users.noreply.github.com> Date: Wed, 1 May 2024 17:01:24 +1200 Subject: [PATCH] MNT Replace sass-lint with stylelint (#173) --- .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 eefccd0..ab59fae 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "lock": "npm-shrinkwrap --dev", "test": "NODE_PATH=\"./client/src\" jest", "coverage": "NODE_PATH=\"./client/src\" jest --coverage", - "lint": "eslint client/src && sass-lint -v client/src" + "lint": "eslint client/src && stylelint css/*" }, "jest": { "scriptPreprocessor": "/node_modules/babel-jest", @@ -51,8 +51,8 @@ "url": "^0.11.0" }, "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", "babel-jest": "^20.0.3", "jest-cli": "^19.0.2", "webpack": "^5.76.0",