Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Eslint updates (#1281)

* eslint: Update eslintrc

* eslint: Strings must use singlequote quotes

* eslint: expected { after if-condition

* eslint: update warnings

* a little cleanup

* remove conflicted file

---------

Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: Paul Frazee <pfrazee@gmail.com>

authored by

Eric Bailey
Josh Soref
Paul Frazee
and committed by
GitHub
b15a4350 a0dca81a

+9 -5
+2
.eslintrc.js
··· 9 9 plugins: ['@typescript-eslint', 'detox'], 10 10 ignorePatterns: [ 11 11 '**/__mocks__/*.ts', 12 + 'src/platform/polyfills.ts', 12 13 'src/third-party', 13 14 'ios', 14 15 'android', ··· 25 26 files: ['*.js', '*.mjs', '*.ts', '*.tsx'], 26 27 rules: { 27 28 semi: [2, 'never'], 29 + 'react-native/no-inline-styles': 0, 28 30 }, 29 31 }, 30 32 ],
+2 -2
src/view/com/modals/Modal.web.tsx
··· 118 118 } 119 119 120 120 return ( 121 - // eslint-disable-next-line 121 + // eslint-disable-next-line react-native-a11y/has-valid-accessibility-descriptors 122 122 <TouchableWithoutFeedback onPress={onPressMask}> 123 123 <View style={styles.mask}> 124 - {/* eslint-disable-next-line */} 124 + {/* eslint-disable-next-line react-native-a11y/has-valid-accessibility-descriptors */} 125 125 <TouchableWithoutFeedback onPress={onInnerPress}> 126 126 <View 127 127 style={[
+1 -1
src/view/com/modals/ProfilePreview.tsx
··· 21 21 const {screen} = useAnalytics() 22 22 23 23 // track the navigator state to detect if a page-load occurred 24 - const navState = useNavigationState(s => s) 24 + const navState = useNavigationState(state => state) 25 25 const [initNavState] = useState(navState) 26 26 const isLoading = initNavState !== navState 27 27
+2
src/view/com/util/Alert.web.tsx
··· 3 3 class WebAlert implements Pick<AlertStatic, 'alert'> { 4 4 public alert(title: string, message?: string, buttons?: AlertButton[]): void { 5 5 if (buttons === undefined || buttons.length === 0) { 6 + // eslint-disable-next-line no-alert 6 7 window.alert([title, message].filter(Boolean).join('\n')) 7 8 return 8 9 } 9 10 11 + // eslint-disable-next-line no-alert 10 12 const result = window.confirm([title, message].filter(Boolean).join('\n')) 11 13 12 14 if (result === true) {
+2 -2
src/view/com/util/ViewSelector.tsx
··· 174 174 <View 175 175 style={[pal.view, styles.outer]} 176 176 onLayout={e => { 177 - const {height} = e.nativeEvent.layout 178 - setHeight(height || 60) 177 + const {height: layoutHeight} = e.nativeEvent.layout 178 + setHeight(layoutHeight || 60) 179 179 }}> 180 180 {items.map((item, i) => { 181 181 const selected = i === selectedIndex