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 { 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';