Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit 9391665

Browse files
committed
RepoListItem types folder moved in + babel typescript removed
1 parent 3b1134b commit 9391665

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

app/containers/RepoListItem/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import IssueIcon from './IssueIcon';
1515
import IssueLink from './IssueLink';
1616
import RepoLink from './RepoLink';
1717
import Wrapper from './Wrapper';
18-
import { Repo } from '../../types/GitHubResponse';
18+
import { Repo } from './types';
1919

2020
interface OwnProps {
2121
item: Repo;
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { ReposListForksResponseItem, SearchReposResponseItemsItemOwner } from '@octokit/rest';
1+
import {
2+
ReposListForksResponseItem,
3+
SearchReposResponseItemsItemOwner,
4+
} from '@octokit/rest';
25

36
interface Owner extends SearchReposResponseItemsItemOwner {
47
html_url: string;
@@ -11,12 +14,11 @@ interface Owner extends SearchReposResponseItemsItemOwner {
1114
repos_url: string;
1215
events_url: string;
1316
site_admin: boolean;
14-
1517
}
1618

1719
export interface Repo extends Partial<ReposListForksResponseItem> {
18-
owner: Owner
20+
owner: Owner;
1921
forks: number;
20-
open_issues: number
21-
watchers: number
22+
open_issues: number;
23+
watchers: number;
2224
}

babel.config.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ module.exports = {
77
},
88
],
99
'@babel/preset-react',
10-
'@babel/typescript',
10+
// '@babel/typescript',
1111
],
1212
plugins: [
1313
'styled-components',
1414
'@babel/plugin-proposal-class-properties',
1515
'@babel/plugin-syntax-dynamic-import',
16-
[
17-
'@babel/plugin-transform-typescript',
18-
{
19-
allowNamespaces: true,
20-
},
21-
],
16+
// [
17+
// '@babel/plugin-transform-typescript',
18+
// {
19+
// allowNamespaces: true,
20+
// },
21+
// ],
2222
],
2323
env: {
2424
production: {

0 commit comments

Comments
 (0)