const path = require('path'); const buildEslintCommand = (filenames) => `eslint --fix ${filenames .map((f) => `"${path.relative(process.cwd(), f)}"`) .join(' ')}`; module.exports = { '**/*.(ts|tsx)': () => 'yarn tsc --noEmit', '*.{js,jsx,ts,tsx}': [buildEslintCommand] };