jslint-org / jslint

JSLint, The JavaScript Code Quality and Coverage Tool
https://www.jslint.com
The Unlicense
3.62k stars 463 forks source link

JSLint error on Private class features #435

Closed erosman closed 1 year ago

erosman commented 1 year ago

Describe the bug JSLint error on Private class features

class ClassWithPrivate {
  #privateField;
  #privateFieldWithInitializer = 42;

  #privateMethod() {
    // …
  }
}

class ClassWithStaticPrivate {
  static #privateField;
  static #privateFieldWithInitializer = 42;

  static #privateMethod() {
    // …
  }
}

JSLint - [JSLint was unable to finish] Unexpected character '#'.

Jslint edition: vscode-jslint v2023.4.29

Expected behavior No error

kaizhu256 commented 1 year ago

jslint doesn't support es-classes or private fields. there a no plans to implement this support.