Don't default parser to babylon (#4528)

* Don't default parser to babylon

* Different default values according to version

* Fix error logging

* Add tests specifically for parser inference

* Add another test case

* Add API test
This commit is contained in:
Lucas Duailibe authored and GitHub committed 2018-05-23 16:55:06 -03:00
1 parent 9db668702c
commit 5c6e0802af
23 files changed
+338 -81

No files matched your search

+2 -6
View File
@@ -42,12 +42,8 @@ module.exports = {
},
check: function(text, opts) {
try {
const formatted = formatWithCursor(text, opts).formatted;
return formatted === text;
} catch (e) {
return false;
}
const formatted = formatWithCursor(text, opts).formatted;
return formatted === text;
},
doc,