@storm-software/eslint 0.25.0 → 0.26.0
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/preset.mjs +5 -3
- package/package.json +1 -1
package/dist/preset.mjs
CHANGED
|
@@ -765,7 +765,7 @@ const config$2 = {
|
|
|
765
765
|
"react/forbid-dom-props": ["off", { forbid: [] }],
|
|
766
766
|
// Validate closing bracket location in JSX
|
|
767
767
|
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-closing-bracket-location.md
|
|
768
|
-
"react/jsx-closing-bracket-location": ["error", "
|
|
768
|
+
"react/jsx-closing-bracket-location": ["error", "after-props"],
|
|
769
769
|
// Validate closing tag location in JSX
|
|
770
770
|
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-closing-tag-location.md
|
|
771
771
|
"react/jsx-closing-tag-location": "error",
|
|
@@ -775,9 +775,9 @@ const config$2 = {
|
|
|
775
775
|
// Enforce event handler naming conventions in JSX
|
|
776
776
|
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-handler-names.md
|
|
777
777
|
"react/jsx-handler-names": [
|
|
778
|
-
"
|
|
778
|
+
"error",
|
|
779
779
|
{
|
|
780
|
-
eventHandlerPrefix: "
|
|
780
|
+
eventHandlerPrefix: "on",
|
|
781
781
|
eventHandlerPropPrefix: "on"
|
|
782
782
|
}
|
|
783
783
|
],
|
|
@@ -1228,6 +1228,8 @@ function stormPreset(options = {
|
|
|
1228
1228
|
"unicorn/no-await-expression-member": 0,
|
|
1229
1229
|
"unicorn/no-useless-undefined": 0,
|
|
1230
1230
|
"unicorn/no-array-push-push": 0,
|
|
1231
|
+
"unicorn/no-array-reduce": 0,
|
|
1232
|
+
"unicorn/no-useless-switch-case": 0,
|
|
1231
1233
|
"@typescript-eslint/no-explicit-any": 0,
|
|
1232
1234
|
"@typescript-eslint/no-empty-function": 0,
|
|
1233
1235
|
"@typescript-eslint/no-var-requires": 0,
|
package/package.json
CHANGED