Skip to content

How can I use oxc as one of the husky(commit-lint) hooks? #1670

Answered by Boshen
adoin asked this question in Q&A
Discussion options

You must be logged in to vote

It's easiest to create a lint-staged.config.mjs:

export default {
  "**/*.{ts,js,mjs}": () => "oxlint ."
}

This will lint the whole project.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@adoin
Comment options

@Boshen
Comment options

Answer selected by adoin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants