This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install - - save-dev babel-cli babel-preset-flow | |
npm install - - save-dev eslint-plugin-flowtype | |
npm install - - save-dev babel-plugin-transform-flow-strip-types | |
npm install - - save-dev flow-bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const GridType = { | |
article: "article", | |
text: "text", | |
test: "test" | |
} | |
type PropsType = { | |
name?: ?string, // ilk ? name prop'unun optional olduğunu | |
// ikinci ? ise name prop'unun string dışında null da olabileceğini gösterir | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ignore] | |
[include] | |
[libs] | |
[lints] | |
[options] | |
module.name_mapper.extension='scss' -> '<PROJECT_ROOT>/flow/CSSModule.js.flow' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
import * as React from 'react' | |
import X from 'x' | |
// $FlowFixMe | |
import "./assets/styles/style.scss" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow : which files we want to flow will monitor | |
import * as React from 'react' // let’s flowify the component we just wrote | |
import Xcomponent from "xcomponent" | |
const GridType = { | |
article: "article", | |
text: "text", | |
test: "test" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
declare export default string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
declare export default { [key: string]: string } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ignore] | |
<PROJECT_ROOT>/components/**/package/.* | |
.*/node_modules/config-chain/test/broken.json | |
.*/node_modules/fbjs/.* | |
[include] | |
[libs] | |
[lints] |