Code Inspection: Function expression is used instead of arrow function
Configure inspections: Settings | Editor | Inspections
Show intention actions: AltEnter
Reports a function expression. Suggests converting it to an arrow function.
Example:
arr.map(function(el) {return el + 1})
After applying the quick-fix the code looks as follows:
arr.map(el => el + 1)
Place the caret at the highlighted line and press AltEnter or click
.
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.