Skip to content

Commit cf88408

Browse files
authored
[eprh] Temporarily disable compiler rules (facebook#34649)
Temporarily disables the compiler rules in eslint-plugin-react-hooks. Will revert this later.
1 parent 57b16e3 commit cf88408

File tree

1 file changed

+0
-17
lines changed
  • packages/eslint-plugin-react-hooks/src

1 file changed

+0
-17
lines changed

packages/eslint-plugin-react-hooks/src/index.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,18 @@
77
import type {Linter, Rule} from 'eslint';
88

99
import ExhaustiveDeps from './rules/ExhaustiveDeps';
10-
import {
11-
allRules,
12-
mapErrorSeverityToESlint,
13-
recommendedRules,
14-
} from './shared/ReactCompiler';
1510
import RulesOfHooks from './rules/RulesOfHooks';
1611

1712
// All rules
1813
const rules = {
1914
'exhaustive-deps': ExhaustiveDeps,
2015
'rules-of-hooks': RulesOfHooks,
21-
...Object.fromEntries(
22-
Object.entries(allRules).map(([name, config]) => [name, config.rule])
23-
),
2416
} satisfies Record<string, Rule.RuleModule>;
2517

2618
// Config rules
2719
const ruleConfigs = {
2820
'react-hooks/rules-of-hooks': 'error',
2921
'react-hooks/exhaustive-deps': 'warn',
30-
// Compiler rules
31-
...Object.fromEntries(
32-
Object.entries(recommendedRules).map(([name, ruleConfig]) => {
33-
return [
34-
'react-hooks/' + name,
35-
mapErrorSeverityToESlint(ruleConfig.severity),
36-
];
37-
}),
38-
),
3922
} satisfies Linter.RulesRecord;
4023

4124
const plugin = {

0 commit comments

Comments
 (0)