Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Flowtype #58

Closed
Couto opened this issue May 4, 2017 · 5 comments
Closed

Flowtype #58

Couto opened this issue May 4, 2017 · 5 comments

Comments

@Couto
Copy link

Couto commented May 4, 2017

As far as I can tell, ESLint will use some shared configs, including the eslint-plugin-flowtype

However this plugin only works properly if ESLint is using the babel-eslint parser instead of the regular parser, as stated in the installation instructions

This is relevant because eslint doesn't understand type annotations, rendering Flowtype files useless.

@rtfpessoa
Copy link
Contributor

Codacy supports using a configuration file where you can specify all those details.

@Couto
Copy link
Author

Couto commented May 4, 2017

@rtfpessoa I'm a bit newbie with Codacy, is there a place where we can find some docs about eslint? (there probably is, but my search skills are totally failing me :) )

@rtfpessoa
Copy link
Contributor

rtfpessoa commented May 4, 2017

There are no specific docs to ESLint. It is mostly automatic. If you add a project and it has an ESLint config file in the root, Codacy will start using it, if you do not have, Codacy will assign default patterns that you can then configure thought the UI.

Basically Codacy either runs with your config file or with the customized patterns in the UI. In your case since you need a custom parser you need to user a configuration file. For more details check here http://eslint.org/docs/user-guide/configuring

@Couto
Copy link
Author

Couto commented May 4, 2017

mmm... then definitely something is wrong, but I guess it's out of the scope of this issue.
Thanks for you time and patience :)

@Couto Couto closed this as completed May 4, 2017
@rtfpessoa
Copy link
Contributor

@Couto reach out through support at codacy dot com and it will be easier to understand the exact problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants