mirror of
https://github.com/journey-ad/Bitmagnet-Next-Web
synced 2024-11-22 01:51:23 +00:00
🎨 Lint code
This commit is contained in:
parent
307476421a
commit
0e70242792
@ -88,11 +88,5 @@
|
|||||||
"next": ["const", "let", "var"]
|
"next": ["const", "let", "var"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
"prettier/prettier": [
|
|
||||||
"warn",
|
|
||||||
{
|
|
||||||
"endOfLine": "auto"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
11
.prettierrc.js
Normal file
11
.prettierrc.js
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
module.exports = {
|
||||||
|
printWidth: 80,
|
||||||
|
tabWidth: 2,
|
||||||
|
useTabs: false,
|
||||||
|
semi: true,
|
||||||
|
singleQuote: false,
|
||||||
|
trailingComma: 'all',
|
||||||
|
bracketSpacing: true,
|
||||||
|
arrowParens: 'always',
|
||||||
|
endOfLine: 'auto',
|
||||||
|
};
|
@ -26,7 +26,7 @@ const query = gql`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
// Function to handle GET requests
|
// Function to handle GET requests
|
||||||
const handler = async(request: Request) => {
|
const handler = async (request: Request) => {
|
||||||
const { searchParams } = new URL(request.url);
|
const { searchParams } = new URL(request.url);
|
||||||
const hash = searchParams.get("hash");
|
const hash = searchParams.get("hash");
|
||||||
|
|
||||||
@ -75,6 +75,6 @@ const handler = async(request: Request) => {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
export { handler as GET, handler as POST };
|
export { handler as GET, handler as POST };
|
||||||
|
@ -119,6 +119,6 @@ const handler = async (request: Request) => {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
export { handler as GET, handler as POST };
|
export { handler as GET, handler as POST };
|
||||||
|
@ -141,5 +141,5 @@ export const $env = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export { Cookie }
|
export { Cookie };
|
||||||
export { Toast } from "./Toast";
|
export { Toast } from "./Toast";
|
||||||
|
Loading…
Reference in New Issue
Block a user