Skip to content

Commit 6c3b955

Browse files
committed
chore: remove unneeded eslint disable directives
1 parent cdaf99e commit 6c3b955

File tree

5 files changed

+1
-7
lines changed

5 files changed

+1
-7
lines changed

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ patches/
2020
apps/api-reference
2121
apps/staking
2222
apps/insights
23-
apps/entropy-debug
23+
apps/entropy-debugger
2424
governance/pyth_staking_sdk
2525
packages/*

apps/api-reference/src/components/Code/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ type CopyButtonProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
5454
const CopyButton = ({ children, className, ...props }: CopyButtonProps) => {
5555
const [isCopied, setIsCopied] = useState(false);
5656
const copy = useCallback(() => {
57-
// eslint-disable-next-line n/no-unsupported-features/node-builtins
5857
navigator.clipboard
5958
.writeText(children)
6059
.then(() => {

apps/entropy-debugger/src/app/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ const Info = ({ state }: { state: TxStateContext }) => {
212212
</pre>
213213
<button
214214
onClick={() => {
215-
// eslint-disable-next-line n/no-unsupported-features/node-builtins
216215
navigator.clipboard.writeText(state.data).catch(() => {
217216
/* no-op on error */
218217
});

apps/insights/src/components/CopyButton/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export const CopyButton = ({ text, children, className, ...props }: Props) => {
2727
const [isCopied, setIsCopied] = useState(false);
2828
const logger = useLogger();
2929
const copy = useCallback(() => {
30-
// eslint-disable-next-line n/no-unsupported-features/node-builtins
3130
navigator.clipboard
3231
.writeText(text)
3332
.then(() => {

apps/insights/src/components/Root/search-button.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ const SearchText = () => {
2929
};
3030

3131
const SearchTextImpl = () => {
32-
// This component can only ever render in the client so we can safely ignore
33-
// this eslint rule.
34-
// eslint-disable-next-line n/no-unsupported-features/node-builtins
3532
const isMac = useMemo(() => navigator.userAgent.includes("Mac"), []);
3633
return isMac ? "⌘ K" : "Ctrl K";
3734
};

0 commit comments

Comments
 (0)