Upgrade dependencies (#101)

This commit is contained in:
Joel Purra 2020-01-21 17:56:44 +01:00 committed by Sindre Sorhus
parent aeb3f74d65
commit c842cc260f
4 changed files with 16 additions and 7 deletions

View file

@ -46,20 +46,20 @@
"types" "types"
], ],
"devDependencies": { "devDependencies": {
"@sindresorhus/tsconfig": "^0.6.0", "@sindresorhus/tsconfig": "^0.7.0",
"@types/jsdom": "^12.2.4", "@types/jsdom": "^12.2.4",
"@types/node": "^12.12.6", "@types/node": "^12.12.6",
"@types/zen-observable": "^0.8.0", "@types/zen-observable": "^0.8.0",
"@typescript-eslint/eslint-plugin": "^1.11.0", "@typescript-eslint/eslint-plugin": "^2.17.0",
"@typescript-eslint/parser": "^1.11.0", "@typescript-eslint/parser": "^2.17.0",
"ava": "^2.1.0", "ava": "^2.1.0",
"del-cli": "^2.0.0", "del-cli": "^2.0.0",
"eslint-config-xo-typescript": "^0.15.0", "eslint-config-xo-typescript": "^0.24.1",
"jsdom": "^15.0.0", "jsdom": "^15.0.0",
"rxjs": "^6.4.0", "rxjs": "^6.4.0",
"tempy": "^0.3.0", "tempy": "^0.3.0",
"ts-node": "^8.3.0", "ts-node": "^8.3.0",
"typescript": "^3.7.2", "typescript": "^3.7.5",
"xo": "^0.25.3", "xo": "^0.25.3",
"zen-observable": "^0.8.8" "zen-observable": "^0.8.8"
}, },
@ -80,6 +80,9 @@
"extensions": [ "extensions": [
"ts" "ts"
], ],
"parserOptions": {
"project": "./tsconfig.xo.json"
},
"globals": [ "globals": [
"BigInt", "BigInt",
"BigInt64Array", "BigInt64Array",

View file

@ -278,8 +278,8 @@ is.typedArray = (value: unknown): value is TypedArray => {
}; };
export interface ArrayLike<T> { export interface ArrayLike<T> {
readonly length: number;
readonly [index: number]: T; readonly [index: number]: T;
readonly length: number;
} }
const isValidLength = (value: unknown): value is number => is.safeInteger(value) && value >= 0; const isValidLength = (value: unknown): value is number => is.safeInteger(value) && value >= 0;

View file

@ -457,7 +457,7 @@ const testType = (t: ExecutionContext, type: string, exclude?: string[]) => {
for (const [key, {fixtures}] of types) { for (const [key, {fixtures}] of types) {
// TODO: Automatically exclude value types in other tests that we have in the current one. // TODO: Automatically exclude value types in other tests that we have in the current one.
// Could reduce the use of `exclude`. // Could reduce the use of `exclude`.
if (exclude && exclude.includes(key)) { if (exclude?.includes(key)) {
continue; continue;
} }

6
tsconfig.xo.json Normal file
View file

@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"include": [
"test"
]
}