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

Update: Eslint to 3.0 and update CI builds (fixes #4638) #4680

Merged
merged 1 commit into from Oct 5, 2016
Merged

Update: Eslint to 3.0 and update CI builds (fixes #4638) #4680

merged 1 commit into from Oct 5, 2016

Conversation

gyandeeps
Copy link
Contributor

@gyandeeps gyandeeps commented Oct 5, 2016

Q A
Bug fix? no
Breaking change? no
New feature? no
Deprecations? no
Spec compliancy? no
Tests added/pass? no
Fixed tickets #4638
License MIT
Doc PR reference to the documentation PR, if any

Update ESLint to 3.0 and make sure lint is only run under nodejs version greater than 4 (run on latest).

Questions:

Lint has 2 errors.

babel\packages\babel-cli\src\babel-doctor\rules\deduped.js
  1:16  error  This generator function does not have 'yield'  require-yield

babel\packages\babel-cli\src\babel-doctor\rules\has-config.js
  4:16  error  This generator function does not have 'yield'  require-yield

βœ– 2 problems (2 errors, 0 warnings)

@hzoo any idea what should i do with these errors? (asking bcz I dont have a good idea abt the code base yet πŸ˜„ )

@hzoo hzoo added the PR: Internal 🏠 A type of pull request used for our changelog categories label Oct 5, 2016
@hzoo
Copy link
Member

hzoo commented Oct 5, 2016

awesome @gyandeeps!

that's interesting because https://github.com/babel/babel/blob/master/packages/babel-cli/src/babel-doctor/rules/deduped.js is using async functions? dono if the rule is wrong or something

config is https://github.com/babel/eslint-config-babel/blob/master/index.js

@hzoo
Copy link
Member

hzoo commented Oct 5, 2016

i'd be ok with just turning off the rule for those files/lines - made #4678 to remove it anyway.

But yeah should investigate why it's saying that for async functions (possibly just babel-eslint issue as well)

@gyandeeps
Copy link
Contributor Author

how about for this PR, i just turn this rule off inline for those 2 cases?
Also is this what you expected from this PR?

@hzoo
Copy link
Member

hzoo commented Oct 5, 2016

Yep that's fine!

@gyandeeps
Copy link
Contributor Author

gyandeeps commented Oct 5, 2016

Done.

its a babel-eslint issue, it sets the generator: true on the AST node.

@hzoo
Copy link
Member

hzoo commented Oct 5, 2016

Weird since it shouldn't be doing that anymore babel/babel-eslint@1823b5e

script: make test-ci
script:
- 'if [ -n "${LINT-}" ]; then make lint ; fi'
- 'make test-ci'
Copy link
Member

Choose a reason for hiding this comment

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

this will run the tests even in the linter run - i think you want if [ -z "${LINT-}" ] here to skip this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can do this. This way it will be fast as that build will only do lint.

Copy link
Member

Choose a reason for hiding this comment

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

Exactly :-)

Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we can skip npm install in that case (not that it would matter much)

Copy link
Member

Choose a reason for hiding this comment

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

nope, you need it for eslint

@hzoo
Copy link
Member

hzoo commented Oct 5, 2016

awesome stuff! πŸŽ‰

@hzoo hzoo merged commit 6cfd3d9 into babel:master Oct 5, 2016
@gyandeeps gyandeeps deleted the issue4638 branch October 5, 2016 21:47
@hzoo
Copy link
Member

hzoo commented Oct 5, 2016

Ok I was investigating and it's because of eslint-config-babel

└─┬ eslint-config-babel@1.0.1
└── babel-eslint@6.1.2

So it's still using the old babel-eslint

@hzoo hzoo mentioned this pull request Oct 26, 2016
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 7, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Internal 🏠 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants