Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Commit 78e6538

Browse files
committed
fix linter errors and run lint tests on CI too
1 parent 782655c commit 78e6538

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ install:
99
- yarn install
1010
- yarn add react prop-types
1111
script:
12-
# - npm run lint
12+
- yarn run lint
1313
- yarn test

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import Star from "./star";
21
import Fork from "./fork";
2+
import Sponsor from "./sponsor";
3+
import Star from "./star";
4+
import UsedBy from "./usedBy";
35
import Watch from "./watch";
4-
import UsedBy from './usedBy';
5-
import Sponsor from './sponsor';
66

77
export { Fork, Sponsor, Star, UsedBy, Watch };

src/usedBy.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ import * as React from "react";
77
import GithubButton from "./lib/githubButton";
88

99
export interface IPropTypes {
10+
count: number;
1011
owner: string;
1112
repo: string;
12-
count: number;
1313
}
1414

1515
export default function UsedBy(props: IPropTypes) {
1616
return <GithubButton variant="usedby" { ...props } />;
1717
}
1818

1919
UsedBy.propTypes = {
20+
count: PropTypes.number.isRequired,
2021
owner: PropTypes.string.isRequired,
2122
repo: PropTypes.string.isRequired,
22-
count: PropTypes.number.isRequired,
2323
};

0 commit comments

Comments
 (0)