Skip to content
This repository was archived by the owner on Dec 4, 2022. It is now read-only.

Commit 2818dda

Browse files
author
David First
authored
fix parsing tsx files by adjusting the parser option to @typescript-e… (#88)
* fix parsing tsx files by adjusting the parser option to @typescript-eslint/parser. previously, they were configured according to typescript-eslint-parser * bump version. update CHANGELOG
1 parent b3adb2a commit 2818dda

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [unreleased]
99

10+
## [2.0.1-dev.1] - 2019-02-4
11+
12+
- fix parsing `.tsx` files
13+
1014
## [[2.0.0] - 2019-02-04](https://github.com/teambit/bit-javascript/releases/tag/v2.0.0)
1115

1216
- update node-source-walk package to support `<>` jsx syntax by Babel

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bit-javascript",
3-
"version": "2.0.0",
3+
"version": "2.0.1-dev.1",
44
"scripts": {
55
"flow": "flow; test $? -eq 0 -o $? -eq 2",
66
"lint": "eslint src && flow check || true",

src/dependency-builder/precinct/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ precinct.paperwork = function (filename, options) {
167167
return 'stylus';
168168
case '.tsx':
169169
if (!options.ts) options.ts = {};
170-
options.ts.ecmaFeatures = { jsx: true };
170+
options.ts.jsx = true;
171171
return 'ts';
172172
case '.jsx':
173173
return 'es6';

0 commit comments

Comments
 (0)