Skip to content

Commit 17312b1

Browse files
authored
Merge pull request Intellicode#256 from rickdunkin/patch-1
Support TypeScript in split-platform-components
2 parents 708932e + 43cc371 commit 17312b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rules/split-platform-components.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ module.exports = function (context) {
1313
const conflictMessage = 'IOS and Android components can\'t be mixed';
1414
const iosPathRegex = context.options[0] && context.options[0].iosPathRegex
1515
? new RegExp(context.options[0].iosPathRegex)
16-
: /\.ios\.js$/;
16+
: /\.ios\.[j|t]sx?$/;
1717
const androidPathRegex = context.options[0] && context.options[0].androidPathRegex
1818
? new RegExp(context.options[0].androidPathRegex)
19-
: /\.android\.js$/;
19+
: /\.android\.[j|t]sx?$/;
2020

2121
function getName(node) {
2222
if (node.type === 'Property') {

0 commit comments

Comments
 (0)