Enable Flow Strict

This commit is contained in:
Victor Zhou
2019-07-31 22:05:23 -04:00
parent 39dc60b016
commit 0ba0cc9c61
81 changed files with 93 additions and 87 deletions

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import moment from 'moment';
import { Link } from 'gatsby';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import Feed from './Feed';

View File

@@ -1,2 +1,2 @@
// @flow
// @flow strict
export { default } from './Feed';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import styles from './Icon.module.scss';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import Icon from './Icon';

View File

@@ -1,2 +1,2 @@
// @flow
// @flow strict
export { default } from './Icon';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import Helmet from 'react-helmet';
import type { Node as ReactNode } from 'react';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import Layout from './Layout';

View File

@@ -1,2 +1,2 @@
// @flow
// @flow strict
export { default } from './Layout';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import Page from './Page';

View File

@@ -1,2 +1,2 @@
// @flow
// @flow strict
export { default } from './Page';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import classNames from 'classnames/bind';
import { Link } from 'gatsby';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import Pagination from './Pagination';

View File

@@ -1,2 +1,2 @@
// @flow
// @flow strict
export { default } from './Pagination';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import { getContactHref } from '../../../utils';
import styles from './Author.module.scss';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import { useStaticQuery, StaticQuery } from 'gatsby';

View File

@@ -1,2 +1,2 @@
// @flow
// @flow strict
export { default } from './Author';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import ReactDisqusComments from 'react-disqus-comments';
import { useSiteMetadata } from '../../../hooks';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import { useStaticQuery, StaticQuery } from 'gatsby';

View File

@@ -1,2 +1,2 @@
// @flow
// @flow strict
export { default } from './Comments';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import styles from './Content.module.scss';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import Content from './Content';

View File

@@ -1,2 +1,2 @@
// @flow
// @flow strict
export { default } from './Content';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import moment from 'moment';
import styles from './Meta.module.scss';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import Meta from './Meta';

View File

@@ -1,2 +1,2 @@
// @flow
// @flow strict
export { default } from './Meta';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import { Link } from 'gatsby';
import Author from './Author';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import { useStaticQuery, StaticQuery } from 'gatsby';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import { Link } from 'gatsby';
import styles from './Tags.module.scss';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import Tags from './Tags';

View File

@@ -1,2 +1,2 @@
// @flow
// @flow strict
export { default } from './Tags';

View File

@@ -1,2 +1,2 @@
// @flow
// @flow strict
export { default } from './Post';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import { withPrefix, Link } from 'gatsby';
import styles from './Author.module.scss';
@@ -24,7 +24,7 @@ const Author = ({ author, isIndex }: Props) => (
/>
</Link>
{ isIndex ? (
{ isIndex === true ? (
<h1 className={styles['author__title']}>
<Link className={styles['author__title-link']} to="/">{author.name}</Link>
</h1>

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import Author from './Author';

View File

@@ -1,2 +1,2 @@
// @flow
// @flow strict
export { default } from './Author';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import { getContactHref, getIcon } from '../../../utils';
import Icon from '../../Icon';

View File

@@ -1,5 +1,5 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import Contacts from './Contacts';

View File

@@ -1,2 +1,2 @@
// @flow
// @flow strict
export { default } from './Contacts';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import styles from './Copyright.module.scss';
@@ -12,4 +12,4 @@ const Copyright = ({ copyright }: Props) => (
</div>
);
export default Copyright;
export default Copyright;

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import Copyright from './Copyright';

View File

@@ -1,2 +1,2 @@
// @flow
// @flow strict
export { default } from './Copyright';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import { Link } from 'gatsby';
import styles from './Menu.module.scss';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import Menu from './Menu';

View File

@@ -1,2 +1,2 @@
// @flow
// @flow strict
export { default } from './Menu';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import Author from './Author';
import Contacts from './Contacts';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import { useStaticQuery, StaticQuery } from 'gatsby';

View File

@@ -1,2 +1,2 @@
// @flow
// @flow strict
export { default } from './Sidebar';