@ethang/eslint-config 18.4.6 → 18.4.7
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/eslint.config.js +9 -5
- package/package.json +1 -1
package/eslint.config.js
CHANGED
|
@@ -579,7 +579,7 @@ export default tseslint.config({
|
|
|
579
579
|
"stylistic/new-parens": "error",
|
|
580
580
|
"stylistic/newline-per-chained-call": "error",
|
|
581
581
|
"stylistic/no-confusing-arrow": "error",
|
|
582
|
-
"stylistic/no-extra-parens": "error",
|
|
582
|
+
"stylistic/no-extra-parens": ["error", "all", { ignoreJSX: "multi-line" }],
|
|
583
583
|
"stylistic/no-extra-semi": "error",
|
|
584
584
|
"stylistic/no-floating-decimal": "error",
|
|
585
585
|
"stylistic/no-mixed-operators": "error",
|
|
@@ -604,7 +604,11 @@ export default tseslint.config({
|
|
|
604
604
|
"stylistic/semi-spacing": "error",
|
|
605
605
|
"stylistic/semi-style": "error",
|
|
606
606
|
"stylistic/space-before-blocks": "error",
|
|
607
|
-
"stylistic/space-before-function-paren": "error",
|
|
607
|
+
"stylistic/space-before-function-paren": ["error", {
|
|
608
|
+
anonymous: "always",
|
|
609
|
+
named: "never",
|
|
610
|
+
asyncArrow: "always"
|
|
611
|
+
}],
|
|
608
612
|
"stylistic/space-in-parens": "error",
|
|
609
613
|
"stylistic/space-infix-ops": "error",
|
|
610
614
|
"stylistic/space-unary-ops": "error",
|
|
@@ -624,15 +628,15 @@ export default tseslint.config({
|
|
|
624
628
|
"stylistic/jsx-equals-spacing": "error",
|
|
625
629
|
"stylistic/jsx-first-prop-new-line": "error",
|
|
626
630
|
"stylistic/jsx-function-call-newline": "error",
|
|
627
|
-
"stylistic/jsx-indent-props": "error",
|
|
631
|
+
"stylistic/jsx-indent-props": ["error", 2],
|
|
628
632
|
"stylistic/jsx-max-props-per-line": "error",
|
|
629
|
-
"stylistic/jsx-newline": "error",
|
|
633
|
+
"stylistic/jsx-newline": ["error", { prevent: true }],
|
|
630
634
|
"stylistic/jsx-one-expression-per-line": "error",
|
|
631
635
|
"stylistic/jsx-pascal-case": "error",
|
|
632
636
|
"stylistic/jsx-props-no-multi-spaces": "error",
|
|
633
637
|
"stylistic/jsx-self-closing-comp": "error",
|
|
634
638
|
"stylistic/jsx-tag-spacing": "error",
|
|
635
|
-
"stylistic/jsx-wrap-multilines": "error",
|
|
639
|
+
"stylistic/jsx-wrap-multilines": ["error", { declaration: "parens-new-line" }],
|
|
636
640
|
"stylistic/member-delimiter-style": "error",
|
|
637
641
|
"stylistic/type-annotation-spacing": "error",
|
|
638
642
|
"stylistic/indent-binary-ops": "error",
|