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 : {}), }, }, ],