@dvukovic/style-guide 0.3.102 → 0.3.104

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @dvukovic/style-guide
2
2
 
3
- Personal style guide with ESLint, Prettier, and other code quality tools.
3
+ Personal style guide with ESLint, Prettier, and other code quality tools
4
4
 
5
5
  ## Installation
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvukovic/style-guide",
3
- "version": "0.3.102",
3
+ "version": "0.3.104",
4
4
  "description": "My own style guide",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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",
@@ -81,7 +79,6 @@ export const sonarjs = {
81
79
  "sonarjs/link-with-target-blank": "error",
82
80
  "sonarjs/max-lines": "error",
83
81
  "sonarjs/max-switch-cases": "error",
84
- "sonarjs/max-union-size": "error",
85
82
  "sonarjs/misplaced-loop-counter": "error",
86
83
  "sonarjs/nested-control-flow": "error",
87
84
  "sonarjs/new-operator-misuse": "error",
@@ -99,7 +96,6 @@ export const sonarjs = {
99
96
  "sonarjs/no-collection-size-mischeck": "error",
100
97
  "sonarjs/no-commented-code": "error",
101
98
  "sonarjs/no-control-regex": "error",
102
- "sonarjs/no-dead-store": "error",
103
99
  "sonarjs/no-delete-var": "error",
104
100
  "sonarjs/no-duplicate-in-composite": "error",
105
101
  "sonarjs/no-duplicated-branches": "error",
@@ -152,7 +148,6 @@ export const sonarjs = {
152
148
  "sonarjs/no-os-command-from-path": "error",
153
149
  "sonarjs/no-parameter-reassignment": "error",
154
150
  "sonarjs/no-primitive-wrappers": "error",
155
- "sonarjs/no-redundant-assignments": "error",
156
151
  "sonarjs/no-redundant-boolean": "error",
157
152
  "sonarjs/no-redundant-jump": "error",
158
153
  "sonarjs/no-redundant-optional": "error",