Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Can we ignore `require.resolve` in `try/catch` block for rule `node/no-extraneous-require`? #185
Thank you. But I'm still not understanding why the statement is needed. How does the extraneous package come? It looks fragile approach, e.g. people may have the package for another reason from the assumption of your package.
That OK, I'm just sharing my thoughts here.
And another example could be shareable configurations like https://github.com/1stG/configs/blob/master/packages/eslint-config/overrides.js#L11. I'm trying to simplify our configuration usage in different projects with fallback preset. I don't know is that a common pattern.