Gajus Kuizinas

Results 766 comments of Gajus Kuizinas

Semantically, @return does not make sense. You don't give a command to the function. You describe what it does. It returns a value. > On Oct 2, 2015, at 22:07,...

Has any decision been taken regarding this since?

A rather general suggestion is to remove https://github.com/jscs-dev/jscs-jsdoc#checkannotations entirely. This rule is too broad. Instead, allow granular control (allowed, not allowed), case sensitive, control of all the supported tags.

For some reason I assumed that plain object does not have `.constructor.name`.

No, but this does. https://babeljs.io/docs/en/babel-plugin-transform-react-display-name

You are right. https://babeljs.io/repl#?babili=false&browsers=&build=&builtIns=false&spec=false&loose=false&code_lz=MYewdgzgLgBAYiEMC8MAUBKFA-GBvAXwG4g&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=es2015%2Creact%2Cstage-2&prettier=false&targets=&version=7.4.5&externalPlugins=%40babel%2Fplugin-transform-react-display-name%407.2.0 Come to think about it, I cannot think of how this could be implemented.

It looks like I have sometime ago released a plugin to solve this problem. https://github.com/gajus/babel-plugin-react-display-name

Good point. I haven't touched _that_ code for a long time. https://github.com/gajus/babel-plugin-transform-export-default-name This would work for default exports, though.

> Okay, that's good reference to have. My particular use case requires use of named exports. Are you aware of any way of statically determining the return type of a...

Would love to add watcher to https://github.com/gajus/turbowatch if it supported symlinks.