@newsteam/eslint-config 0.0.148 → 0.0.149

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.
@@ -216,9 +216,7 @@ declare const _default: {
216
216
  })[];
217
217
  "@typescript-eslint/return-await": string;
218
218
  "@typescript-eslint/semi": string;
219
- "@typescript-eslint/sort-type-union-intersection-members": (string | {
220
- checkIntersections: boolean;
221
- })[];
219
+ "@typescript-eslint/sort-type-constituents": string;
222
220
  "@typescript-eslint/space-before-blocks": (string | {
223
221
  classes: string;
224
222
  functions: string;
@@ -997,16 +997,11 @@ var rules = {
997
997
  */
998
998
  "@typescript-eslint/semi": "error",
999
999
  /*
1000
- * Enforces that members of a type union/intersection are sorted alphabetically
1000
+ * Enforce constituents of a type union/intersection to be sorted alphabetically.
1001
1001
  *
1002
- * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/sort-type-union-intersection-members.md
1002
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/sort-type-constituents.md
1003
1003
  */
1004
- "@typescript-eslint/sort-type-union-intersection-members": [
1005
- "error",
1006
- {
1007
- checkIntersections: false
1008
- }
1009
- ],
1004
+ "@typescript-eslint/sort-type-constituents": "error",
1010
1005
  /*
1011
1006
  * Enforces consistent spacing before blocks.
1012
1007
  *
@@ -190,6 +190,7 @@ declare const _default: {
190
190
  "no-empty-character-class": string;
191
191
  "no-empty-function": string;
192
192
  "no-empty-pattern": string;
193
+ "no-empty-static-block": string;
193
194
  "no-eq-null": string;
194
195
  "no-eval": string;
195
196
  "no-ex-assign": string;
@@ -240,6 +241,7 @@ declare const _default: {
240
241
  "no-nested-ternary": string;
241
242
  "no-new": string;
242
243
  "no-new-func": string;
244
+ "no-new-native-nonconstructor": string;
243
245
  "no-new-object": string;
244
246
  "no-new-symbol": string;
245
247
  "no-new-wrappers": string;
package/lib/cjs/rules.js CHANGED
@@ -808,6 +808,12 @@ module.exports = {
808
808
  * https://eslint.org/docs/rules/no-empty-pattern
809
809
  */
810
810
  "no-empty-pattern": "error",
811
+ /*
812
+ * Disallow empty static blocks
813
+ *
814
+ * https://eslint.org/docs/rules/no-empty-pattern
815
+ */
816
+ "no-empty-static-block": "error",
811
817
  /*
812
818
  * Disallow null comparisons without type-checking operators
813
819
  *
@@ -1073,6 +1079,12 @@ module.exports = {
1073
1079
  * https://eslint.org/docs/rules/no-new-func
1074
1080
  */
1075
1081
  "no-new-func": "error",
1082
+ /*
1083
+ * Disallow new operators with global non-constructor functions
1084
+ *
1085
+ * https://eslint.org/docs/rules/no-new-native-nonconstructor
1086
+ */
1087
+ "no-new-native-nonconstructor": "error",
1076
1088
  /*
1077
1089
  * Disallow Object constructors
1078
1090
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newsteam/eslint-config",
3
- "version": "0.0.148",
3
+ "version": "0.0.149",
4
4
  "description": "Shared config for eslint",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "types": "./lib/cjs/index.d.ts",
@@ -46,14 +46,14 @@
46
46
  "confusing-browser-globals": "1.0.11"
47
47
  },
48
48
  "devDependencies": {
49
- "@newsteam/jasmine": "0.0.40",
50
- "@types/eslint": "8.4.9",
49
+ "@newsteam/jasmine": "0.0.41",
50
+ "@types/eslint": "8.4.10",
51
51
  "@types/modernizr": "3.5.3",
52
- "@types/node": "18.11.8",
53
- "@types/react": "18.0.24",
54
- "@typescript-eslint/eslint-plugin": "5.41.0",
55
- "@typescript-eslint/parser": "5.41.0",
56
- "eslint": "8.26.0",
52
+ "@types/node": "18.11.9",
53
+ "@types/react": "18.0.25",
54
+ "@typescript-eslint/eslint-plugin": "5.42.1",
55
+ "@typescript-eslint/parser": "5.42.1",
56
+ "eslint": "8.27.0",
57
57
  "eslint-find-rules": "4.1.0",
58
58
  "eslint-import-resolver-typescript": "3.5.2",
59
59
  "eslint-plugin-array-func": "3.1.7",
@@ -85,9 +85,9 @@
85
85
  "typescript": "4.8.4"
86
86
  },
87
87
  "peerDependencies": {
88
- "@typescript-eslint/eslint-plugin": "5.41.0",
89
- "@typescript-eslint/parser": "5.41.0",
90
- "eslint": "8.26.0",
88
+ "@typescript-eslint/eslint-plugin": "5.42.1",
89
+ "@typescript-eslint/parser": "5.42.1",
90
+ "eslint": "8.27.0",
91
91
  "eslint-plugin-array-func": "3.1.7",
92
92
  "eslint-plugin-css-modules": "2.11.0",
93
93
  "eslint-plugin-es": "4.1.0",