1 2 3 4 5 6 7 8 9 10 11 12const path = require("path"); const buildEslintCommand = filenames => `next lint --fix --file ${filenames .map(f => path.relative(process.cwd(), f)) .join(" --file ")}`; module.exports = { "*.{js,jsx,ts,tsx}": [buildEslintCommand], "*.{json,md,yml}": ["prettier --write"], };