Skip to content

Commit d11cdf4

Browse files
committed
Revert "Update React compiler and install eslint plugin (#7428)"
This reverts commit 316230a.
1 parent ae6e7f5 commit d11cdf4

File tree

6 files changed

+122
-345
lines changed

6 files changed

+122
-345
lines changed

.eslintrc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
"root": true,
33
"extends": "next/core-web-vitals",
44
"parser": "@typescript-eslint/parser",
5-
"plugins": ["@typescript-eslint", "eslint-plugin-react-compiler"],
5+
"plugins": ["@typescript-eslint"],
66
"rules": {
77
"no-unused-vars": "off",
8-
"@typescript-eslint/no-unused-vars": ["error", {"varsIgnorePattern": "^_"}],
8+
"@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "^_" }],
99
"react-hooks/exhaustive-deps": "error",
10-
"react/no-unknown-property": ["error", {"ignore": ["meta"]}],
11-
"react-compiler/react-compiler": "error"
10+
"react/no-unknown-property": ["error", { "ignore": ["meta"] }]
1211
},
1312
"env": {
1413
"node": true,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"@docsearch/react": "^3.6.1",
3333
"@headlessui/react": "^1.7.0",
3434
"@radix-ui/react-context-menu": "^2.1.5",
35+
"babel-plugin-react-compiler": "0.0.0-experimental-696af53-20240625",
3536
"body-scroll-lock": "^3.1.3",
3637
"classnames": "^2.2.6",
3738
"date-fns": "^2.16.1",
@@ -73,7 +74,6 @@
7374
"eslint-plugin-import": "2.x",
7475
"eslint-plugin-jsx-a11y": "6.x",
7576
"eslint-plugin-react": "7.x",
76-
"eslint-plugin-react-compiler": "^19.0.0-beta-e552027-20250112",
7777
"eslint-plugin-react-hooks": "^0.0.0-experimental-fabef7a6b-20221215",
7878
"fs-extra": "^9.0.1",
7979
"globby": "^11.0.1",

src/components/Layout/Sidebar/SidebarRouteTree.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ function CollapseWrapper({
3838
// Disable pointer events while animating.
3939
const isExpandedRef = useRef(isExpanded);
4040
if (typeof window !== 'undefined') {
41-
// eslint-disable-next-line react-compiler/react-compiler
4241
// eslint-disable-next-line react-hooks/rules-of-hooks
4342
useLayoutEffect(() => {
4443
const wasExpanded = isExpandedRef.current;

src/components/MDX/Sandpack/CustomPreset.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export const CustomPreset = memo(function CustomPreset({
2828
const {activeFile} = sandpack;
2929
const lineCountRef = useRef<{[key: string]: number}>({});
3030
if (!lineCountRef.current[activeFile]) {
31-
// eslint-disable-next-line react-compiler/react-compiler
3231
lineCountRef.current[activeFile] = code.split('\n').length;
3332
}
3433
const lineCount = lineCountRef.current[activeFile];

src/components/MDX/Sandpack/Preview.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Copyright (c) Facebook, Inc. and its affiliates.
33
*/
44

5-
// eslint-disable-next-line react-compiler/react-compiler
65
/* eslint-disable react-hooks/exhaustive-deps */
76
import {useRef, useState, useEffect, useMemo, useId} from 'react';
87
import {useSandpack, SandpackStack} from '@codesandbox/sandpack-react/unstyled';

0 commit comments

Comments
 (0)