Socket
Socket
Sign inDemoInstall

eslint-plugin-lodash-fp

Package Overview
Dependencies
2
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-plugin-lodash-fp

ESLint rules for lodash/fp


Version published
Maintainers
1
Install size
11.8 MB
Created

Changelog

Source

[1.3.0] - 2016-05-26

Added

  • Added [no-unused-result] rule

Fixed

  • Fixed [prefer-composition-grouping]'s error message ([#30], thanks [@gunar]).
  • Fixed [no-extraneous-iteratee-args]'s error message.
  • [prefer-composition-grouping] now handles aliases, and can report multiple errors in the same flow construct.

Changed

  • [no-for-each] now also reports uses of [_.forIn] and [_.forOwn].

Readme

Source

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-for-each": "off",
			"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

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": [
			"lodash-fp"
		],
		"extends": "plugin:lodash-fp/recommended"
	}
}

See ESLint documentation for more information about extending configuration files.

MIT © Jeroen Engels

Keywords

FAQs

Last updated on 26 May 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc