Skip to content

Commit 284ee74

Browse files
authored
chore: update lint config and typescript (#100)
* chore: update lint config * chore: update lock file * chore: update node version * chore: apply lint
1 parent 2c0d8db commit 284ee74

File tree

4 files changed

+593
-300
lines changed

4 files changed

+593
-300
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,14 @@ defaults: &defaults
6060
js_defaults: &js_defaults
6161
<<: *defaults
6262
docker:
63-
- image: circleci/node:8
63+
- image: circleci/node:10
6464
environment:
6565
- PATH: "/opt/yarn/yarn-v1.5.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
6666

6767
# -------------------------
6868
# JOBS
6969
# -------------------------
70+
7071
version: 2
7172
jobs:
7273
# Set up a Node environment for downstream jobs

js/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,28 +194,28 @@ class PushNotificationIOS {
194194
if (type === 'notification') {
195195
listener = PushNotificationEmitter.addListener(
196196
DEVICE_NOTIF_EVENT,
197-
notifData => {
197+
(notifData) => {
198198
handler(new PushNotificationIOS(notifData));
199199
},
200200
);
201201
} else if (type === 'localNotification') {
202202
listener = PushNotificationEmitter.addListener(
203203
DEVICE_LOCAL_NOTIF_EVENT,
204-
notifData => {
204+
(notifData) => {
205205
handler(new PushNotificationIOS(notifData));
206206
},
207207
);
208208
} else if (type === 'register') {
209209
listener = PushNotificationEmitter.addListener(
210210
NOTIF_REGISTER_EVENT,
211-
registrationInfo => {
211+
(registrationInfo) => {
212212
handler(registrationInfo.deviceToken);
213213
},
214214
);
215215
} else if (type === 'registrationError') {
216216
listener = PushNotificationEmitter.addListener(
217217
NOTIF_REGISTRATION_ERROR_EVENT,
218-
errorInfo => {
218+
(errorInfo) => {
219219
handler(errorInfo);
220220
},
221221
);
@@ -310,7 +310,7 @@ class PushNotificationIOS {
310310
*/
311311
static getInitialNotification(): Promise<?PushNotificationIOS> {
312312
return RNCPushNotificationIOS.getInitialNotification().then(
313-
notification => {
313+
(notification) => {
314314
return notification && new PushNotificationIOS(notification);
315315
},
316316
);
@@ -333,7 +333,7 @@ class PushNotificationIOS {
333333
if (nativeNotif.remote) {
334334
// Extract data from Apple's `aps` dict as defined:
335335
// https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html
336-
Object.keys(nativeNotif).forEach(notifKey => {
336+
Object.keys(nativeNotif).forEach((notifKey) => {
337337
const notifVal = nativeNotif[notifKey];
338338
if (notifKey === 'aps') {
339339
this._alert = notifVal.alert;

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,17 @@
3737
},
3838
"devDependencies": {
3939
"@babel/core": "^7.0.0",
40-
"@react-native-community/eslint-config": "^0.0.7",
40+
"@react-native-community/eslint-config": "^1.0.0",
4141
"babel-core": "^7.0.0-bridge.0",
4242
"babel-jest": "24.1.0",
4343
"babel-plugin-module-resolver": "^3.1.3",
4444
"eslint": "^6.8.0",
45-
"eslint-plugin-prettier": "^3.1.2",
4645
"flow-bin": "^0.105.2",
4746
"jest": "^24.9.0",
4847
"metro-react-native-babel-preset": "0.58.0",
4948
"react": "16.9.0",
5049
"react-native": "0.61.5",
51-
"typescript": "^3.7.4"
50+
"typescript": "^3.8.3"
5251
},
5352
"repository": {
5453
"type": "git",

0 commit comments

Comments
 (0)