From 20c9cdb24c78674f2984e9d06ece901a6f20e066 Mon Sep 17 00:00:00 2001 From: Sabina Talipova <87288324+sabina-talipova@users.noreply.github.com> Date: Wed, 1 May 2024 17:01:59 +1200 Subject: [PATCH] MNT Replace sass-lint with stylelint (#535) --- .stylelintignore | 2 ++ .stylelintrc.js | 1 + package.json | 8 ++++---- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .stylelintignore create mode 100644 .stylelintrc.js diff --git a/.stylelintignore b/.stylelintignore new file mode 100644 index 00000000..405a4b6e --- /dev/null +++ b/.stylelintignore @@ -0,0 +1,2 @@ +client/src/**/*.js +client/src/images 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 1837d1d4..8a08f268 100644 --- a/package.json +++ b/package.json @@ -14,10 +14,10 @@ "test": "jest", "coverage": "jest --coverage --passWithNoTests", "lock": "npm-shrinkwrap --dev", - "lint": "eslint client/src && sass-lint client/src", + "lint": "eslint client/src && yarn lint-sass", "lint-js": "eslint client/src", "lint-js-fix": "eslint client/src --fix", - "lint-sass": "sass-lint client/src" + "lint-sass": "stylelint client/src" }, "dependencies": { "@silverstripe/react-injector": "^0.2.1", @@ -38,8 +38,8 @@ "regenerator-runtime": "^0.13.11" }, "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", "@testing-library/react": "^14.0.0", "babel-jest": "^29.2.2", "copy-webpack-plugin": "^11.0.0",