Skip to content

Commit

Permalink
Add react compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
printfn committed Dec 6, 2024
1 parent 50b517b commit 8a3ae7a
Show file tree
Hide file tree
Showing 4 changed files with 874 additions and 286 deletions.
3 changes: 3 additions & 0 deletions web/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import globals from 'globals';
import reactHooks from 'eslint-plugin-react-hooks';
import reactRefresh from 'eslint-plugin-react-refresh';
import tseslint from 'typescript-eslint';
import reactCompiler from 'eslint-plugin-react-compiler';

/** @type any */
const reactHooksPlugin = reactHooks;
Expand All @@ -29,9 +30,11 @@ export default tseslint.config(
},
plugins: {
'react-hooks': reactHooksPlugin,
'react-compiler': reactCompiler,
},
rules: {
...reactHooksRules,
'react-compiler/react-compiler': 'error',
'@typescript-eslint/promise-function-async': 'error',
},
},
Expand Down
Loading

0 comments on commit 8a3ae7a

Please sign in to comment.