refactor(javascript): move loc util (#4443)
This commit is contained in:
2 files changed
+4
-6
No files matched your search
@@ -214,7 +214,5 @@ module.exports = {
|
||||
languages,
|
||||
options,
|
||||
parsers,
|
||||
printers,
|
||||
locStart,
|
||||
locEnd
|
||||
printers
|
||||
};
|
||||
+3
-3
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user