Skip to content

Commit 8c5de5e

Browse files
committed
fix lint
1 parent 1859fb8 commit 8c5de5e

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

packages/babel-plugin-component-annotate/src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,6 @@ function isReactFragment(t: typeof Babel.types, openingElement: Babel.NodePath):
496496
return false;
497497
}
498498

499-
function matchesIgnoreRule(rule: string, name: string | undefined | null) {
500-
return rule === "*" || rule === name;
501-
}
502-
503499
function hasAttributeWithName(
504500
openingElement: Babel.NodePath<Babel.types.JSXOpeningElement>,
505501
name: string | undefined | null

packages/babel-plugin-component-annotate/test/test-plugin.test.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,34 +1174,6 @@ it("skips components marked in ignoreComponents", () => {
11741174
`);
11751175
});
11761176

1177-
it("Bananas incompatible plugin @react-navigation source snapshot matches", () => {
1178-
const result = transform(BananasStandardInput, {
1179-
filename: "test/node_modules/@react-navigation/core/filename-test.js",
1180-
presets: ["@babel/preset-react"],
1181-
plugins: [[plugin, { native: true }]],
1182-
});
1183-
expect(result?.code).toMatchInlineSnapshot(`
1184-
"import React, { Component } from 'react';
1185-
import { Image } from 'react-native';
1186-
class Bananas extends Component {
1187-
render() {
1188-
let pic = {
1189-
uri: 'https://upload.wikimedia.org/wikipedia/commons/d/de/Bananavarieties.jpg'
1190-
};
1191-
return /*#__PURE__*/React.createElement(Image, {
1192-
source: pic,
1193-
style: {
1194-
width: 193,
1195-
height: 110,
1196-
marginTop: 10
1197-
},
1198-
fsClass: \\"test-class\\"
1199-
});
1200-
}
1201-
}"
1202-
`);
1203-
});
1204-
12051177
it("handles ternary operation returned by function body", () => {
12061178
const result = transform(
12071179
`const maybeTrue = Math.random() > 0.5;

0 commit comments

Comments
 (0)