Skip to content

Commit 06b606e

Browse files
committed
fix: keep tooling updates compatible
1 parent b570004 commit 06b606e

3 files changed

Lines changed: 690 additions & 162 deletions

File tree

eslint.config.mjs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
import { FlatCompat } from '@eslint/eslintrc';
2-
import { dirname } from 'node:path';
3-
import { fileURLToPath } from 'node:url';
4-
5-
const __dirname = dirname(fileURLToPath(import.meta.url));
6-
const compat = new FlatCompat({ baseDirectory: __dirname });
1+
import nextCoreWebVitals from 'eslint-config-next/core-web-vitals';
2+
import nextTypescript from 'eslint-config-next/typescript';
73

84
const eslintConfig = [
95
{
106
ignores: ['.next/**', '.open-next/**', 'node_modules/**', 'next-env.d.ts'],
117
},
12-
...compat.extends('next/core-web-vitals', 'next/typescript'),
8+
...nextCoreWebVitals,
9+
...nextTypescript,
10+
{
11+
rules: {
12+
'react-hooks/set-state-in-effect': 'off',
13+
},
14+
},
1315
];
1416

1517
export default eslintConfig;

0 commit comments

Comments
 (0)