Reputation: 59
I use eslint-html-plugin to validate JavaScript inside JSP file
In the JSP file there are some thing like :
var ConnNo = <%= PubConstants.ConnectionNo%>;
eslint parser cannot handle such syntax, and return the information that "eslint parsing error unexpected token"
could you help me to rectify this problem, I will be grateful if you could help me to enhance my code quality.
Upvotes: 1
Views: 265
Reputation: 59
Do as Mr. Swati says helps me solve this problem: Try putting that inside "" and see onces. Thanks for his answer. I don know how to choose his suggestion as final answer, So I copy his answer and thanks him here. @Swati I will accept this answer tomorrow.
Upvotes: 0