eslint-plugin-functional

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

MIT License

Downloads
756.8K
Stars
792
Committers
19

Bot releases are hidden (Show)

eslint-plugin-functional - v3.0.0

Published by RebeccaStevens almost 5 years ago

Breaking Changes

Node 8 no longer supported.
Minimum support node version is now: 10.18.0

eslint-plugin-functional - v2.0.0

Published by RebeccaStevens almost 5 years ago

Changes of note

Example of how to use:

{
  "parser": "@typescript-eslint/parser",
  "plugins": ["@typescript-eslint", "functional"],
  "extends": [
    "eslint:recommended",
    "plugin:@typescript-eslint/eslint-recommended",
    "plugin:@typescript-eslint/recommended",
    "plugin:functional/external-recommended", // loaded here.
    "plugin:functional/recommended"
  ],
  "parserOptions": {
    "project": "tsconfig.json",
    "sourceType": "module"
  }
}
  • The lite ruleset will no longer enforce a minimal parameter count (with regard to rule functional-parameters). See #79 for details.