包详细信息

eslint-plugin-fp

jfmengels483.9kMIT2.3.0

ESLint rules for functional programming

eslint, plugin, eslint-plugin, eslintplugin

自述文件

eslint-plugin-fp Build Status

ESLint rules for functional programming

Install

$ npm install --save-dev eslint eslint-plugin-fp

Usage

Configure it in package.json.

{
  "name": "my-awesome-project",
  "eslintConfig": {
    "env": {
      "es6": true
    },
    "plugins": [
      "fp"
    ],
    "rules": {
      "fp/no-arguments": "error",
      "fp/no-class": "error",
      "fp/no-delete": "error",
      "fp/no-events": "error",
      "fp/no-get-set": "error",
      "fp/no-let": "error",
      "fp/no-loops": "error",
      "fp/no-mutating-assign": "error",
      "fp/no-mutating-methods": "error",
      "fp/no-mutation": "error",
      "fp/no-nil": "error",
      "fp/no-proxy": "error",
      "fp/no-rest-parameters": "error",
      "fp/no-this": "error",
      "fp/no-throw": "error",
      "fp/no-unused-expression": "error",
      "fp/no-valueof-field": "error",
      "no-var": "error"
    }
  }
}

Rules

Recommended configuration

This plugin exports a recommended configuration that enforces good practices.

To enable this configuration, use the extends property in your package.json.

{
  "name": "my-awesome-project",
  "eslintConfig": {
    "plugins": [
      "fp"
    ],
    "extends": "plugin:fp/recommended"
  }
}

See ESLint documentation for more information about extending configuration files.

MIT © Jeroen Engels

更新日志

Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning. This change log adheres to standards from Keep a CHANGELOG.

Unreleased

  • none

2.3.0 - 2017-01-01

Added

Fixed

2.2.0 - 2016-08-31

2.1.0 - 2016-08-26

Added

2.0.0 - 2016-08-24

Removed

  • Breaking: Removed support for Node < v4

Added

Fixed

1.3.0 - 2016-06-22

Added

1.2.0 - 2016-06-21

Added

1.1.0 - 2016-06-16

Added

1.0.0 - 2016-06-15

Added