Eclipse: make project not show errors for js directory

I have a web project that uses several third-party js libraries. Since they are optimized, Eclipse shows that there are errors in these files. I would like to configure eclipse to ignore some js directories for error handling and validation.

I think that I am now set to ignore validation using the validation options in Project> Properties> Validation> Client Side JavaScript> Settings. I added an exception rule for my third-party library directory. My problem is that it still shows marker errors> JavaScript issues.

Any help would be appreciated, thanks!

+6
source share
1 answer

Client-side JavaScript validator only checks client-side JavaScript - JavaScript on web pages . You only instructed him to ignore Javascript on the web pages in these folders. You can do this by changing these folders from the Source Folders folder to the Library Folders folder in the JavaScript Include Path. Project> Properties> JavaScript> Include Path. Delete them or set an exception in the Source folder to legally place the library folder in it.

+9
source

Source: https://habr.com/ru/post/908622/


All Articles