@eslint-react/eslint 5.24.3 → 5.24.5
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/dist/index.js +1 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import * as ESLintUtils from "@typescript-eslint/utils/eslint-utils";
|
|
2
|
-
|
|
3
2
|
//#region src/get-constrained-type-at-location.ts
|
|
4
3
|
function getConstrainedTypeAtLocation(services, node) {
|
|
5
4
|
const nodeType = services.getTypeAtLocation(node);
|
|
6
5
|
return services.program.getTypeChecker().getBaseConstraintOfType(nodeType) ?? nodeType;
|
|
7
6
|
}
|
|
8
|
-
|
|
9
7
|
//#endregion
|
|
10
8
|
//#region src/utils.ts
|
|
11
9
|
function getDocsUrl(ruleName) {
|
|
@@ -28,6 +26,5 @@ function merge(base, ...rest) {
|
|
|
28
26
|
}
|
|
29
27
|
return base;
|
|
30
28
|
}
|
|
31
|
-
|
|
32
29
|
//#endregion
|
|
33
|
-
export { createRule, getConstrainedTypeAtLocation, merge, report };
|
|
30
|
+
export { createRule, getConstrainedTypeAtLocation, merge, report };
|