-
Notifications
You must be signed in to change notification settings - Fork 100
Description
eslint and prettier currently run together, but this is not recommended:
Efficiency and Speed: Purpose-built formatters are faster because they are architecturally simpler than linters, which often perform more complex static analysis.
Consistency and Reliability: Dedicated formatters offer much more consistent results and fewer edge-case problems than using lint rules for formatting.
Clearer Focus: Separating the concerns allows each tool to excel at its specific job. This also means fewer configuration conflicts between tools.
Better Workflow:
Running the formatter first can prevent linters from reporting "false positives," such as a line being too long before formatting, which would be resolved by the formatter anyway.
The linter reports the correct line numbers for issues when run after formatting, as the file composition won't change after linting.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status