File tree Expand file tree Collapse file tree 1 file changed +11
-21
lines changed Expand file tree Collapse file tree 1 file changed +11
-21
lines changed Original file line number Diff line number Diff line change 22
33import js from '@eslint/js' ;
44import ts from 'typescript-eslint' ;
5- import { dirname } from 'path' ;
6- import { fileURLToPath } from 'url' ;
7- import { FlatCompat } from '@eslint/eslintrc' ;
85import eslintConfigPrettier from 'eslint-config-prettier/flat' ;
96import oxlint from 'eslint-plugin-oxlint' ;
107// import pluginQuery from '@tanstack/eslint-plugin-query';
11- import { defineConfig } from 'eslint/config' ;
12-
13- const __filename = fileURLToPath ( import . meta. url ) ;
14- const __dirname = dirname ( __filename ) ;
15-
16- const compat = new FlatCompat ( {
17- baseDirectory : __dirname ,
18- } ) ;
8+ import { defineConfig , globalIgnores } from 'eslint/config' ;
9+ import nextVitals from 'eslint-config-next/core-web-vitals' ;
1910
2011const eslintConfig = defineConfig ( [
2112 js . configs . recommended ,
22- ...compat . extends (
23- 'next/core-web-vitals' /*, 'next/typescript'*/ /*added by ts below*/ ,
24- ) ,
13+ ...nextVitals ,
14+ globalIgnores ( [
15+ // Default ignores of eslint-config-next:
16+ '.next/**' ,
17+ 'out/**' ,
18+ 'build/**' ,
19+ 'next-env.d.ts' ,
20+ ] ) ,
2521 {
26- ignores : [
27- 'node_modules/**' ,
28- '.next/**' ,
29- 'out/**' ,
30- 'build/**' ,
31- 'next-env.d.ts' ,
32- ] ,
22+ ignores : [ 'node_modules/**' ] ,
3323 } ,
3424 ...ts . configs . strictTypeChecked ,
3525 ...ts . configs . stylisticTypeChecked ,
You can’t perform that action at this time.
0 commit comments