@newsteam/eslint-config 0.0.146 → 0.0.147

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.
@@ -1,3 +1,3 @@
1
1
  import type { Linter } from "eslint";
2
- declare const _default: Linter.Config<Linter.RulesRecord>;
2
+ declare const _default: Linter.Config<Linter.RulesRecord, Linter.RulesRecord>;
3
3
  export = _default;
@@ -5,6 +5,7 @@ declare const _default: {
5
5
  "promise/avoid-new": string;
6
6
  "promise/catch-or-return": string;
7
7
  "promise/no-callback-in-promise": string;
8
+ "promise/no-multiple-resolved": string;
8
9
  "promise/no-native": string;
9
10
  "promise/no-nesting": string;
10
11
  "promise/no-new-statics": string;
@@ -37,6 +37,12 @@ module.exports = {
37
37
  * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/no-callback-in-promise.md
38
38
  */
39
39
  "promise/no-callback-in-promise": "off",
40
+ /*
41
+ * Disallow creating new promises with paths that resolve multiple times
42
+ *
43
+ * https://github.com/xjamundx/eslint-plugin-promise/blob/HEAD/docs/rules/no-multiple-resolved.md
44
+ */
45
+ "promise/no-multiple-resolved": "error",
40
46
  /*
41
47
  * In an ES5 environment, make sure to create a Promise constructor before using.
42
48
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newsteam/eslint-config",
3
- "version": "0.0.146",
3
+ "version": "0.0.147",
4
4
  "description": "Shared config for eslint",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "types": "./lib/cjs/index.d.ts",
@@ -47,15 +47,15 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@newsteam/jasmine": "0.0.40",
50
- "@types/eslint": "8.4.6",
50
+ "@types/eslint": "8.4.9",
51
51
  "@types/modernizr": "3.5.3",
52
- "@types/node": "18.8.3",
53
- "@types/react": "18.0.21",
54
- "@typescript-eslint/eslint-plugin": "5.39.0",
55
- "@typescript-eslint/parser": "5.39.0",
56
- "eslint": "8.25.0",
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",
57
57
  "eslint-find-rules": "4.1.0",
58
- "eslint-import-resolver-typescript": "3.5.1",
58
+ "eslint-import-resolver-typescript": "3.5.2",
59
59
  "eslint-plugin-array-func": "3.1.7",
60
60
  "eslint-plugin-css-modules": "2.11.0",
61
61
  "eslint-plugin-es": "4.1.0",
@@ -71,8 +71,8 @@
71
71
  "eslint-plugin-optimize-regex": "1.2.1",
72
72
  "eslint-plugin-postcss-modules": "2.0.0",
73
73
  "eslint-plugin-prefer-object-spread": "1.2.1",
74
- "eslint-plugin-promise": "6.0.1",
75
- "eslint-plugin-react": "7.31.9",
74
+ "eslint-plugin-promise": "6.1.1",
75
+ "eslint-plugin-react": "7.31.10",
76
76
  "eslint-plugin-react-hooks": "4.6.0",
77
77
  "eslint-plugin-react-native": "4.0.0",
78
78
  "eslint-plugin-react-perf": "3.3.1",
@@ -85,9 +85,9 @@
85
85
  "typescript": "4.8.4"
86
86
  },
87
87
  "peerDependencies": {
88
- "@typescript-eslint/eslint-plugin": "5.39.0",
89
- "@typescript-eslint/parser": "5.39.0",
90
- "eslint": "8.25.0",
88
+ "@typescript-eslint/eslint-plugin": "5.41.0",
89
+ "@typescript-eslint/parser": "5.41.0",
90
+ "eslint": "8.26.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",
@@ -102,8 +102,8 @@
102
102
  "eslint-plugin-optimize-regex": "1.2.1",
103
103
  "eslint-plugin-postcss-modules": "2.0.0",
104
104
  "eslint-plugin-prefer-object-spread": "1.2.1",
105
- "eslint-plugin-promise": "6.0.1",
106
- "eslint-plugin-react": "7.31.9",
105
+ "eslint-plugin-promise": "6.1.1",
106
+ "eslint-plugin-react": "7.31.10",
107
107
  "eslint-plugin-react-hooks": "4.6.0",
108
108
  "eslint-plugin-react-native": "4.0.0",
109
109
  "eslint-plugin-react-perf": "3.3.1",