@slashnephy/eslint-config 2.0.30 → 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 +2 -2
- package/src/framework/react.js +1 -1
- package/src/framework/react.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slashnephy/eslint-config",
|
|
3
|
-
"version": "2.0.
|
|
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.
|
|
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",
|
package/src/framework/react.js
CHANGED
|
@@ -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': '
|
|
66
|
+
'react/jsx-no-bind': 'warn',
|
|
67
67
|
'react/function-component-definition': [
|
|
68
68
|
'error',
|
|
69
69
|
{
|
package/src/framework/react.ts
CHANGED
|
@@ -81,7 +81,7 @@ module.exports = {
|
|
|
81
81
|
// defaultProps を使わない
|
|
82
82
|
'react/require-default-props': 'off',
|
|
83
83
|
// useCallback でコールバックを宣言させる
|
|
84
|
-
'react/jsx-no-bind': '
|
|
84
|
+
'react/jsx-no-bind': 'warn',
|
|
85
85
|
// コンポーネントの宣言を function Component() {} に強制
|
|
86
86
|
'react/function-component-definition': [
|
|
87
87
|
'error',
|