I use the syntax checking in ace editor (javascript-worker). I need to use the syntax checking 'use strict' mode, but without a declaration "use strict" in the body of the code, How i can to configure that?
(function configureAceWorker() {
const worker = editor.session.$worker;
if (!worker) {
setTimeout(configureAceWorker, 500);
} else {
worker.call("changeOptions", [{
// https://jshint.com/docs/options
strict: "implied", // lint the code as if there is the "use strict"; directive
}]);
}
})();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With