Skip to content

Commit 1da77bd

Browse files
renovate[bot]danez
andauthored
chore(deps): update dependency eslint-config-next to v16 (#1041)
* chore(deps): update dependency eslint-config-next to v16 * fix lint --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Tschinder <231804+danez@users.noreply.github.com>
1 parent 22b0303 commit 1da77bd

File tree

3 files changed

+74
-43
lines changed

3 files changed

+74
-43
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@vitest/coverage-v8": "4.0.18",
2525
"cpy": "12.1.0",
2626
"eslint": "9.39.2",
27-
"eslint-config-next": "15.5.11",
27+
"eslint-config-next": "16.1.6",
2828
"eslint-config-prettier": "10.1.8",
2929
"eslint-plugin-prettier": "5.5.5",
3030
"execa": "9.6.1",

packages/website/eslint.config.mjs

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
1-
import path from 'node:path';
2-
import { globalIgnores } from 'eslint/config';
3-
import { fileURLToPath } from 'node:url';
4-
import { FlatCompat } from '@eslint/eslintrc';
5-
import tseslint from 'typescript-eslint';
6-
import baseConfig from '../../eslint.config.mjs';
1+
import { defineConfig, globalIgnores } from 'eslint/config';
2+
import nextVitals from 'eslint-config-next/core-web-vitals';
3+
import nextTs from 'eslint-config-next/typescript';
74

8-
const __filename = fileURLToPath(import.meta.url);
9-
const __dirname = path.dirname(__filename);
10-
const compat = new FlatCompat({
11-
baseDirectory: __dirname,
12-
});
13-
14-
export default tseslint.config([
15-
globalIgnores(['**/.next/', 'next-env.d.ts', '**/_pagefind/']),
16-
...baseConfig,
17-
...compat.config({
18-
extends: ['next/core-web-vitals'],
5+
const eslintConfig = defineConfig([
6+
...nextVitals,
7+
...nextTs,
8+
{
199
settings: {
2010
next: {
21-
rootDir: __dirname,
11+
rootDir: 'packages/website/',
2212
},
2313
},
2414
rules: {
2515
'import/no-anonymous-default-export': 'off',
2616
},
27-
}),
17+
},
18+
// Override default ignores of eslint-config-next.
19+
globalIgnores([
20+
// Default ignores of eslint-config-next:
21+
'.next/**',
22+
'out/**',
23+
'build/**',
24+
'next-env.d.ts',
25+
'public/_pagefind/**',
26+
]),
2827
]);
28+
29+
export default eslintConfig;

pnpm-lock.yaml

Lines changed: 53 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)