JSPM

haskellish-effect-config

0.1.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 17
    • Score
      100M100P100Q69242F
    • License MIT

    Shared ESLint configs combining typescript-eslint and haskellish-effect plugin

    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-eslint

    Usage

    // 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