jhipster / prettier-java

Prettier Java Plugin
http://www.jhipster.tech/prettier-java/
Apache License 2.0
1.06k stars 103 forks source link

fix(parser): Correctly detect `process` #598

Closed magic-akari closed 10 months ago

magic-akari commented 10 months ago

What changed with this PR:

In JavaScript, it is a common mistake to check if a variable exists by directly referencing it. The correct way to do this is to use the typeof operator.

Example

N/A

Relative issues or prs:

CLAassistant commented 10 months ago

CLA assistant check
All committers have signed the CLA.

clementdessoude commented 10 months ago

Thank you for your contribution @magic-akari !