Brian Ng
72d1a72122
Update babel-types docs and lib/types [skip ci]
2017-10-18 09:43:54 -05:00
Logan Smyth
7d6b15bba9
Regenerate types with scripts.
2017-10-08 22:31:31 -04:00
Logan Smyth
eae76e5b89
Break apart the File class into multiple files and add type definitions.
2017-10-02 13:55:37 -07:00
Sarup Banskota
75808a2d14
Prevent getFunctionParent from returning Program ( #5923 )
2017-08-02 16:30:33 -05:00
jbrown215
4e9a25e34a
Flow opaque type aliases ( #5990 )
2017-08-02 16:30:19 -05:00
Brian Ng
21eeed8a8c
Fix generate interfaces script ( #6031 )
...
* Fix typo in TSPropertySignature type definition
* Sort fields in generate-interfaces script
2017-08-01 14:38:46 -04:00
Logan Smyth
0eae6a432c
Remove merge helper and add more type declarations. ( #5649 )
2017-04-18 19:08:39 -07:00
Logan Smyth
6af8e64711
Typecheck much more of the config loading process ( #5642 )
...
* Add type declarations for micromatch.
* Enable Flowtype on all config loading.
* Remove unneeded comments.
2017-04-18 09:28:18 -07:00
Toru Kobayashi
9188be9ed5
[7.0] Rename flow AST Type ExistentialTypeParam to ExistsTypeAnnotation ( #5199 )
2017-02-15 14:58:07 -05:00
Charles Pick
bc8f476d33
[7.0] Rename NumericLiteralTypeAnnotation to NumberLiteralTypeAnnotation ( #5229 )
2017-02-15 14:54:27 -05:00
Brian Ng
0aa3ac2bb5
Update babel parser options ( #4688 )
...
* Update babel parser options
2016-10-07 14:30:47 -04:00
Daniel Tschinder
308de41992
Add support for the new declare module.exports of flow. ( #3570 )
2016-08-16 16:54:00 +02:00
Henry Zhu
e998e53466
run generate-iterfaces
2016-02-04 11:07:04 -05:00
Daniel Lo Nigro
0076204f80
Fix Flow.
...
Removed `@flow` annotation from files that don't actually pass Flow check at the moment. These will be added back file by file once the files are properly converted to use Flow.
Closes #3064
2015-11-15 21:30:22 -08:00
Sebastian McKenzie
e62a00df50
rename NumberLiteral to NumericLiteral and RegexLiteral to RegExpLiteral
2015-11-03 01:19:35 +00:00
Sebastian McKenzie
ad7b1c6578
add flow types definition
2015-11-02 19:40:59 +00:00
Sebastian McKenzie
119520ed87
add lib folder
2015-09-23 16:00:41 +01:00
Sebastian McKenzie
ca79fff0c4
remove acorn compiled source
2015-03-22 04:09:18 +11:00
Sebastian McKenzie
30b1c0154d
update to modular acorn
2015-03-21 15:25:32 +11:00
Sebastian McKenzie
2c39d406d1
move acorn into vendor
2015-03-18 19:01:30 +11:00
Sebastian McKenzie
ec526f9224
embed acorn
2015-03-17 02:44:05 +11:00
Sebastian McKenzie
339bd2b6d9
self-host #443
2015-02-25 22:36:23 +11:00
Sebastian McKenzie
b7f19221a9
fix rc json error message
2015-02-25 22:00:32 +11:00
Sebastian McKenzie
cfe2c19a02
fix linting errors
2015-02-25 21:57:49 +11:00
Sebastian McKenzie
5889233adc
rejigger path traversal class for es6ification
2015-02-25 21:50:40 +11:00
Sebastian McKenzie
7bb98352df
add .babelrc - fixes #351
2015-02-25 21:49:48 +11:00
Sebastian McKenzie
12ebeed7c6
add missing extension to umd-strict formatter... - fixes #890
2015-02-25 19:10:20 +11:00
Sebastian McKenzie
7d87e52377
rejigger strict directives transformer logic so they're included in the body before module formatters are ran - @jayphelps
2015-02-25 17:20:23 +11:00
Sebastian McKenzie
2bab285970
temporarily disable own binding identification in nameMethod helper - fixes #871
2015-02-25 11:07:51 +11:00
Sebastian McKenzie
b13aa41a75
fixing linting error
2015-02-24 22:15:27 +11:00
Sebastian McKenzie
bef315efd6
fix up JSXElement alias keys
2015-02-24 22:11:25 +11:00
Sebastian McKenzie
717ef280f7
clean up #870
2015-02-24 11:20:04 +11:00
Sebastian McKenzie
8c5e7cf272
Merge pull request #870 from neVERberleRfellerER/fix-extends-anon-class
...
fix extends with empty anonymous base class
2015-02-24 11:18:18 +11:00
Ondrej Kraus
b7c297bb89
remove anonymous class constructor name in specific case
...
Name of anonymous class constructor is not needed when it contains
exactly one method that is not construtor, because constructor
will be assigned to variable in closure.
2015-02-24 01:01:02 +01:00
Sebastian McKenzie
b7342ef4ea
move es6.arrowFunctions transformer - fixes #874
2015-02-24 10:31:11 +11:00
Sebastian McKenzie
1a899f5e77
move attribute whitespace handling to JSXAttribute enter - fixes #872
2015-02-24 09:48:10 +11:00
Sebastian McKenzie
f2eb1643c0
throw deprecation error for @jsx React.DOM usage and crawl all comments for pragmas - fixes #876
2015-02-24 09:38:16 +11:00
neVERberleRfellerER
9621d1bbeb
remove unnecessary derived class constructor name
2015-02-23 17:39:42 +01:00
Ondrej Kraus
3cf7b2b761
add name to constructor of extended anonymous class
2015-02-23 17:19:41 +01:00
Sebastian McKenzie
eea48f866d
allow MemberExpressions in for-of head
2015-02-23 21:31:57 +11:00
Sebastian McKenzie
52ea7b5f59
always use closure wrap - fixes #864
2015-02-22 23:23:34 +11:00
Sebastian McKenzie
341528ee4a
fix linting errors
2015-02-22 22:37:51 +11:00
Sebastian McKenzie
5f6808ba92
don't transform flow module nodes
2015-02-22 22:35:47 +11:00
Sebastian McKenzie
0b2f1fedcb
don't unpack array when the pattern contains more elements than the corresponding array expression
2015-02-22 22:35:38 +11:00
Sebastian McKenzie
f2d60aab9e
optimise named functions depending on whether they contain an assignment/reference - #861
2015-02-22 21:35:08 +11:00
Sebastian McKenzie
e11b943514
revert to old named function wrapper - fixes #861
2015-02-22 20:54:47 +11:00
Sebastian McKenzie
b44a6eb297
remove is-keyword-js in favor of esutils #856
2015-02-22 10:51:27 +11:00
Simon Lydell
476aa44a90
improve syntax highlighting in error messages
...
- Support hexadecimal, octal and binary number literals, template strings, and
tokenize everything more robustly in general.
- Tokens spanning over several lines (such as multiline strings and comments) no
longer leak their color into the line number gutter.
- The color scheme is preserved.
- The line numbers are now right-aligned instead of left-aligned, since that's
how practically every editor does it.
- Superfluos space in the line number gutter has been removed.
2015-02-21 21:20:52 +01:00
Sebastian McKenzie
5ba2e6254b
check if iterator has a return method before calling it when breaking in a for...of - #838
2015-02-21 18:00:43 +11:00
Sebastian McKenzie
61ea720637
don't traverse into replacement breaks in for-of transformer - thanks @zloirock
2015-02-21 17:55:38 +11:00