m-oauth/.lintstagedrc.js
SevicheCC 5f0c8491b7
init
2023-06-01 01:26:42 +08:00

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],
}