Question about no-mixed-spaces-and-tabs ESLint errors

Hi everyone,
While working on a small fix for the master password warning message, I keep running into ESLint errors related to no-mixed-spaces-and-tabs in Dialog.tsx.
It seems that some lines in the file have a mix of tabs and spaces, so even small edits trigger lint errors. I fixed it locally, but I find myself hitting this issue quite often.
Is there a recommended editor setting or workflow to avoid this? For example, should we always enforce tabs in this file?
Thanks!

Make sure that your IDE is configured to use tabs when editing joplin files, in VSCode you can use the option to "Detect Indentation from Content" to use whatever the file you're working on uses:

also make sure that code formatters like prettier aren't active in your joplin workspace

1 Like