lint-staged.config.cjs 387 B

12345678
  1. module.exports = {
  2. "*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"],
  3. "{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": ["prettier --write--parser json"],
  4. "package.json": ["prettier --write"],
  5. "*.vue": ["eslint --fix", "prettier --write", "stylelint --fix"],
  6. "*.{scss,less,styl,html}": ["stylelint --fix", "prettier --write"],
  7. "*.md": ["prettier --write"]
  8. };