{"id":13473507,"url":"https://github.com/jfmengels/eslint-plugin-fp","last_synced_at":"2025-04-14T08:15:12.598Z","repository":{"id":49255232,"uuid":"61160796","full_name":"jfmengels/eslint-plugin-fp","owner":"jfmengels","description":"ESLint rules for functional programming","archived":false,"fork":false,"pushed_at":"2021-01-01T22:02:02.000Z","size":76,"stargazers_count":972,"open_issues_count":31,"forks_count":36,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-04-07T01:07:05.823Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jfmengels.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-14T22:45:17.000Z","updated_at":"2025-03-21T20:28:41.000Z","dependencies_parsed_at":"2022-09-14T14:52:03.056Z","dependency_job_id":null,"html_url":"https://github.com/jfmengels/eslint-plugin-fp","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfmengels%2Feslint-plugin-fp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfmengels%2Feslint-plugin-fp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfmengels%2Feslint-plugin-fp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfmengels%2Feslint-plugin-fp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jfmengels","download_url":"https://codeload.github.com/jfmengels/eslint-plugin-fp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248843953,"owners_count":21170495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:01:04.292Z","updated_at":"2025-04-14T08:15:12.575Z","avatar_url":"https://github.com/jfmengels.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Plugins","Programming Tools"],"sub_categories":["Practices and Specific ES Features","Lenses"],"readme":"# eslint-plugin-fp [![Build Status](https://travis-ci.org/jfmengels/eslint-plugin-fp.svg?branch=master)](https://travis-ci.org/jfmengels/eslint-plugin-fp)\n\nESLint rules for functional programming\n\n\n## Install\n\n```\n$ npm install --save-dev eslint eslint-plugin-fp\n```\n\n## Usage\n\nConfigure it in `package.json`.\n\n\u003c!-- EXAMPLE_CONFIGURATION:START --\u003e\n```json\n{\n  \"name\": \"my-awesome-project\",\n  \"eslintConfig\": {\n    \"env\": {\n      \"es6\": true\n    },\n    \"plugins\": [\n      \"fp\"\n    ],\n    \"rules\": {\n      \"fp/no-arguments\": \"error\",\n      \"fp/no-class\": \"error\",\n      \"fp/no-delete\": \"error\",\n      \"fp/no-events\": \"error\",\n      \"fp/no-get-set\": \"error\",\n      \"fp/no-let\": \"error\",\n      \"fp/no-loops\": \"error\",\n      \"fp/no-mutating-assign\": \"error\",\n      \"fp/no-mutating-methods\": \"error\",\n      \"fp/no-mutation\": \"error\",\n      \"fp/no-nil\": \"error\",\n      \"fp/no-proxy\": \"error\",\n      \"fp/no-rest-parameters\": \"error\",\n      \"fp/no-this\": \"error\",\n      \"fp/no-throw\": \"error\",\n      \"fp/no-unused-expression\": \"error\",\n      \"fp/no-valueof-field\": \"error\",\n      \"no-var\": \"error\"\n    }\n  }\n}\n```\n\u003c!-- EXAMPLE_CONFIGURATION:END --\u003e\n\n\n## Rules\n\n\u003c!-- RULES:START --\u003e\n- [no-arguments](docs/rules/no-arguments.md) - Forbid the use of `arguments`.\n- [no-class](docs/rules/no-class.md) - Forbid the use of `class`.\n- [no-delete](docs/rules/no-delete.md) - Forbid the use of `delete`.\n- [no-events](docs/rules/no-events.md) - Forbid the use of the `events` module.\n- [no-get-set](docs/rules/no-get-set.md) - Forbid the use of getters and setters.\n- [no-let](docs/rules/no-let.md) - Forbid the use of `let`.\n- [no-loops](docs/rules/no-loops.md) - Forbid the use of loops.\n- [no-mutating-assign](docs/rules/no-mutating-assign.md) - Forbid the use of [`Object.assign()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) with a variable as first argument.\n- [no-mutating-methods](docs/rules/no-mutating-methods.md) - Forbid the use of mutating methods.\n- [no-mutation](docs/rules/no-mutation.md) - Forbid the use of mutating operators.\n- [no-nil](docs/rules/no-nil.md) - Forbid the use of `null` and `undefined`.\n- [no-proxy](docs/rules/no-proxy.md) - Forbid the use of `Proxy`.\n- [no-rest-parameters](docs/rules/no-rest-parameters.md) - Forbid the use of rest parameters.\n- [no-this](docs/rules/no-this.md) - Forbid the use of `this`.\n- [no-throw](docs/rules/no-throw.md) - Forbid the use of `throw`.\n- [no-unused-expression](docs/rules/no-unused-expression.md) - Enforce that an expression gets used.\n- [no-valueof-field](docs/rules/no-valueof-field.md) - Forbid the creation of `valueOf` fields.\n\n\u003c!-- RULES:END --\u003e\n\n## Recommended configuration\n\nThis plugin exports a [`recommended` configuration](index.js) that enforces good practices.\n\nTo enable this configuration, use the `extends` property in your `package.json`.\n\n```json\n{\n  \"name\": \"my-awesome-project\",\n  \"eslintConfig\": {\n    \"plugins\": [\n      \"fp\"\n    ],\n    \"extends\": \"plugin:fp/recommended\"\n  }\n}\n```\n\nSee [ESLint documentation](http://eslint.org/docs/user-guide/configuring#extending-configuration-files) for more information about extending configuration files.\n\nMIT © [Jeroen Engels](https://github.com/jfmengels)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfmengels%2Feslint-plugin-fp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjfmengels%2Feslint-plugin-fp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfmengels%2Feslint-plugin-fp/lists"}