Flow instructions (Chapter 2) fail on Windows
lauthu opened this issue · 1 comments
lauthu commented
Following the flow instructions, I got below error messagesa after run yarn test
.
yarn test v0.23.2
$ eslint src && flow
C:\JsPlayground\test1\src\dog.js
2:1 error Definition for rule 'flowtype/space-before-generic-bracket' was not found flowtype/space-before-gen
eric-bracket
2:1 error Definition for rule 'flowtype/boolean-style' was not found flowtype/boolean-style
2:1 error Definition for rule 'flowtype/generic-spacing' was not found flowtype/generic-spacing
2:1 error Definition for rule 'flowtype/no-types-missing-file-annotation' was not found flowtype/no-types-missing
-file-annotation
2:1 error Definition for rule 'flowtype/space-after-type-colon' was not found flowtype/space-after-type
-colon
2:1 warning Definition for rule 'flowtype/define-flow-type' was not found flowtype/define-flow-type
2:1 error Definition for rule 'flowtype/space-before-type-colon' was not found flowtype/space-before-typ
e-colon
2:1 error Definition for rule 'flowtype/union-intersection-spacing' was not found flowtype/union-intersecti
on-spacing
2:1 warning Definition for rule 'flowtype/use-flow-type' was not found flowtype/use-flow-type
2:1 warning Definition for rule 'flowtype/valid-syntax' was not found flowtype/valid-syntax
2:1 error Definition for rule 'compat/compat' was not found compat/compat
C:\JsPlayground\test1\src\index.js
2:1 error Definition for rule 'flowtype/space-before-generic-bracket' was not found flowtype/space-before-ge
neric-bracket
2:1 error Definition for rule 'compat/compat' was not found compat/compat
2:1 warning Definition for rule 'flowtype/define-flow-type' was not found flowtype/define-flow-typ
e
2:1 error Definition for rule 'flowtype/generic-spacing' was not found flowtype/generic-spacing
2:1 error Definition for rule 'flowtype/no-types-missing-file-annotation' was not found flowtype/no-types-missin
g-file-annotation
2:1 error Definition for rule 'flowtype/space-after-type-colon' was not found flowtype/space-after-typ
e-colon
2:1 error Definition for rule 'flowtype/boolean-style' was not found flowtype/boolean-style
2:1 error Definition for rule 'flowtype/space-before-type-colon' was not found flowtype/space-before-ty
pe-colon
2:1 error Definition for rule 'flowtype/union-intersection-spacing' was not found flowtype/union-intersect
ion-spacing
2:1 warning Definition for rule 'flowtype/use-flow-type' was not found flowtype/use-flow-type
2:1 warning Definition for rule 'flowtype/valid-syntax' was not found flowtype/valid-syntax
6:25 error Newline required at end of file but not found eol-last
✖ 23 problems (17 errors, 6 warnings)
error Command failed with exit code 1.
lauthu commented
I change tab from 4 spaces to 2 spaces in .eslintrc.json
and flow worked.