Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect tsconfig's "paths" alias configuration for "no-missing-import" rule? #233

Open
PinkyJie opened this issue Jun 16, 2020 · 0 comments

Comments

@PinkyJie
Copy link

We use node/no-missing-import in a typescript project, the configuration we are using now is:

node/no-missing-import: # recommended error
    - error
    - tryExtensions: # default does not include TypeScript or JSX
        - ".js"
        - ".jsx"
        - ".json"
        - ".mjs"
        - ".node"
        - ".ts"
        - ".tsx"

Is there a way to let the rule respect our paths alias config in tsconfig.json?

"paths": {
            "@api/*": [
                "src/api/*"
            ],
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants