Skip to content

Commit

Permalink
feat: add buildFromOxlintConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Oct 30, 2024
1 parent 4dab02f commit c9999dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/build-from-oxlint-config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ const executeOxlintWithConfiguration = (
try {
oxlintOutput = execSync(`npx oxlint ${cliArguments.join(' ')}`, {
encoding: 'utf-8',
stdio: 'pipe',
});
} catch {
oxlintOutput = '';
Expand Down Expand Up @@ -243,6 +244,9 @@ describe('integration test with oxlint', () => {
},
// combination plugin + rule
{ plugins: ['vite'], rules: { eqeqeq: 'off' } },

// categorie change
{ categories: { correctness: 'off', nusery: 'warn' } },
// combination plugin + categires + rules
{
plugins: ['vite'],
Expand Down

0 comments on commit c9999dc

Please sign in to comment.