1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-06-27 16:36:00 +00:00

Use Stylelint directly

This commit is contained in:
Yassine Guedidi 2025-02-15 00:23:46 +01:00
parent da0404f2b5
commit 3802d18204
6 changed files with 11 additions and 22 deletions

View file

@ -57,3 +57,5 @@ To run the PHP formatter run `make fix-cs`.
To run the PHPStan static analysis run `make phpstan`.
To run the JS linter run `make lint-js`.
To run the SCSS linter run `make lint-scss`.

View file

@ -73,3 +73,6 @@ jobs:
- name: "Run ESLint"
run: "yarn lint:js"
- name: "Run Stylelint"
run: "yarn lint:scss"

View file

@ -55,6 +55,9 @@ phpstan: ## Run PHPStan
lint-js: ## Run ESLint
@$(YARN) lint:js
lint-scss: ## Run Stylelint
@$(YARN) lint:scss
release: ## Create a package. Need a VERSION parameter (eg: `make release VERSION=master`).
ifndef VERSION
$(error VERSION is not set)

View file

@ -67,7 +67,6 @@
"stylelint-config-standard": "^34.0.0",
"stylelint-config-standard-scss": "^11.1.0",
"stylelint-scss": "^5.3.2",
"stylelint-webpack-plugin": "^5.0.1",
"terser-webpack-plugin": "^5.3.11",
"url-loader": "^4.1.1",
"webpack": "^5.98.0",
@ -103,6 +102,7 @@
"build:dev": "encore dev",
"watch": "encore dev --watch",
"build:prod": "encore production --progress",
"lint:js": "eslint assets/*.js assets/js/*.js assets/js/**/*.js"
"lint:js": "eslint assets/*.js assets/js/*.js assets/js/**/*.js",
"lint:scss": "stylelint assets/scss/*.scss assets/scss/**/*.scss"
}
}

View file

@ -1,5 +1,4 @@
const Encore = require('@symfony/webpack-encore');
const StyleLintPlugin = require('stylelint-webpack-plugin');
if (!Encore.isRuntimeEnvironmentConfigured()) {
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
@ -23,13 +22,6 @@ Encore
})
.enableSassLoader()
.enablePostCssLoader()
.autoProvidejQuery()
.addPlugin(new StyleLintPlugin({
configFile: 'stylelint.config.js',
failOnError: false,
quiet: false,
context: 'assets',
files: '**/*.scss',
}));
.autoProvidejQuery();
module.exports = Encore.getWebpackConfig();

View file

@ -6221,17 +6221,6 @@ stylelint-scss@^5.3.0, stylelint-scss@^5.3.2:
postcss-selector-parser "^6.0.13"
postcss-value-parser "^4.2.0"
stylelint-webpack-plugin@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/stylelint-webpack-plugin/-/stylelint-webpack-plugin-5.0.1.tgz#13a7589a8d4cc00b155b9f792876334ca0bcaf71"
integrity sha512-07lpo1uVoFctKv0EOOg/YSrUppcLMjNBSMRqgooNnlbfAOgQfMzvLK+EbXz0HQiEgZobr+XQX9md/TgwTGdzbw==
dependencies:
globby "^11.1.0"
jest-worker "^29.7.0"
micromatch "^4.0.5"
normalize-path "^3.0.0"
schema-utils "^4.2.0"
stylelint@^15.11.0:
version "15.11.0"
resolved "https://registry.yarnpkg.com/stylelint/-/stylelint-15.11.0.tgz#3ff8466f5f5c47362bc7c8c9d382741c58bc3292"