Skip to content

Commit

Permalink
feat: add prettier ignore rules
Browse files Browse the repository at this point in the history
  • Loading branch information
luigibarbato committed Dec 11, 2022
1 parent 3c1312a commit baf3b29
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .lintstagedrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const buildEslintCommand = (filenames) =>
.map((f) => path.relative(process.cwd(), f))
.join(" --file ")}`;

const buildPrettierCommand = "npx prettier --write .";
const buildPrettierCommand =
"npx prettier --write . --ignore-unknown --ignore-path .prettierignore";

module.exports = {
"*.{js,jsx,ts,tsx}": [buildEslintCommand, buildPrettierCommand],
Expand Down
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
**/.next/**
**/_next/**
**/dist/**
**/__tmp__/**
lerna.json
.github

0 comments on commit baf3b29

Please sign in to comment.