chore: fix linting problems

This commit is contained in:
Christian Landgren 2021-08-14 12:59:12 +02:00
parent 599809ff6a
commit d58d1a9b70
8 changed files with 10 additions and 14 deletions

View File

@ -22,7 +22,6 @@ import { studentName } from '../utils/peopleHelpers'
import { translate } from '../utils/translation'
import { RootStackParamList } from './navigation.component'
import { StudentAvatar } from './studentAvatar.component'
import { DaySummary } from './daySummary.component'
interface ChildListItemProps {
child: Child
@ -95,7 +94,6 @@ export const ChildListItem = ({ child, color }: ChildListItemProps) => {
const className = getClassName()
const styles = useStyleSheet(themeStyles)
const date = moment()
return (
<TouchableOpacity

View File

@ -80,7 +80,9 @@ export const Children = () => {
useEffect(() => {
navigation.setOptions({
headerLeft: () => {
return <TopNavigationAction icon={CloseOutlineIcon} onPress={settings} />
return (
<TopNavigationAction icon={CloseOutlineIcon} onPress={settings} />
)
},
})
}, [navigation, settings])

View File

@ -1,9 +1,8 @@
import { Icon, IconProps } from '@ui-kitten/components'
import React from 'react'
const uiIcon = (name: string) => (props: IconProps) => (
const uiIcon = (name: string) => (props: IconProps) =>
<Icon {...props} name={name} />
)
export const AlertIcon = uiIcon('alert-circle-outline')
export const BackIcon = uiIcon('arrow-back')

View File

@ -31,9 +31,8 @@ export const SetLanguage = () => {
const currentLanguage = LanguageService.getLanguageCode()
const [selectedLanguage, setSelectedLanguage] = useState<string>(
currentLanguage
)
const [selectedLanguage, setSelectedLanguage] =
useState<string>(currentLanguage)
const { setLanguageCode } = useLanguage()
const shouldRestart = () => {

View File

@ -6,5 +6,4 @@ import { AppRegistry } from 'react-native'
import App from './App'
import { name as appName } from './app.json'
AppRegistry.registerComponent(appName, () => App)

View File

@ -12,8 +12,7 @@
"test:watch": "jest --watch",
"typecheck": "tsc --watch",
"i18n": "sync-i18n --files '**/translations/*.json' --primary en --languages ar de pl so sv --space 2",
"check-i18n": "npm run i18n -- --check",
"postinstall": "patch-package"
"check-i18n": "npm run i18n -- --check"
},
"dependencies": {
"@eva-design/eva": "2.0.0",

View File

@ -1,3 +1,3 @@
module.exports = {
assets: ['./assets/fonts']
}
assets: ['./assets/fonts'],
}

View File

@ -30,7 +30,7 @@ export const fontWeight: Record<FontWeight, TextStyle> = {
},
bold: {
...systemWeights.bold,
}
},
}
export const header: TextStyle = {