@dvukovic/style-guide 0.3.102 → 0.3.103
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
CHANGED
|
@@ -10,12 +10,8 @@ export const importX = {
|
|
|
10
10
|
"import-x/export": "error",
|
|
11
11
|
"import-x/exports-last": "error",
|
|
12
12
|
"import-x/first": "error",
|
|
13
|
-
"import-x/named": "error",
|
|
14
|
-
"import-x/namespace": "error",
|
|
15
13
|
"import-x/newline-after-import": "error",
|
|
16
14
|
"import-x/no-absolute-path": "error",
|
|
17
|
-
"import-x/no-cycle": "error",
|
|
18
|
-
"import-x/no-deprecated": "error",
|
|
19
15
|
"import-x/no-duplicates": "error",
|
|
20
16
|
"import-x/no-dynamic-require": "error",
|
|
21
17
|
"import-x/no-empty-named-blocks": "error",
|
|
@@ -6,6 +6,22 @@ export const reactHooks = {
|
|
|
6
6
|
"react-hooks": plugin,
|
|
7
7
|
},
|
|
8
8
|
rules: {
|
|
9
|
+
"react-hooks/component-hook-factories": "error",
|
|
10
|
+
"react-hooks/config": "error",
|
|
11
|
+
"react-hooks/error-boundaries": "error",
|
|
12
|
+
"react-hooks/gating": "error",
|
|
13
|
+
"react-hooks/globals": "error",
|
|
14
|
+
"react-hooks/purity": "error",
|
|
15
|
+
"react-hooks/refs": "error",
|
|
9
16
|
"react-hooks/rules-of-hooks": "error",
|
|
17
|
+
"react-hooks/set-state-in-render": "error",
|
|
18
|
+
"react-hooks/static-components": "error",
|
|
19
|
+
"react-hooks/unsupported-syntax": "error",
|
|
20
|
+
"react-hooks/use-memo": "error",
|
|
21
|
+
// These should be re enabled some time soon
|
|
22
|
+
// "react-hooks/immutability": "error",
|
|
23
|
+
// "react-hooks/incompatible-library": "error",
|
|
24
|
+
// "react-hooks/preserve-manual-memoization": "error",
|
|
25
|
+
// "react-hooks/set-state-in-effect": "error",
|
|
10
26
|
},
|
|
11
27
|
}
|
|
@@ -23,7 +23,6 @@ export const sonarjs = {
|
|
|
23
23
|
"sonarjs/aws-iam-public-access": "error",
|
|
24
24
|
"sonarjs/aws-opensearchservice-domain": "error",
|
|
25
25
|
"sonarjs/aws-rds-unencrypted-databases": "error",
|
|
26
|
-
"sonarjs/aws-restricted-ip-admin-access": "error",
|
|
27
26
|
"sonarjs/aws-s3-bucket-granted-access": "error",
|
|
28
27
|
"sonarjs/aws-s3-bucket-insecure-http": "error",
|
|
29
28
|
"sonarjs/aws-s3-bucket-public-access": "error",
|
|
@@ -49,7 +48,6 @@ export const sonarjs = {
|
|
|
49
48
|
"sonarjs/cookie-no-httponly": "error",
|
|
50
49
|
"sonarjs/cors": "error",
|
|
51
50
|
"sonarjs/csrf": "error",
|
|
52
|
-
"sonarjs/deprecation": "error",
|
|
53
51
|
"sonarjs/destructuring-assignment-syntax": "error",
|
|
54
52
|
"sonarjs/different-types-comparison": "error",
|
|
55
53
|
"sonarjs/disabled-auto-escaping": "error",
|
|
@@ -99,7 +97,6 @@ export const sonarjs = {
|
|
|
99
97
|
"sonarjs/no-collection-size-mischeck": "error",
|
|
100
98
|
"sonarjs/no-commented-code": "error",
|
|
101
99
|
"sonarjs/no-control-regex": "error",
|
|
102
|
-
"sonarjs/no-dead-store": "error",
|
|
103
100
|
"sonarjs/no-delete-var": "error",
|
|
104
101
|
"sonarjs/no-duplicate-in-composite": "error",
|
|
105
102
|
"sonarjs/no-duplicated-branches": "error",
|
|
@@ -152,7 +149,6 @@ export const sonarjs = {
|
|
|
152
149
|
"sonarjs/no-os-command-from-path": "error",
|
|
153
150
|
"sonarjs/no-parameter-reassignment": "error",
|
|
154
151
|
"sonarjs/no-primitive-wrappers": "error",
|
|
155
|
-
"sonarjs/no-redundant-assignments": "error",
|
|
156
152
|
"sonarjs/no-redundant-boolean": "error",
|
|
157
153
|
"sonarjs/no-redundant-jump": "error",
|
|
158
154
|
"sonarjs/no-redundant-optional": "error",
|