Skip to content

Commit

Permalink
Merge pull request #155 from hatena/update-rules
Browse files Browse the repository at this point in the history
ルールの更新
  • Loading branch information
susisu authored Dec 26, 2024
2 parents 86dd14e + da49895 commit 49dd10b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rules/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ const rules = {
'no-var': 2,
// 可読性のため、`let` でなくて良い場面では `const` を使うよう強制する
'prefer-const': 2,
// parseInt の第二引数を必須にする
'radix': 2,
// ASI による複雑怪奇な挙動に付き合わなくて済むよう、セミコロンを必須とする
'semi': [2, 'always'],
// 生の *.js では `'use strict';` を必須とする
Expand Down
2 changes: 2 additions & 0 deletions lib/rules/next.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

/** @type {import('eslint').Linter.RulesRecord} */
const rules = {
// フレームワークの規約上 default export を使うことも多いので無効化
'import/no-default-export': 'off',
'import/no-anonymous-default-export': 'warn',
'react/jsx-no-target-blank': 'off',
'react/no-unknown-property': 'off',
Expand Down

0 comments on commit 49dd10b

Please sign in to comment.