Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: incorrect jsx html comment end location
  • Loading branch information
JounQin committed Aug 10, 2019
1 parent f0d048e commit 7a1f05b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-mdx/src/parser.ts
Expand Up @@ -114,7 +114,7 @@ export class Parser {
offset: startOffset + offset,
},
end: {
line: line + endLineOffset - 1,
line: line + endLineOffset,
column:
last(endLines).length + (endLineOffset ? 0 : column - 1),
offset: startOffset + endOffset,
Expand Down
4 changes: 2 additions & 2 deletions test/parser.test.ts
Expand Up @@ -19,7 +19,7 @@ describe('parser', () => {
loc: {
end: {
column: 29,
line: 0,
line: 1,
offset: 29,
},
start: {
Expand All @@ -35,7 +35,7 @@ describe('parser', () => {
loc: {
end: {
column: 49,
line: 0,
line: 1,
offset: 49,
},
start: {
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Expand Up @@ -2983,11 +2983,6 @@ eslint-import-resolver-typescript@JounQin/eslint-import-resolver-typescript#feat
resolve "^1.4.0"
tsconfig-paths "^3.6.0"

eslint-mdx@^0.9.7:
version "0.9.7"
resolved "https://registry.yarnpkg.com/eslint-mdx/-/eslint-mdx-0.9.7.tgz#cc82cdfd00c732cd9774777860a0fbe3e2b39eee"
integrity sha512-0akc6epqxYRDolHe6CJa/yemVdSGNDI1vrQ6ILXzzEKSCB4JqxZ6U3nNp9X9SXCYW2c/uIFDFgRxBY4gZp3jPQ==

"eslint-mdx@link:packages/eslint-mdx/src":
version "0.0.0"
uid ""
Expand Down

0 comments on commit 7a1f05b

Please sign in to comment.