babel-eslint
Advanced tools
Comparing version 1.0.0 to 1.0.1
17
index.js
@@ -14,8 +14,19 @@ var acornToEsprima = require("./acorn-to-esprima"); | ||
try { | ||
require.resolve("eslint"); | ||
} catch (err) { | ||
throw new ReferenceError("couldn't resolve eslint"); | ||
} | ||
// get modules relative to what eslint will load | ||
var eslintMod = new Module(require.resolve("eslint")); | ||
var escopeLoc = Module._resolveFilename("escope", eslintMod); | ||
var escopeMod = new Module(escopeLoc); | ||
// monkeypatch estraverse | ||
var estraverse = require("estraverse"); | ||
var estraverse = escopeMod.require("estraverse"); | ||
extend(estraverse.VisitorKeys, t.VISITOR_KEYS); | ||
// monkeypatch escope | ||
var escope = require("eslint/node_modules/escope"); | ||
var escope = require(escopeLoc); | ||
var analyze = escope.analyze; | ||
@@ -34,4 +45,4 @@ escope.analyze = function (ast, opts) { | ||
opts.ecmaVersion = 7; | ||
opts.playground = true; | ||
opts.locations = true; | ||
opts.playground = true; | ||
opts.ranges = true; | ||
@@ -38,0 +49,0 @@ |
{ | ||
"name": "babel-eslint", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -10,2 +10,5 @@ "main": "index.js", | ||
}, | ||
"dependencies": { | ||
"babel": "^4.6.0" | ||
}, | ||
"author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
@@ -12,0 +15,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3361
92
1
2
+ Addedbabel@^4.6.0
+ Addedacorn@5.7.4(transitive)
+ Addedacorn-babel@0.11.1-38(transitive)
+ Addedamdefine@1.0.1(transitive)
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedast-types@0.7.80.8.150.9.6(transitive)
+ Addedasync-each@0.1.6(transitive)
+ Addedbabel@4.7.16(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedchokidar@0.12.6(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedcommoner@0.10.8(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconvert-source-map@0.5.1(transitive)
+ Addedcore-js@0.6.1(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addeddefined@1.0.1(transitive)
+ Addeddetect-indent@3.0.1(transitive)
+ Addeddetective@4.7.1(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedesprima@2.7.33.1.3(transitive)
+ Addedesprima-fb@15001.1001.0-dev-harmony-fb(transitive)
+ Addedestraverse@1.9.3(transitive)
+ Addedesutils@1.1.6(transitive)
+ Addedfs-readdir-recursive@0.1.2(transitive)
+ Addedfsevents@0.3.8(transitive)
+ Addedget-stdin@4.0.1(transitive)
+ Addedglob@5.0.15(transitive)
+ Addedglobals@6.4.1(transitive)
+ Addedgraceful-fs@2.0.34.2.11(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-finite@1.1.0(transitive)
+ Addedis-integer@1.0.7(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedjs-tokens@1.0.0(transitive)
+ Addedjsesc@0.5.0(transitive)
+ Addedleft-pad@0.0.3(transitive)
+ Addedleven@1.0.2(transitive)
+ Addedline-numbers@0.2.0(transitive)
+ Addedlodash@3.10.1(transitive)
+ Addedlru-cache@2.7.3(transitive)
+ Addedminimatch@0.2.143.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedms@2.0.0(transitive)
+ Addednan@2.22.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedoutput-file-sync@1.1.2(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedprivate@0.1.8(transitive)
+ Addedq@1.5.1(transitive)
+ Addedreadable-stream@1.0.34(transitive)
+ Addedreaddirp@1.3.0(transitive)
+ Addedrecast@0.10.430.11.23(transitive)
+ Addedregenerate@1.4.2(transitive)
+ Addedregenerator-babel@0.8.13-2(transitive)
+ Addedregexpu@1.3.0(transitive)
+ Addedregjsgen@0.2.0(transitive)
+ Addedregjsparser@0.1.5(transitive)
+ Addedrepeating@1.1.3(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedshebang-regex@1.0.0(transitive)
+ Addedsigmund@1.0.1(transitive)
+ Addedslash@1.0.0(transitive)
+ Addedsource-map@0.1.320.4.40.5.7(transitive)
+ Addedsource-map-support@0.2.10(transitive)
+ Addedstring_decoder@0.10.31(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedto-fast-properties@1.0.3(transitive)
+ Addedtrim-right@1.0.1(transitive)
+ Addedwrappy@1.0.2(transitive)