Skip to content

Commit

Permalink
Merge pull request #7 from piglovesyou/mod-graphql-import-for-flow
Browse files Browse the repository at this point in the history
mod: better suppressing flow error for .graphql import
  • Loading branch information
piglovesyou committed Mar 15, 2019
2 parents c15b123 + 47e4e50 commit 27ba7d3
Show file tree
Hide file tree
Showing 4 changed files with 916 additions and 445 deletions.
7 changes: 7 additions & 0 deletions .flowconfig
Expand Up @@ -8,3 +8,10 @@

[options]
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectError
module.file_ext=.js
module.file_ext=.jsx
module.file_ext=.json
module.file_ext=.css
module.file_ext=.scss
module.file_ext=.graphql
module.name_mapper='^.*\.graphql$' -> 'empty/object'
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -90,7 +90,7 @@
"glob": "^7.1.3",
"husky": "^1.0.0-rc.15",
"identity-obj-proxy": "^3.0.0",
"jest": "^23.6.0",
"jest": "^24.5.0",
"jest-codemods": "^0.16.0",
"jest-transform-graphql": "^2.1.0",
"lint-staged": "^7.3.0",
Expand Down
1 change: 0 additions & 1 deletion src/routes/home/Home.js
Expand Up @@ -13,7 +13,6 @@ import React from 'react';
import { graphql } from 'react-apollo';
import type { OperationComponent } from 'react-apollo';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
// $FlowExpectError
import newsQuery from './news.graphql';
import s from './Home.css';

Expand Down

0 comments on commit 27ba7d3

Please sign in to comment.