Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add flowtype-errors #175

Closed
wants to merge 2 commits into from

Conversation

amilajack
Copy link
Collaborator

@amilajack amilajack commented Jan 1, 2017

@gajus can you test if this works by linking? I'm getting an error saying that Definition for rule flowtype-errors/show-errors was not found if i enable flowtype-errors/show-errors was not found in my eslintrc when using the linked version of this plugin. I haven't worked with a recommended.json before I'm not sure how to debug this.

@amilajack amilajack mentioned this pull request Jan 1, 2017
2 tasks
@amilajack amilajack closed this Jan 13, 2017
@amilajack amilajack deleted the add-flowtype-errors-support branch January 13, 2017 03:33
@amilajack amilajack restored the add-flowtype-errors-support branch January 15, 2017 06:55
@amilajack amilajack reopened this Jan 15, 2017
@amilajack
Copy link
Collaborator Author

amilajack commented Jan 15, 2017

Accidentally deleted the branch for this 😂 reopening

@danharper
Copy link
Collaborator

I'm unsure about enabling it by default for recommended, as I'm sure many people are running flow separately anyway. Thoughts @gajus?

@amilajack
Copy link
Collaborator Author

amilajack commented Jan 15, 2017

I'm unsure about enabling it by default for recommended,

It is actually disabled in recommended config. the rule is set to 0

@gajus
Copy link
Owner

gajus commented Jan 15, 2017

I am not convinced that adding eslint-plugin-flowtype-errors just for the sake of being able to enable it via flowtype-errors/show-errors configuration is a valid use case.

To be clear, I am not suggesting to have it enabled by default either. As @danharper said, I too think that most people run Flow separately.

@amilajack I don't see the value of making users download eslint-plugin-flowtype-errors as a dependency of eslint-plugin-flowtype just for the sake so that they could be able to enable it using flowtype-errors/show-errors rule. Therefore, I am leaning towards simply documenting the existence of eslint-plugin-flowtype-errors in the README.md.

If you are Okay with this, please update to restrict changes to the README.md file. I am suggesting adding a section "Related projects" after the "Rules" section and documenting your plugin.

@amilajack
Copy link
Collaborator Author

Sure thing. I'll close this PR and create a new one for the readme update

@amilajack amilajack closed this Jan 15, 2017
@gajus
Copy link
Owner

gajus commented Jan 15, 2017

@danharper I hope thats Okay with you too.

@amilajack amilajack deleted the add-flowtype-errors-support branch January 15, 2017 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants