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

correct eol-last desire value documentation #7227

Merged
merged 1 commit into from Sep 26, 2016

Conversation

chaintng
Copy link
Contributor

What is the purpose of this pull request? (put an "X" next to item)

[X] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:

Please check each item to ensure your pull request is ready:

  • I've read the pull request guide
  • I've included tests for my change
  • I've updated documentation for my change (if appropriate)

What changes did you make? (Give an overview)
Correct desire eol-last value after this pull request #6952

Is there anything you'd like reviewers to focus on?
nope :)

@mention-bot
Copy link

@chaintan17, thanks for your PR! By analyzing the annotation information on this pull request, we identified @scriptdaemon, @pedrottimark and @kdex to be potential reviewers

@eslintbot
Copy link

LGTM

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

IIRC "always" is the default anyway, so the behavior should be equivalent to the previous version. But I do agree that being explicit about the parameters is a lot better in terms of documentation. Thank you! LGTM 👍

@chaintng
Copy link
Contributor Author

setting just "always" alone break the API.
please see this issue airbnb/javascript#1088 (comment)

I think we need to make backward compatability also because it's minor release.

What do you think @kdex ?

@ghost
Copy link

ghost commented Sep 25, 2016

@chaintng Hm, I've failed to reproduce this on ESLint 3.5.0 and 3.6.0 with the following file:

/* eslint eol-last: ["error"] */\n
var a = 2;

The output is as expected:

╰─$ ./bin/eslint.js check.js

/home/kdex/dev/eslint/check.js
  2:1   error  Use the global form of 'use strict'            strict
  2:1   error  Unexpected var, use let or const instead       no-var
  2:5   error  'a' is defined but never used                  no-unused-vars
  2:11  error  Newline required at end of file but not found  eol-last

✖ 4 problems (4 errors, 0 warnings)

If you have a consistent way of reproducing this error, could you please— in addition to this PR—open up an issue about it?

@eslintbot
Copy link

LGTM

@chaintng
Copy link
Contributor Author

Ah, yes. i was misunderstanding.
But why Travis throw failed test 😕

i try npm test on master branch it also failed too 😕

@ghost
Copy link

ghost commented Sep 25, 2016

Travis indeed failed for some node versions. The build and tests for Node 4.x were successful. Node 5.x and 6.x failed with:

ESLint couldn't find the plugin "eslint-plugin-node".

which seems like a problem on our end; don't worry about it. It has nothing to do with eol-last.

For more information on the failure, see #7239.

Copy link
Member

@vitorbal vitorbal left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks, @chaintng!

@vitorbal vitorbal merged commit 87625fa into eslint:master Sep 26, 2016
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants