Use editorconfig for common editor configuration (line endings, charset, indentation).

Use prettier for formatting.

Use eslint only for checking code style.

Blog about how to set it up and avoid conflicts