Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-native-over-lodash

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-native-over-lodash - npm Package Compare versions

Comparing version 0.1.2 to 1.0.0

4

lib/rules/index.js

@@ -6,3 +6,3 @@ const kebabCase = require('kebab-case');

const prefix = rule => `lodash/${kebabCase(rule)}`;
const prefix = rule => `${kebabCase(rule)}`;
for (const rule in rules) {

@@ -35,3 +35,3 @@ const errorMessage = rules[rule];

}
}
};
}

@@ -38,0 +38,0 @@ };

@@ -29,3 +29,3 @@ {

"any": "Consider using the native Array.prototype.some()",
"isNaN": "Consider using the native isNaN() or ES6 Number.isNaN()",
"isNan": "Consider using the native isNaN() or ES6 Number.isNaN()",
"extendOwn": "Consider using the native ES6 Object.assign()",

@@ -32,0 +32,0 @@ "assign": "Consider using the native ES6 Object.assign()",

{
"name": "eslint-plugin-native-over-lodash",
"version": "0.1.2",
"version": "1.0.0",
"description": "Check methods you can use natively without lodash",

@@ -5,0 +5,0 @@ "repository": {

@@ -16,4 +16,40 @@ ### Helps you to use Native JS methods where possible

"native-over-lodash"
]
],
"rules": [
"native-over-lodash/concat": 2,
"native-over-lodash/fill": 2,
"native-over-lodash/find": 2,
"native-over-lodash/detect": 2,
"native-over-lodash/find-index": 2,
"native-over-lodash/index-of": 2,
"native-over-lodash/join": 2,
"native-over-lodash/last-index-of": 2,
"native-over-lodash/reverse": 2,
"native-over-lodash/each": 2,
"native-over-lodash/for-each": 2,
"native-over-lodash/every": 2,
"native-over-lodash/all": 2,
"native-over-lodash/filter": 2,
"native-over-lodash/select": 2,
"native-over-lodash/includes": 2,
"native-over-lodash/contains": 2,
"native-over-lodash/map": 2,
"native-over-lodash/collect": 2,
"native-over-lodash/reduce": 2,
"native-over-lodash/inject": 2,
"native-over-lodash/foldl": 2,
"native-over-lodash/reduce-right": 2,
"native-over-lodash/foldr": 2,
"native-over-lodash/size": 2,
"native-over-lodash/some": 2,
"native-over-lodash/any": 2,
"native-over-lodash/is-nan": 2,
"native-over-lodash/extend-own": 2,
"native-over-lodash/assign": 2,
"native-over-lodash/keys": 2,
"native-over-lodash/repeat": 2,
"native-over-lodash/to-lower": 2,
"native-over-lodash/to-upper": 2,
"native-over-lodash/trim": 2
}
```

@@ -8,3 +8,3 @@ const rules = require('../lib/rules');

});
const rule = rule => rules[`lodash/${kebabCase(rule)}`];
const rule = rule => rules[`${kebabCase(rule)}`];

@@ -11,0 +11,0 @@ ruleTester.run('concat', rule('concat'), {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc