question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[feature request]: functional `resolvePackage` option/setting support

See original GitHub issue

Motivation: I’m always using TypeScript personally, for most packages we can use following settings:

{
  resolvePaths: [path.resolve('node_modules/@types')],
  tryExtensions: [
    '.ts',
    '.tsx',
    '.d.ts',
    '.vue',
    '.js',
    '.jsx',
    '.json',
    '.node',
  ],
}

But it won’t work for scoped packages like @babel/core, its typed definition is under @types/babel__core directory, so resolvePaths will not work for it. Of course, we can use allowModules for workaround, but it could be a mistake if we forget to install the @types/babel__core module.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
JounQincommented, Apr 15, 2021

@mysticatea Is it possible to integrate with the resolvers for eslint-plugin-import?

https://github.com/alexgorbatchev/eslint-import-resolver-typescript

This resolver could help, or we can simply wrap it.

2reactions
mysticateacommented, Sep 9, 2019

This enhancement needs design because ESLint doesn’t support function type in rule options.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Requests: What are they and how to manage them
Feature requests are a form of product feedback you may frequently encounter as a SaaS product manager. They typically come in the form...
Read more >
Feature request: Support refactor - Oracle Communities
Refactor function or procedure names in package body, would result in package spec name modified, and function calls to the function (in current ......
Read more >
ReviewNB/support: Issues and feature requests for ... - GitHub
We're building in the open. You can view upcoming features, vote on them, and even request a new one. Visit the homepage for...
Read more >
10 Tips for Responding Graciously to Customer Feature ...
Picture this scenario: A customer requests a feature. Support politely tells them that it can't be done while still providing top quality service....
Read more >
Feature Request: Support Help Section - Zendesk help
I am a Zendesk partner, so I can't really speak for Zendesk. My best guess as to why they haven't added this functionality...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found