From 4f4820ef2fe34f24e6b8eb3b3ce8bdd4ab36b98b Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 30 Jun 2019 15:15:27 +0700 Subject: [PATCH] Meta tweaks --- .travis.yml | 1 + package.json | 14 ++++++++------ readme.md | 7 +------ source/index.ts | 1 - 4 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index f3fa8cd..f98fed0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: node_js node_js: + - '12' - '10' - '8' diff --git a/package.json b/package.json index dcc997d..8fbfa8b 100644 --- a/package.json +++ b/package.json @@ -47,18 +47,18 @@ ], "devDependencies": { "@sindresorhus/tsconfig": "^0.4.0", - "@types/jsdom": "^12.2.3", - "@types/node": "^12.0.0", + "@types/jsdom": "^12.2.4", + "@types/node": "^12.0.10", "@types/zen-observable": "^0.8.0", - "@typescript-eslint/eslint-plugin": "^1.5.0", - "@typescript-eslint/parser": "^1.10.2", + "@typescript-eslint/eslint-plugin": "^1.11.0", + "@typescript-eslint/parser": "^1.11.0", "ava": "^2.1.0", "del-cli": "^2.0.0", - "eslint-config-xo-typescript": "^0.14.0", + "eslint-config-xo-typescript": "^0.15.0", "jsdom": "^15.0.0", "rxjs": "^6.4.0", "tempy": "^0.3.0", - "ts-node": "^8.0.3", + "ts-node": "^8.3.0", "typescript": "^3.4.1", "xo": "^0.24.0", "zen-observable": "^0.8.8" @@ -88,6 +88,8 @@ "rules": { "import/first": "off", "import/newline-after-import": "off", + "@typescript-eslint/promise-function-async": "off", + "@typescript-eslint/no-empty-function": "off", "@typescript-eslint/explicit-function-return-type": "off" } } diff --git a/readme.md b/readme.md index c3c5adb..157ac8a 100644 --- a/readme.md +++ b/readme.md @@ -458,13 +458,8 @@ The most common mistakes I noticed in these modules was using `instanceof` for t - [has-emoji](https://github.com/sindresorhus/has-emoji) - Check whether a string has any emoji -## Created by +## Maintainers - [Sindre Sorhus](https://github.com/sindresorhus) - [Giora Guttsait](https://github.com/gioragutt) - [Brandon Smith](https://github.com/brandon93s) - - -## License - -MIT diff --git a/source/index.ts b/source/index.ts index 33b7896..81a3633 100644 --- a/source/index.ts +++ b/source/index.ts @@ -141,7 +141,6 @@ is.nullOrUndefined = (value: unknown): value is null | undefined => is.null_(val is.object = (value: unknown): value is object => !is.nullOrUndefined(value) && (is.function_(value) || isObject(value)); is.iterable = (value: unknown): value is IterableIterator => !is.nullOrUndefined(value) && is.function_((value as IterableIterator)[Symbol.iterator]); -// eslint-disable-next-line no-use-extend-native/no-use-extend-native is.asyncIterable = (value: unknown): value is AsyncIterableIterator => !is.nullOrUndefined(value) && is.function_((value as AsyncIterableIterator)[Symbol.asyncIterator]); is.generator = (value: unknown): value is Generator => is.iterable(value) && is.function_(value.next) && is.function_(value.throw);