File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
components/editor/editor/extensions Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1-
1+ /* eslint-disable @typescript-eslint/no-explicit-any */
22import React , {
33 useState ,
44 useEffect ,
@@ -231,11 +231,11 @@ const CommandList = ({
231231 range : any ;
232232} ) => {
233233 // Use items.length as key to reset selectedIndex when items change
234-
234+ // eslint-disable-next-line react-hooks/exhaustive-deps
235235 const [ selectedIndex , setSelectedIndex ] = useState ( 0 ) ;
236236
237237 // Reset selection when items change - using useLayoutEffect to run synchronously
238-
238+ // eslint-disable-next-line react-hooks/set-state-in-effect
239239 useLayoutEffect ( ( ) => {
240240 setSelectedIndex ( 0 ) ;
241241 } , [ items ] ) ;
Original file line number Diff line number Diff line change 11/// <reference types="next" />
22/// <reference types="next/image-types/global" />
3- import "./.next/dev/ types/routes.d.ts" ;
3+ import "./.next/types/routes.d.ts" ;
44
55// NOTE: This file should not be edited
66// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
You can’t perform that action at this time.
0 commit comments