fix: add double quote

This commit is contained in:
nafees nazik
2024-03-08 16:47:38 +05:30
parent 8afe669978
commit c463d5a0ed

View File

@ -1,10 +1,10 @@
const path = require('path');
const buildEslintCommand = (filenames) =>
`eslint --fix ${filenames.map((f) => path.relative(process.cwd(), f)).join(' ')} `;
`eslint --fix ${filenames.map((f) => `"${path.relative(process.cwd(), f)}"`).join(' ')}`;
const buildPrettierCommand = (filenames) =>
`prettier --write ${filenames.map((f) => path.relative(process.cwd(), f)).join(' ')} `;
`prettier --write ${filenames.map((f) => `"${path.relative(process.cwd(), f)}"`).join(' ')}`;
/** @type {import('lint-staged').Config} */
module.exports = {