diff --git a/packages/prettier/index.js b/packages/prettier/index.js index 6bfd850..10b049d 100644 --- a/packages/prettier/index.js +++ b/packages/prettier/index.js @@ -70,7 +70,7 @@ module.exports = { function resolvePeerDependency(name) { try { return require.resolve(name) - } catch (error) { + } catch { return '' } }