eslint-plugin-functional icon indicating copy to clipboard operation
eslint-plugin-functional copied to clipboard

ESLint rules to disable mutation and promote fp in JavaScript and TypeScript.

Results 70 eslint-plugin-functional issues
Sort by recently updated
recently updated
newest added

# Bug Report Autofix for `functional/prefer-readonly-type` on a mapped type like the following inserts `readonly` on a wrong line: ```ts let a: { [B in 'c']: 'd'; }; ``` ##...

Priority: Low

# Bug Report I have the following code: ```ts export type Writable = { -readonly [K in keyof T]: T[K]; }; ``` ESLint reports "functional/prefer-readonly-type" rule and an option to...

Type: Bug
Accepted

I am getting this error when I install this library to my angular project any help please? ``` TypeError: Failed to load plugin '@typescript-eslint' declared in '--config#overrides[0]': Class extends value...

Type: Bug
Status: Triage

This rule extracts out the function return type logic from #259 so that that rule doesn't become too overly complicated. Related: [prefer-readonly-parameter-types](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md)

# Bug Report The [documentation of `prefer-tacit`](https://github.com/jonaskello/eslint-plugin-functional/blob/master/docs/rules/prefer-tacit.md) states: | Generally there's no reason to wrap a function with a callback wrapper if it's directly called anyway. But this is not...

Type: Documentation
Accepted

[eslint suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions)

Type: Enhancement
Status: Investigation Needed

Allow for using [AST selectors](https://eslint.org/docs/developer-guide/selectors) to ignore stuff like how the [no-restricted-syntax](https://eslint.org/docs/rules/no-restricted-syntax) rule uses them.

Type: Feature

Transferred from jonaskello/tslint-immutable#58

Status: Blocked
Type: Feature
Accepted

`prefer-readonly-type` catches this: ```ts type Foo = { [K in string]: string; }; ``` but not this, which is equivalent: ```ts type Bar = Record; ``` It would be great...

Status: Blocked

This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more. This repository currently has no open or pending branches. ## Detected dependencies github-actions .github/workflows/ci.yml...