Skip to content

Commit

Permalink
Require Node.js 10
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Mar 9, 2020
1 parent bed43c1 commit a5fb5a1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 17 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -2,4 +2,3 @@ language: node_js
node_js:
- '12'
- '10'
- '8'
2 changes: 1 addition & 1 deletion license
@@ -1,6 +1,6 @@
MIT License

Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (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:

Expand Down
19 changes: 7 additions & 12 deletions package.json
Expand Up @@ -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"
Expand All @@ -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"
}
}
Expand Down
2 changes: 1 addition & 1 deletion source/basic.d.ts
Expand Up @@ -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<T = unknown, Arguments extends any[] = any[]> = new(...arguments_: Arguments) => T;
export type Class<T = unknown, Arguments extends any[] = any[]> = 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`.
Expand Down
1 change: 0 additions & 1 deletion 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<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;

/**
Expand Down
1 change: 0 additions & 1 deletion test-d/class.ts
Expand Up @@ -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);
}
Expand Down

0 comments on commit a5fb5a1

Please sign in to comment.