Skip to content

Commit

Permalink
adding lintstaged
Browse files Browse the repository at this point in the history
  • Loading branch information
mattschoch committed Mar 12, 2024
1 parent 5edab35 commit 647b642
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/armory/.lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
'*.{ts,tsx}': (filenames) => [
`eslint --no-error-on-unmatched-pattern ${filenames.join(' ')}; echo "ESLint completed with exit code $?"`,
`prettier --write ${filenames.join(' ')}`
]
}

0 comments on commit 647b642

Please sign in to comment.