Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfc154cb

Browse files
committed
chore(infra): lint with eslint rules, fix errors
1 parentb331131 commitfc154cb

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

‎.eslintrc.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@ module.exports = {
44
rules:{
55
'react-native/no-color-literals':0,
66
'import/no-extraneous-dependencies':2,
7+
quotes:[2,'single',{avoidEscape:true}],
8+
// tmp, rm it when use typescript
9+
'react/jsx-filename-extension':0,
710
},
811
}

‎.prettierrc‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"bracketSpacing": true,
3+
"trailingComma": "es5",
4+
"singleQuote": true,
5+
"tabWidth": 2,
6+
"semi": false
7+
}

‎containers/CommunityBanner/index.js‎

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
importReactfrom'react'
2-
importstyledfrom'styled-components/native'
2+
import{Text}from'react-native'
33

4-
import{
5-
Image,
6-
Platform,
7-
StyleSheet,
8-
Text,
9-
TouchableOpacity,
10-
View,
11-
}from'react-native'
12-
import{WebBrowser}from'expo'
13-
14-
import{MonoText}from'../../components/StyledText'
154
import{
165
Wrapper,
176
StyledText2,

‎containers/CommunityBanner/styles/index.js‎renamed to ‎containers/CommunityBanner/styles/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const StyledText2 = styled.Text`
1111
font-weight: bold;
1212
`
1313

14-
exportconstScrollViewWrapper=styled.ScrollView`
14+
exportconstScrollViewWrapper=styled(ScrollView)`
1515
flex: 1;
1616
background-color: #fff;
1717
padding-top: 30;

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"android":"expo start --android",
66
"ios":"expo start --ios",
77
"eject":"expo eject",
8-
"test":"node ./node_modules/jest/bin/jest.js --watchAll"
8+
"test":"node ./node_modules/jest/bin/jest.js --watchAll",
9+
"lint":"eslint containers/*"
910
},
1011
"jest": {
1112
"preset":"jest-expo"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp