Write TS with self-discipline.
A very opinionated ESLint rules and config, containing
Plugin | Config preset |
---|---|
ESLint | @eslint/js.configs.recommended.rules |
typescript-eslint | strictTypeChecked , stylisticTypeChecked |
@stylistic/eslint-plugin-ts | default.configs["all-flat"] |
eslint-plugin-prettier | prettier |
@cadencejs/eslint-plugin | cadence |
with many more rules I've manually configured that aren't included in those presets, considering the following sources:
pnpm i -D eslint github:Delnegend/hagemanto
// eslint.config.js
import hagemanto from "eslint-plugin-hagemanto";
export default [
// ...
...hagemanto(), // or ...hagemanto({ enablePrettier: true }) to enable prettier
// ,,,
]
There's no build step, just run pnpm lint
and expect linting errors from eslint.