mirror of
https://github.com/bendtherules/react-fiber-traverse.git
synced 2026-08-18 13:52:36 +00:00
13 lines
424 B
JavaScript
13 lines
424 B
JavaScript
module.exports = {
|
|
"*.{js,jsx,ts,tsx}": filenames => {
|
|
// Escape filenames and join by space
|
|
const joinedFilenames = filenames.map(str => `"${str}"`).join(" ");
|
|
return [
|
|
"run-s check:!(format)",
|
|
`npm run check:format -- ${joinedFilenames}`,
|
|
`npm run _lint -- ${joinedFilenames}`
|
|
];
|
|
// `run-s check:!(format) "check:format -- ${joinedFilenames}" "_lint -- ${joinedFilenames}"`;
|
|
}
|
|
};
|