Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

eslint-plugin-haskellish-effect

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-haskellish-effect

ESLint plugin enforcing Haskell-like discipline in TypeScript via Effect-TS

latest
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

eslint-plugin-haskellish-effect

Part of haskellish-effect-ts — Haskell-like discipline for TypeScript, enforced by tooling. For motivation, full documentation, and quick setup, see the main repository.

ESLint plugin that enforces Haskell-style purity discipline in TypeScript via Effect-TS.

Install

bun add -d eslint-plugin-haskellish-effect eslint

For a one-import setup with pre-configured rule sets, use haskellish-effect-config instead.

Rules

RuleWhat it enforcesrecommendedstrict
only-allowed-importsBlocks direct effect imports and unknown packageserrorerror
no-global-accessBlocks fetch, console, Date, Math, etc.errorerror
no-implicit-globalthisBlocks globalThis, window, document, selferrorerror
capability-enforcementClosed-world rule — all bindings must be traceable to importswarnerror
no-promiseBlocks async/await and new Promise() — use Effectwarnerror
no-explicit-anyBlocks any type annotationswarnerror
no-throwBlocks throw — use Effect.fail or Effect.diewarnerror
no-mutationBlocks let/var, reassignment, ++/-- — use const and Effect's Refwarnerror
effect-boundaryExported functions should return Effecterror

Usage

// eslint.config.js
import haskellishPlugin, { recommended } from 'eslint-plugin-haskellish-effect'

export default [
  recommended,
  // or use `strict` for all rules as errors
]

For manual rule configuration:

// eslint.config.js
import haskellishPlugin from 'eslint-plugin-haskellish-effect'

export default [
  {
    plugins: { 'haskellish-effect': haskellishPlugin },
    rules: {
      'haskellish-effect/no-global-access': 'error',
      'haskellish-effect/no-promise': 'warn',
      // ...
    },
  },
]

License

MIT

Keywords

eslint

FAQs

Package last updated on 29 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts