Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Add regression test for invalid JSX (#2386)
Browse files Browse the repository at this point in the history
Fixes: #2330

[no-log]
  • Loading branch information
ajafff authored and adidahiya committed Mar 23, 2017
1 parent c1a167e commit da6ce1b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"optimist": "~0.6.0",
"resolve": "^1.1.7",
"semver": "^5.3.0",
"tsutils": "^1.2.2"
"tsutils": "^1.4.0"
},
"peerDependencies": {
"typescript": ">=2.0.0 || >=2.0.0-dev || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev"
Expand Down
6 changes: 6 additions & 0 deletions test/rules/_integration/react/invalid.tsx.lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// don't crash on invalid jsx
// tslint:disable
const a =
<span /
>
</span>
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1026,8 +1026,8 @@ timed-out@^4.0.0:
version "0.0.1"

tslint@latest:
version "4.5.0"
resolved "https://registry.yarnpkg.com/tslint/-/tslint-4.5.0.tgz#12b384a339d456ee1d3cc665f13f4e759bbe5d64"
version "4.5.1"
resolved "https://registry.yarnpkg.com/tslint/-/tslint-4.5.1.tgz#05356871bef23a434906734006fc188336ba824b"
dependencies:
babel-code-frame "^6.20.0"
colors "^1.1.2"
Expand All @@ -1039,9 +1039,9 @@ tslint@latest:
tsutils "^1.1.0"
update-notifier "^2.0.0"

tsutils@^1.1.0, tsutils@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-1.2.2.tgz#7e165c601367b9f89200b97ff47d9e38d1a6e4c8"
tsutils@^1.1.0, tsutils@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-1.4.0.tgz#84f8a83df9967d35bf1ff3aa48c7339593d64e19"

type-detect@0.1.1:
version "0.1.1"
Expand Down

0 comments on commit da6ce1b

Please sign in to comment.