diff --git a/frontend/.lintstagedrc.js b/frontend/.lintstagedrc.js index f9c00c0..7c0055a 100644 --- a/frontend/.lintstagedrc.js +++ b/frontend/.lintstagedrc.js @@ -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"], }; diff --git a/frontend/public/.prettierignore b/frontend/public/.prettierignore new file mode 100644 index 0000000..e69de29