create-next-js-boilerplate
Version:
Next.js 16 Boilerplate with TypeScript, Chakra UI, ESLint, Prettier, Husky, and Cypress — a complete starter template to build fast, scalable, and modern web applications.
15 lines (12 loc) • 488 B
JavaScript
module.exports = {
// this will check Typescript files
"**/*.(ts|tsx)": () => "yarn tsc --noEmit",
// This will lint and format TypeScript and //JavaScript files
"**/*.(ts|tsx|js)": (filenames) => [
`yarn eslint --fix ${filenames.join(" ")}`,
`yarn prettier --write ${filenames.join(" ")}`,
],
// this will Format MarkDown and JSON
"**/*.(md|json)": (filenames) =>
`yarn prettier --write ${filenames.join(" ")}`,
};