From 72f40dc6b33c90d99040fd24d12c4cfba7187bd9 Mon Sep 17 00:00:00 2001 From: Sabina Talipova Date: Tue, 16 Apr 2024 11:06:00 +1200 Subject: [PATCH] MNT Replace sass-lint with stylelint --- configMeta/stylelintWebpackConfig.js | 8 ++++++++ package.json | 10 +++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 configMeta/stylelintWebpackConfig.js diff --git a/configMeta/stylelintWebpackConfig.js b/configMeta/stylelintWebpackConfig.js new file mode 100644 index 0000000..1df43b9 --- /dev/null +++ b/configMeta/stylelintWebpackConfig.js @@ -0,0 +1,8 @@ +const BaseWebpackConfig = require('./baseWebpackConfig'); +const StylelintPlugin = require('stylelint-webpack-plugin'); + +module.exports = class StylelintWebpackConfig extends BaseWebpackConfig { + plugins: [ + new StylelintPlugin() + ], +}; \ No newline at end of file diff --git a/package.json b/package.json index 6dccbbd..0ad3c28 100644 --- a/package.json +++ b/package.json @@ -46,8 +46,16 @@ "postcss-loader": "^7.0.1", "resolve-url-loader": "^5.0.0", "sass": "^1.55.0", - "sass-lint": "^1.13.1", "sass-loader": "^13.1.0", + "stylelint": "^16.3.1", + "stylelint-config-airbnb": "^0.0.0", + "stylelint-config-recommended": "^14.0.0", + "stylelint-config-recommended-scss": "^14.0.0", + "stylelint-config-sass-guidelines": "^11.1.0", + "stylelint-config-standard": "^36.0.0", + "stylelint-order": "^6.0.4", + "stylelint-scss": "^6.2.1", + "stylelint-webpack-plugin": "^5.0.0", "webpack": "^5.74.0", "webpack-bundle-analyzer": "^4.7.0" },