-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #349 from bounswe/mobile/env/eslint-prettier
env: Set up Eslint & Prettier and Apply rules
- Loading branch information
Showing
134 changed files
with
6,362 additions
and
5,385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
babel.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"extends": [ | ||
"airbnb-base", | ||
"prettier", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
], | ||
"plugins": ["prettier", "react", "react-hooks"], | ||
"rules": { | ||
"prettier/prettier": ["error"], | ||
"eqeqeq": "off", | ||
"comma-dangle": "off", | ||
"no-underscore-dangle": "off", | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"extensions": [".js", ".jsx", ".ts", ".tsx"], | ||
}, | ||
"babel-module": {}, | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"trailingComma": "es5" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { Stack } from 'expo-router'; | ||
import React from 'react'; | ||
import { Stack } from 'expo-router' | ||
import React from 'react' | ||
|
||
export default function StackLayout() { | ||
return ( | ||
<Stack> | ||
<Stack.Screen name='index' options={{ headerShown: false }} /> | ||
<Stack.Screen name="index" options={{ headerShown: false }} /> | ||
</Stack> | ||
); | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import React from 'react'; | ||
import AccountRootScreen from '../../../screens/account-root'; | ||
import React from 'react' | ||
import AccountRootScreen from '../../../screens/account-root' | ||
|
||
export default function Account() { | ||
return ( | ||
<AccountRootScreen/> | ||
); | ||
return <AccountRootScreen /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import { Stack } from 'expo-router'; | ||
import React from 'react'; | ||
import { Stack } from 'expo-router' | ||
import React from 'react' | ||
|
||
export default function StackLayout() { | ||
return ( | ||
<Stack> | ||
<Stack.Screen name='index' options={{ headerShown: false }} /> | ||
<Stack.Screen name="index" options={{ headerShown: false }} /> | ||
</Stack> | ||
); | ||
) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import React from "react"; | ||
import CreateSubForumScreen from "../../../screens/create-subforum"; | ||
import React from 'react' | ||
import CreateSubForumScreen from '../../../screens/create-subforum' | ||
|
||
export default function post() { | ||
return <CreateSubForumScreen />; | ||
return <CreateSubForumScreen /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import React from 'react'; | ||
import CreateRootScreen from '../../../screens/create-root'; | ||
import React from 'react' | ||
import CreateRootScreen from '../../../screens/create-root' | ||
|
||
export default function Create() { | ||
return ( | ||
<CreateRootScreen/> | ||
); | ||
return <CreateRootScreen /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { Stack } from 'expo-router'; | ||
import React from 'react'; | ||
import { Stack } from 'expo-router' | ||
import React from 'react' | ||
|
||
export default function StackLayout() { | ||
return ( | ||
<Stack> | ||
<Stack.Screen name='index' options={{ headerShown: false }} /> | ||
<Stack.Screen name="index" options={{ headerShown: false }} /> | ||
</Stack> | ||
); | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import React from 'react'; | ||
import { Text } from 'react-native'; | ||
import ExploreRootScreen from '../../../screens/explore-root'; | ||
import React from 'react' | ||
import { Text } from 'react-native' | ||
import ExploreRootScreen from '../../../screens/explore-root' | ||
|
||
export default function Explore() { | ||
return ( | ||
<ExploreRootScreen/> | ||
); | ||
return <ExploreRootScreen /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
import { View, Text } from 'react-native' | ||
import React from 'react' | ||
import PostDetailScreen from '../../../screens/post-detail' | ||
|
||
export default function PostDetail() { | ||
return ( | ||
<PostDetailScreen /> | ||
) | ||
} | ||
return <PostDetailScreen /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { View, Text } from "react-native"; | ||
import React from "react"; | ||
import AssetDetailScreen from "../../../../screens/asset-detail"; | ||
import { View, Text } from 'react-native' | ||
import React from 'react' | ||
import AssetDetailScreen from '../../../../screens/asset-detail' | ||
|
||
export default function AssetDetail() { | ||
return <AssetDetailScreen />; | ||
return <AssetDetailScreen /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import React from 'react'; | ||
import SearchResultsScreen from '../../../../screens/explore-search-results'; | ||
|
||
export default function SearchItem() { | ||
return ( | ||
<SearchResultsScreen /> | ||
); | ||
} | ||
import React from 'react' | ||
import SearchResultsScreen from '../../../../screens/explore-search-results' | ||
|
||
export default function SearchItem() { | ||
return <SearchResultsScreen /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
import { View, Text } from 'react-native' | ||
import React from 'react' | ||
import PostDetailScreen from '../../../../screens/post-detail' | ||
|
||
export default function PostDetail() { | ||
return ( | ||
<PostDetailScreen /> | ||
) | ||
} | ||
return <PostDetailScreen /> | ||
} |
8 changes: 3 additions & 5 deletions
8
mobile/tradeverse/app/(tabs)/explore/search/subforum-detail.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import { View, Text } from 'react-native' | ||
import React from 'react' | ||
import SubForumDetailScreen from '../../../../screens/subforum-detail' | ||
export default function SubForumDetail() { | ||
return ( | ||
<SubForumDetailScreen/> | ||
|
||
) | ||
} | ||
export default function SubForumDetail() { | ||
return <SubForumDetailScreen /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import { View, Text } from 'react-native' | ||
import React from 'react' | ||
import SubForumDetailScreen from '../../../screens/subforum-detail' | ||
export default function SubForumDetail() { | ||
return ( | ||
<SubForumDetailScreen/> | ||
|
||
) | ||
} | ||
export default function SubForumDetail() { | ||
return <SubForumDetailScreen /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { Stack } from 'expo-router'; | ||
import React from 'react'; | ||
import { Stack } from 'expo-router' | ||
import React from 'react' | ||
|
||
export default function StackLayout() { | ||
return ( | ||
<Stack> | ||
<Stack.Screen name='index' options={{ headerShown: false }} /> | ||
<Stack.Screen name="index" options={{ headerShown: false }} /> | ||
</Stack> | ||
); | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import React from "react"; | ||
import { Text } from "react-native"; | ||
import HomeRootScreen from "../../../screens/home-root"; | ||
import React from 'react' | ||
import { Text } from 'react-native' | ||
import HomeRootScreen from '../../../screens/home-root' | ||
|
||
export default function Home() { | ||
return ( | ||
<HomeRootScreen /> | ||
); | ||
return <HomeRootScreen /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
import { View, Text } from 'react-native' | ||
import React from 'react' | ||
import PostDetailScreen from '../../../screens/post-detail' | ||
|
||
export default function PostDetail() { | ||
return ( | ||
<PostDetailScreen /> | ||
) | ||
} | ||
return <PostDetailScreen /> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import { View, Text } from 'react-native' | ||
import React from 'react' | ||
import SubForumDetailScreen from '../../../screens/subforum-detail' | ||
export default function SubForumDetail() { | ||
return ( | ||
<SubForumDetailScreen/> | ||
|
||
) | ||
} | ||
export default function SubForumDetail() { | ||
return <SubForumDetailScreen /> | ||
} |
Oops, something went wrong.