MNT Replace sass-lint with stylelint (#173)

This commit is contained in:
Sabina Talipova 2024-05-01 17:01:24 +12:00 committed by GitHub
parent 3791f911ac
commit 73f7a0daf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

1
.stylelintrc.js Normal file
View File

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

View File

@ -22,7 +22,7 @@
"lock": "npm-shrinkwrap --dev", "lock": "npm-shrinkwrap --dev",
"test": "NODE_PATH=\"./client/src\" jest", "test": "NODE_PATH=\"./client/src\" jest",
"coverage": "NODE_PATH=\"./client/src\" jest --coverage", "coverage": "NODE_PATH=\"./client/src\" jest --coverage",
"lint": "eslint client/src && sass-lint -v client/src" "lint": "eslint client/src && stylelint css/*"
}, },
"jest": { "jest": {
"scriptPreprocessor": "<rootDir>/node_modules/babel-jest", "scriptPreprocessor": "<rootDir>/node_modules/babel-jest",
@ -51,8 +51,8 @@
"url": "^0.11.0" "url": "^0.11.0"
}, },
"devDependencies": { "devDependencies": {
"@silverstripe/eslint-config": "^1.1.0", "@silverstripe/eslint-config": "^1.2.1",
"@silverstripe/webpack-config": "^2.0.0", "@silverstripe/webpack-config": "^2.1.0",
"babel-jest": "^20.0.3", "babel-jest": "^20.0.3",
"jest-cli": "^19.0.2", "jest-cli": "^19.0.2",
"webpack": "^5.76.0", "webpack": "^5.76.0",