- Status: Accepted
- People involved: @iamturns
How should files be formatted?
- Cons
- Developers use different IDEs
- Developers may forget to install plugins
- Developers may configure plugins differently
- Not all new and changed files are saved within an IDE
For example, a script named format.js
which invokes formatting tools.
- Pros
- Consistent for each developer
- Nothing for the developer to install or manage
- Allows a developer or build pipeline to run a single command to ensure files are formatted as expected
- Can be automatically run on changed files using lint-staged
Format files programmatically.