appium / appium-doctor

[Deprecated] Please use https://github.com/appium/appium/tree/master/packages/doctor
Apache License 2.0
128 stars 34 forks source link

lint error #113

Closed KazuCocoa closed 3 years ago

KazuCocoa commented 3 years ago

Will take a look later:

[19:46:09] Using gulpfile ~/GitHub/appium-doctor/gulpfile.js
[19:46:09] Starting 'lint'...
[19:46:09] Starting 'eslint'...
[19:46:12]
/Users/kazuaki/GitHub/appium-doctor/lib/android.js
  96:19  error  Parsing error: /Users/kazuaki/GitHub/appium-doctor/lib/android.js: Support for the experimental syntax 'classProperties' isn't currently enabled (96:20):

  94 |
  95 | class OptionalGstreamerCheck extends DoctorCheck {
> 96 |   GSTREAMER_BINARY = `gst-launch-1.0${system.isWindows() ? '.exe' : ''}`;
     |                    ^
  97 |   GST_INSPECT_BINARY = `gst-inspect-1.0${system.isWindows() ? '.exe' : ''}`;
  98 |
  99 |   async diagnose () {

Add @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the 'plugins' section of your Babel config to enable transformation.
If you want to leave it as-is, add @babel/plugin-syntax-class-properties (https://git.io/vb4yQ) to the 'plugins' section to enable parsing