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

deep validation for deep namespaces #119

Closed
1 task
benmosher opened this issue Nov 20, 2015 · 2 comments
Closed
1 task

deep validation for deep namespaces #119

benmosher opened this issue Nov 20, 2015 · 2 comments

Comments

@benmosher
Copy link
Member

Given:

// foo.js
export const x = "x"
           , y = "y"

// bar.js
export * as foo from './foo'

report for the following:

import * as bar from './bar'
console.log(bar.foo.z) // "z non-existent in deep import './foo.js'"

import { foo } from './bar'
console.log(foo.w) // same deal
  • report deep file with simple path relative to current source, if relative paths all the way down
    i.e. ./foo.js as above, not /Users/ben/code/project/src/foo.js
@rhys-vdw
Copy link

👍 This would be really great. If you're not planning on doing this soon I'm willing to take a look.

@benmosher
Copy link
Member Author

I've got some time the next couple of days, I'll dive in and see what I can do 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants