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

ESVersion Linting Problem in Javascript Files #2

Open
JavesBastatas opened this issue Feb 20, 2023 · 0 comments
Open

ESVersion Linting Problem in Javascript Files #2

JavesBastatas opened this issue Feb 20, 2023 · 0 comments

Comments

@JavesBastatas
Copy link

 '{FEATURE}' is only available in {VERSION} (use 'esversion: {VERSION}')

where:
{FEATURE} is a string representing any javascript feature (like 'object spread property'), and
{VERSION} is a string representing any ES version code (like ES9)

Problem

As intended, the linter will warn about possible unsupported javascript features as shown above. However, the warning may still show even after trying these solutions:

  • 1: Putting /* jshint esversion: 9 */ above the file,
  • 2: `Set JSHint version' in commands panel.

I know I can just ignore it and not attempt to fix the warning. However, there is a bug where lines after the warning are not linted properly.

Also, the first solution produces another warning:

Incompatible values for 'esversion' and 'esnext' linting options

Regardless of putting values as a string (like '9') or a number (like 9), it won't work.

The second option does nothing.

I hope this gets fixed (even though it might be a small problem).

Some helpful details

Acode Editor v1.7.1 (266)
Lint Plugin v.1.0.2

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

No branches or pull requests

1 participant