diff --git a/scripts/events/lib/utils.js b/scripts/events/lib/utils.js index db12afdeb..95b1ede0d 100644 --- a/scripts/events/lib/utils.js +++ b/scripts/events/lib/utils.js @@ -5,8 +5,7 @@ const path = require('path'); let css; try { css = require('@adobe/css-tools'); - // eslint-disable-next-line no-unused-vars -} catch (error) { +} catch { css = require('css'); } @@ -14,8 +13,7 @@ function resolve(name, file = '') { let dir; try { dir = path.dirname(require.resolve(`${name}/package.json`)); - // eslint-disable-next-line no-unused-vars - } catch (error) { + } catch { return ''; } return `${dir}/${file}`; diff --git a/scripts/events/lib/vendors.js b/scripts/events/lib/vendors.js index c2069373a..350df6793 100644 --- a/scripts/events/lib/vendors.js +++ b/scripts/events/lib/vendors.js @@ -9,8 +9,7 @@ const { getVendors } = require('./utils'); let internal; try { internal = require('@next-theme/plugins'); - // eslint-disable-next-line no-unused-vars -} catch (error) { +} catch { } const vendorsFile = fs.readFileSync(path.join(__dirname, '../../../_vendors.yml')); const dependencies = yaml.load(vendorsFile);