Skip to content

Commit 94478ea

Browse files
committed
refactor: minor improvements
1 parent 7c2ac88 commit 94478ea

File tree

5 files changed

+3
-3
lines changed

5 files changed

+3
-3
lines changed

.pkgs/eslint-plugin-local/dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function isInitializedFromSource(name2, source, initialScope) {
2626
}
2727
const args = getRequireExpressionArguments(init);
2828
const arg0 = args?.[0];
29-
if (arg0 == null || !AST.isKindOfLiteral(arg0, "string")) {
29+
if (arg0 == null || !AST.isLiteral(arg0, "string")) {
3030
return false;
3131
}
3232
return arg0.value === source || arg0.value.startsWith(`${source}/`);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export * from "./attribute";
22
export * from "./attribute-name";
33
export * from "./attribute-value";
4+
export * from "./has";
45
export * from "./hierarchy";

packages/utilities/jsx/src/element/is.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { _ } from "@eslint-react/eff";
22
import type { Scope } from "@typescript-eslint/scope-manager";
33
import type { TSESTree } from "@typescript-eslint/types";
44
import { AST_NODE_TYPES as T } from "@typescript-eslint/types";
5-
import { hasAttribute } from "../has-attribute";
5+
import { hasAttribute } from "../attribute";
66
import { getElementType } from "./element-type";
77

88
export function isHostElement(node: TSESTree.Node) {
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export * from "./attribute";
22
export * from "./element";
3-
export * from "./has-attribute";
43
export * from "./jsx-detection";
54
export * from "./jsx-detection-hint";
65
export * from "./to-string";

0 commit comments

Comments
 (0)