From 3a59530bee9d2294559fe02f528d8cee469e09a9 Mon Sep 17 00:00:00 2001 From: Susisu Date: Mon, 7 Oct 2024 10:51:05 +0900 Subject: [PATCH] =?UTF-8?q?next:=20"strict"=20=E3=81=A7=E3=81=AE=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A=E3=83=9F=E3=82=B9=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configtest/next/eslint.config.mjs | 2 +- lib/config/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configtest/next/eslint.config.mjs b/configtest/next/eslint.config.mjs index 9e9281a..0aeaea3 100644 --- a/configtest/next/eslint.config.mjs +++ b/configtest/next/eslint.config.mjs @@ -1,7 +1,7 @@ import config from '@hatena/eslint-config-hatena/flat'; import globals from 'globals'; -export default config({ next: true }, [ +export default config({ next: 'strict' }, [ { languageOptions: { globals: { ...globals.node }, diff --git a/lib/config/index.js b/lib/config/index.js index 0819285..317f79f 100644 --- a/lib/config/index.js +++ b/lib/config/index.js @@ -140,7 +140,7 @@ function config(options, configs) { { rules: { ...nextPlugin.configs.recommended.rules, - ...(next === 'strict' ? { rules: nextPlugin.configs['core-web-vitals'].rules } : {}), + ...(next === 'strict' ? nextPlugin.configs['core-web-vitals'].rules : {}), }, }, ],