7340 Commits

Author SHA1 Message Date
Nazim Hajidin
71e0e00bfe Fix line endings on checkout 2016-10-17 10:51:49 -04:00
Moti Zilberman
b8eeddf960 Automatically generate missing expected.js fixtures (#4735)
This is much like Babylon's existing behavior around `expected.json`. The equivalent of babel/babylon#188 is already applied here, to guard against silent failure (and a potential false positive) if a test is accidentally committed without its expected.js.
2016-10-17 16:39:32 +02:00
Brian Ng
478bba0ade Fix few typos in issue/pr templates (#4739) [skip ci] 2016-10-17 00:20:24 -04:00
Henry Zhu
2dc919d4c6 contributing updates [skip ci] 2016-10-15 19:27:24 -04:00
Henry Zhu
9299921d07 increase git depth [skip ci] 2016-10-15 18:52:14 -04:00
Andrew Levine
9f8ab29213 Change usage of "suite"/"test" in unit-tests to "describe"/"it" (#4734)
Fixes #4733
2016-10-15 18:45:35 -04:00
Andrew Levine
c0038221d7 Run ESLint on test files, and fix lint errors in test files (#4732) 2016-10-15 18:27:48 -04:00
Moti Zilberman
fd218abffb Add .gitattributes forcing LF line endings (#4730) 2016-10-15 10:29:12 -04:00
Moti Zilberman
76de1cc8a4 Update tests for changed error messages in Babylon (#4727)
Depends on babel/babylon#172.
2016-10-14 16:25:56 -04:00
Moti Zilberman
2827d660fc Make special case for class property initializers in shadow-functions (#4502) 2016-10-14 15:21:11 -04:00
Brian Ng
fde16f10fa Add useBuiltIns option to helper-builder-react-jsx (#4655) 2016-10-14 21:18:39 +02:00
Sam Goldman
15183078e6 Add EmptyTypeAnnotation (#4724)
Added to Flow in facebook/flow#c603505583993aa953904005f91c350f4b65d6bd
Parser support added in babel/babylon#171.
2016-10-14 15:16:02 -04:00
Kai Cataldo
50baac3251 Remove babel-doctor from babel-cli (#4725)
* Remove babel-doctor from babel-cli

fixes #4678

* Throw when babel-doctor is used
2016-10-14 14:49:16 -04:00
Jamesernator
dc4140dc5f Fixed incorrect compilation of async iterator methods (#4719) 2016-10-14 14:38:57 -04:00
Moti Zilberman
9fc51d6292 Consolidate contiguous var declarations in destructuring transform (#4690)
* Consolidate contiguous var declarations in destructuring transform

Fixes #3081.

* Simplify var node coalescing in es2015-destructuring

* Revert "Simplify var node coalescing in es2015-destructuring"

This reverts commit 15cb373f0726f68225f7080a7ae206a63af174ee.

* More careful condition for var coalescing in es2015-destructuring
2016-10-14 11:51:22 -04:00
Henry Zhu
71790aace0 update eslint-config, fixes, add commands (#4721)
* update eslint-config, fixes, add commands

* switch plugin
2016-10-13 21:37:07 +02:00
Henry Zhu
09f135f9a1 fix spacing [skip ci] 2016-10-12 11:33:03 -04:00
Henry Zhu
668428097c add deprecated in readme for class-constructor-call [skip ci] 2016-10-12 10:17:19 -04:00
Henry Zhu
ccff8fa286 add deprecated in readme for class-constructor-call [skip ci] 2016-10-12 10:17:03 -04:00
Henry Zhu
9a979b5618 add deprecated description for class-constructor-call [skip ci] 2016-10-12 10:16:43 -04:00
Flavio Corpa
9b02a6d298 Add missing description to all package.json files (#4703) [skip ci] 2016-10-12 10:15:50 -04:00
Henry Zhu
9c7d8c4cad update phab links explanation [skip ci] 2016-10-12 08:45:52 -04:00
Daniel Tschinder
1dca51f8ab Enable babel for tests (#4564)
* Enable babel for tests

This enables babel for tests by using a mocha compiler
It uses the babel config from package.json
Transformed OptionsManager test to es2015 to see if it works
Removed the 5s timeout from cli tests, as the default timeout is already 10s, this should probably fix the timouts on travis that we had in babylon
Also run the cli tests on travis, they were disabled if istanbul active, but istanbul is always active on travis so we were never running this tests.

* ignore scripts directory

* only register for tests

* Set only flag correctly
2016-10-12 10:56:50 +02:00
Eric Rozell
c2387f0444 fix(shouldIgnore): filename normalization should be platform sensitive (#4631)
* fix(shouldIgnore): filename normalization should be platform sensitive

shouldIgnore normalizes the path of the filename prior to running any "only" regexes or functions. The normalization uses "slash", which has some undesirable special cases for non-ASCII characters and longer paths. Changing the normalization behavior to always replace path separators.

There is no real need to add additional tests, because the tests are not run in an environment where path.sep !== '/'.

* Minor style fix to use double quotes.

* Remove conditional for regex replace to keep consistent behavior.

* whitespace [skip ci]
2016-10-11 16:02:50 -04:00
Kai Cataldo
27ee74ea14 Better error messaging when preset options are given without a corresponding preset (#4685) 2016-10-11 16:56:53 +02:00
Daniel Tschinder
760bbd6014 🚀 Update home-or-tmp to version 2.0.0 (#4660) 2016-10-07 16:48:45 -04:00
Brian Ng
0aa3ac2bb5 Update babel parser options (#4688)
* Update babel parser options
2016-10-07 14:30:47 -04:00
Dan Harper
33eb56ab09 fix error when constructor default arg refers to own static property or self (#4666)
(closes #4253)
(closes #4442)
2016-10-05 17:52:42 -04:00
Gyandeep Singh
6cfd3d91b2 Update: Eslint to 3.0 and update CI builds (fixes #4638) (#4680) 2016-10-05 17:44:25 -04:00
Moti Zilberman
0366d1ad19 Handle side effects correctly in rest params index expressions (#4348) (#4674) 2016-10-05 21:59:41 +02:00
Moti Zilberman
7a7704fea0 Fix block scoping transform for declarations in labeled statements (#4669)
* Fix block scoping transform for declarations in labeled statements (#4122)

* DRY block-scoping
2016-10-05 21:47:21 +02:00
Moti Zilberman
a62905c61d Remove travis short-circuit script (#4676) 2016-10-05 11:27:55 -04:00
Moti Zilberman
12d2673038 Add test for rest params name collision with top-level name (#4333) (#4673) 2016-10-05 10:15:04 -04:00
Daniel Tschinder
a15f992feb 🚀 Update fs-readdir-recursive to 1.0.0 (#4662)
* 🚀 Update fs-readdir-recursive to 1.0.0

* Revert chalk change
2016-10-05 09:57:02 -04:00
Daniel Tschinder
6d863baef8 🚀 Update chai to version 3.0.0 (#4664) 2016-10-05 09:56:26 -04:00
Sebastiaan Deckers
7977c9249e Babel API example (#4675) [skip ci]
Just a minor fix. I'm new to Babel's API and this tripped me up. Seems like it happened to others before (e.g. #2859). Guessing this came from an earlier `var babel = require('babel-core')` which does work.
2016-10-05 09:50:11 -04:00
Moti Zilberman
f5b5d8f337 Avoid repeating impure (template) literals when desugaring **= (#4403) (#4672) 2016-10-05 11:10:12 +02:00
Dan Harper
9e17aaf043 retain return types on ObjectMethods in transform-es2015-shorthand-properties (#4670) 2016-10-04 21:32:43 -04:00
Henry Zhu
9e6ac7b693 typo [skip ci] 2016-10-04 20:56:05 -04:00
Henry Zhu
338e6364a3 update pkgs [skip ci]
- remove babili pkgs
- remove deprecated (class constructor)
- add new
2016-10-04 20:53:54 -04:00
Dan Harper
7f772e94ce retain method return types on transform-es2015-classes (closes #4665) (#4668) 2016-10-04 18:22:29 -04:00
Daniel Tschinder
fc54264f70 update json5 to version 0.5.0 (#4649) 2016-10-04 08:32:32 -04:00
Daniel Tschinder
2dcee25d37 Exclude super from being assign (#4642)
Assigning of super is not allowed `var ref = super;` This fix adds an exception into
the explode helper so that super stays untouched and does not get assigned.
2016-10-03 21:04:26 -04:00
Daniel Tschinder
ab3cff7cc3 Update detect-indent to version 4.0.0 (#4652) 2016-10-03 21:02:03 -04:00
Daniel Tschinder
3a69b8a252 Update globals to version 9.0.0 (#4651) 2016-10-03 21:01:06 -04:00
Daniel Tschinder
e0dbb1e770 Inline shebang-regex (#4650) 2016-10-03 20:58:26 -04:00
sugargreenbean
c57e0e88a5 changed bool to boolean as well as updated tests (#4646) 2016-10-03 19:31:56 -04:00
Gyandeep Singh
cc86799151 Docs: Fix babel-plugin-transform-async-generator-functions heading (#4656) [skip ci] 2016-10-03 18:16:40 -04:00
Brian Ng
9eb99dec9f Tweak license for GitHub display (#4653) 2016-10-03 16:17:16 -04:00
Henry Zhu
7ed15e298a mention issues [skip ci] 2016-10-03 15:03:36 -04:00