mirror of
https://github.com/StepanovPlaton/torrent_frontend.git
synced 2026-04-03 20:30:48 +04:00
14 lines
476 B
JavaScript
14 lines
476 B
JavaScript
module.exports = {
|
|
// this will check Typescript files
|
|
"**/*.(ts|tsx)": () => "npx tsc --noEmit",
|
|
|
|
// This will lint and format TypeScript and //JavaScript files
|
|
"**/*.(ts|tsx|js)": filenames => [
|
|
`npx eslint --fix ${filenames.join(" ")}`,
|
|
`npx prettier --write ${filenames.join(" ")}`,
|
|
],
|
|
|
|
// this will Format MarkDown and JSON
|
|
"**/*.(md|json)": filenames => `npx prettier --write ${filenames.join(" ")}`,
|
|
};
|