mirror of
https://github.com/Sevichecc/m-oauth.git
synced 2025-04-30 14:59:29 +08:00
10 lines
250 B
JavaScript
10 lines
250 B
JavaScript
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],
|
|
}
|