Clearer rule severity for React Compiler eslint plugin (#6870)

Using "off", "warn", "error" has been supported for many years now - I think this helps improve the readability :) 

I completely forgot what rule: 2 meant - had to find it at 

https://eslint.org/docs/latest/use/configure/rules
This commit is contained in:
Shrey Sudhir
2024-05-17 02:37:45 +10:00
committed by GitHub
parent fa19b7fc83
commit 8d69e6ebf9

View File

@@ -121,7 +121,7 @@ module.exports = {
'eslint-plugin-react-compiler',
],
rules: {
'react-compiler/react-compiler': 2,
'react-compiler/react-compiler': "error",
},
}
```