diff --git a/.travis.yml b/.travis.yml index f98fed061..94ab01f00 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,4 +2,3 @@ language: node_js node_js: - '12' - '10' - - '8' diff --git a/license b/license index e7af2f771..3e4c85ab7 100644 --- a/license +++ b/license @@ -1,6 +1,6 @@ MIT License -Copyright (c) Sindre Sorhus (sindresorhus.com) +Copyright (c) Sindre Sorhus (https:/sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/package.json b/package.json index 088a1497a..435833af4 100644 --- a/package.json +++ b/package.json @@ -8,10 +8,10 @@ "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" + "url": "https://sindresorhus.com" }, "engines": { - "node": ">=8" + "node": ">=10" }, "scripts": { "test": "xo && tsd" @@ -33,21 +33,16 @@ ], "devDependencies": { "@sindresorhus/tsconfig": "^0.7.0", - "@typescript-eslint/eslint-plugin": "2.17.0", - "@typescript-eslint/parser": "2.17.0", - "eslint-config-xo-typescript": "^0.24.1", + "@typescript-eslint/eslint-plugin": "^2.22.0", + "@typescript-eslint/parser": "^2.22.0", + "eslint-config-xo-typescript": "^0.26.0", "tsd": "^0.7.3", - "typescript": "3.7.5", - "xo": "^0.25.3" + "typescript": "^3.8.3", + "xo": "^0.27.2" }, "types": "index.d.ts", "xo": { - "extends": "xo-typescript", - "extensions": [ - "ts" - ], "rules": { - "import/no-unresolved": "off", "@typescript-eslint/indent": "off" } } diff --git a/source/basic.d.ts b/source/basic.d.ts index d380c8b91..10c5a7b4d 100644 --- a/source/basic.d.ts +++ b/source/basic.d.ts @@ -17,7 +17,7 @@ export type Primitive = /** Matches a [`class` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes). */ -export type Class = new(...arguments_: Arguments) => T; +export type Class = new(...arguments_: Arguments) => T; // eslint-disable-line @typescript-eslint/type-annotation-spacing /** Matches any [typed array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray), like `Uint8Array` or `Float64Array`. diff --git a/source/require-exactly-one.d.ts b/source/require-exactly-one.d.ts index d8c71b74b..c3e7e7ead 100644 --- a/source/require-exactly-one.d.ts +++ b/source/require-exactly-one.d.ts @@ -1,5 +1,4 @@ // TODO: Remove this when we target TypeScript >=3.5. -// eslint-disable-next-line @typescript-eslint/generic-type-naming type _Omit = Pick>; /** diff --git a/test-d/class.ts b/test-d/class.ts index 4a9329662..75d298d8e 100644 --- a/test-d/class.ts +++ b/test-d/class.ts @@ -2,7 +2,6 @@ import {expectError} from 'tsd'; import {Class} from '..'; class Foo { - // eslint-disable-next-line @typescript-eslint/no-untyped-public-signature constructor(x: number, y: any) { console.log(x, y); }