Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-eslint

Package Overview
Dependencies
Maintainers
1
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-eslint - npm Package Compare versions

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 @@

5

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc