mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-27 20:52:49 +02:00
Enable Flow Strict
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import moment from 'moment';
|
||||
import { Link } from 'gatsby';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Feed from './Feed';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Feed';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import styles from './Icon.module.scss';
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Icon from './Icon';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Icon';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import Helmet from 'react-helmet';
|
||||
import type { Node as ReactNode } from 'react';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Layout from './Layout';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Layout';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Page from './Page';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Page';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import classNames from 'classnames/bind';
|
||||
import { Link } from 'gatsby';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Pagination from './Pagination';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Pagination';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import { getContactHref } from '../../../utils';
|
||||
import styles from './Author.module.scss';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import { useStaticQuery, StaticQuery } from 'gatsby';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Author';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import ReactDisqusComments from 'react-disqus-comments';
|
||||
import { useSiteMetadata } from '../../../hooks';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import { useStaticQuery, StaticQuery } from 'gatsby';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Comments';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import styles from './Content.module.scss';
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Content from './Content';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Content';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import moment from 'moment';
|
||||
import styles from './Meta.module.scss';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Meta from './Meta';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Meta';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import { Link } from 'gatsby';
|
||||
import Author from './Author';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import { useStaticQuery, StaticQuery } from 'gatsby';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import { Link } from 'gatsby';
|
||||
import styles from './Tags.module.scss';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Tags from './Tags';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Tags';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Post';
|
||||
|
@@ -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>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Author from './Author';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Author';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import { getContactHref, getIcon } from '../../../utils';
|
||||
import Icon from '../../Icon';
|
||||
|
@@ -1,5 +1,5 @@
|
||||
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Contacts from './Contacts';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Contacts';
|
||||
|
@@ -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;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Copyright from './Copyright';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Copyright';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import { Link } from 'gatsby';
|
||||
import styles from './Menu.module.scss';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import Menu from './Menu';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Menu';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import Author from './Author';
|
||||
import Contacts from './Contacts';
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import { useStaticQuery, StaticQuery } from 'gatsby';
|
||||
|
@@ -1,2 +1,2 @@
|
||||
// @flow
|
||||
// @flow strict
|
||||
export { default } from './Sidebar';
|
||||
|
Reference in New Issue
Block a user