diff --git a/.lintstagedrc.js b/.lintstagedrc.js index caa6c80..06f3584 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -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], diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..317b723 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,7 @@ +node_modules +**/.next/** +**/_next/** +**/dist/** +**/__tmp__/** +lerna.json +.github \ No newline at end of file