Package Exports
- haskellish-effect-config
Readme
haskellish-effect-config
Part of haskellish-effect-ts — Haskell-like discipline for TypeScript, enforced by tooling. For motivation and full documentation, see the main repository.
One-import ESLint configs combining typescript-eslint and eslint-plugin-haskellish-effect.
Install
bun add -d haskellish-effect-config eslint-plugin-haskellish-effect eslint typescript typescript-eslintUsage
// eslint.config.js
import { recommended } from 'haskellish-effect-config'
export default [
...recommended,
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
]Configs
| Config | Based on | All plugin rules |
|---|---|---|
recommended |
tseslint.recommendedTypeChecked |
warn / error (see plugin) |
strict |
tseslint.strictTypeChecked |
all error, including effect-boundary |
Both configs also enable @typescript-eslint/no-unsafe-* rules as errors.
strict additionally enables:
@typescript-eslint/strict-boolean-expressions@typescript-eslint/no-floating-promises@typescript-eslint/no-misused-promises
License
MIT