Skip to content

Commit 56a9728

Browse files
fix: Fix an issue with NextJS ESLint config
1 parent 5b090e8 commit 56a9728

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/fuzzy-worlds-stop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tcd-devkit/eslint-config-next': patch
3+
---
4+
5+
Fix an issue with NextJS ESLint config

packages/eslint/eslint-config-next/src/next.linter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { configs as nextPluginConfigs } from '@next/eslint-plugin-next';
1+
import eslintPluginNext from '@next/eslint-plugin-next';
22
import { defineConfig } from 'eslint/config';
33

4-
const nextCoreWebVitals = nextPluginConfigs['core-web-vitals'];
4+
const nextCoreWebVitals = eslintPluginNext.configs['core-web-vitals'];
55

66
export const nextConfig = defineConfig({
77
name: '@tcd-devkit/eslint-config-next',

0 commit comments

Comments
 (0)