@newsteam/eslint-config 0.0.113 → 0.0.114

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.
@@ -147,7 +147,6 @@ declare const _default: {
147
147
  "@typescript-eslint/no-non-null-asserted-nullish-coalescing": string;
148
148
  "@typescript-eslint/no-non-null-asserted-optional-chain": string;
149
149
  "@typescript-eslint/no-non-null-assertion": string;
150
- "@typescript-eslint/no-parameter-properties": string;
151
150
  "@typescript-eslint/no-redeclare": string;
152
151
  "@typescript-eslint/no-redundant-type-constituents": string;
153
152
  "@typescript-eslint/no-require-imports": string;
@@ -182,6 +181,7 @@ declare const _default: {
182
181
  next: string[];
183
182
  prev: string[];
184
183
  })[];
184
+ "@typescript-eslint/parameter-properties": string;
185
185
  "@typescript-eslint/prefer-as-const": string;
186
186
  "@typescript-eslint/prefer-enum-initializers": string;
187
187
  "@typescript-eslint/prefer-for-of": string;
@@ -613,12 +613,6 @@ var rules = {
613
613
  * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-non-null-assertion.md
614
614
  */
615
615
  "@typescript-eslint/no-non-null-assertion": "off",
616
- /*
617
- * Disallow the use of parameter properties in class constructors.
618
- *
619
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-parameter-properties.md
620
- */
621
- "@typescript-eslint/no-parameter-properties": "error",
622
616
  /*
623
617
  * Disallow variable redeclaration
624
618
  *
@@ -819,6 +813,12 @@ var rules = {
819
813
  ]
820
814
  }
821
815
  ],
816
+ /*
817
+ * Disallow the use of parameter properties in class constructors.
818
+ *
819
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/parameter-properties.md
820
+ */
821
+ "@typescript-eslint/parameter-properties": "error",
822
822
  /*
823
823
  * Prefer usage of as const over literal type
824
824
  *
@@ -168,6 +168,7 @@ declare const _default: {
168
168
  "no-confusing-arrow": string;
169
169
  "no-console": string;
170
170
  "no-const-assign": string;
171
+ "no-constant-binary-expression": string;
171
172
  "no-constant-condition": string;
172
173
  "no-constructor-return": string;
173
174
  "no-continue": string;
package/lib/cjs/rules.js CHANGED
@@ -685,6 +685,12 @@ module.exports = {
685
685
  * https://eslint.org/docs/rules/no-const-assign
686
686
  */
687
687
  "no-const-assign": "error",
688
+ /*
689
+ * Disallows expressions where the operation doesn't affect the value.
690
+ *
691
+ * https://eslint.org/docs/rules/no-constant-binary-expression
692
+ */
693
+ "no-constant-binary-expression": "error",
688
694
  /*
689
695
  * Disallow constant expressions in conditions
690
696
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newsteam/eslint-config",
3
- "version": "0.0.113",
3
+ "version": "0.0.114",
4
4
  "description": "Shared config for eslint",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "types": "./lib/cjs/index.d.ts",
@@ -51,11 +51,11 @@
51
51
  "devDependencies": {
52
52
  "@newsteam/jasmine": "0.0.40",
53
53
  "@types/eslint": "8.4.1",
54
- "@types/node": "17.0.25",
55
- "@types/react": "18.0.5",
56
- "@typescript-eslint/eslint-plugin": "5.20.0",
57
- "@typescript-eslint/parser": "5.20.0",
58
- "eslint": "8.13.0",
54
+ "@types/node": "17.0.29",
55
+ "@types/react": "18.0.8",
56
+ "@typescript-eslint/eslint-plugin": "5.21.0",
57
+ "@typescript-eslint/parser": "5.21.0",
58
+ "eslint": "8.14.0",
59
59
  "eslint-find-rules": "4.1.0",
60
60
  "eslint-plugin-array-func": "3.1.7",
61
61
  "eslint-plugin-css-modules": "2.11.0",
@@ -72,7 +72,7 @@
72
72
  "eslint-plugin-prefer-object-spread": "1.2.1",
73
73
  "eslint-plugin-promise": "6.0.0",
74
74
  "eslint-plugin-react": "7.29.4",
75
- "eslint-plugin-react-hooks": "4.4.0",
75
+ "eslint-plugin-react-hooks": "4.5.0",
76
76
  "eslint-plugin-react-native": "4.0.0",
77
77
  "eslint-plugin-react-perf": "3.3.1",
78
78
  "eslint-plugin-security": "1.5.0",
@@ -80,13 +80,13 @@
80
80
  "eslint-plugin-unicorn": "42.0.0",
81
81
  "eslint-plugin-webassembly": "1.11.1",
82
82
  "json-schema": "0.4.0",
83
- "react": "18.0.0",
83
+ "react": "18.1.0",
84
84
  "typescript": "4.6.3"
85
85
  },
86
86
  "peerDependencies": {
87
- "@typescript-eslint/eslint-plugin": "5.20.0",
88
- "@typescript-eslint/parser": "5.20.0",
89
- "eslint": "8.13.0",
87
+ "@typescript-eslint/eslint-plugin": "5.21.0",
88
+ "@typescript-eslint/parser": "5.21.0",
89
+ "eslint": "8.14.0",
90
90
  "eslint-plugin-array-func": "3.1.7",
91
91
  "eslint-plugin-css-modules": "2.11.0",
92
92
  "eslint-plugin-es": "4.1.0",
@@ -102,7 +102,7 @@
102
102
  "eslint-plugin-prefer-object-spread": "1.2.1",
103
103
  "eslint-plugin-promise": "6.0.0",
104
104
  "eslint-plugin-react": "7.29.4",
105
- "eslint-plugin-react-hooks": "4.4.0",
105
+ "eslint-plugin-react-hooks": "4.5.0",
106
106
  "eslint-plugin-react-native": "4.0.0",
107
107
  "eslint-plugin-react-perf": "3.3.1",
108
108
  "eslint-plugin-security": "1.5.0",