Skip to content

Commit 6e80659

Browse files
committed
fix linting
1 parent 18e7427 commit 6e80659

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/build-copy.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const fs = require("fs");
2-
const path = require("path");
1+
const fs = require("node:fs");
2+
const path = require("node:path");
33
const pck = require("../package");
44
const rootDir = path.resolve(__dirname, "../");
55
const distDir = path.resolve(__dirname, "../dist");

src/__tests__/hooks.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { render, screen } from "@testing-library/react";
22
import React, { useCallback } from "react";
3-
import { IntersectionOptions, defaultFallbackInView } from "../index";
3+
import { type IntersectionOptions, defaultFallbackInView } from "../index";
44
import {
55
intersectionMockInstance,
66
mockAllIsIntersecting,

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import * as React from "react";
3+
import type * as React from "react";
44
export { InView } from "./InView";
55
export { useInView } from "./useInView";
66
export { observe, defaultFallbackInView } from "./observe";

0 commit comments

Comments
 (0)