Maintenance: Improve markdownlint phase in the overcommit hook to consider staged files only.
This commit is contained in:
@@ -106,13 +106,13 @@ PreCommit:
|
||||
- 'app/frontend/**/*.vue'
|
||||
- '.eslint-plugin-zammad/**/*.js'
|
||||
- '.eslint-plugin-zammad/**/*.ts'
|
||||
Markdownlint:
|
||||
Mdl:
|
||||
required_executable: 'pnpm'
|
||||
enabled: true
|
||||
command: ['pnpm', 'lint:md:cmd']
|
||||
flags: ['*.md', '**/*.md', '#node_modules', '#**/node_modules']
|
||||
exclude:
|
||||
- 'node_modules'
|
||||
- 'tmp'
|
||||
include:
|
||||
- '**/*.md'
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"lint:css": "pnpm lint:css:cmd **/*.{scss,css,vue}",
|
||||
"lint:css:cmd": "stylelint",
|
||||
"lint:css:fix": "pnpm lint:css --fix",
|
||||
"lint:md": "pnpm lint:md:cmd '*.md' '**/*.md' '#node_modules' '#**/node_modules' '#tmp'",
|
||||
"lint:md": "pnpm lint:md:cmd '*.md' '**/*.md' '#.agents' '#node_modules' '#**/node_modules' '#tmp'",
|
||||
"lint:md:fix": "pnpm lint:md --fix",
|
||||
"lint:md:cmd": "pnpm exec markdownlint-cli2",
|
||||
"test": "VTL_SKIP_AUTO_CLEANUP=true TZ=utc vitest",
|
||||
|
||||
Reference in New Issue
Block a user