diff --git a/eslint.config.js b/eslint.config.js index 487d3440..73edff5d 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -83,6 +83,20 @@ export default [ 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'error', + // The build does not run React Compiler, so these rules report advice about a compiler + // that never runs. Keep the two rules above, which catch real bugs. + 'react-hooks/set-state-in-effect': 'off', + 'react-hooks/set-state-in-render': 'off', + 'react-hooks/refs': 'off', + 'react-hooks/immutability': 'off', + 'react-hooks/incompatible-library': 'off', + 'react-hooks/preserve-manual-memoization': 'off', + 'react-hooks/purity': 'off', + 'react-hooks/use-memo': 'off', + + // Genuine shift and mask work in discordCollectibles.ts and cryptE2ERoomKeys.js. + 'no-bitwise': 'off', + '@typescript-eslint/no-unused-vars': 'error', '@typescript-eslint/no-shadow': 'error', },