mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-27 14:01:15 +01:00
commit
476d816c2f
@ -12,3 +12,8 @@ module.name_mapper.extension='scss' -> '<PROJECT_ROOT>/flow/css-module-stub.js'
|
|||||||
server.max_workers=4
|
server.max_workers=4
|
||||||
|
|
||||||
[strict]
|
[strict]
|
||||||
|
nonstrict-import
|
||||||
|
unclear-type
|
||||||
|
untyped-type-import
|
||||||
|
unsafe-getters-setters
|
||||||
|
sketchy-null
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
type CSSModule = {
|
type CSSModule = {
|
||||||
[key: string]: string,
|
[key: string]: string,
|
||||||
};
|
};
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import CMS from 'netlify-cms-app';
|
import CMS from 'netlify-cms-app';
|
||||||
import PagePreview from './preview-templates/page-preview';
|
import PagePreview from './preview-templates/page-preview';
|
||||||
import PostPreview from './preview-templates/post-preview';
|
import PostPreview from './preview-templates/post-preview';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import type { Entry, WidgetFor } from '../../types';
|
import type { Entry, WidgetFor } from '../../types';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import type { Entry, WidgetFor } from '../../types';
|
import type { Entry, WidgetFor } from '../../types';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { Link } from 'gatsby';
|
import { Link } from 'gatsby';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import Feed from './Feed';
|
import Feed from './Feed';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default } from './Feed';
|
export { default } from './Feed';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import styles from './Icon.module.scss';
|
import styles from './Icon.module.scss';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import Icon from './Icon';
|
import Icon from './Icon';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default } from './Icon';
|
export { default } from './Icon';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Helmet from 'react-helmet';
|
import Helmet from 'react-helmet';
|
||||||
import type { Node as ReactNode } from 'react';
|
import type { Node as ReactNode } from 'react';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import Layout from './Layout';
|
import Layout from './Layout';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default } from './Layout';
|
export { default } from './Layout';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import Page from './Page';
|
import Page from './Page';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default } from './Page';
|
export { default } from './Page';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import classNames from 'classnames/bind';
|
import classNames from 'classnames/bind';
|
||||||
import { Link } from 'gatsby';
|
import { Link } from 'gatsby';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import Pagination from './Pagination';
|
import Pagination from './Pagination';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default } from './Pagination';
|
export { default } from './Pagination';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { getContactHref } from '../../../utils';
|
import { getContactHref } from '../../../utils';
|
||||||
import styles from './Author.module.scss';
|
import styles from './Author.module.scss';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import { useStaticQuery, StaticQuery } from 'gatsby';
|
import { useStaticQuery, StaticQuery } from 'gatsby';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default } from './Author';
|
export { default } from './Author';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDisqusComments from 'react-disqus-comments';
|
import ReactDisqusComments from 'react-disqus-comments';
|
||||||
import { useSiteMetadata } from '../../../hooks';
|
import { useSiteMetadata } from '../../../hooks';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import { useStaticQuery, StaticQuery } from 'gatsby';
|
import { useStaticQuery, StaticQuery } from 'gatsby';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default } from './Comments';
|
export { default } from './Comments';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import styles from './Content.module.scss';
|
import styles from './Content.module.scss';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import Content from './Content';
|
import Content from './Content';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default } from './Content';
|
export { default } from './Content';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import styles from './Meta.module.scss';
|
import styles from './Meta.module.scss';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import Meta from './Meta';
|
import Meta from './Meta';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default } from './Meta';
|
export { default } from './Meta';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Link } from 'gatsby';
|
import { Link } from 'gatsby';
|
||||||
import Author from './Author';
|
import Author from './Author';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import { useStaticQuery, StaticQuery } from 'gatsby';
|
import { useStaticQuery, StaticQuery } from 'gatsby';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Link } from 'gatsby';
|
import { Link } from 'gatsby';
|
||||||
import styles from './Tags.module.scss';
|
import styles from './Tags.module.scss';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import Tags from './Tags';
|
import Tags from './Tags';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default } from './Tags';
|
export { default } from './Tags';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default } from './Post';
|
export { default } from './Post';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { withPrefix, Link } from 'gatsby';
|
import { withPrefix, Link } from 'gatsby';
|
||||||
import styles from './Author.module.scss';
|
import styles from './Author.module.scss';
|
||||||
@ -24,7 +24,7 @@ const Author = ({ author, isIndex }: Props) => (
|
|||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
{ isIndex ? (
|
{ isIndex === true ? (
|
||||||
<h1 className={styles['author__title']}>
|
<h1 className={styles['author__title']}>
|
||||||
<Link className={styles['author__title-link']} to="/">{author.name}</Link>
|
<Link className={styles['author__title-link']} to="/">{author.name}</Link>
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import Author from './Author';
|
import Author from './Author';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default } from './Author';
|
export { default } from './Author';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { getContactHref, getIcon } from '../../../utils';
|
import { getContactHref, getIcon } from '../../../utils';
|
||||||
import Icon from '../../Icon';
|
import Icon from '../../Icon';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import Contacts from './Contacts';
|
import Contacts from './Contacts';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default } from './Contacts';
|
export { default } from './Contacts';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import styles from './Copyright.module.scss';
|
import styles from './Copyright.module.scss';
|
||||||
|
|
||||||
@ -12,4 +12,4 @@ const Copyright = ({ copyright }: Props) => (
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
export default Copyright;
|
export default Copyright;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import Copyright from './Copyright';
|
import Copyright from './Copyright';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default } from './Copyright';
|
export { default } from './Copyright';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Link } from 'gatsby';
|
import { Link } from 'gatsby';
|
||||||
import styles from './Menu.module.scss';
|
import styles from './Menu.module.scss';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import Menu from './Menu';
|
import Menu from './Menu';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default } from './Menu';
|
export { default } from './Menu';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Author from './Author';
|
import Author from './Author';
|
||||||
import Contacts from './Contacts';
|
import Contacts from './Contacts';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import { useStaticQuery, StaticQuery } from 'gatsby';
|
import { useStaticQuery, StaticQuery } from 'gatsby';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default } from './Sidebar';
|
export { default } from './Sidebar';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
const ICONS = {
|
const ICONS = {
|
||||||
TWITTER: {
|
TWITTER: {
|
||||||
path: 'M25.312 6.375c-0.688 1-1.547 1.891-2.531 2.609 0.016 0.219 0.016 0.438 0.016 0.656 0 6.672-5.078 14.359-14.359 14.359-2.859 0-5.516-0.828-7.75-2.266 0.406 0.047 0.797 0.063 1.219 0.063 2.359 0 4.531-0.797 6.266-2.156-2.219-0.047-4.078-1.5-4.719-3.5 0.313 0.047 0.625 0.078 0.953 0.078 0.453 0 0.906-0.063 1.328-0.172-2.312-0.469-4.047-2.5-4.047-4.953v-0.063c0.672 0.375 1.453 0.609 2.281 0.641-1.359-0.906-2.25-2.453-2.25-4.203 0-0.938 0.25-1.797 0.688-2.547 2.484 3.062 6.219 5.063 10.406 5.281-0.078-0.375-0.125-0.766-0.125-1.156 0-2.781 2.25-5.047 5.047-5.047 1.453 0 2.766 0.609 3.687 1.594 1.141-0.219 2.234-0.641 3.203-1.219-0.375 1.172-1.172 2.156-2.219 2.781 1.016-0.109 2-0.391 2.906-0.781z',
|
path: 'M25.312 6.375c-0.688 1-1.547 1.891-2.531 2.609 0.016 0.219 0.016 0.438 0.016 0.656 0 6.672-5.078 14.359-14.359 14.359-2.859 0-5.516-0.828-7.75-2.266 0.406 0.047 0.797 0.063 1.219 0.063 2.359 0 4.531-0.797 6.266-2.156-2.219-0.047-4.078-1.5-4.719-3.5 0.313 0.047 0.625 0.078 0.953 0.078 0.453 0 0.906-0.063 1.328-0.172-2.312-0.469-4.047-2.5-4.047-4.953v-0.063c0.672 0.375 1.453 0.609 2.281 0.641-1.359-0.906-2.25-2.453-2.25-4.203 0-0.938 0.25-1.797 0.688-2.547 2.484 3.062 6.219 5.063 10.406 5.281-0.078-0.375-0.125-0.766-0.125-1.156 0-2.781 2.25-5.047 5.047-5.047 1.453 0 2.766 0.609 3.687 1.594 1.141-0.219 2.234-0.641 3.203-1.219-0.375 1.172-1.172 2.156-2.219 2.781 1.016-0.109 2-0.391 2.906-0.781z',
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default as ICONS } from './icons';
|
export { default as ICONS } from './icons';
|
||||||
export { default as PAGINATION } from './pagination';
|
export { default as PAGINATION } from './pagination';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
const PAGINATION = {
|
const PAGINATION = {
|
||||||
PREV_PAGE: '← PREV',
|
PREV_PAGE: '← PREV',
|
||||||
NEXT_PAGE: '→ NEXT'
|
NEXT_PAGE: '→ NEXT'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default as useSiteMetadata } from './use-site-metadata';
|
export { default as useSiteMetadata } from './use-site-metadata';
|
||||||
export { default as useCategoriesList } from './use-categories-list';
|
export { default as useCategoriesList } from './use-categories-list';
|
||||||
export { default as useTagsList } from './use-tags-list';
|
export { default as useTagsList } from './use-tags-list';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import { useStaticQuery, graphql } from 'gatsby';
|
import { useStaticQuery, graphql } from 'gatsby';
|
||||||
|
|
||||||
const useCategoriesList = () => {
|
const useCategoriesList = () => {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import { useStaticQuery, graphql } from 'gatsby';
|
import { useStaticQuery, graphql } from 'gatsby';
|
||||||
|
|
||||||
const useSiteMetadata = () => {
|
const useSiteMetadata = () => {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import { useStaticQuery, graphql } from 'gatsby';
|
import { useStaticQuery, graphql } from 'gatsby';
|
||||||
|
|
||||||
const useTagsList = () => {
|
const useTagsList = () => {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Link } from 'gatsby';
|
import { Link } from 'gatsby';
|
||||||
import kebabCase from 'lodash/kebabCase';
|
import kebabCase from 'lodash/kebabCase';
|
||||||
@ -29,4 +29,4 @@ const CategoriesListTemplate = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default CategoriesListTemplate;
|
export default CategoriesListTemplate;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import { useStaticQuery, StaticQuery } from 'gatsby';
|
import { useStaticQuery, StaticQuery } from 'gatsby';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { graphql } from 'gatsby';
|
import { graphql } from 'gatsby';
|
||||||
import Layout from '../components/Layout';
|
import Layout from '../components/Layout';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import { useStaticQuery, StaticQuery } from 'gatsby';
|
import { useStaticQuery, StaticQuery } from 'gatsby';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { graphql } from 'gatsby';
|
import { graphql } from 'gatsby';
|
||||||
import Layout from '../components/Layout';
|
import Layout from '../components/Layout';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import { StaticQuery, useStaticQuery } from 'gatsby';
|
import { StaticQuery, useStaticQuery } from 'gatsby';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Sidebar from '../components/Sidebar';
|
import Sidebar from '../components/Sidebar';
|
||||||
import Layout from '../components/Layout';
|
import Layout from '../components/Layout';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import { useStaticQuery, StaticQuery } from 'gatsby';
|
import { useStaticQuery, StaticQuery } from 'gatsby';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { graphql } from 'gatsby';
|
import { graphql } from 'gatsby';
|
||||||
import Layout from '../components/Layout';
|
import Layout from '../components/Layout';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import { useStaticQuery, StaticQuery } from 'gatsby';
|
import { useStaticQuery, StaticQuery } from 'gatsby';
|
||||||
@ -27,4 +27,4 @@ describe('PageTemplate', () => {
|
|||||||
const tree = renderer.create(<PageTemplate {...props} />).toJSON();
|
const tree = renderer.create(<PageTemplate {...props} />).toJSON();
|
||||||
expect(tree).toMatchSnapshot();
|
expect(tree).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { graphql } from 'gatsby';
|
import { graphql } from 'gatsby';
|
||||||
import Layout from '../components/Layout';
|
import Layout from '../components/Layout';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import { useStaticQuery, StaticQuery } from 'gatsby';
|
import { useStaticQuery, StaticQuery } from 'gatsby';
|
||||||
@ -27,4 +27,4 @@ describe('PostTemplate', () => {
|
|||||||
const tree = renderer.create(<PostTemplate {...props} />).toJSON();
|
const tree = renderer.create(<PostTemplate {...props} />).toJSON();
|
||||||
expect(tree).toMatchSnapshot();
|
expect(tree).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { graphql } from 'gatsby';
|
import { graphql } from 'gatsby';
|
||||||
import Layout from '../components/Layout';
|
import Layout from '../components/Layout';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import { useStaticQuery, StaticQuery } from 'gatsby';
|
import { useStaticQuery, StaticQuery } from 'gatsby';
|
||||||
@ -29,4 +29,4 @@ describe('TagTemplate', () => {
|
|||||||
const tree = renderer.create(<TagTemplate {...props} />).toJSON();
|
const tree = renderer.create(<TagTemplate {...props} />).toJSON();
|
||||||
expect(tree).toMatchSnapshot();
|
expect(tree).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Link } from 'gatsby';
|
import { Link } from 'gatsby';
|
||||||
import kebabCase from 'lodash/kebabCase';
|
import kebabCase from 'lodash/kebabCase';
|
||||||
@ -29,4 +29,4 @@ const TagsListTemplate = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default TagsListTemplate;
|
export default TagsListTemplate;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import renderer from 'react-test-renderer';
|
import renderer from 'react-test-renderer';
|
||||||
import { useStaticQuery, StaticQuery } from 'gatsby';
|
import { useStaticQuery, StaticQuery } from 'gatsby';
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import type { Node as ReactNode } from 'react';
|
import type { Node as ReactNode } from 'react';
|
||||||
|
|
||||||
export type RenderCallback = {
|
export type RenderCallback = {
|
||||||
|
// $FlowFixMe
|
||||||
render: (data: any) => ReactNode;
|
render: (data: any) => ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
const getContactHref = (name: string, contact: string) => {
|
const getContactHref = (name: string, contact: string) => {
|
||||||
let href;
|
let href;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import getContactHref from './get-contact-href';
|
import getContactHref from './get-contact-href';
|
||||||
|
|
||||||
test('getContactHref', () => {
|
test('getContactHref', () => {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import { ICONS } from '../constants';
|
import { ICONS } from '../constants';
|
||||||
|
|
||||||
const getIcon = (name: string) => {
|
const getIcon = (name: string) => {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
import getIcon from './get-icon';
|
import getIcon from './get-icon';
|
||||||
import { ICONS } from '../constants';
|
import { ICONS } from '../constants';
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
// @flow
|
// @flow strict
|
||||||
export { default as getIcon } from './get-icon';
|
export { default as getIcon } from './get-icon';
|
||||||
export { default as getContactHref } from './get-contact-href';
|
export { default as getContactHref } from './get-contact-href';
|
||||||
|
Loading…
Reference in New Issue
Block a user