Skip to content

Commit f794512

Browse files
committed
chore: fix eslint errors
1 parent d1f6963 commit f794512

File tree

8 files changed

+22
-15
lines changed

8 files changed

+22
-15
lines changed

.config/eslint.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ export default tseslint.config(
1717
},
1818
},
1919
globalIgnores([
20-
"dist/*",
20+
"**/dist/*",
2121
".yarn/*",
2222
"**/eslint.config.[cm]js",
23+
"**/prettier.config.[cm]js",
2324
"**/babel.config.js",
2425
"**/metro.config.js",
2526
]),

src/babel/import-plugin.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
1-
import { type PluginObj } from "@babel/core";
21
import { resolve } from "path";
32

3+
import { type PluginObj } from "@babel/core";
4+
import type { Statement } from "@babel/types";
5+
46
import {
7+
getInteropRequireDefaultSource,
58
type BabelTypes,
69
type PluginState,
7-
getInteropRequireDefaultSource,
810
} from "./helpers";
9-
import {
10-
handleReactNativeWebIdentifierRequire,
11-
handleReactNativeWebImport,
12-
handleReactNativeWebObjectPatternRequire,
13-
} from "./react-native-web";
14-
import type { Statement } from "@babel/types";
1511
import {
1612
handleReactNativeIdentifierRequire,
1713
handleReactNativeImport,
1814
handleReactNativeObjectPatternRequire,
1915
} from "./react-native";
16+
import {
17+
handleReactNativeWebIdentifierRequire,
18+
handleReactNativeWebImport,
19+
handleReactNativeWebObjectPatternRequire,
20+
} from "./react-native-web";
2021

2122
export default function ({
2223
types: t,

src/babel/react-native-web.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
import { type NodePath } from "@babel/traverse";
1+
import { resolve } from "path";
22

3+
import { type NodePath } from "@babel/traverse";
34
import tBabelTypes, {
45
type ImportDeclaration,
56
type ObjectPattern,
67
type Statement,
78
type VariableDeclaration,
89
} from "@babel/types";
10+
911
import { allowedModules } from "./allowedModules";
10-
import { resolve } from "path";
1112

1213
type BabelTypes = typeof tBabelTypes;
1314

src/babel/react-native.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
import { type NodePath } from "@babel/traverse";
1+
import { dirname, resolve } from "path";
22

3+
import { type NodePath } from "@babel/traverse";
34
import tBabelTypes, {
45
type ImportDeclaration,
56
type ObjectPattern,
67
type Statement,
78
type VariableDeclaration,
89
} from "@babel/types";
10+
911
import { allowedModules } from "./allowedModules";
10-
import { dirname, resolve } from "path";
1112

1213
type BabelTypes = typeof tBabelTypes;
1314

src/compiler/atRules.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import type {
44
Rule,
55
TokenOrValue,
66
} from "lightningcss";
7+
78
import type { StyleRuleMapping } from "./compiler.types";
8-
import { splitByDelimiter } from "./split-by-delimiter";
99
import { toRNProperty } from "./selectors";
10+
import { splitByDelimiter } from "./split-by-delimiter";
1011
import type { StylesheetBuilder } from "./stylesheet";
1112

1213
export interface PropAtRule {

src/runtime/native/__tests__/animations.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { render, screen } from "@testing-library/react-native";
22
import { View } from "react-native-css/components/View";
33
import { registerCSS, testID } from "react-native-css/jest";
4+
45
// import { getAnimatedStyle } from "react-native-reanimated";
56

67
const getAnimatedStyle = (..._args: unknown[]): unknown => {

src/runtime/native/__tests__/vars.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { render, screen } from "@testing-library/react-native";
22
import { View } from "react-native-css/components/View";
3-
43
import { registerCSS, testID } from "react-native-css/jest";
4+
55
import { vars } from "../api";
66

77
test("vars", () => {

src/runtime/native/styles/platform-functions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { PixelRatio, PlatformColor, StyleSheet } from "react-native";
2+
23
import type { StyleFunctionResolver } from "./resolve";
34

45
export const platformColor: StyleFunctionResolver = (resolveValue, value) => {

0 commit comments

Comments
 (0)