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:
1 parent
9db668702c
commit
5c6e0802af
23 files changed
+338
-81
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user