ryan953 / flow-annotation-check Goto Github PK
View Code? Open in Web Editor NEWCheck your files for the presence of the `@flow` annotations
Home Page: https://yarnpkg.com/en/package/flow-annotation-check
Check your files for the presence of the `@flow` annotations
Home Page: https://yarnpkg.com/en/package/flow-annotation-check
Hey hi,
I tried to use your "-x"
option, but it's very confusing for me.
The documentation present an array as default value, but to expect the same behaviour as default i tried may ways to make it works :
flow-annotation-check -x '+(node_modules|build|flow-typed)/**/*.js'
flow-annotation-check -x 'src/assets/js/**/*.js'
flow-annotation-check -x '+(node_modules|build|flow-typed)/**/*.js' -x 'src/assets/js/**/*.js'
flow-annotation-check -x '+(node_modules|build|flow-typed|src/assets/js)/**/*.js'
flow-annotation-check -x '+(node_modules|build|flow-typed)/**/*.js|+(src/assets/js)/**/*.js'
And anytime i tried to manage with this string, the exclude option is fully ignored.
The winner is :
flow-annotation-check -x '+(node_modules|build|flow-typed)/**/*.js' -x 'src/assets/js/**/*.js'
But it was very unexpected.
Hey guys,
Thanks for your module, it's very helpfull.
I wonder fi there is a way to enforce the check of "// @flow strict" on the beginning of each files, and exit with an error on the CLI when it's not the case ?
I'm not sure if the option exists yet, i cannot find.
Bye
Branch | Build failing π¨ |
---|---|
Dependency | flow-typed |
Current Version | 2.0.0 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As flow-typed is βonlyβ a devDependency of this project it might not break production or downstream projects, but βonlyβ your build or test tools β preventing new deploys or publishes.
I recommend you give this issue a high priority. Iβm sure you can resolve this πͺ
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
I should've opened a bug before. But track this in this repo too:
3rd-Eden/find-package-json#5
A case like this should not return @flow
for the file:
import React, { Component } from 'react';
// @flow
We should test for statements above the first 10 comment blocks and invalidate those comments that occur later on.
Per: https://github.com/facebook/flow/blob/master/src/parsing/parsing_service_js.ml#L324-L327
It's still looking at the first 10 comments/tokens in the file: https://github.com/facebook/flow/blob/master/src/parsing/parsing_service_js.ml#L172
Hi,
First of all: thanks for this great tool! We use it into our CI to check the presence/absence of the flow header on our code.
In our project it validate ~500 files and print the result on the output. This is a lot of output. When a file is invalid we have to scroll all this output to find witch files is not valid.
We were thinking about an options that only list errored files: --only-show-error
, or --summary
What did you think about this?
Currently, @flow strict-local
is treated like @flow
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.