UNPKG

arui-presets-lint

Version:
22 lines (20 loc) 937 B
# Описание параметров тут: # https://lefthook.dev/configuration/ pre-commit: parallel: true commands: check-scripts: glob: '*.{js,ts,jsx,tsx,mts,mjs,cjs,cts,ctsx,mtsx,cjsx,mjsx,json,json5,jsonc}' run: npx --no-install prettier --write {staged_files} --cache && npx --no-install eslint {staged_files} --no-warn-ignored stage_fixed: true check-styles: glob: '*.{css}' run: npx --no-install prettier --write {staged_files} --cache && npx --no-install stylelint {staged_files} --allow-empty-input --cache --cache-location="./node_modules/.cache/stylelint/.stylelintcache" stage_fixed: true check-md: glob: '*.{md}' run: npx --no-install eslint {staged_files} --cache --no-warn-ignored commit-msg: commands: commitlint: run: npx --no-install commitlint --edit {1}