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

Modernizing jshint #3299

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Modernizing jshint #3299

wants to merge 1 commit into from

Conversation

jrgleason
Copy link

Removes JSCS and replaces with ESLINT per their site. I have to ignore two roles which we should fix later...

{
    "rules": {
        "no-control-regex": 0,
        "no-console": 0
    }
}

@jrgleason jrgleason mentioned this pull request Jun 29, 2018
@jrgleason
Copy link
Author

Seems to work on 6 and higher

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 98.731% when pulling 01817c6 on jrgleason:UPGRADE into 7993101 on jshint:master.

@jrgleason
Copy link
Author

jrgleason commented Jun 29, 2018

@coveralls is conflating a gain for a loss. I will look into how to mitigate the loss of coverage. I might have decreased coverage by a few line but I also fixed linting (npm run pretest) which wasn't working...

npm run pretest
...
45 code style errors found.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! jshint@2.9.5 pretest: `node ./bin/jshint src && jscs src`
npm ERR! Exit status 2

@jrgleason
Copy link
Author

jrgleason commented Jun 29, 2018

Vs. Mine...

npm run pretest

> jshint@2.9.5 pretest .../jshint
> node ./bin/jshint src && eslint src

@jrgleason
Copy link
Author

The real issue with this is the loss of support for older versions. Can't you deprecate everything before 6 by now?

@caitp
Copy link
Member

caitp commented Feb 13, 2019

The real issue with this is the loss of support for older versions. Can't you deprecate everything before 6 by now?

it's hard to say --- I think we're probably OK to drop support for < Node LTS (or maybe the previous LTS release), but it would be good to make sure modern jshint continues to run out of the box on most distros, e.g. Ubuntu 18.10 currently includes Node 8~ (https://packages.ubuntu.com/cosmic/nodejs) --- but there may be good reasons to keep supporting ancient builds.

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