You can also add an autocommand that will fix the file automatically when you save the file using…
Ahmed El Gabri

I’d recommend using the ALE-specific `let g:ale_fix_on_save = 1` option instead as it ensures the buffer is only written to after the async fixers are complete; with `autocmd BufWritePre *.{js} ALEFix` you have to save the file again after the fixers are done (save the file twice) :)

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.