othree

Results 111 comments of othree

As far as I know there is no such way now. But I think it might be necessary to add this feature. Could you help provide a simple project use...

@albert200000 The webpack plugin loads the webpack config and enhanced resolver to resolve files. Not the babel module resolver.

Based on the sample you provided above. I think this is because the limitation of tern. Tern is static analysis tool so it can't do everything like a runtime.

How about this ```json { "!name": "builder", "Builder": { "addQuery": { "!type": "fn() -> Builder", "!doc": "I am an object" }, "build": { "!type": "fn() ->Builder", "!doc": "I am an...

About Promise, I think it should be a default type in [`infer.js`](https://github.com/ternjs/tern/blob/master/lib/infer.js). Just like `Obj`, and `Fn`. And this issue should be solved with this change. But I still need...

@itaipelles I am looking at this now. Can you provide any test step for this? Or you are just looking for the type of a promise. I use Tern to...

How about `webpackDevServer.config.js` `./node_modules/react-scripts/config/webpackDevServer.config.js`

What tool are you used for lint?

Do you use this def: https://github.com/ternjs/tern/blob/master/defs/jquery.json The message seems not match the def.

Can you try https://gist.github.com/othree/27cf283cf8b66f0f9cf9ca69fc0aeb46