@@ -14,13 +14,13 @@ export const [config] = compat.config({
1414 } ,
1515 overrides : [
1616 {
17- files : [ '**/ next-env.d.ts' ] ,
17+ files : [ 'next-env.d.ts' ] ,
1818 rules : {
1919 'unicorn/prevent-abbreviations' : 'off' , // next-env.d.ts is a Next.js convention
2020 } ,
2121 } ,
2222 {
23- files : [ '**/ src/app/**/*.ts' , '**/ src/app/**/*.tsx' , '**/ src/pages/**/*.ts' , '**/ src/pages/**/*.tsx' ] ,
23+ files : [ 'src/app/**/*.ts' , 'src/app/**/*.tsx' , 'src/pages/**/*.ts' , 'src/pages/**/*.tsx' ] ,
2424 rules : {
2525 'react/function-component-definition' : [
2626 // Allow components as function declarations in Next.js App and Page components for shorthand default exports
@@ -33,19 +33,19 @@ export const [config] = compat.config({
3333 } ,
3434 } ,
3535 {
36- files : [ '**/src/ app/**/layout.tsx' , '**/ src/**/layouts/**/*.tsx' ] ,
36+ files : [ 'app/**/layout.tsx' , 'src/**/layouts/**/*.tsx' ] ,
3737 rules : {
3838 '@next/next/no-head-element' : 'off' , // Allow <head/> element in Next.js App layouts
3939 } ,
4040 } ,
4141 {
42- files : [ '**/ src/**/layouts/**/*.tsx' , '**/src/ pages/_app.tsx' , '**/ src/pages/_document.tsx' ] ,
42+ files : [ 'src/**/layouts/**/*.tsx' , 'rc/ pages/_app.tsx' , 'src/pages/_document.tsx' ] ,
4343 rules : {
4444 'react/jsx-props-no-spreading' : 'off' , // Allow spreading props in Next.js App layouts, _app.tsx and _document.tsx
4545 } ,
4646 } ,
4747 {
48- files : [ '**/ src/**/actions.ts' ] ,
48+ files : [ 'src/**/actions.ts' ] ,
4949 rules : {
5050 '@typescript-eslint/require-await' : 'off' , // Next.js Server Actions must be async but don't need to await
5151 } ,
0 commit comments