Détail du package

eslint-plugin-lodash-fp

jfmengels248.3kMIT2.2.0-a1

ESLint rules for lodash/fp

eslint, plugin, eslint-plugin, eslintplugin

readme

eslint-plugin-lodash-fp Build Status

ESLint rules for lodash/fp

Install

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

Usage

Configure it in package.json.

{
  "name": "my-awesome-project",
  "eslintConfig": {
    "env": {
      "es6": true
    },
    "parserOptions": {
      "ecmaVersion": 7,
      "sourceType": "module"
    },
    "plugins": [
      "lodash-fp"
    ],
    "rules": {
      "lodash-fp/consistent-compose": "off",
      "lodash-fp/consistent-name": [
        "error",
        "_"
      ],
      "lodash-fp/no-argumentless-calls": "error",
      "lodash-fp/no-chain": "error",
      "lodash-fp/no-extraneous-args": "error",
      "lodash-fp/no-extraneous-function-wrapping": "error",
      "lodash-fp/no-extraneous-iteratee-args": "error",
      "lodash-fp/no-extraneous-partials": "error",
      "lodash-fp/no-for-each": "off",
      "lodash-fp/no-partial-of-curried": "error",
      "lodash-fp/no-single-composition": "error",
      "lodash-fp/no-submodule-destructuring": "error",
      "lodash-fp/no-unused-result": "error",
      "lodash-fp/prefer-compact": "error",
      "lodash-fp/prefer-composition-grouping": "error",
      "lodash-fp/prefer-constant": [
        "error",
        {
          "arrowFunctions": false
        }
      ],
      "lodash-fp/prefer-flat-map": "error",
      "lodash-fp/prefer-get": "error",
      "lodash-fp/prefer-identity": [
        "error",
        {
          "arrowFunctions": false
        }
      ],
      "lodash-fp/preferred-alias": "off",
      "lodash-fp/use-fp": "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": {
        "extends": "plugin:lodash-fp/recommended"
    }
}

See ESLint documentation for more information about extending configuration files.

MIT © Jeroen Engels

changelog

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

Added

  • Added lodash-fp to recommended preset ([#66], thanks @iddan]).
  • Added [no-extraneous-partials] rule (#68).

Fixed

2.1.3 - 2016-11-08

Fixed

Misc

2.1.2 - 2016-11-03

Fixed

2.1.1 - 2016-10-14

Fixed

2.1.0 - 2016-10-10

NOTE

  • This was published as a minor version by accident. It should have been a patch.

Fixed

  • Fixed incorrect errors for use-fp on package names starting with lodash- ([#41, thanks @penny-five)

2.0.1 - 2016-08-24

Fixed

  • Fixed crash in no-extraneous-function-wrapping when using return without an argument.
  • Fixed false report in no-extraneous-function-wrapping when using the last argument twice in the arguments (#38, thanks @godu).

2.0.0 - 2016-07-15

Removed

  • Breaking: Removed support for Node.js versions < v4.

Fixed

Changed

  • Removed eslint as a dependency.

1.3.0 - 2016-05-26

Added

Fixed

Changed

1.2.0 - 2016-05-08

Added

Fixed

Changed

  • no-extraneous-args now recommends an alternative whenever possible, and tells when to use an array for method that used rest args.

1.1.3 - 2016-05-02

Fixed

1.1.2 - 2016-05-01

Fixed

1.1.1 - 2016-04-30

Fixed

  • Problems with npm while publishing, added missing files.

1.1.0 - 2016-04-30

Added

1.0.2 - 2016-04-29

Fixed

1.0.1 - 2016-04-28

Fixed

  • Problems with npm while publishing, added missing files.

1.0.0 - 2016-04-28

Added

0.1.0 - 2016-04-20

Added

0.0.3 - 2016-04-15

Added

0.0.2 - 2016-04-14

Added

0.0.1 - 2016-04-12

Added