Skip to content

Commit cca868c

Browse files
authored
Upgrade dev deps (#77)
* Upgrade dev deps * fixed new eslint errors
1 parent a11b130 commit cca868c

File tree

4 files changed

+1018
-377
lines changed

4 files changed

+1018
-377
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"react/jsx-filename-extension": 0,
1010
"react/prefer-stateless-function": 0,
1111
"react/sort-comp": 0,
12+
"react/destructuring-assignment": "never",
1213
"no-use-before-define": 0,
1314
"no-underscore-dangle": 0,
1415
"import/no-extraneous-dependencies": 0,

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
},
2222
"devDependencies": {
2323
"babel-eslint": "10.0.1",
24-
"babel-jest": "23.0.1",
25-
"babel-preset-airbnb": "2.6.0",
24+
"babel-jest": "^23.6.0",
25+
"babel-preset-airbnb": "^3.2.0",
2626
"babel-preset-react-native": "4.0.1",
2727
"eslint": "5.12.0",
28-
"eslint-config-airbnb": "16.1.0",
28+
"eslint-config-airbnb": "^17.1.0",
2929
"eslint-plugin-import": "2.14.0",
3030
"eslint-plugin-jsx-a11y": "6.1.2",
3131
"eslint-plugin-prefer-object-spread": "1.2.1",
3232
"eslint-plugin-react": "7.12.3",
33-
"jest": "23.1.0",
33+
"jest": "^23.6.0",
3434
"react-test-renderer": "16.3.2"
3535
},
3636
"jest": {

src/App.js

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -345,31 +345,36 @@ export default class App extends Component {
345345
</View>
346346

347347
<Text style={styles.lastCheckedText}>
348-
Last Checked: {this.state.lastChecked === '0' ? 'Never' : moment(parseFloat(this.state.lastChecked)).fromNow()}
348+
Last Checked:
349+
{this.state.lastChecked === '0' ? 'Never' : moment(parseFloat(this.state.lastChecked)).fromNow()}
349350
</Text>
350351

351-
{this.state.taskSet === 'no' && <Button
352-
style={styles.checkingButton}
353-
title="Start Checking"
354-
onPress={this.createPrefetchJobs}
355-
/> }
356-
{this.state.taskSet === 'yes' && <Button
357-
style={styles.checkingButton}
358-
title="Stop Checking"
359-
onPress={this.deletePrefetchJobs}
360-
/> }
352+
{this.state.taskSet === 'no' && (
353+
<Button
354+
style={styles.checkingButton}
355+
title="Start Checking"
356+
onPress={this.createPrefetchJobs}
357+
/>
358+
) }
359+
{this.state.taskSet === 'yes' && (
360+
<Button
361+
style={styles.checkingButton}
362+
title="Stop Checking"
363+
onPress={this.deletePrefetchJobs}
364+
/>
365+
) }
361366

362367
{this.state.loading && <ActivityIndicator size="large" color="#7a42f4" /> }
363368

364-
{this.state.taskSet === 'yes' && this.state.url !== '' &&
369+
{this.state.taskSet === 'yes' && this.state.url !== '' && (
365370
<WebView
366371
style={styles.webview}
367372
source={{ uri: this.state.url }}
368373
dataDetectorTypes="all"
369374
scalesPageToFit={false}
370375
{...webViewProps}
371376
/>
372-
}
377+
) }
373378

374379
</ScrollView>
375380
);

0 commit comments

Comments
 (0)