docs: add eslint (#4805)

* docs: add eslint

* chore: remove @eslint/css

* feat(docs): add custom eslint rule for css variables

* ci: check lint on css changes in docs

* ci: update lefthook configuration
This commit is contained in:
Kamil Moskała
2025-12-24 00:07:13 +01:00
committed by GitHub
parent 84d7abb89f
commit 6aaeebce8a
11 changed files with 113 additions and 81 deletions
+7 -1
View File
@@ -3,9 +3,15 @@ pre-commit:
commands:
lint:
glob: "*.{js,ts,jsx,tsx}"
exclude: "docs/**/*"
run: bun lint
lint-docs:
# using @widlarzgroup/eslint-plugin-docusaurus for CSS variable validation
root: "docs/"
glob: "**/*.{js,ts,jsx,tsx,css}"
run: bun run lint
types:
glob: "*.{js,ts, jsx, tsx}"
glob: "*.{js,ts,jsx,tsx}"
run: bun typecheck
commit-msg:
parallel: true