feat: migrate to ESLint flat config (eslint.config.js)
- Created eslint.config.js using the new flat config format - Removed .eslintrc.json (old format no longer supported in ESLint v9+) - Maintained same configuration as before (next/core-web-vitals, next/typescript) - Kept same ignore patterns
This commit is contained in:
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": ["next/core-web-vitals", "next/typescript"],
|
|
||||||
"ignorePatterns": [
|
|
||||||
".next",
|
|
||||||
"out",
|
|
||||||
"build",
|
|
||||||
"next-env.d.ts",
|
|
||||||
"src/app/test-api/**"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import next from 'eslint-config-next';
|
||||||
|
|
||||||
|
export default [
|
||||||
|
{
|
||||||
|
ignores: [
|
||||||
|
'.next',
|
||||||
|
'out',
|
||||||
|
'build',
|
||||||
|
'next-env.d.ts',
|
||||||
|
'src/app/test-api/**',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
...next,
|
||||||
|
];
|
||||||
Reference in New Issue
Block a user