pre-commit:
  parallel: true
  commands:
    check-scripts:
      glob: '*.{js,ts,jsx,tsx,mts,mjs,cjs,cts}'
      run: npx prettier --write {staged_files} && npx eslint {staged_files} && git add {staged_files}
    check-styles:
      glob: '*.{css,scss}'
      run: npx prettier --write {staged_files} && npx stylelint {staged_files} && git add {staged_files}
    check-json:
      glob: '*.{json}'
      run: npx prettier --write {staged_files} && git add {staged_files}
commit-msg:
  parallel: true
  commands:
    commitlint:
      run: npx commitlint --edit {1}
