Skip to content

Commit 9b5d0a5

Browse files
committed
Require Node.js 10
1 parent 84b35e5 commit 9b5d0a5

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: node_js
22
node_js:
3+
- '14'
34
- '12'
45
- '10'
5-
- '8'

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ render(
4848
);
4949
```
5050
*/
51-
declare const Link: ReactFC<Props>
51+
declare const Link: ReactFC<Props>;
5252

53-
export default Link
53+
export default Link;

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Link.propTypes = {
1919
PropTypes.node
2020
]).isRequired,
2121
url: PropTypes.string,
22-
fallback: PropTypes.bool
22+
fallback: PropTypes.bool // eslint-disable-line react/boolean-prop-naming
2323
};
2424

2525
Link.defaultProps = {

index.test-d.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import * as React from 'react';
22
import Link from '.';
33

4+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
45
() => {
56
return (
67
<>
78
<Link/>
8-
<Link url='https://sindresorhus.com/'/>
9+
<Link url="https://sindresorhus.com/"/>
910
<Link fallback={false}/>
1011
</>
11-
)
12-
}
12+
);
13+
};

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"main": "dist.js",
1414
"engines": {
15-
"node": ">=8"
15+
"node": ">=10"
1616
},
1717
"scripts": {
1818
"build": "babel index.js --out-file=dist.js",
@@ -48,15 +48,15 @@
4848
"@babel/preset-react": "^7.0.0",
4949
"@types/react": "^16.9.16",
5050
"ava": "^1.3.1",
51-
"clear-module": "^3.1.0",
52-
"eslint-config-xo-react": "^0.19.0",
51+
"clear-module": "^4.1.1",
52+
"eslint-config-xo-react": "^0.23.0",
5353
"eslint-plugin-react": "^7.7.0",
54-
"eslint-plugin-react-hooks": "^1.4.0",
54+
"eslint-plugin-react-hooks": "^4.0.8",
5555
"ink": "^3.0.3",
5656
"ink-testing-library": "^2.0.1",
5757
"react": "^16.8.2",
58-
"tsd": "^0.11.0",
59-
"xo": "^0.24.0"
58+
"tsd": "^0.13.1",
59+
"xo": "^0.33.0"
6060
},
6161
"peerDependencies": {
6262
"ink": ">=3.0.0",

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ink-link [![Build Status](https://travis-ci.org/sindresorhus/ink-link.svg?branch=master)](https://travis-ci.org/sindresorhus/ink-link)
1+
# ink-link [![Build Status](https://travis-ci.com/sindresorhus/ink-link.svg?branch=master)](https://travis-ci.com/github/sindresorhus/ink-link)
22

33
> Link component for [Ink](https://github.com/vadimdemedes/ink)
44

0 commit comments

Comments
 (0)