babel-eslint
Advanced tools
Comparing version 7.1.0 to 7.1.1
@@ -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 @@ |
{ | ||
"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", |
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
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
34891
841
5
+ Addedbabel-code-frame@^6.16.0
Updatedbabylon@^6.13.0