.lintstagedrc.cjs 315 B

12345678910
  1. module.exports = {
  2. // Run markdownlint on MD files
  3. '*.md': 'markdownlint-cli2-fix',
  4. // Run Stylelint on CSS files
  5. '*.css': 'stylelint --fix --allow-empty-input',
  6. // Run ESLint on TS, TSX, JS, JSX files
  7. '*.{ts,js}?(x)': 'eslint --fix',
  8. // Run Prettier everywhere
  9. '*': 'prettier --write --ignore-unknown',
  10. };