@newsteam/eslint-config 0.0.120 → 0.0.123

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.
@@ -6,6 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.javascriptOverrides = void 0;
7
7
  var typescript_1 = __importDefault(require("../plugins/typescript"));
8
8
  exports.javascriptOverrides = {
9
- files: ["*.js", "*.jsx"],
9
+ files: ["*.js", "*.jsx", "*.mjs"],
10
10
  rules: Object.fromEntries(Object.keys(typescript_1.default.rules).map(function (rule) { return [rule, "off"]; }))
11
11
  };
@@ -12,6 +12,7 @@ declare const _default: {
12
12
  generics: string;
13
13
  })[];
14
14
  "@typescript-eslint/comma-spacing": string;
15
+ "@typescript-eslint/consistent-generic-constructors": string[];
15
16
  "@typescript-eslint/consistent-indexed-object-style": string;
16
17
  "@typescript-eslint/consistent-type-assertions": (string | {
17
18
  assertionStyle: string;
@@ -93,6 +93,15 @@ var rules = {
93
93
  * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/comma-spacing.md
94
94
  */
95
95
  "@typescript-eslint/comma-spacing": "error",
96
+ /*
97
+ * Enforces specifying generic type arguments on type annotation or constructor name of a constructor call.
98
+ *
99
+ * https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-generic-constructors.md
100
+ */
101
+ "@typescript-eslint/consistent-generic-constructors": [
102
+ "error",
103
+ "constructor"
104
+ ],
96
105
  /*
97
106
  * Enforce or disallow the use of the record type
98
107
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newsteam/eslint-config",
3
- "version": "0.0.120",
3
+ "version": "0.0.123",
4
4
  "description": "Shared config for eslint",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "types": "./lib/cjs/index.d.ts",
@@ -50,12 +50,12 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@newsteam/jasmine": "0.0.40",
53
- "@types/eslint": "8.4.2",
54
- "@types/node": "17.0.35",
55
- "@types/react": "18.0.9",
56
- "@typescript-eslint/eslint-plugin": "5.25.0",
57
- "@typescript-eslint/parser": "5.25.0",
58
- "eslint": "8.16.0",
53
+ "@types/eslint": "8.4.3",
54
+ "@types/node": "17.0.43",
55
+ "@types/react": "18.0.12",
56
+ "@typescript-eslint/eslint-plugin": "5.28.0",
57
+ "@typescript-eslint/parser": "5.28.0",
58
+ "eslint": "8.17.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.30.0",
75
- "eslint-plugin-react-hooks": "4.5.0",
75
+ "eslint-plugin-react-hooks": "4.6.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.1.0",
84
- "typescript": "4.6.4"
83
+ "react": "18.2.0",
84
+ "typescript": "4.7.3"
85
85
  },
86
86
  "peerDependencies": {
87
- "@typescript-eslint/eslint-plugin": "5.25.0",
88
- "@typescript-eslint/parser": "5.25.0",
89
- "eslint": "8.16.0",
87
+ "@typescript-eslint/eslint-plugin": "5.28.0",
88
+ "@typescript-eslint/parser": "5.28.0",
89
+ "eslint": "8.17.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.30.0",
105
- "eslint-plugin-react-hooks": "4.5.0",
105
+ "eslint-plugin-react-hooks": "4.6.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",
@@ -111,6 +111,6 @@
111
111
  "eslint-plugin-webassembly": "1.11.1",
112
112
  "eslint-plugin-you-dont-need-lodash-underscore": "6.12.0",
113
113
  "json-schema": "0.4.0",
114
- "typescript": "4.6.4"
114
+ "typescript": "4.7.3"
115
115
  }
116
116
  }