Comments (4)
Can you make a short repro repo on GitHub?
from sublimelinter-flow.
@kaste, here is a repo you can clone and load in Sublime Text. You'll notice that neither ESLint nor Flow raises any flags even though there should be one for the return type.
Any thoughts on this?
from sublimelinter-flow.
You know what?
💩
I used the following flowconfig
[ignore]
[include]
[libs]
[lints]
[options]
[strict]
Debug output
SublimeLinter: #68 linter.py:1578 Running ...
D:\SublimeLinter-flow-issues-73 (working dir)
> type index.js | D:\SublimeLinter-flow-issues-73\node_modules\.bin\flow.CMD check-contents D:\SublimeLinter-flow-issues-73\index.js --show-all-errors --json
SublimeLinter: #68 linter.py:1155 flow: output:
[{"flowVersion":"0.102.0","jsonVersion":"1","errors":[{"kind":"infer","level":"error","suppressions":[],"message":[{"context":"const X = (): React.Fragment => (","descr":"Cannot use function type as a type because function type is a value. To get the type of a value use `typeof`.","type":"Blame","loc":{"source":"D:\\SublimeLinter-flow-issues-73\\index.js","type":"SourceFile","start":{"line":5,"column":15,"offset":56},"end":{"line":5,"column":28,"offset":70}},"path":"D:\\SublimeLinter-flow-issues-73\\index.js","line":5,"endline":5,"start":15,"end":28}]}],"passed":false},{}]
SublimeLinter: flow 1 errors. passed: False
SublimeLinter: flow line: 4, col: 14, level: error, message: React.Fragment (Cannot use function type as a type because function type is a value. To get the type of a value use `typeof`.)
from sublimelinter-flow.
It actually appears to be an issue with older versions of Flow not flagging this as an issue.
from sublimelinter-flow.
Related Issues (20)
- Error when Flow returns an extra, empty error
- Linter doesn't work with 'all' config option
- I’d like to help: `flow coverage` HOT 4
- `flow check-contents` causes funny errors HOT 2
- SublimeLinter-flow doesn't respect a @FlowFixMe comment HOT 2
- Linter not matching command line? HOT 1
- Flow Comment Type support? HOT 2
- Trouble with SublimeLinter-flow HOT 1
- Linter outputs error on files without @flow HOT 1
- SublimeLinter-Flow doesn't find '.flowconfig' between the open file and the directory root. HOT 3
- How can I fix this random Flow “WARNING” that pops up on every page? HOT 2
- Too many open files HOT 5
- update linter to no longer use `@` to refer to file HOT 1
- question: separating flow-bin initialization from subsequent calls to flow HOT 4
- esproposal.optional_chaining=enable HOT 7
- Linter hangs the editor when building HOT 1
- CFLint not working HOT 1
- How can once specify include_warnings for only SublimeLinter-flow? HOT 1
- Show full error message HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sublimelinter-flow.