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

babel-eslint

Package Overview
Dependencies
Maintainers
2
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 7.1.0 to 7.1.1

6

index.js

@@ -9,2 +9,3 @@ var babylonToEspree = require("./babylon-to-espree");

var traverse = require("babel-traverse").default;
var codeFrame = require("babel-code-frame");

@@ -401,3 +402,6 @@ var hasPatched = false;

// remove trailing "(LINE:COLUMN)" acorn message and add in esprima syntax error message start
err.message = `Line ${err.lineNumber}: ${err.message.replace(/ \((\d+):(\d+)\)$/, "")}`;
err.message = "Line " + err.lineNumber + ": " + err.message.replace(/ \((\d+):(\d+)\)$/, "") +
// add codeframe
"\n\n" +
codeFrame(code, err.lineNumber, err.column, { highlightCode: true });
}

@@ -404,0 +408,0 @@

9

package.json
{
"name": "babel-eslint",
"version": "7.1.0",
"version": "7.1.1",
"description": "Custom parser for ESLint",

@@ -15,5 +15,6 @@ "main": "index.js",

"dependencies": {
"babel-code-frame": "^6.16.0",
"babel-traverse": "^6.15.0",
"babel-types": "^6.15.0",
"babylon": "^6.11.2",
"babylon": "^6.13.0",
"lodash.pickby": "^4.6.0"

@@ -42,5 +43,5 @@ },

"babel-eslint": "^7.0.0",
"eslint": "^3.6.0",
"eslint": "^3.9.1",
"eslint-config-babel": "^2.0.1",
"eslint-plugin-babel": "^3.3.0",
"eslint-plugin-babel": "^4.0.0",
"eslint-plugin-flowtype": "^2.4.0",

@@ -47,0 +48,0 @@ "espree": "^3.3.1",

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