Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(client): basic stylelint with only directionality warnings
Elian Dorand3b5c702b4af
diff --git a/apps/client/.stylelintrc.json b/apps/client/.stylelintrc.jsonnew file mode 100644index 0000000000..090b861b13--- /dev/null+++ b/apps/client/.stylelintrc.json@@ -0,0 +1,26 @@+{+ "languageOptions": {+ "directionality": {+ "block": "top-to-bottom",+ "inline": "left-to-right"+ }+ },+ "rules": {+ "property-layout-mappings": ["flow-relative", {+ "ignoreProperties": [+ "top", "bottom",+ "width", "height",+ "min-width", "min-height",+ "max-width", "max-height",+ "margin-top", "margin-bottom",+ "padding-top", "padding-bottom",+ "border-top", "border-top-width", "border-top-style", "border-top-color",+ "border-bottom", "border-bottom-width", "border-bottom-style", "border-bottom-color",+ "scroll-margin-top", "scroll-margin-bottom",+ "scroll-padding-top", "scroll-padding-bottom",+ "overflow-x", "overflow-y",+ "contain-intrinsic-width", "contain-intrinsic-height"+ ]+ }]+ }+}diff --git a/apps/client/package.json b/apps/client/package.jsonindex e8b7cea107..59dbd2137d 100644--- a/apps/client/package.json+++ b/apps/client/package.json@@ -13,7 +13,8 @@"build": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build","test": "vitest","coverage": "vitest --coverage",- "circular-deps": "dpdm -T src/**/*.ts --tree=false --warning=false --skip-dynamic-imports=circular"+ "circular-deps": "dpdm -T src/**/*.ts --tree=false --warning=false --skip-dynamic-imports=circular",+ "stylelint": "stylelint --allow-empty-input \"src/**/*.css\""},"dependencies": {"@excalidraw/excalidraw": "0.18.1",@@ -88,6 +89,7 @@"happy-dom": "20.9.0","lightningcss": "1.32.0","script-loader": "0.7.2",+ "stylelint": "17.8.0","vite-plugin-static-copy": "4.1.0"}}diff --git a/package.json b/package.jsonindex 144962bdaf..5f6ca9e521 100644--- a/package.json+++ b/package.json@@ -9,6 +9,7 @@"client:test": "pnpm run --filter client test","client:build": "pnpm run --filter client build","client:coverage": "pnpm run --filter client test --coverage",+ "client:stylelint": "pnpm run --filter client stylelint","server:test": "pnpm run --filter server test","server:build": "pnpm run --filter server build","server:coverage": "pnpm run --filter server test --coverage",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 60eae371cb..c9a6bc1b71 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -418,6 +418,9 @@ importers:script-loader:specifier: 0.7.2version: 0.7.2+ stylelint:+ specifier: 17.8.0+ version: 17.8.0([email protected])vite-plugin-static-copy:specifier: 4.1.0version: 4.1.0([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))