Skip to content

Commit

Permalink
Merge pull request #146 from hatena/fix-next-strict
Browse files Browse the repository at this point in the history
next: "strict" での設定ミスを修正
  • Loading branch information
susisu authored Oct 7, 2024
2 parents 43f339e + 3a59530 commit 79abd3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configtest/next/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -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 },
Expand Down
2 changes: 1 addition & 1 deletion lib/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 : {}),
},
},
],
Expand Down

0 comments on commit 79abd3c

Please sign in to comment.