Skip to content

Commit

Permalink
Fix lint staged config
Browse files Browse the repository at this point in the history
  • Loading branch information
whitphx committed Jan 11, 2024
1 parent 790e180 commit 32c3112
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .lintstagedrc.json

This file was deleted.

9 changes: 9 additions & 0 deletions lint-staged.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import micromatch from "micromatch";

export default {
"*.{js,ts,mjs,mts}": "eslint --cache --fix",
"*.{js,ts,mjs,mts,md,json,yml}": (files) => {
const match = micromatch.not(files, "vendor/");
return `prettier --write ${match.join(" ")}`;
},
};

0 comments on commit 32c3112

Please sign in to comment.