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 c9999dc commit dfd914e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/build-from-oxlint-config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ const executeOxlintWithConfiguration = (
'--silent',
];

// --disabled-<foo>-plugin can be disabled after oxc-project/oxc#6896
// --disabled-<foo>-plugin can be removed after oxc-project/oxc#6896
if (config.plugins !== undefined) {
['typescript', 'unicorn', 'react'].forEach((plugin) => {
if (!config.plugins!.includes(plugin)) {
Expand Down Expand Up @@ -257,7 +257,7 @@ describe('integration test with oxlint', () => {
{
categories: {
correctness: 'warn',
nursery: 'warn',
nursery: 'off', // enable ofter oxc-project/oxc#7073
pedantic: 'warn',
perf: 'warn',
restriction: 'warn',
Expand All @@ -280,6 +280,7 @@ describe('integration test with oxlint', () => {
'promise',
'jest',
'vitest',
'tree_shaking',
],
},
// everything on
Expand All @@ -297,10 +298,11 @@ describe('integration test with oxlint', () => {
'promise',
'jest',
'vitest',
'tree_shaking',
],
categories: {
correctness: 'warn',
nursery: 'warn',
nursery: 'off', // enable ofter oxc-project/oxc#7073
pedantic: 'warn',
perf: 'warn',
restriction: 'warn',
Expand Down

0 comments on commit dfd914e

Please sign in to comment.