.lintstagedrc 565 B

1234567891011121314151617181920
  1. {
  2. "*.{js,jsx,ts,tsx}": [
  3. "prettier --cache --ignore-unknown --write",
  4. "eslint --cache --fix"
  5. ],
  6. "{!(package)*.json,*.code-snippets,.!({browserslist,nvm})*rc}": [
  7. "prettier --cache --write--parser json"
  8. ],
  9. "package.json": ["prettier --cache --write"],
  10. "*.vue": [
  11. "prettier --write",
  12. "eslint --cache --fix",
  13. "stylelint --fix --allow-empty-input"
  14. ],
  15. "*.{css,scss,html}": [
  16. "prettier --cache --ignore-unknown --write",
  17. "stylelint --fix --allow-empty-input"
  18. ],
  19. "*.md": ["prettier --cache --ignore-unknown --write"]
  20. }