mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-06-01 18:47:21 +00:00
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:
+7
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user