Answer the question
In order to leave comments, you need to log in
What needs to be configured in PhpStorm so that the js code is highlighted normally?
There is such a code, it is working, but phpstorm displays an error
function swalMask(title, action) {
swal({
title: title,
type: "warning",
confirmButtonText: "Да",
cancelButtonText: "Нет",
showCancelButton: true,
closeOnConfirm: false,
showLoaderOnConfirm: true
}).then((result) => {
if(result.value) {
}
});
}
Answer the question
In order to leave comments, you need to log in
Settings > Languages & Frameworks > JavaScript and select JavaScript version ECMAScript 6
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question