fix: add double quote
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
const buildEslintCommand = (filenames) =>
|
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) =>
|
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} */
|
/** @type {import('lint-staged').Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|||||||
Reference in New Issue
Block a user