3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Prettier: Ignore union type mismatch fix

Otherwise it puts the any in its new line which is a lot of wasted space and just looks weird
This commit is contained in:
Dark 2020-07-08 02:57:56 +02:00
parent 0f226bfa93
commit 0b8e480626

View file

@ -47,9 +47,8 @@ export function initDocs(app: express.Express) {
});
app.get("/docs/plugins/:pluginName", (req: express.Request, res: express.Response) => {
const plugin = docsPlugins.find(obj => getPluginName(obj) === req.params.pluginName) as ZeppelinPluginBlueprint<
any
>;
// prettier-ignore
const plugin = docsPlugins.find(obj => getPluginName(obj) === req.params.pluginName) as ZeppelinPluginBlueprint<any>;
if (!plugin) {
return notFound(res);
}