Skip to Content

SAPUI5 - Unexpected Token > (ESLINT) Syntax Error in Web IDE

Hi all,

I found a line of code that allows me to filter an multidimensional array based on the value of a column.

var filteredKey = filteredKeyGlobalData.filter(p => p.ADV_TYPE == "KE");

Although the code works when I run it, it doesn't allow me to deploy to my ABAP repository due to the syntax error. After searching, I have found that I need to enable/disable some options in my ESLINT in the Web IDE?

Is there anyway to resolve this issue?

Thank you in advance..

screenshot.png (7.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Aug 16, 2019 at 10:11 AM

    You need to set JavaScript 6 validator rules to your project settings. Check out the Configure ESLint part in this blog:


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.