3 ms·
EditorConfig is fantastic. I've used it for years now across client projects, internal work, and even in educational content that I've authored. It honestly do
by fluxsauce 8y ago
EditorConfig is fantastic. I've used it for years now across client projects, internal work, and even in educational content that I've authored.
It honestly doesn't do a lot, but what it does do is standardize on things that are easily agreed upon like line endings and tab style / width. It leaves language specific options to purpose built linters.
- smt88 8y agoBut if the language-based linter is also an automatic formatter, what's the benefit of editorconfig? All mainstream languages have good formatters these days that go much deeper and understand the language.
- greglindahl 8y agoI use editorconfig for a lot of miscellaneous file types that I don't have an autoformatter for: markdown, jsonl, ...
- guhidalg 8y agoIsn’t the advantage that EditorConfig allows you to choose a style over the style enforced by the language? For new languages and markup files this isn’t a problem because they may have developed a style guide in conjunction with the language but older languages don’t have that benefit.
- smt88 8y agoPossibly, but I don't work with any teams that use any languages that don't have their own formatters, so I don't even know which languages are still missing one. The languages they're using are C#, TypeScript, JavaScript, Go, Python, and Ruby.