aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-08-27 21:56:15 +0200
committernextcloud-command <nextcloud-command@users.noreply.github.com>2024-08-29 08:35:06 +0000
commitfaeb2f0f439065bb8118b08b138cc5e9da1d0321 (patch)
treecc479d7bebb75d000e3351577da7c2fb0242f967 /package.json
parentaea0e8df6addb215b187898003afa6e52a984f6a (diff)
downloadnextcloud-server-faeb2f0f439065bb8118b08b138cc5e9da1d0321.tar.gz
nextcloud-server-faeb2f0f439065bb8118b08b138cc5e9da1d0321.zip
chore: Add stylelint rules to verify we only use logical properties
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'package.json')
-rw-r--r--package.json4
1 files changed, 4 insertions, 0 deletions
diff --git a/package.json b/package.json
index 2a0efe599ce..38dc2322332 100644
--- a/package.json
+++ b/package.json
@@ -15,6 +15,8 @@
"watch": "webpack --node-env development --progress --watch",
"lint": "eslint $(for appdir in $(ls apps); do if ! $(git check-ignore -q $appdir); then printf \"apps/$appdir \"; fi; done) core --no-error-on-unmatched-pattern",
"lint:fix": "eslint $(for appdir in $(ls apps); do if ! $(git check-ignore -q $appdir); then printf \"apps/$appdir \"; fi; done) core --no-error-on-unmatched-pattern --fix",
+ "stylelint": "stylelint '{apps,core}/**/*.{scss,vue}'",
+ "stylelint:fix": "stylelint --fix '{apps,core}/**/*.{scss,vue}'",
"test": "vitest run",
"test:watch": "vitest watch",
"test:coverage": "vitest run --coverage",
@@ -174,6 +176,8 @@
"sass-loader": "^13.2.2",
"sinon": "<= 5.0.7",
"style-loader": "^3.3.1",
+ "stylelint": "^16.8.2",
+ "stylelint-use-logical": "^2.1.2",
"tar": "^7.4.3",
"ts-loader": "^9.5.0",
"ts-node": "^10.9.1",