Skip to content

Commit

Permalink
Enable eslint-plugin-react-compiler rule
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed May 20, 2024
1 parent 879f56f commit d18f164
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/eslint-plugin/configs/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ module.exports = {
version: 'detect',
},
},
plugins: [ '@wordpress', 'react', 'react-hooks' ],
plugins: [
'@wordpress',
'eslint-plugin-react-compiler',
'react',
'react-hooks',
],
rules: {
'@wordpress/no-unused-vars-before-return': [
'error',
Expand All @@ -34,6 +39,7 @@ module.exports = {
'react/no-children-prop': 'off',
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
'react-compiler/react-compiler': 'error',
'react-hooks/exhaustive-deps': [
'warn',
{
Expand Down

0 comments on commit d18f164

Please sign in to comment.