mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-24 12:07:58 +02:00
chore: add eslint-plugin-react-compiler
(#10969)
* install ESLint plugin * fix eslint CodeBlockLine error * eslint * eslint * eslint * refactor: apply lint autofix * empty --------- Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
This commit is contained in:
parent
d33004da1e
commit
15b0ef6d13
12 changed files with 133 additions and 58 deletions
2
.eslintrc.js
vendored
2
.eslintrc.js
vendored
|
@ -60,6 +60,7 @@ module.exports = {
|
|||
},
|
||||
reportUnusedDisableDirectives: true,
|
||||
plugins: [
|
||||
'react-compiler',
|
||||
'react-hooks',
|
||||
'header',
|
||||
'jest',
|
||||
|
@ -68,6 +69,7 @@ module.exports = {
|
|||
'@docusaurus',
|
||||
],
|
||||
rules: {
|
||||
'react-compiler/react-compiler': ERROR,
|
||||
'react/jsx-uses-react': OFF, // JSX runtime: automatic
|
||||
'react/react-in-jsx-scope': OFF, // JSX runtime: automatic
|
||||
'array-callback-return': WARNING,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue