mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 10:13:25 +00:00
fix lint
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import React from "react";
|
||||
|
||||
import { useTheme } from "tamagui";
|
||||
|
||||
interface SvgTabBarIconProps {
|
||||
@@ -12,7 +11,9 @@ export default function SvgTabBarIcon({
|
||||
children,
|
||||
}: SvgTabBarIconProps) {
|
||||
const theme = useTheme();
|
||||
const fillColor = focused ? theme.tabBarIconFocused.val : theme.tabBarIcon.val;
|
||||
const fillColor = focused
|
||||
? theme.tabBarIconFocused.val
|
||||
: theme.tabBarIcon.val;
|
||||
|
||||
if (React.isValidElement(children)) {
|
||||
return React.cloneElement(children, { fillColor } as React.Attributes);
|
||||
|
@@ -1,5 +1,4 @@
|
||||
import { FontAwesome } from "@expo/vector-icons";
|
||||
|
||||
import { useTheme } from "tamagui";
|
||||
|
||||
type Props = {
|
||||
@@ -8,6 +7,6 @@ type Props = {
|
||||
|
||||
export default function TabBarIcon({ focused, ...rest }: Props) {
|
||||
const theme = useTheme();
|
||||
const color = focused ? theme.tabBarIconFocused.val : theme.tabBarIcon.val
|
||||
const color = focused ? theme.tabBarIconFocused.val : theme.tabBarIcon.val;
|
||||
return <FontAwesome color={color} size={24} {...rest} />;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"extends": "@movie-web/tsconfig/base.json",
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
|
||||
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json",
|
||||
},
|
||||
"include": ["*.ts", "src"],
|
||||
"exclude": ["node_modules"]
|
||||
"exclude": ["node_modules"],
|
||||
}
|
||||
|
@@ -38,6 +38,7 @@ const config = {
|
||||
"**/.eslintrc.cjs",
|
||||
"dist",
|
||||
"pnpm-lock.yaml",
|
||||
"tamagui-web.css",
|
||||
],
|
||||
reportUnusedDisableDirectives: true,
|
||||
};
|
||||
|
@@ -3,9 +3,7 @@
|
||||
|
||||
/** @type { PrettierConfig | SortImportsConfig } */
|
||||
const config = {
|
||||
plugins: [
|
||||
"@ianvs/prettier-plugin-sort-imports",
|
||||
],
|
||||
plugins: ["@ianvs/prettier-plugin-sort-imports"],
|
||||
importOrder: [
|
||||
"<TYPES>",
|
||||
"^(react/(.*)$)|^(react$)|^(react-native(.*)$)",
|
||||
@@ -22,6 +20,7 @@ const config = {
|
||||
],
|
||||
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
|
||||
importOrderTypeScriptVersion: "4.4.0",
|
||||
ignorePatterns: ["tamagui-web.css"],
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
Reference in New Issue
Block a user