Skip to content

Commit

Permalink
test: remove workaround for disabling plugin (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix authored Nov 20, 2024
1 parent 7118906 commit 774b632
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/build-from-oxlint-config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,6 @@ const executeOxlintWithConfiguration = (
'--silent',
];

// --disabled-<foo>-plugin can be removed after oxc-project/oxc#6896
if (config.plugins !== undefined) {
for (const plugin of ['typescript', 'unicorn', 'react']) {
if (!config.plugins!.includes(plugin)) {
cliArguments.push(`--disable-${plugin}-plugin`);
}
}
}

try {
oxlintOutput = execSync(`npx oxlint ${cliArguments.join(' ')}`, {
encoding: 'utf8',
Expand Down

0 comments on commit 774b632

Please sign in to comment.