MNT Replace sass-lint with stylelint (#566)

This commit is contained in:
Sabina Talipova 2024-05-01 17:01:51 +12:00 committed by GitHub
parent 0fe63e92bd
commit 33fba84537
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

1
.stylelintignore Normal file
View File

@ -0,0 +1 @@
client/src/**/*.js

1
.stylelintrc.js Normal file
View File

@ -0,0 +1 @@
module.exports = require('@silverstripe/eslint-config/.stylelintrc');

View File

@ -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"
},