Brent Lintner
Brent Lintner
Would be helpful when recursing dirs. Something like `synt a -i *-foo.js`. Perhaps use https://www.npmjs.com/package/ignore.
A simple cli flag and lib option should be easy to implement. http://esprima.readthedocs.io/en/latest/syntactic-analysis.html#jsx-syntax-support Note: escodegen will die if --jsx is set, so that complicates things. https://github.com/estools/escodegen/issues/333 Note: If we use...
It seems possible to import flow's parser as it produces an ESTree like format. https://www.npmjs.com/package/flow-parser
Currently we use Esprima, which only supports Stage-4 specs with a potential for dev releases. Babylon supports (through plugins), along with babel-generator, the ability to parse stage-3 and below. Current...
Ex: a cli might have it with a .js extension.
http://esprima.readthedocs.io/en/latest/syntactic-analysis.html#tolerant-mode
Perhaps even support pulling in `tsconfig.json` and adding it to `ts.createProgram`. It is less of an issue because we just want to parse and asitfy the code, not type check...
It may not be as big of an issue than with the JavaScript parser module, but it still should be settable. Currently we are using the `ESNext` target. `ts.createSourceFile` reference:...
From: https://github.com/brentlintner/synt/issues/90
Since there is no lib/index.js, without this property, you can not require the module in a reliable way. Noticed this was not set. Cool project. :-)