-
Notifications
You must be signed in to change notification settings - Fork 308
/
.flowconfig
73 lines (63 loc) · 3.13 KB
/
.flowconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[ignore]
<PROJECT_ROOT>/scripts/
<PROJECT_ROOT>/es/
<PROJECT_ROOT>/.*/dist/.*
<PROJECT_ROOT>/reports/
<PROJECT_ROOT>/node_modules/babel-plugin-flow-react-proptypes.*
<PROJECT_ROOT>/node_modules/conventional-changelog*
<PROJECT_ROOT>/node_modules/eslint*
<PROJECT_ROOT>/node_modules/jest*
<PROJECT_ROOT>/node_modules/npm-shrinkwrap.*
<PROJECT_ROOT>/node_modules/stylelint.*
<PROJECT_ROOT>/node_modules/webpack*
<PROJECT_ROOT>/node_modules/draft-js*
<PROJECT_ROOT>/node_modules/findup*
<PROJECT_ROOT>/node_modules/config-chain*
<PROJECT_ROOT>/node_modules/puppeteer*
<PROJECT_ROOT>/node_modules/jest-puppeteer*
<PROJECT_ROOT>/node_modules/start-server-and-test*
<PROJECT_ROOT>/node_modules/jest-image-snapshot*
<PROJECT_ROOT>/node_modules/react-styleguidist*
<PROJECT_ROOT>/node_modules/immer*
<PROJECT_ROOT>/.*/__tests__/.*
<PROJECT_ROOT>/.*/*.stories.*
# ignoring the flow check for this component specifically because it increased the scope too much when we are planning to switch to typescript anyways
<PROJECT_ROOT>/src/components/pill-selector-dropdown/PillSelectorDropdown.stories.js
[options]
sharedmemory.hash_table_pow=21
esproposal.export_star_as=enable
esproposal.optional_chaining=enable
module.file_ext=.js
module.file_ext=.scss
module.name_mapper.extension='scss' -> '<PROJECT_ROOT>/flow/EmptyFlowStub.js.flow'
module.name_mapper.extension='css' -> '<PROJECT_ROOT>/flow/EmptyFlowStub.js.flow'
module.name_mapper.extension='md' -> '<PROJECT_ROOT>/flow/EmptyFlowStub.js.flow'
module.name_mapper='box-ui-elements-locale-data' -> '<PROJECT_ROOT>/flow/WebpackI18N.js.flow'
module.name_mapper='@box/react-virtualized/dist/es/Table' -> '<PROJECT_ROOT>/flow/ReactVirtualizedStub.js.flow'
module.name_mapper='@box/react-virtualized/dist/es/AutoSizer' -> '<PROJECT_ROOT>/flow/ReactVirtualizedStub.js.flow'
module.name_mapper='@box/react-virtualized/dist/es/ArrowKeyStepper' -> '<PROJECT_ROOT>/flow/ReactVirtualizedStub.js.flow'
module.name_mapper='@box/react-virtualized/dist/es/CellMeasurer' -> '<PROJECT_ROOT>/flow/ReactVirtualizedStub.js.flow'
module.name_mapper='draft-js' -> '<PROJECT_ROOT>/flow/DraftJSFlowStub.js.flow'
module.name_mapper='draft-js/EditorState' -> '<PROJECT_ROOT>/flow/DraftJSFlowStub.js.flow'
module.name_mapper='draft-js/CompositeDecorator' -> '<PROJECT_ROOT>/flow/DraftJSFlowStub.js.flow'
module.name_mapper='draft-js/Modifier' -> '<PROJECT_ROOT>/flow/DraftJSFlowStub.js.flow'
module.name_mapper='react-measure' -> '<PROJECT_ROOT>/flow/ReactMeasure.js.flow'
server.max_workers=1
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
# Options to enforce in files with strict header: // @flow strict
# https://flow.org/en/docs/strict/
[strict]
# Bans imports from untyped modules:
untyped-import
# Bans use of Object, Function, any:
unclear-type
# Ban get/set:
unsafe-getters-setters
# Ban type imports from untyped files:
untyped-type-import
# Ban deprecated $Supertype or $Subtype utility types
deprecated-utility
# Bans imports from non-strict modules (many deps are not strictly typed so this rule is impractical):
# nonstrict-import
# Error when doing an existence check on a value that could be null/undefined or falsey (impractical because of noise):
# sketchy-null