Step 1 :
Step 2 :
Select Excluded under Source tab by clicking on it.
Step 3 :
Click on Edit… button.
Step 4 :
Click on “Add Multiple…” button in Exclusion pattern section and select java script files which are giving errors and for which you don’t want validation to happen, from Your project’s folder.
Step 5 :
You will see all the selected scripts in exclusion patterns as below .Click on Finish.
Step 6 :
Click Ok on below popup.
Clean build the project again and your validation errors will be gone.