We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 708932e + 43cc371 commit 17312b1Copy full SHA for 17312b1
lib/rules/split-platform-components.js
@@ -13,10 +13,10 @@ module.exports = function (context) {
13
const conflictMessage = 'IOS and Android components can\'t be mixed';
14
const iosPathRegex = context.options[0] && context.options[0].iosPathRegex
15
? new RegExp(context.options[0].iosPathRegex)
16
- : /\.ios\.js$/;
+ : /\.ios\.[j|t]sx?$/;
17
const androidPathRegex = context.options[0] && context.options[0].androidPathRegex
18
? new RegExp(context.options[0].androidPathRegex)
19
- : /\.android\.js$/;
+ : /\.android\.[j|t]sx?$/;
20
21
function getName(node) {
22
if (node.type === 'Property') {
0 commit comments