@slashnephy/eslint-config 2.0.29 → 2.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slashnephy/eslint-config",
3
- "version": "2.0.29",
3
+ "version": "2.0.31",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
6
  "author": "SlashNephy <spica@starry.blue> (https://spica.starry.blue/)",
@@ -76,7 +76,7 @@
76
76
  "eslint": "^8"
77
77
  },
78
78
  "devDependencies": {
79
- "@slashnephy/prettier-config": "1.0.18",
79
+ "@slashnephy/prettier-config": "1.0.20",
80
80
  "@types/eslint": "8.44.3",
81
81
  "@types/node": "20.8.2",
82
82
  "concurrently": "8.2.1",
@@ -125,6 +125,5 @@ module.exports = {
125
125
  argsIgnorePattern: '^_',
126
126
  },
127
127
  ],
128
- 'no-implicit-coercion': 'error',
129
128
  },
130
129
  };
@@ -183,7 +183,5 @@ module.exports = {
183
183
  argsIgnorePattern: '^_',
184
184
  },
185
185
  ],
186
- // '1' + 2 を禁止
187
- 'no-implicit-coercion': 'error',
188
186
  },
189
187
  } satisfies Linter.Config
@@ -63,7 +63,7 @@ module.exports = {
63
63
  'react/jsx-props-no-spreading': 'off',
64
64
  'react/jsx-no-useless-fragment': 'off',
65
65
  'react/require-default-props': 'off',
66
- 'react/jsx-no-bind': 'error',
66
+ 'react/jsx-no-bind': 'warn',
67
67
  'react/function-component-definition': [
68
68
  'error',
69
69
  {
@@ -81,7 +81,7 @@ module.exports = {
81
81
  // defaultProps を使わない
82
82
  'react/require-default-props': 'off',
83
83
  // useCallback でコールバックを宣言させる
84
- 'react/jsx-no-bind': 'error',
84
+ 'react/jsx-no-bind': 'warn',
85
85
  // コンポーネントの宣言を function Component() {} に強制
86
86
  'react/function-component-definition': [
87
87
  'error',