text: const 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, 'prettier --write'],
    '**/*.css': ['stylelint --fix', 'prettier --write'],
    '!**/*.{js,jsx,ts,tsx,css}': 'prettier --write --ignore-unknown',
  }
  