Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Switch to ESLint #9261

Closed
Closed

Description

@mgol

Actual Behavior:

  • What is the issue? * Currently code is linted via JSHint. JSHint is dropping options related purely to code style (a lot of them have already been dropped long ago but e.g. the laxbreak option that we currently use is deprecated as well) so if you ever want to validate code style, you'll have to use ESLint anyway. It doesn't make sense to use two linters when one handles it all just fine.
  • What is the expected behavior? The code is linted via ESLint.

CodePen (or steps to reproduce the issue): *

  • CodePen Demo which shows your issue: N/A
  • Details: N/A

Angular Versions: *

  • Angular Version: N/A
  • Angular Material Version: N/A

Additional Information:

  • Browser Type: * N/A
  • Browser Version: * N/A
  • OS: * N/A
  • Stack Traces: N/A

Shortcut to create a new CodePen Demo.
Note: * indicates required information. Without this information, your issue may be auto-closed.

Do not modify the titles or questions. Simply add your responses to the ends of the questions.
Add more lines if needed.

The migration should be easy since:

  • JSCS isn't used (a lot of repos - like Angular 1.x - were using the JSHint+JSCS combo)
  • There are only 3 JSHint options currently enabled

If you agree this is sth that could be done, I volunteer to prepare a PR. I've done one for AngularJS and it was way more involved than is needed in this repo. :)

Activity

  1. devversion commented on Aug 8, 2016

    @devversion
    Member

    I think it's a good idea to switch to ESLint.

    ESLint seems to be more a active repository and also looks more popular.

    At first I think we should fix all the Lint warnings (probably pair with @crisbeto - #9153).

    Regarding preparing a PR I think it would be good to run that on another Travis Mode, which runs in fast finish mode.

  2. mgol commented on Aug 8, 2016

    @mgol
    MemberAuthor

    Regarding preparing a PR I think it would be good to run that on another Travis Mode, which runs in fast finish mode.

    Could you elaborate? I don't understand. :)

  3. devversion commented on Aug 8, 2016

    @devversion
    Member

    Sure - We currently only have a gulp task to run JSHint against the sources, so it can be only executed manually.

    • It would be good to run ESLint inside of Travis as well.

    To concurrently run ESLint and the normal test suite we want to have different "Modes".

    Like in https://travis-ci.org/angular/angular/builds/150683765

    The fast finish mode for Travis indicates that the ESLint mode is optional and will not fail and block the CI.

    We could skip that fast finish option right now and revisit later, because we have to fix the warnings first.

  4. self-assigned this
    on Sep 7, 2016
  5. added this to the - Backlog milestone on Sep 12, 2016
  6. added 4 commits that reference this issue on Jul 31, 2017
    8f3f088
    7648e85
    1988972
    d32ca71
  7. added a commit that references this issue on Aug 16, 2017
    468d271
  8. added a commit that references this issue on Sep 5, 2017
    3bc5553
  9. added a commit that references this issue on Sep 25, 2017
    00a4312
  10. added a commit that references this issue on Nov 20, 2017
    a86d127
  11. added 2 commits that reference this issue on Dec 12, 2017
    3875b93
    4f31e17
  12. modified the milestones: - Backlog, 1.1.6 on Dec 13, 2017
  13. added
    has: Pull Request
    P4: minor
    on Dec 13, 2017
  14. added a commit that references this issue on Sep 28, 2024
    d9eb909
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P4: minorhas: Pull Requestresolution: fixedtype: build

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions