go-web-backend icon indicating copy to clipboard operation
go-web-backend copied to clipboard

flowtype-errors fails the lint

Open olegakbarov opened this issue 9 years ago • 6 comments

Plugin still fails for me with lates deps.

@amilajack if you willing to get to the bottom of it — let me know :)

Oops! Something went wrong! :(

ESLint couldn't find the plugin "eslint-plugin-flowtype-errors". This can happen for a couple different reasons:

1. If ESLint is installed globally, then make sure eslint-plugin-flowtype-errors is also installed globally. A globally-installed ESLint cannot find a locally-installed plugin.

2. If ESLint is installed locally, then it's likely that the plugin isn't installed correctly. Try reinstalling by running the following:

    npm i eslint-plugin-flowtype-errors@latest --save-dev

If you still can't figure out the problem, please stop by https://gitter.im/eslint/eslint to chat with the team.

olegakbarov avatar Sep 26 '16 18:09 olegakbarov

Working on this now. Sorry about the breakage

amilajack avatar Sep 26 '16 20:09 amilajack

screen shot 2016-09-26 at 1 44 10 pm screen shot 2016-09-26 at 1 46 26 pm

amilajack avatar Sep 26 '16 20:09 amilajack

Seems to work fine just for me. I did a fresh clone, npm install, made some type errors that flow could catch, and ran npm run lint

amilajack avatar Sep 26 '16 20:09 amilajack

Tested a quick demo against flowtype.org

screen shot 2016-09-26 at 1 51 47 pm screen shot 2016-09-26 at 1 51 51 pm

Code in the example is in index.js

amilajack avatar Sep 26 '16 20:09 amilajack

Try this again:

npm cache clean
rm -rf node_modues
npm i
npm run lint

amilajack avatar Sep 26 '16 20:09 amilajack

@olegakbarov what's the status of this?

amilajack avatar Oct 29 '16 06:10 amilajack