xchange-create
Version:
Create Xchange Project
22 lines (17 loc) • 653 B
JavaScript
const path = require("path");
const buildNextEslintCommand = (filenames) =>
`pnpm run next:lint --fix --file ${filenames
.map((f) => path.relative(path.join("packages", "nextjs"), f))
.join(" --file ")}`;
const checkTypesNextCommand = () => "pnpm run next:check-types";
const buildHardhatEslintCommand = (filenames) =>
`pnpm run hardhat:lint-staged --fix ${filenames
.map((f) => path.relative(path.join("packages", "hardhat"), f))
.join(" ")}`;
module.exports = {
"packages/nextjs/**/*.{ts,tsx}": [
buildNextEslintCommand,
checkTypesNextCommand,
],
"packages/hardhat/**/*.{ts,tsx}": [buildHardhatEslintCommand],
};