Open Eclipse Preferences and go to JavaScript > Code Style. Then, for each of Clean Up and Formatter, click on the Import button and select the appropriate XML file.
The rules in these files are based primarily on the Google JavaScript Style Guide v2.93 and the formatting rules from the Google C++ Style Guide v3.274.