refactor(javascript): move loc util (#4443)

This commit is contained in:
Ika authored and GitHub committed 2018-05-10 02:23:40 +08:00
1 parent f48dd0ea3b
commit 0f02940de2
2 files changed
+4 -6

No files matched your search

+1 -3
View File
@@ -214,7 +214,5 @@ module.exports = {
languages,
options,
parsers,
printers,
locStart,
locEnd
printers
};
+3 -3
View File
@@ -2,10 +2,10 @@
const path = require("path");
const ConfigError = require("../common/errors").ConfigError;
const js = require("../language-js/index.js");
const babylon = require("../language-js/index").parsers.babylon;
const locStart = js.locStart;
const locEnd = js.locEnd;
const locStart = babylon.locStart;
const locEnd = babylon.locEnd;
function getParsers(options) {
return options.plugins.reduce(