10 lines
288 B
JavaScript
10 lines
288 B
JavaScript
// lint-staged.config.js
|
|
import micromatch from 'micromatch'
|
|
|
|
export default {
|
|
'*.js': (files) => {
|
|
// from `files` filter those _NOT_ matching `*test.js`
|
|
const match = micromatch.not(files, ['*/**/*test.js','*/**/documentation/*'])
|
|
return `eslint ${match.join(' ')}`
|
|
},
|
|
} |