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

jshintrc: set esversion to 11 #7422

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

Conversation

pjonsson
Copy link
Contributor

@pjonsson pjonsson commented Dec 27, 2024

What this PR does

WebStorm interprets the existence
of .jshintrc as an intention to use
JSHint, and therefore gives warnings
about syntax that is not supported by
the language version used in
the repository.

Set the version to 11 which is
the highest version documented at:
https://jshint.com/docs/options/#esversion
so JSHint stops complaining about
various things that seem to work
in CI.

Setting the esversion gives a complaint
that esnext is incompatible with esversion.
The esnext option is deprecated according to
https://jshint.com/docs/options/#esnext
so remove it.

Test me

Start WebStorm and press the problems tab, and then analyze the project for errors before/after this change. Notice the number of issues in the JSHint category have decreased after.

Checklist

  • There are unit tests to verify my changes are correct or unit tests aren't applicable (if so, write quick reason why unit tests don't exist)
  • I've updated relevant documentation in doc/.
  • I've updated CHANGES.md with what I changed.
  • I've provided instructions in the PR description on how to test this PR.

WebStorm interprets the existence
of .jshintrc as an intention to use
JSHint, and therefore gives warnings
about syntax that is not supported by
the language version used in
the repository.

Set the version to 11 which is
the highest version documented at:
https://jshint.com/docs/options/#esversion
so JSHint stops complaining about
various things that seem to work
in CI.

Setting the esversion gives a complaint
that esnext is incompatible with esversion.
The esnext option is deprecated according to
https://jshint.com/docs/options/#esnext
so remove it.
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.

1 participant