Переглянути джерело

chore: remove unneeded eslint disable directives

Connor Prussin 10 місяців тому
батько
коміт
6c3b955957

+ 1 - 1
.prettierignore

@@ -20,6 +20,6 @@ patches/
 apps/api-reference
 apps/staking
 apps/insights
-apps/entropy-debug
+apps/entropy-debugger
 governance/pyth_staking_sdk
 packages/*

+ 0 - 1
apps/api-reference/src/components/Code/index.tsx

@@ -54,7 +54,6 @@ type CopyButtonProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
 const CopyButton = ({ children, className, ...props }: CopyButtonProps) => {
   const [isCopied, setIsCopied] = useState(false);
   const copy = useCallback(() => {
-    // eslint-disable-next-line n/no-unsupported-features/node-builtins
     navigator.clipboard
       .writeText(children)
       .then(() => {

+ 0 - 1
apps/entropy-debugger/src/app/page.tsx

@@ -212,7 +212,6 @@ const Info = ({ state }: { state: TxStateContext }) => {
             </pre>
             <button
               onClick={() => {
-                // eslint-disable-next-line n/no-unsupported-features/node-builtins
                 navigator.clipboard.writeText(state.data).catch(() => {
                   /* no-op on error */
                 });

+ 0 - 1
apps/insights/src/components/CopyButton/index.tsx

@@ -27,7 +27,6 @@ export const CopyButton = ({ text, children, className, ...props }: Props) => {
   const [isCopied, setIsCopied] = useState(false);
   const logger = useLogger();
   const copy = useCallback(() => {
-    // eslint-disable-next-line n/no-unsupported-features/node-builtins
     navigator.clipboard
       .writeText(text)
       .then(() => {

+ 0 - 3
apps/insights/src/components/Root/search-button.tsx

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