eslint-config-setup 0.2.7 → 0.3.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/configs/0b23ff88.js +2 -7
- package/dist/configs/196d687e.js +39 -60
- package/dist/configs/2f6f3a82.js +37 -55
- package/dist/configs/4eb62e57.js +2 -7
- package/dist/configs/52762a42.js +2 -7
- package/dist/configs/532f50a4.js +37 -55
- package/dist/configs/5a302873.js +37 -55
- package/dist/configs/6bc0d588.js +39 -60
- package/dist/configs/91e82988.js +37 -55
- package/dist/configs/c2fecd3d.js +2 -7
- package/dist/configs/d537b683.js +39 -60
- package/dist/configs/db69ebb6.js +39 -60
- package/dist/index.d.ts +2 -2
- package/dist/modules.d.ts +10 -11
- package/dist/modules.js +97 -114
- package/dist/modules.js.map +1 -1
- package/dist/oxlint-configs/78b40daa.json +4 -38
- package/dist/oxlint-configs/7ff0d87e.json +5 -4
- package/dist/oxlint-configs/85912bf0.json +5 -4
- package/dist/oxlint-configs/9dc42dc3.json +4 -38
- package/dist/oxlint-configs/d46cb9b7.json +5 -40
- package/dist/oxlint-configs/ef643c60.json +5 -40
- package/dist/{types-3d-g2_B9.d.ts → types-D227zLeg.d.ts} +1 -1
- package/package.json +4 -3
package/dist/configs/0b23ff88.js
CHANGED
|
@@ -13,7 +13,6 @@ import oxlintPlugin from "eslint-plugin-oxlint"
|
|
|
13
13
|
import packageJsonPlugin from "eslint-plugin-package-json"
|
|
14
14
|
import perfectionistPlugin from "eslint-plugin-perfectionist"
|
|
15
15
|
import playwrightPlugin from "eslint-plugin-playwright"
|
|
16
|
-
import reactPlugin from "eslint-plugin-react"
|
|
17
16
|
import regexpPlugin from "eslint-plugin-regexp"
|
|
18
17
|
import securityPlugin from "eslint-plugin-security"
|
|
19
18
|
import sonarjsPlugin from "eslint-plugin-sonarjs"
|
|
@@ -41,7 +40,6 @@ export default [
|
|
|
41
40
|
"jsx-a11y": jsxA11yPlugin,
|
|
42
41
|
"node": nodePlugin,
|
|
43
42
|
"perfectionist": perfectionistPlugin,
|
|
44
|
-
"react": reactPlugin,
|
|
45
43
|
"regexp": regexpPlugin,
|
|
46
44
|
"security": securityPlugin,
|
|
47
45
|
"sonarjs": sonarjsPlugin,
|
|
@@ -106,7 +104,7 @@ export default [
|
|
|
106
104
|
"allowExpressions": true,
|
|
107
105
|
"allowTypedFunctionExpressions": true,
|
|
108
106
|
"allowHigherOrderFunctions": true,
|
|
109
|
-
"
|
|
107
|
+
"allowIIFEs": true
|
|
110
108
|
}
|
|
111
109
|
],
|
|
112
110
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
@@ -699,8 +697,6 @@ export default [
|
|
|
699
697
|
"prefer-template": "error",
|
|
700
698
|
"preserve-caught-error": "error",
|
|
701
699
|
"radix": "error",
|
|
702
|
-
"react/jsx-no-bind": "error",
|
|
703
|
-
"react/no-multi-comp": "error",
|
|
704
700
|
"regexp/confusing-quantifier": "warn",
|
|
705
701
|
"regexp/control-character-escape": "error",
|
|
706
702
|
"regexp/match-any": "error",
|
|
@@ -795,7 +791,7 @@ export default [
|
|
|
795
791
|
"sonarjs/max-union-size": [
|
|
796
792
|
"error",
|
|
797
793
|
{
|
|
798
|
-
"
|
|
794
|
+
"threshold": 5
|
|
799
795
|
}
|
|
800
796
|
],
|
|
801
797
|
"sonarjs/no-async-constructor": "error",
|
|
@@ -893,7 +889,6 @@ export default [
|
|
|
893
889
|
"unicorn/prefer-at": "error",
|
|
894
890
|
"unicorn/prefer-date-now": "error",
|
|
895
891
|
"unicorn/prefer-default-parameters": "error",
|
|
896
|
-
"unicorn/prefer-early-return": "error",
|
|
897
892
|
"unicorn/prefer-export-from": [
|
|
898
893
|
"error",
|
|
899
894
|
{
|
package/dist/configs/196d687e.js
CHANGED
|
@@ -4,6 +4,7 @@ import * as mdxPlugin from "eslint-plugin-mdx"
|
|
|
4
4
|
import compatPlugin from "eslint-plugin-compat"
|
|
5
5
|
import cspellPlugin from "@cspell/eslint-plugin"
|
|
6
6
|
import deMorganPlugin from "eslint-plugin-de-morgan"
|
|
7
|
+
import eslintReactPlugin from "@eslint-react/eslint-plugin"
|
|
7
8
|
import globals from "globals"
|
|
8
9
|
import importXPlugin from "eslint-plugin-import-x"
|
|
9
10
|
import jsdocPlugin from "eslint-plugin-jsdoc"
|
|
@@ -16,12 +17,12 @@ import perfectionistPlugin from "eslint-plugin-perfectionist"
|
|
|
16
17
|
import playwrightPlugin from "eslint-plugin-playwright"
|
|
17
18
|
import reactEffectPlugin from "eslint-plugin-react-you-might-not-need-an-effect"
|
|
18
19
|
import reactHooksPlugin from "eslint-plugin-react-hooks"
|
|
19
|
-
import reactPlugin from "eslint-plugin-react"
|
|
20
20
|
import reactRefreshPlugin from "eslint-plugin-react-refresh"
|
|
21
21
|
import regexpPlugin from "eslint-plugin-regexp"
|
|
22
22
|
import securityPlugin from "eslint-plugin-security"
|
|
23
23
|
import sonarjsPlugin from "eslint-plugin-sonarjs"
|
|
24
24
|
import storybookPlugin from "eslint-plugin-storybook"
|
|
25
|
+
import stylisticPlugin from "@stylistic/eslint-plugin"
|
|
25
26
|
import testingLibraryPlugin from "eslint-plugin-testing-library"
|
|
26
27
|
import tseslint from "typescript-eslint"
|
|
27
28
|
import unicornPlugin from "eslint-plugin-unicorn"
|
|
@@ -37,6 +38,7 @@ export default [
|
|
|
37
38
|
name: "eslint-config-setup/base",
|
|
38
39
|
plugins: {
|
|
39
40
|
"@cspell": cspellPlugin,
|
|
41
|
+
"@stylistic": stylisticPlugin,
|
|
40
42
|
"@typescript-eslint": tseslint.plugin,
|
|
41
43
|
"compat": compatPlugin,
|
|
42
44
|
"de-morgan": deMorganPlugin,
|
|
@@ -45,9 +47,11 @@ export default [
|
|
|
45
47
|
"jsx-a11y": jsxA11yPlugin,
|
|
46
48
|
"node": nodePlugin,
|
|
47
49
|
"perfectionist": perfectionistPlugin,
|
|
48
|
-
"react":
|
|
50
|
+
"react": eslintReactPlugin,
|
|
51
|
+
"react-dom": eslintReactPlugin.configs.dom.plugins["@eslint-react/dom"],
|
|
49
52
|
"react-hooks": reactHooksPlugin,
|
|
50
53
|
"react-refresh": reactRefreshPlugin,
|
|
54
|
+
"react-web-api": eslintReactPlugin.configs["web-api"].plugins["@eslint-react/web-api"],
|
|
51
55
|
"react-you-might-not-need-an-effect": reactEffectPlugin,
|
|
52
56
|
"regexp": regexpPlugin,
|
|
53
57
|
"security": securityPlugin,
|
|
@@ -65,9 +69,6 @@ export default [
|
|
|
65
69
|
...globals.browser,
|
|
66
70
|
},
|
|
67
71
|
},
|
|
68
|
-
settings: {
|
|
69
|
-
react: { version: "detect" },
|
|
70
|
-
},
|
|
71
72
|
rules: {
|
|
72
73
|
"@cspell/spellchecker": [
|
|
73
74
|
"warn",
|
|
@@ -78,6 +79,14 @@ export default [
|
|
|
78
79
|
"autoFix": false
|
|
79
80
|
}
|
|
80
81
|
],
|
|
82
|
+
"@stylistic/jsx-curly-brace-presence": [
|
|
83
|
+
"error",
|
|
84
|
+
{
|
|
85
|
+
"props": "never",
|
|
86
|
+
"children": "never"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"@stylistic/jsx-self-closing-comp": "error",
|
|
81
90
|
"@typescript-eslint/adjacent-overload-signatures": "error",
|
|
82
91
|
"@typescript-eslint/array-type": [
|
|
83
92
|
"error",
|
|
@@ -120,7 +129,7 @@ export default [
|
|
|
120
129
|
"allowExpressions": true,
|
|
121
130
|
"allowTypedFunctionExpressions": true,
|
|
122
131
|
"allowHigherOrderFunctions": true,
|
|
123
|
-
"
|
|
132
|
+
"allowIIFEs": true
|
|
124
133
|
}
|
|
125
134
|
],
|
|
126
135
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
@@ -742,8 +751,15 @@ export default [
|
|
|
742
751
|
"prefer-template": "error",
|
|
743
752
|
"preserve-caught-error": "error",
|
|
744
753
|
"radix": "error",
|
|
754
|
+
"react-dom/no-dangerously-set-innerhtml": "warn",
|
|
755
|
+
"react-dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
756
|
+
"react-dom/no-missing-button-type": "error",
|
|
757
|
+
"react-dom/no-missing-iframe-sandbox": "error",
|
|
758
|
+
"react-dom/no-string-style-prop": "error",
|
|
759
|
+
"react-dom/no-unknown-property": "error",
|
|
760
|
+
"react-dom/no-unsafe-target-blank": "error",
|
|
761
|
+
"react-dom/no-void-elements-with-children": "error",
|
|
745
762
|
"react-hooks/exhaustive-deps": "error",
|
|
746
|
-
"react-hooks/react-compiler": "error",
|
|
747
763
|
"react-hooks/rules-of-hooks": "error",
|
|
748
764
|
"react-refresh/only-export-components": [
|
|
749
765
|
"warn",
|
|
@@ -751,6 +767,10 @@ export default [
|
|
|
751
767
|
"allowConstantExport": true
|
|
752
768
|
}
|
|
753
769
|
],
|
|
770
|
+
"react-web-api/no-leaked-event-listener": "error",
|
|
771
|
+
"react-web-api/no-leaked-interval": "error",
|
|
772
|
+
"react-web-api/no-leaked-resize-observer": "error",
|
|
773
|
+
"react-web-api/no-leaked-timeout": "error",
|
|
754
774
|
"react-you-might-not-need-an-effect/no-adjust-state-on-prop-change": "warn",
|
|
755
775
|
"react-you-might-not-need-an-effect/no-chain-state-updates": "error",
|
|
756
776
|
"react-you-might-not-need-an-effect/no-derived-state": "error",
|
|
@@ -760,63 +780,23 @@ export default [
|
|
|
760
780
|
"react-you-might-not-need-an-effect/no-pass-data-to-parent": "error",
|
|
761
781
|
"react-you-might-not-need-an-effect/no-pass-live-state-to-parent": "error",
|
|
762
782
|
"react-you-might-not-need-an-effect/no-reset-all-state-on-prop-change": "error",
|
|
763
|
-
"react/button-has-type": "error",
|
|
764
|
-
"react/function-component-definition": [
|
|
765
|
-
"error",
|
|
766
|
-
{
|
|
767
|
-
"namedComponents": "function-declaration",
|
|
768
|
-
"unnamedComponents": "arrow-function"
|
|
769
|
-
}
|
|
770
|
-
],
|
|
771
|
-
"react/hook-use-state": "error",
|
|
772
|
-
"react/iframe-missing-sandbox": "error",
|
|
773
|
-
"react/jsx-boolean-value": [
|
|
774
|
-
"error",
|
|
775
|
-
"never"
|
|
776
|
-
],
|
|
777
|
-
"react/jsx-curly-brace-presence": [
|
|
778
|
-
"error",
|
|
779
|
-
{
|
|
780
|
-
"props": "never",
|
|
781
|
-
"children": "never"
|
|
782
|
-
}
|
|
783
|
-
],
|
|
784
|
-
"react/jsx-key": [
|
|
785
|
-
"error",
|
|
786
|
-
{
|
|
787
|
-
"checkFragmentShorthand": true
|
|
788
|
-
}
|
|
789
|
-
],
|
|
790
|
-
"react/jsx-no-bind": "error",
|
|
791
783
|
"react/jsx-no-comment-textnodes": "error",
|
|
792
|
-
"react/jsx-
|
|
793
|
-
"react/jsx-no-duplicate-props": "error",
|
|
794
|
-
"react/jsx-no-leaked-render": "error",
|
|
795
|
-
"react/jsx-no-target-blank": "error",
|
|
796
|
-
"react/jsx-no-undef": "error",
|
|
797
|
-
"react/jsx-no-useless-fragment": [
|
|
798
|
-
"error",
|
|
799
|
-
{
|
|
800
|
-
"allowExpressions": true
|
|
801
|
-
}
|
|
802
|
-
],
|
|
803
|
-
"react/jsx-pascal-case": "error",
|
|
784
|
+
"react/jsx-shorthand-boolean": "error",
|
|
804
785
|
"react/no-access-state-in-setstate": "error",
|
|
805
786
|
"react/no-array-index-key": "error",
|
|
806
787
|
"react/no-children-prop": "error",
|
|
807
|
-
"react/no-
|
|
808
|
-
"react/no-danger-with-children": "error",
|
|
809
|
-
"react/no-deprecated": "error",
|
|
788
|
+
"react/no-context-provider": "error",
|
|
810
789
|
"react/no-direct-mutation-state": "error",
|
|
811
|
-
"react/no-
|
|
812
|
-
"react/no-
|
|
813
|
-
"react/no-
|
|
814
|
-
"react/no-
|
|
815
|
-
"react/no-
|
|
790
|
+
"react/no-duplicate-key": "error",
|
|
791
|
+
"react/no-forward-ref": "error",
|
|
792
|
+
"react/no-leaked-conditional-rendering": "error",
|
|
793
|
+
"react/no-missing-key": "error",
|
|
794
|
+
"react/no-nested-component-definitions": "error",
|
|
795
|
+
"react/no-unstable-context-value": "error",
|
|
796
|
+
"react/no-unstable-default-props": "error",
|
|
816
797
|
"react/no-unused-state": "error",
|
|
817
|
-
"react/
|
|
818
|
-
"react/
|
|
819
|
-
"react/void-dom-elements-no-children": "error",
|
|
798
|
+
"react/no-use-context": "error",
|
|
799
|
+
"react/no-useless-fragment": "error",
|
|
820
800
|
"regexp/confusing-quantifier": "warn",
|
|
821
801
|
"regexp/control-character-escape": "error",
|
|
822
802
|
"regexp/match-any": "error",
|
|
@@ -911,7 +891,7 @@ export default [
|
|
|
911
891
|
"sonarjs/max-union-size": [
|
|
912
892
|
"error",
|
|
913
893
|
{
|
|
914
|
-
"
|
|
894
|
+
"threshold": 5
|
|
915
895
|
}
|
|
916
896
|
],
|
|
917
897
|
"sonarjs/no-async-constructor": "error",
|
|
@@ -1009,7 +989,6 @@ export default [
|
|
|
1009
989
|
"unicorn/prefer-at": "error",
|
|
1010
990
|
"unicorn/prefer-date-now": "error",
|
|
1011
991
|
"unicorn/prefer-default-parameters": "error",
|
|
1012
|
-
"unicorn/prefer-early-return": "error",
|
|
1013
992
|
"unicorn/prefer-export-from": [
|
|
1014
993
|
"error",
|
|
1015
994
|
{
|
package/dist/configs/2f6f3a82.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import * as mdxPlugin from "eslint-plugin-mdx"
|
|
4
4
|
import cspellPlugin from "@cspell/eslint-plugin"
|
|
5
5
|
import deMorganPlugin from "eslint-plugin-de-morgan"
|
|
6
|
+
import eslintReactPlugin from "@eslint-react/eslint-plugin"
|
|
6
7
|
import globals from "globals"
|
|
7
8
|
import importXPlugin from "eslint-plugin-import-x"
|
|
8
9
|
import jsdocPlugin from "eslint-plugin-jsdoc"
|
|
@@ -15,12 +16,12 @@ import perfectionistPlugin from "eslint-plugin-perfectionist"
|
|
|
15
16
|
import playwrightPlugin from "eslint-plugin-playwright"
|
|
16
17
|
import reactEffectPlugin from "eslint-plugin-react-you-might-not-need-an-effect"
|
|
17
18
|
import reactHooksPlugin from "eslint-plugin-react-hooks"
|
|
18
|
-
import reactPlugin from "eslint-plugin-react"
|
|
19
19
|
import reactRefreshPlugin from "eslint-plugin-react-refresh"
|
|
20
20
|
import regexpPlugin from "eslint-plugin-regexp"
|
|
21
21
|
import securityPlugin from "eslint-plugin-security"
|
|
22
22
|
import sonarjsPlugin from "eslint-plugin-sonarjs"
|
|
23
23
|
import storybookPlugin from "eslint-plugin-storybook"
|
|
24
|
+
import stylisticPlugin from "@stylistic/eslint-plugin"
|
|
24
25
|
import testingLibraryPlugin from "eslint-plugin-testing-library"
|
|
25
26
|
import tseslint from "typescript-eslint"
|
|
26
27
|
import unicornPlugin from "eslint-plugin-unicorn"
|
|
@@ -36,6 +37,7 @@ export default [
|
|
|
36
37
|
name: "eslint-config-setup/base",
|
|
37
38
|
plugins: {
|
|
38
39
|
"@cspell": cspellPlugin,
|
|
40
|
+
"@stylistic": stylisticPlugin,
|
|
39
41
|
"@typescript-eslint": tseslint.plugin,
|
|
40
42
|
"de-morgan": deMorganPlugin,
|
|
41
43
|
"import": importXPlugin,
|
|
@@ -43,9 +45,11 @@ export default [
|
|
|
43
45
|
"jsx-a11y": jsxA11yPlugin,
|
|
44
46
|
"node": nodePlugin,
|
|
45
47
|
"perfectionist": perfectionistPlugin,
|
|
46
|
-
"react":
|
|
48
|
+
"react": eslintReactPlugin,
|
|
49
|
+
"react-dom": eslintReactPlugin.configs.dom.plugins["@eslint-react/dom"],
|
|
47
50
|
"react-hooks": reactHooksPlugin,
|
|
48
51
|
"react-refresh": reactRefreshPlugin,
|
|
52
|
+
"react-web-api": eslintReactPlugin.configs["web-api"].plugins["@eslint-react/web-api"],
|
|
49
53
|
"react-you-might-not-need-an-effect": reactEffectPlugin,
|
|
50
54
|
"regexp": regexpPlugin,
|
|
51
55
|
"security": securityPlugin,
|
|
@@ -64,9 +68,6 @@ export default [
|
|
|
64
68
|
...globals.node,
|
|
65
69
|
},
|
|
66
70
|
},
|
|
67
|
-
settings: {
|
|
68
|
-
react: { version: "detect" },
|
|
69
|
-
},
|
|
70
71
|
rules: {
|
|
71
72
|
"@cspell/spellchecker": [
|
|
72
73
|
"warn",
|
|
@@ -77,6 +78,14 @@ export default [
|
|
|
77
78
|
"autoFix": false
|
|
78
79
|
}
|
|
79
80
|
],
|
|
81
|
+
"@stylistic/jsx-curly-brace-presence": [
|
|
82
|
+
"error",
|
|
83
|
+
{
|
|
84
|
+
"props": "never",
|
|
85
|
+
"children": "never"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"@stylistic/jsx-self-closing-comp": "error",
|
|
80
89
|
"@typescript-eslint/adjacent-overload-signatures": "error",
|
|
81
90
|
"@typescript-eslint/array-type": [
|
|
82
91
|
"error",
|
|
@@ -496,8 +505,15 @@ export default [
|
|
|
496
505
|
"prefer-template": "error",
|
|
497
506
|
"preserve-caught-error": "error",
|
|
498
507
|
"radix": "error",
|
|
508
|
+
"react-dom/no-dangerously-set-innerhtml": "warn",
|
|
509
|
+
"react-dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
510
|
+
"react-dom/no-missing-button-type": "error",
|
|
511
|
+
"react-dom/no-missing-iframe-sandbox": "error",
|
|
512
|
+
"react-dom/no-string-style-prop": "error",
|
|
513
|
+
"react-dom/no-unknown-property": "error",
|
|
514
|
+
"react-dom/no-unsafe-target-blank": "error",
|
|
515
|
+
"react-dom/no-void-elements-with-children": "error",
|
|
499
516
|
"react-hooks/exhaustive-deps": "error",
|
|
500
|
-
"react-hooks/react-compiler": "error",
|
|
501
517
|
"react-hooks/rules-of-hooks": "error",
|
|
502
518
|
"react-refresh/only-export-components": [
|
|
503
519
|
"warn",
|
|
@@ -505,6 +521,10 @@ export default [
|
|
|
505
521
|
"allowConstantExport": true
|
|
506
522
|
}
|
|
507
523
|
],
|
|
524
|
+
"react-web-api/no-leaked-event-listener": "error",
|
|
525
|
+
"react-web-api/no-leaked-interval": "error",
|
|
526
|
+
"react-web-api/no-leaked-resize-observer": "error",
|
|
527
|
+
"react-web-api/no-leaked-timeout": "error",
|
|
508
528
|
"react-you-might-not-need-an-effect/no-adjust-state-on-prop-change": "warn",
|
|
509
529
|
"react-you-might-not-need-an-effect/no-chain-state-updates": "error",
|
|
510
530
|
"react-you-might-not-need-an-effect/no-derived-state": "error",
|
|
@@ -514,61 +534,23 @@ export default [
|
|
|
514
534
|
"react-you-might-not-need-an-effect/no-pass-data-to-parent": "error",
|
|
515
535
|
"react-you-might-not-need-an-effect/no-pass-live-state-to-parent": "error",
|
|
516
536
|
"react-you-might-not-need-an-effect/no-reset-all-state-on-prop-change": "error",
|
|
517
|
-
"react/button-has-type": "error",
|
|
518
|
-
"react/function-component-definition": [
|
|
519
|
-
"error",
|
|
520
|
-
{
|
|
521
|
-
"namedComponents": "function-declaration",
|
|
522
|
-
"unnamedComponents": "arrow-function"
|
|
523
|
-
}
|
|
524
|
-
],
|
|
525
|
-
"react/hook-use-state": "error",
|
|
526
|
-
"react/iframe-missing-sandbox": "error",
|
|
527
|
-
"react/jsx-boolean-value": [
|
|
528
|
-
"error",
|
|
529
|
-
"never"
|
|
530
|
-
],
|
|
531
|
-
"react/jsx-curly-brace-presence": [
|
|
532
|
-
"error",
|
|
533
|
-
{
|
|
534
|
-
"props": "never",
|
|
535
|
-
"children": "never"
|
|
536
|
-
}
|
|
537
|
-
],
|
|
538
|
-
"react/jsx-key": [
|
|
539
|
-
"error",
|
|
540
|
-
{
|
|
541
|
-
"checkFragmentShorthand": true
|
|
542
|
-
}
|
|
543
|
-
],
|
|
544
537
|
"react/jsx-no-comment-textnodes": "error",
|
|
545
|
-
"react/jsx-
|
|
546
|
-
"react/jsx-no-duplicate-props": "error",
|
|
547
|
-
"react/jsx-no-leaked-render": "error",
|
|
548
|
-
"react/jsx-no-target-blank": "error",
|
|
549
|
-
"react/jsx-no-undef": "error",
|
|
550
|
-
"react/jsx-no-useless-fragment": [
|
|
551
|
-
"error",
|
|
552
|
-
{
|
|
553
|
-
"allowExpressions": true
|
|
554
|
-
}
|
|
555
|
-
],
|
|
556
|
-
"react/jsx-pascal-case": "error",
|
|
538
|
+
"react/jsx-shorthand-boolean": "error",
|
|
557
539
|
"react/no-access-state-in-setstate": "error",
|
|
558
540
|
"react/no-array-index-key": "error",
|
|
559
541
|
"react/no-children-prop": "error",
|
|
560
|
-
"react/no-
|
|
561
|
-
"react/no-danger-with-children": "error",
|
|
562
|
-
"react/no-deprecated": "error",
|
|
542
|
+
"react/no-context-provider": "error",
|
|
563
543
|
"react/no-direct-mutation-state": "error",
|
|
564
|
-
"react/no-
|
|
565
|
-
"react/no-
|
|
566
|
-
"react/no-
|
|
567
|
-
"react/no-
|
|
544
|
+
"react/no-duplicate-key": "error",
|
|
545
|
+
"react/no-forward-ref": "error",
|
|
546
|
+
"react/no-leaked-conditional-rendering": "error",
|
|
547
|
+
"react/no-missing-key": "error",
|
|
548
|
+
"react/no-nested-component-definitions": "error",
|
|
549
|
+
"react/no-unstable-context-value": "error",
|
|
550
|
+
"react/no-unstable-default-props": "error",
|
|
568
551
|
"react/no-unused-state": "error",
|
|
569
|
-
"react/
|
|
570
|
-
"react/
|
|
571
|
-
"react/void-dom-elements-no-children": "error",
|
|
552
|
+
"react/no-use-context": "error",
|
|
553
|
+
"react/no-useless-fragment": "error",
|
|
572
554
|
"regexp/confusing-quantifier": "warn",
|
|
573
555
|
"regexp/control-character-escape": "error",
|
|
574
556
|
"regexp/match-any": "error",
|
package/dist/configs/4eb62e57.js
CHANGED
|
@@ -13,7 +13,6 @@ import oxlintPlugin from "eslint-plugin-oxlint"
|
|
|
13
13
|
import packageJsonPlugin from "eslint-plugin-package-json"
|
|
14
14
|
import perfectionistPlugin from "eslint-plugin-perfectionist"
|
|
15
15
|
import playwrightPlugin from "eslint-plugin-playwright"
|
|
16
|
-
import reactPlugin from "eslint-plugin-react"
|
|
17
16
|
import regexpPlugin from "eslint-plugin-regexp"
|
|
18
17
|
import securityPlugin from "eslint-plugin-security"
|
|
19
18
|
import sonarjsPlugin from "eslint-plugin-sonarjs"
|
|
@@ -40,7 +39,6 @@ export default [
|
|
|
40
39
|
"jsx-a11y": jsxA11yPlugin,
|
|
41
40
|
"node": nodePlugin,
|
|
42
41
|
"perfectionist": perfectionistPlugin,
|
|
43
|
-
"react": reactPlugin,
|
|
44
42
|
"regexp": regexpPlugin,
|
|
45
43
|
"security": securityPlugin,
|
|
46
44
|
"sonarjs": sonarjsPlugin,
|
|
@@ -108,7 +106,7 @@ export default [
|
|
|
108
106
|
"allowExpressions": true,
|
|
109
107
|
"allowTypedFunctionExpressions": true,
|
|
110
108
|
"allowHigherOrderFunctions": true,
|
|
111
|
-
"
|
|
109
|
+
"allowIIFEs": true
|
|
112
110
|
}
|
|
113
111
|
],
|
|
114
112
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
@@ -727,8 +725,6 @@ export default [
|
|
|
727
725
|
"prefer-template": "error",
|
|
728
726
|
"preserve-caught-error": "error",
|
|
729
727
|
"radix": "error",
|
|
730
|
-
"react/jsx-no-bind": "error",
|
|
731
|
-
"react/no-multi-comp": "error",
|
|
732
728
|
"regexp/confusing-quantifier": "warn",
|
|
733
729
|
"regexp/control-character-escape": "error",
|
|
734
730
|
"regexp/match-any": "error",
|
|
@@ -823,7 +819,7 @@ export default [
|
|
|
823
819
|
"sonarjs/max-union-size": [
|
|
824
820
|
"error",
|
|
825
821
|
{
|
|
826
|
-
"
|
|
822
|
+
"threshold": 5
|
|
827
823
|
}
|
|
828
824
|
],
|
|
829
825
|
"sonarjs/no-async-constructor": "error",
|
|
@@ -921,7 +917,6 @@ export default [
|
|
|
921
917
|
"unicorn/prefer-at": "error",
|
|
922
918
|
"unicorn/prefer-date-now": "error",
|
|
923
919
|
"unicorn/prefer-default-parameters": "error",
|
|
924
|
-
"unicorn/prefer-early-return": "error",
|
|
925
920
|
"unicorn/prefer-export-from": [
|
|
926
921
|
"error",
|
|
927
922
|
{
|
package/dist/configs/52762a42.js
CHANGED
|
@@ -12,7 +12,6 @@ import nodePlugin from "eslint-plugin-n"
|
|
|
12
12
|
import packageJsonPlugin from "eslint-plugin-package-json"
|
|
13
13
|
import perfectionistPlugin from "eslint-plugin-perfectionist"
|
|
14
14
|
import playwrightPlugin from "eslint-plugin-playwright"
|
|
15
|
-
import reactPlugin from "eslint-plugin-react"
|
|
16
15
|
import regexpPlugin from "eslint-plugin-regexp"
|
|
17
16
|
import securityPlugin from "eslint-plugin-security"
|
|
18
17
|
import sonarjsPlugin from "eslint-plugin-sonarjs"
|
|
@@ -40,7 +39,6 @@ export default [
|
|
|
40
39
|
"jsx-a11y": jsxA11yPlugin,
|
|
41
40
|
"node": nodePlugin,
|
|
42
41
|
"perfectionist": perfectionistPlugin,
|
|
43
|
-
"react": reactPlugin,
|
|
44
42
|
"regexp": regexpPlugin,
|
|
45
43
|
"security": securityPlugin,
|
|
46
44
|
"sonarjs": sonarjsPlugin,
|
|
@@ -105,7 +103,7 @@ export default [
|
|
|
105
103
|
"allowExpressions": true,
|
|
106
104
|
"allowTypedFunctionExpressions": true,
|
|
107
105
|
"allowHigherOrderFunctions": true,
|
|
108
|
-
"
|
|
106
|
+
"allowIIFEs": true
|
|
109
107
|
}
|
|
110
108
|
],
|
|
111
109
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
@@ -698,8 +696,6 @@ export default [
|
|
|
698
696
|
"prefer-template": "error",
|
|
699
697
|
"preserve-caught-error": "error",
|
|
700
698
|
"radix": "error",
|
|
701
|
-
"react/jsx-no-bind": "error",
|
|
702
|
-
"react/no-multi-comp": "error",
|
|
703
699
|
"regexp/confusing-quantifier": "warn",
|
|
704
700
|
"regexp/control-character-escape": "error",
|
|
705
701
|
"regexp/match-any": "error",
|
|
@@ -794,7 +790,7 @@ export default [
|
|
|
794
790
|
"sonarjs/max-union-size": [
|
|
795
791
|
"error",
|
|
796
792
|
{
|
|
797
|
-
"
|
|
793
|
+
"threshold": 5
|
|
798
794
|
}
|
|
799
795
|
],
|
|
800
796
|
"sonarjs/no-async-constructor": "error",
|
|
@@ -892,7 +888,6 @@ export default [
|
|
|
892
888
|
"unicorn/prefer-at": "error",
|
|
893
889
|
"unicorn/prefer-date-now": "error",
|
|
894
890
|
"unicorn/prefer-default-parameters": "error",
|
|
895
|
-
"unicorn/prefer-early-return": "error",
|
|
896
891
|
"unicorn/prefer-export-from": [
|
|
897
892
|
"error",
|
|
898
893
|
{
|