UNPKG

@anolilab/lint-staged-config

Version:
15 lines (14 loc) 610 B
/** * Concatenate and escape a list of filenames that can be passed as args to prettier cli. * * Prettier and Stylelint have an issue with special characters in filenames, * such as the ones uses for Next.js dynamic routes (ie: [id].tsx...) * @link https://github.com/okonet/lint-staged/issues/676 * * The @ type shouldn't be quoted, but it is. * If a folder name contains a @, it will be escaped as \@ (example test/@types), which is wrong. * @param filenames * @returns Return concatenated and escaped filenames */ declare const concatFiles: (filenames: string[]) => string; export = concatFiles;