A repository where I can upload various libraries or configurations that I often find myself duplicating across my own projects.
@putstack/eslint-config-typescript
- A strict configuration for ESLint to be used in TypeScript projects.- It comes with a
recommended
andbase
configuration that can be used. Thebase
configuration is less strict than therecommended
, so it might be easier to integrate into existing projects.
- It comes with a
@putstack/prettier-config
- A prettier configuration that has sensible defaults, that should never require adjustment.
@putstack/utils
- A collection of utility functions that I often find myself needing in various projects.
Clone the repository, and run pnpm i
to install the dependencies - then you're good to go!
The project will lint and prettier itself as a pre-commit hook, so you will automatically adhere to all our style conventions!
Feel free to contribute to this repository if you think there's a bug, a rule is missing or misconfigured, or anything else! If you're unsure how to fix it, feel free to open an issue.
Remember to add a changeset, you can do that by running pnpm changeset
and following the instructions. An example of a changeset could be:
- Turn on `@typescript-eslint/default-param-last` to better match expectations from certain SonarQube setups. Rule documentation can be found [here](https://typescript-eslint.io/rules/default-param-last). This also turns off the standard `default-param-last` as described in the documentation.