- This topic has 7 replies, 2 voices, and was last updated 8 years ago by support-swapna.
-
AuthorPosts
-
g_man1990Participantconfig
MyEclipse → JavaScript → Validator → Errors/Warnings
is gone?
support-swapnaModeratorg_man1990,
MyEclipse 2016 introduces JSjet which brings modern JavaScript to Eclipse, including support for ES6.
JSjet also includes a faster and more accurate validator. With JSjet ,the semicolon at the end of the statement is not mandatory if the end of the statement is followed by a line break.The MyEclipse > JavaScript > Validator > Errors/Warnings preferences page is related to the outdated JSDT inference engine and is no longer available.
Now that MyEclipse supports JSjet, the JavaScript files are opened by default with the JSjet JavaScript editor which provides instant validation and immediately alerts you when there is a problem with your code. Validation is both at the in-editor level as well as across your project.
A JavaScript linter will help you catch errors that would only occur at runtime, or in very specific circumstances, without you having to actually run your code. JSjet support several different JavaScript linters like ESLint, JSHint and JSCS, and you can configure them according to your specific needs or preferences.
Right click on the project > Properties > MyEclipse > JavaScript > Validation and configure the linters accordingly.
For more information about Validation and Linting, please refer to this tutorial :
Please also refer to these tutorials for detailed information about JSjet support in Eclipse/MyEclipse :
https://dzone.com/articles/jsjet-for-modern-javascript-in-eclipseHope this helps. Let us know if you have any questions.
–Swapna
MyEclipse Support
g_man1990Participantso, how to show the “missing semicolon” warning?
you can copy under code to http://jshint.com/, the web will show one warning about “missing semicolon” because at the code end the “;” is missingjQuery(function($){ })
support-swapnaModeratorg_man1990,
You can enable JSHint for the project to show the warning on missing semicolon.
Right click on the project > Properties > MyEclipse > JavaScript > Validation > JSHint and check ‘Enable’. Apply the changes and validate the project when it prompts to. You should now see a warning for the missing semicolon in the js file.Please find the attached screenshot for your reference.
Hope this helps.Let us know how it works for you.
–Swapna
MyEclipse SupportAttachments:
You must be logged in to view attached files.
g_man1990ParticipantMyEclipse Enterprise Workbench
Version: 2016 Stable 1.0
Build id: 14.0.0-20160624
the spring licensecan you zip your TestJS project and upload and show your myeclipse version?
- This reply was modified 8 years ago by g_man1990.
support-swapnaModeratorg_man1990,
Please find the zipped project attached. You can import it using the Import > General > Existing Projects into Workspace > Select archive file and select the zip file to import the project to your workspace.
Hope this helps. Let us know if you see any issues.
–Swapna
MyEclipse SupportAttachments:
You must be logged in to view attached files.
g_man1990Participanthahahaha…..it’s work today, but i change nothing..
by the way, how to setting for all javascript facet project?
support-swapnaModeratorg_man1990,
Glad that it works. The JavaScript linters preferences are available only at project level. Workspace level preferences are currently not available.
Sorry for inconvenience caused. Let us know if you have any questions.
–Swapna
MyEclipse Support -
AuthorPosts