Socket
Socket
Sign inDemoInstall

eslint-plugin-lodash-fp

Package Overview
Dependencies
93
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 2.1.0

9

CHANGELOG.md

@@ -7,3 +7,4 @@ # Change Log

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

@@ -101,3 +102,3 @@ ## [2.0.1] - 2016-08-24

- Added [`no-chain`] rule
- Added [`no-fp`] rule
- Added [`use-fp`] rule

@@ -112,3 +113,2 @@ [`consistent-compose`]: ./docs/rules/consistent-compose.md

[`no-for-each`]: ./docs/rules/no-for-each.md
[`no-fp`]: ./docs/rules/no-fp.md
[`no-partial-of-curried`]: ./docs/rules/no-partial-of-curried.md

@@ -125,2 +125,3 @@ [`no-single-composition`]: ./docs/rules/no-single-composition.md

[`preferred-alias`]: ./docs/rules/preferred-alias.md
[`use-fp`]: ./docs/rules/use-fp.md

@@ -142,2 +143,3 @@ [`_.bindAll`]: https://lodash.com/docs#filter

[#41]: https://github.com/jfmengels/eslint-plugin-lodash-fp/issues/41
[#38]: https://github.com/jfmengels/eslint-plugin-lodash-fp/issues/38

@@ -153,2 +155,3 @@ [#30]: https://github.com/jfmengels/eslint-plugin-lodash-fp/issues/30

[@kavington]: https://github.com/kavington
[@penny-five]: https://github.com/penny-five

@@ -155,0 +158,0 @@ [Unreleased]: https://github.com/jfmengels/eslint-plugin-lodash-fp/compare/v2.0.1...master

{
"name": "eslint-plugin-lodash-fp",
"version": "2.0.1",
"version": "2.1.0",
"description": "ESLint rules for lodash/fp",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -95,2 +95,3 @@ # eslint-plugin-lodash-fp [![Build Status](https://travis-ci.org/jfmengels/eslint-plugin-lodash-fp.svg?branch=master)](https://travis-ci.org/jfmengels/eslint-plugin-lodash-fp)

- [use-fp](docs/rules/use-fp.md) - Use lodash/fp instead of Lodash.
<!-- RULES:END -->

@@ -97,0 +98,0 @@

@@ -6,4 +6,6 @@ 'use strict';

const lodashRegex = /^lodash($|\/(?!fp))/;
function reportIfLodashButNotFp(context, node, name) {
if (name && name.indexOf('lodash') === 0 && name.indexOf('lodash/fp') === -1) {
if (lodashRegex.test(name)) {
context.report(node, 'Unallowed import of `lodash`. Use `lodash/fp` instead');

@@ -10,0 +12,0 @@ }

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