@aiou/eslint-config 2.0.0 → 2.0.1
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/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3612,10 +3612,10 @@ const react = () => {
|
|
|
3612
3612
|
"react-web-api": plugins["@eslint-react/web-api"]
|
|
3613
3613
|
},
|
|
3614
3614
|
rules: {
|
|
3615
|
-
"
|
|
3616
|
-
"react/no-
|
|
3617
|
-
"react/no-unknown-property": "off",
|
|
3618
|
-
"react/
|
|
3615
|
+
...pluginReact__default.default.configs["recommended-typescript"].rules,
|
|
3616
|
+
"react/no-prop-types": "error",
|
|
3617
|
+
"react-dom/no-unknown-property": "off",
|
|
3618
|
+
"react/avoid-shorthand-boolean": ["error", "always"],
|
|
3619
3619
|
// https://github.com/ArnaudBarre/eslint-plugin-react-refresh
|
|
3620
3620
|
"react-refresh/only-export-components": "warn"
|
|
3621
3621
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -3582,10 +3582,10 @@ const react = () => {
|
|
|
3582
3582
|
"react-web-api": plugins["@eslint-react/web-api"]
|
|
3583
3583
|
},
|
|
3584
3584
|
rules: {
|
|
3585
|
-
"
|
|
3586
|
-
"react/no-
|
|
3587
|
-
"react/no-unknown-property": "off",
|
|
3588
|
-
"react/
|
|
3585
|
+
...pluginReact.configs["recommended-typescript"].rules,
|
|
3586
|
+
"react/no-prop-types": "error",
|
|
3587
|
+
"react-dom/no-unknown-property": "off",
|
|
3588
|
+
"react/avoid-shorthand-boolean": ["error", "always"],
|
|
3589
3589
|
// https://github.com/ArnaudBarre/eslint-plugin-react-refresh
|
|
3590
3590
|
"react-refresh/only-export-components": "warn"
|
|
3591
3591
|
}
|