mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-08-25 16:05:39 -04:00
test the new react compiler (https://react.dev/learn/react-compiler)
This commit is contained in:
+2
-16
@@ -16,7 +16,7 @@ const compat = new FlatCompat({
|
||||
export default [
|
||||
{ ignores: ["README.md", ".next", ".vercel", "node_modules"] },
|
||||
...compat.config({
|
||||
plugins: ["css-modules"],
|
||||
plugins: ["react-compiler", "css-modules"],
|
||||
extends: ["eslint:recommended", "next/core-web-vitals", "next/typescript", "plugin:css-modules/recommended"],
|
||||
}),
|
||||
...eslintCustomConfig,
|
||||
@@ -38,20 +38,7 @@ export default [
|
||||
camelcase: "off",
|
||||
"@typescript-eslint/ban-ts-comment": "off",
|
||||
"@typescript-eslint/no-explicit-any": "warn",
|
||||
"react/no-unescaped-entities": "off",
|
||||
"react/jsx-boolean-value": "error",
|
||||
"react/jsx-wrap-multilines": [
|
||||
"error",
|
||||
{
|
||||
arrow: "parens-new-line",
|
||||
assignment: "parens-new-line",
|
||||
condition: "parens-new-line",
|
||||
declaration: "parens-new-line",
|
||||
logical: "parens-new-line",
|
||||
prop: "ignore",
|
||||
return: "parens-new-line",
|
||||
},
|
||||
],
|
||||
"react-compiler/react-compiler": "error",
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -63,7 +50,6 @@ export default [
|
||||
"mdx/remark": "warn",
|
||||
"mdx/code-blocks": "off",
|
||||
"react/jsx-no-undef": "off", // components are injected automatically from mdx-components.ts
|
||||
"react/no-unescaped-entities": "off",
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user