Skip to content

Commit

Permalink
fix lint-staged.config
Browse files Browse the repository at this point in the history
  • Loading branch information
jetersen committed Aug 20, 2022
1 parent 95eec5c commit d034439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lint-staged.config.mjs → lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import micromatch from 'micromatch'

export default {
'*': (files) => {
const typescriptFiles = micromatch(files, ['*.ts'], undefined)
const typescriptFiles = micromatch(files, ['*.ts'], {})
const allOther = micromatch.not(files, ['*.ts'])
const tasks = []
if (typescriptFiles.length !== 0) {
if (typescriptFiles.length > 0) {
tasks.push(`eslint --fix ${typescriptFiles.join(' ')}`)
}
tasks.push(`prettier --ignore-unknown --write ${allOther.join(' ')}`)
Expand Down

0 comments on commit d034439

Please sign in to comment.