Hacker News new | ask | show | jobs
by serkanyersen 3255 days ago
People comparing EditorConfig to eslint or prettier does not really understand it's purpose.

yes they have intersecting features, but EditorConfig's main feature is that it lets you set file type specific whitespace rules automatically, across almost all editors.

- Most editors will have a global whitespace rule and you have to use that same rule for every file.

- Some editors can be configured to have different rules per file type but then it can't be done per project. So every project has to use the same rules.

- Some editors will let you configure all of these per project, but you have to save this project-settings file somewhere. Editor specific code is no good in the repo, so you need to maintain/backup it yourself.

EditorConfig solves all of these issues for me.