File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import { fileURLToPath } from 'url';
1616 */
1717
1818const tsconfigRootDir = fileURLToPath ( new URL ( '.' , import . meta. url ) ) ;
19+ const nextPluginAny = nextPlugin as any ;
1920
2021export default defineConfig (
2122 // register all of the plugins up-front
@@ -26,7 +27,7 @@ export default defineConfig(
2627 'simple-import-sort' : simpleImportSortPlugin ,
2728 '@typescript-eslint' : tsEslint . plugin ,
2829 react,
29- '@next/next' : nextPlugin ,
30+ '@next/next' : nextPluginAny ,
3031 } ,
3132 } ,
3233 {
@@ -106,8 +107,8 @@ export default defineConfig(
106107 } ,
107108 ] ,
108109 // Next.js
109- ...nextPlugin . configs . recommended . rules ,
110- ...nextPlugin . configs [ 'core-web-vitals' ] . rules ,
110+ ...nextPluginAny . configs . recommended . rules ,
111+ ...nextPluginAny . configs [ 'core-web-vitals' ] . rules ,
111112 '@next/next/no-sync-scripts' : 'warn' ,
112113 } ,
113114 } ,
You can’t perform that action at this time.
0 commit comments