ok so i was planning to try and use hegel in real project to see what is missing and what's not.
so i decided to first extract my project setup into open source repository and then conduct this experiment in open way.
if project setup is migrated and i am happy with it then i can try and migrate whole project...
problems listed here may or may not be know issues in hegel
it would be much better to show all problems at once so i don't need to fix them one by one
if there are 50 files and 3 of them have syntax errors and 5 of them have type errors it is perfectly possible to report all of them at once (of course for files that have syntax error developer needs to fix that syntax first before hegel can report anything about types)
i followed this instructions from here https://hegel.js.org/docs/editor-plugins#visual-studio-code
and after this command npm run compile i got this npm ERR! missing script: compile
no go for me
after ignoring some files and fixing some syntax errors (removing jsx)
it just stuck and project does not even have actual application code it's just config and skeleton of app
edit: i have not excluded node_modules folder correctly.
but this experience can be improved.
i have both nodejs and frontend code and i am not sure how to pick correct environment for all files
this is PR https://github.com/thecotne/stateless-app/pull/2 in my test project
after correctly excluding all node_modules folders https://github.com/thecotne/stateless-app/pull/2/commits/8023220e645e2937be23aa3dae24026d83e6e0fa
i got Never!!! ...
after that i am starting to experiment excluding most of the project and testing it on some files
function * letsYield () {
yield 1
}
void [...[1]]
void Number.isInteger(1)
function func (obj = {}) {}
i know void is not a type in hegel but it does not report that
type Defered<T> = void
function defered<T> (): Defered<T> {
return 1
}
again supported syntax but it does not say anything about syntax or location of a problem
type Defered<T> = {||}
function defered<T> (): Defered<T> {
return 1
}
export * as ns from 'mod'

export default function () {
return 'hola!'
}
Most helpful comment
after correctly excluding all
node_modulesfolders https://github.com/thecotne/stateless-app/pull/2/commits/8023220e645e2937be23aa3dae24026d83e6e0fai got
Never!!!...after that i am starting to experiment excluding most of the project and testing it on some files
Problems
YieldExpression
SpreadElement
Property "isInteger" does not exist in "NumberConstructor"
Never!!!
Never!!! TypeVar
i know
voidis not a type in hegel but it does not report thatNever!!! TypeVar (the second)
again supported syntax but it does not say anything about syntax or location of a problem
Cannot destructure property 'name' of 'undefined' as it is undefined.
reported error from react.js while node_modules are ignored