eslint-mdx
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [1.6.1](https://github.com/rx-ts/eslint-mdx/compare/v1.6.0...v1.6.1) (2019-10-23) | ||
### Bug Fixes | ||
* handle loc and range could be undefined for babel-eslint ([a98bf9d](https://github.com/rx-ts/eslint-mdx/commit/a98bf9d9fca73b04adf8b607568e28f2883967df)) | ||
# [1.6.0](https://github.com/rx-ts/eslint-mdx/compare/v1.5.9...v1.6.0) (2019-10-23) | ||
@@ -8,0 +19,0 @@ |
@@ -403,3 +403,6 @@ 'use strict'; | ||
} | ||
var _a = jsNode.loc, start = _a.start, end = _a.end, range = jsNode.range; | ||
var nodeStart = jsNode.start, nodeEnd = jsNode.end, _a = jsNode.loc, _b = _a === void 0 ? { | ||
start: { column: nodeStart, line: 1 }, | ||
end: { column: nodeEnd, line: 1 }, | ||
} : _a, start = _b.start, end = _b.end, _c = jsNode.range, range = _c === void 0 ? [nodeStart, nodeEnd] : _c; | ||
var startLine = line + start.line - 1; | ||
@@ -406,0 +409,0 @@ var endLine = line + end.line - 1; |
@@ -378,3 +378,6 @@ import { parse as parse$1 } from 'espree'; | ||
} | ||
const { loc: { start, end }, range, } = jsNode; | ||
const { start: nodeStart, end: nodeEnd, loc: { start, end } = { | ||
start: { column: nodeStart, line: 1 }, | ||
end: { column: nodeEnd, line: 1 }, | ||
}, range = [nodeStart, nodeEnd], } = jsNode; | ||
const startLine = line + start.line - 1; | ||
@@ -381,0 +384,0 @@ const endLine = line + end.line - 1; |
@@ -397,3 +397,6 @@ import { __assign } from 'tslib'; | ||
} | ||
var _a = jsNode.loc, start = _a.start, end = _a.end, range = jsNode.range; | ||
var nodeStart = jsNode.start, nodeEnd = jsNode.end, _a = jsNode.loc, _b = _a === void 0 ? { | ||
start: { column: nodeStart, line: 1 }, | ||
end: { column: nodeEnd, line: 1 }, | ||
} : _a, start = _b.start, end = _b.end, _c = jsNode.range, range = _c === void 0 ? [nodeStart, nodeEnd] : _c; | ||
var startLine = line + start.line - 1; | ||
@@ -400,0 +403,0 @@ var endLine = line + end.line - 1; |
@@ -178,3 +178,6 @@ import { __assign } from "tslib"; | ||
} | ||
var _a = jsNode.loc, start = _a.start, end = _a.end, range = jsNode.range; | ||
var nodeStart = jsNode.start, nodeEnd = jsNode.end, _a = jsNode.loc, _b = _a === void 0 ? { | ||
start: { column: nodeStart, line: 1 }, | ||
end: { column: nodeEnd, line: 1 }, | ||
} : _a, start = _b.start, end = _b.end, _c = jsNode.range, range = _c === void 0 ? [nodeStart, nodeEnd] : _c; | ||
var startLine = line + start.line - 1; | ||
@@ -181,0 +184,0 @@ var endLine = line + end.line - 1; |
{ | ||
"name": "eslint-mdx", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "ESLint Parser for MDX", | ||
@@ -38,3 +38,3 @@ "repository": "git+https://github.com/rx-ts/eslint-mdx.git", | ||
}, | ||
"gitHead": "056e00d877ec08cae3217b1fafae8161297229db" | ||
"gitHead": "86a73a8c39aae2cbe9b96f8c3ce12c7c7d4854c1" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
127150
2054