UNPKG

@legislato/legislato-conventions

Version:

This package facilitates the configuration of commit conventions and changelog for Next.js and Express projects

14 lines (11 loc) 411 B
/* eslint-disable @typescript-eslint/explicit-function-return-type */ /* eslint-disable no-undef */ // eslint-disable-next-line @typescript-eslint/no-require-imports 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] }