@sapphire/eslint-plugin-result 2.0.3-next.fef82a89.0 → 2.0.3
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/CHANGELOG.md +11 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
# [@sapphire/eslint-plugin-result@2.0.3](https://github.com/sapphiredev/utilities/compare/@sapphire/eslint-plugin-result@2.0.2...@sapphire/eslint-plugin-result@2.0.3) - (2024-03-11)
|
|
6
|
+
|
|
7
|
+
## 🐛 Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **eslint-plugin-result:** Fixed issue with linting with latest typescript-eslint ([0cf3801](https://github.com/sapphiredev/utilities/commit/0cf380184b60c2c7a310ec03b3eb25efb49dffda))
|
|
10
|
+
- **deps:** Update typescript-eslint monorepo to v7 (major) (#717) ([f929edc](https://github.com/sapphiredev/utilities/commit/f929edc5c951428a3e72e6f37725f27c4b383c54))
|
|
11
|
+
- Fixed commonjs typings export mapping (#707) ([216ff02](https://github.com/sapphiredev/utilities/commit/216ff0260d63a9590357f9a5069f1ae2b34eaf5d))
|
|
12
|
+
- Update transitive dependencies ([9fbbbb0](https://github.com/sapphiredev/utilities/commit/9fbbbb0252850d270fdaeaae491ed84d0c93cdf6))
|
|
13
|
+
- **eslint-plugin-result:** Bump transitive dependencies ([d4d8bea](https://github.com/sapphiredev/utilities/commit/d4d8bea8fb26541f9a94a9d380bd56a537764285))
|
|
14
|
+
- **deps:** Update all non-major dependencies (#681) ([a593be0](https://github.com/sapphiredev/utilities/commit/a593be07bc7a5ec4b9690a83bc6fbf223e012729))
|
|
15
|
+
|
|
5
16
|
# [@sapphire/eslint-plugin-result@2.0.2](https://github.com/sapphiredev/utilities/compare/@sapphire/eslint-plugin-result@2.0.2...@sapphire/eslint-plugin-result@2.0.2) - (2023-12-04)
|
|
6
17
|
|
|
7
18
|
## 🐛 Bug Fixes
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -67,7 +67,7 @@ function functionHasResultLikeReturnType(service, checker, node) {
|
|
|
67
67
|
}
|
|
68
68
|
const returnType = unwrapPotentialPromiseType(checker, node);
|
|
69
69
|
const resultType = getSapphireResultType(service, checker);
|
|
70
|
-
if (!returnType.aliasSymbol || !resultType?.aliasSymbol) {
|
|
70
|
+
if (!returnType || !returnType.aliasSymbol || !resultType?.aliasSymbol) {
|
|
71
71
|
return false;
|
|
72
72
|
}
|
|
73
73
|
return Reflect.get(returnType.aliasSymbol, "id") === Reflect.get(resultType.aliasSymbol, "id");
|
package/dist/esm/index.mjs
CHANGED
|
@@ -61,7 +61,7 @@ function functionHasResultLikeReturnType(service, checker, node) {
|
|
|
61
61
|
}
|
|
62
62
|
const returnType = unwrapPotentialPromiseType(checker, node);
|
|
63
63
|
const resultType = getSapphireResultType(service, checker);
|
|
64
|
-
if (!returnType.aliasSymbol || !resultType?.aliasSymbol) {
|
|
64
|
+
if (!returnType || !returnType.aliasSymbol || !resultType?.aliasSymbol) {
|
|
65
65
|
return false;
|
|
66
66
|
}
|
|
67
67
|
return Reflect.get(returnType.aliasSymbol, "id") === Reflect.get(resultType.aliasSymbol, "id");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapphire/eslint-plugin-result",
|
|
3
|
-
"version": "2.0.3
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "A TypeScript ESLint plugin for @sapphire/result",
|
|
5
5
|
"author": "@sapphire",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,18 +52,18 @@
|
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@favware/cliff-jumper": "^
|
|
56
|
-
"@typescript-eslint/rule-tester": "^
|
|
57
|
-
"@typescript-eslint/typescript-estree": "^
|
|
58
|
-
"@vitest/coverage-v8": "^1.
|
|
59
|
-
"tsup": "^8.0.
|
|
55
|
+
"@favware/cliff-jumper": "^3.0.1",
|
|
56
|
+
"@typescript-eslint/rule-tester": "^7.1.1",
|
|
57
|
+
"@typescript-eslint/typescript-estree": "^7.1.1",
|
|
58
|
+
"@vitest/coverage-v8": "^1.3.1",
|
|
59
|
+
"tsup": "^8.0.2",
|
|
60
60
|
"typedoc-json-parser": "^9.0.1",
|
|
61
|
-
"vitest": "^1.
|
|
61
|
+
"vitest": "^1.3.1"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@sapphire/result": "^2.6.
|
|
65
|
-
"@typescript-eslint/utils": "^
|
|
64
|
+
"@sapphire/result": "^2.6.6",
|
|
65
|
+
"@typescript-eslint/utils": "^7.1.1",
|
|
66
66
|
"tsutils": "^3.21.0",
|
|
67
|
-
"typescript": "^5.
|
|
67
|
+
"typescript": "^5.4.2"
|
|
68
68
|
}
|
|
69
69
|
}
|