Skip to content

Conversation

@josephjunker
Copy link
Contributor

Some teams are adopting Flow, but additional configuration is needed to get eslint to work with it.

``` js
{
"scripts": {
"lint": eslint-godaddy-flow files/ you/ want-to/ lint/"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unclosed string in markdown

``` js
{
"scripts": {
"lint": eslint-godaddy-react-flow files/ you/ want-to/ lint/"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unclosed string

@josephjunker josephjunker changed the title adds flow and react-flow packages adds react-flow package Jul 19, 2017
Copy link
Contributor

@fabiomcosta fabiomcosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@jcrugzz
Copy link

jcrugzz commented Jul 20, 2017

Give this a couple days to marinate. I know @indexzero wants a chance to review

Copy link
Contributor

@indexzero indexzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall +1, but would like to see the ruleset inherit from eslint-config-godaddy-react so new react-specific (but not flow-specific) changes can be made in only one place.

@@ -0,0 +1,39 @@
module.exports = {
extends: [
require('./extends')('eslint-config-godaddy'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why wouldn't this be eslint-config-godaddy-react?

require('./extends')('eslint-config-godaddy-react'),

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, I'll make this change.

'react/jsx-curly-spacing': [2, 'always', {
spacing: { objectLiterals: 'never' }
}],
'jsx-quotes': [2, 'prefer-single'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of these rules should be inherited from eslint-config-godaddy-react no? If we add rules to that package I'd like to see them reflected here.

Copy link
Contributor

@indexzero indexzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@indexzero indexzero merged commit b595fe6 into godaddy:master Jul 24, 2017
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.

5 participants