Skip to content

Commit

Permalink
fix: provide .gitignore to oxlint to avoid linting node_modules insta…
Browse files Browse the repository at this point in the history
…lled by npm

Fixes vuejs/create-vue#604
  • Loading branch information
haoqunjiang committed Nov 8, 2024
1 parent 2ff7d38 commit 298f241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default function createConfig({
},
],
})
pkg.scripts['lint:oxlint'] = 'oxlint . --fix -D correctness'
pkg.scripts['lint:oxlint'] = 'oxlint . --fix -D correctness --ignore-path .gitignore'
pkg.scripts['lint:eslint'] = 'eslint . --fix'
pkg.scripts.lint = 'run-s lint:*'
} else {
Expand Down

0 comments on commit 298f241

Please sign in to comment.