Skip to content

Commit

Permalink
test: readd react-hooks alias test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Dec 7, 2024
1 parent fe0537d commit 1f5d16c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build-from-oxlint-config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ describe('buildFromOxlintConfig', () => {
'react_perf/jsx-no-new-array-as-prop': 'warn',
'nextjs/no-img-element': 'warn',
'jsx_a11y/alt-text': 'warn',
// 'react/rules-of-hooks': 'warn', -- rules are currently in nursery
'react/rules-of-hooks': 'warn',
// 'deepscan/xxx': 'warn',
},
});
Expand All @@ -151,7 +151,7 @@ describe('buildFromOxlintConfig', () => {
);
expect('@next/next/no-img-element' in configs[0].rules!).toBe(true);
expect('jsx-a11y/alt-text' in configs[0].rules!).toBe(true);
// expect('react-hooks/rules-of-hooks' in configs[0].rules!).toBe(true); -- rules are currently in nursery
expect('react-hooks/rules-of-hooks' in configs[0].rules!).toBe(true);
});

it('detects rules without plugin name', () => {
Expand Down

0 comments on commit 1f5d16c

Please sign in to comment.