Our great sponsors
-
Clippy
A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
typescript-eslint
:sparkles: Monorepo for all the tooling which enables ESLint to support TypeScript
There isn't overlap between these concerns (formatting and linting), formatting is syntactic analysis and linting is semantic analysis. There's only overlap because ESLint has some formatting capabilities as well. In modern languages, these are separate tools because they are separate concerns (rustfmt and rust-clippy , gofmt and go vet ).
There isn't overlap between these concerns (formatting and linting), formatting is syntactic analysis and linting is semantic analysis. There's only overlap because ESLint has some formatting capabilities as well. In modern languages, these are separate tools because they are separate concerns (rustfmt and rust-clippy , gofmt and go vet ).
From experience, Prettier is simply better at formatting than ESLint, and covers more scenarios while at the same time having less configuration. Less configuration is less bikeshedding you need to do with your teammates. Typically, a tool that specializes on one concern can be more effective than a tool that spans multiple concerns. Take for example, the formatting indent rule for TypeScript ESLint, which is described by the maintainers as indefinitely broken. Prettier does not have this issue, because it is a tool designed for syntactic analysis.
For anyone would would like to migrate from Prettier to ESLint, https://github.com/gajus/eslint-config-canonical covers everything that Prettier does and a lot (a lot) more.