eslint-plugin-functional
eslint-plugin-functional copied to clipboard
ESLint rules to disable mutation and promote fp in JavaScript and TypeScript.
# 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'; }; ``` ##...
# 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...
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...
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...
[eslint suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions)
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.
Transferred from jonaskello/tslint-immutable#58
`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...
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...