Skip to content

Commit

Permalink
fix[ci_errors]: ignore public folder for prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ArslanSaleem committed Oct 4, 2024
1 parent 2f0fe0d commit 799d099
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions frontend/.lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
module.exports = {
"**/*.{js,jsx,ts,tsx}": (filenames) => {
const filteredFiles = filenames.filter(
(file) => !file.startsWith("public/"),
);
if (filteredFiles.length === 0) return [];
return [
`eslint --fix ${filteredFiles.join(" ")}`,
`prettier --write ${filteredFiles.join(" ")}`,
];
},
"**/*.{css,scss,md}": (filenames) => {
const filteredFiles = filenames.filter(
(file) => !file.startsWith("public/"),
);
if (filteredFiles.length === 0) return [];
return [`prettier --write ${filteredFiles.join(" ")}`];
},
"*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"],
"*.{json,css,md}": ["prettier --write"],
};
Empty file added frontend/public/.prettierignore
Empty file.

0 comments on commit 799d099

Please sign in to comment.