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 { Link } from 'gatsby';
import kebabCase from 'lodash/kebabCase';
@@ -29,4 +29,4 @@ const CategoriesListTemplate = () => {
);
};
export default CategoriesListTemplate;
export default CategoriesListTemplate;

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 { graphql } from 'gatsby';
import Layout from '../components/Layout';

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 { graphql } from 'gatsby';
import Layout from '../components/Layout';

View File

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

View File

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

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 { graphql } from 'gatsby';
import Layout from '../components/Layout';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import { useStaticQuery, StaticQuery } from 'gatsby';
@@ -27,4 +27,4 @@ describe('PageTemplate', () => {
const tree = renderer.create(<PageTemplate {...props} />).toJSON();
expect(tree).toMatchSnapshot();
});
});
});

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import { useStaticQuery, StaticQuery } from 'gatsby';
@@ -27,4 +27,4 @@ describe('PostTemplate', () => {
const tree = renderer.create(<PostTemplate {...props} />).toJSON();
expect(tree).toMatchSnapshot();
});
});
});

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import renderer from 'react-test-renderer';
import { useStaticQuery, StaticQuery } from 'gatsby';
@@ -29,4 +29,4 @@ describe('TagTemplate', () => {
const tree = renderer.create(<TagTemplate {...props} />).toJSON();
expect(tree).toMatchSnapshot();
});
});
});

View File

@@ -1,4 +1,4 @@
// @flow
// @flow strict
import React from 'react';
import { Link } from 'gatsby';
import kebabCase from 'lodash/kebabCase';
@@ -29,4 +29,4 @@ const TagsListTemplate = () => {
);
};
export default TagsListTemplate;
export default TagsListTemplate;

View File

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