Skip to content

Commit

Permalink
fix(flow): Add flow configuration file, add flow and flow:restart scr…
Browse files Browse the repository at this point in the history
…ipts to package.json
  • Loading branch information
leushkin committed May 20, 2020
1 parent 2f383bf commit ef37b34
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .flowconfig
@@ -0,0 +1,42 @@
[ignore]
.*/__tests__.*
.*/node_modules.*

[include]

[libs]

[options]
module.system=node

esproposal.class_static_fields=enable
esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-8]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\).*\n
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

module.name_mapper='React' -> '<PROJECT_ROOT>/node_modules/react'
module.name_mapper='ReactDOM' -> '<PROJECT_ROOT>/node_modules/react-dom'
module.name_mapper='ReactTestUtils' -> '<PROJECT_ROOT>/node_modules/react-dom/test-utils'

module.name_mapper='RecoilUtils' -> '<PROJECT_ROOT>/src/RecoilUtils.js'

module.name_mapper='Recoil_RecoilValue' -> '<PROJECT_ROOT>/src/core/Recoil_RecoilValue.js'
module.name_mapper='Recoil_State' -> '<PROJECT_ROOT>/src/core/Recoil_State.js'

module.name_mapper='Recoil_atom' -> '<PROJECT_ROOT>/src/recoil_values/Recoil_atom.js'
module.name_mapper='Recoil_WaitFor' -> '<PROJECT_ROOT>/src/recoil_values/Recoil_WaitFor.js'

module.name_mapper='Recoil_Hooks' -> '<PROJECT_ROOT>/src/hooks/Recoil_Hooks.js'

[strict]
deprecated-type
sketchy-null
unclear-type
unsafe-getters-setters

[version]
^0.124.0
4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -12,7 +12,9 @@
"prepare": "install-peers",
"build": "rollup -c && node scripts/postbuild.js",
"test": "jest src/*",
"format": "prettier --write \"./**/*.{js,jsx,md,json}\""
"format": "prettier --write \"./**/*.{js,jsx,md,json}\"",
"flow": "flow --show-all-errors",
"flow:restart": "flow stop && npm run flow"
},
"peerDependencies": {
"react": "^16.13.1",
Expand Down

0 comments on commit ef37b34

Please sign in to comment.