Giter VIP home page Giter VIP logo

Comments (7)

amilajack avatar amilajack commented on August 17, 2024 1

Ahh I see. Thanks. I'll update

from eslint-plugin-flowtype-errors.

CodyReichert avatar CodyReichert commented on August 17, 2024 1

Just tested it and the error no longer appears -- thank you!

from eslint-plugin-flowtype-errors.

CodyReichert avatar CodyReichert commented on August 17, 2024

Semi-related now regarding:

Can this plugin be configured to use my flow-bin?

I see in in a few places that the plugin checks for process.env.FLOW_BIN, and if that's not found, it requires flow-bin. (eg, https://github.com/amilajack/eslint-plugin-flowtype-errors/blob/master/src/collect.js#L16)

What would be the best way to set process.env.FLOW_BIN so that the plugin would use my version of flow? Is that possible?

from eslint-plugin-flowtype-errors.

CodyReichert avatar CodyReichert commented on August 17, 2024

Last bit of info - just realized I'm on [email protected], but 2.0.0 makes some changes to the flow-bin dependency that might fix this.

Can a new version be released to npm?


Edit: Does not look like the new version fixes the issue

from eslint-plugin-flowtype-errors.

amilajack avatar amilajack commented on August 17, 2024

Just to confirm, try this:

npm cache clean
rm -rf node_modules
# remove eslint-plugin-flowtype-errors and flow-bin from package.json 
npm i -D eslint-plugin-flowtype-errors
npm i -D flow-bin
npm i

from eslint-plugin-flowtype-errors.

CodyReichert avatar CodyReichert commented on August 17, 2024

@amilajack - thanks. Same error, unfortunately:

Unexpected token +: [flowtype-errors/show-errors]

Note that the + syntax was introduced in [email protected], and this plugin has a dependency on version 0.33.0.


The flow-bin in my top-level node_modules/.bin directory is the latest 0.36.0 version:

λ ./node_modules/.bin/flow version
Flow, a static type checker for JavaScript, version 0.36.0

And the flow-bin in the node_modules for this plugin is 0.33.0:

λ ./node_modules/eslint-plugin-flowtype-errors/node_modules/.bin/flow version
Flow, a static type checker for JavaScript, version 0.33.0

I'm assuming this plugin is using the 0.33.0 instead of 0.36.0.

Here's a screenshot, if it helps:

eslint-plugin-flowtype-errors-error

from eslint-plugin-flowtype-errors.

amilajack avatar amilajack commented on August 17, 2024

Sorry for the delay. I've just pushed some fixes for this in a preminor:

Would be great if you could test it out and let me know if everything works out okay

from eslint-plugin-flowtype-errors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.