eslint-plugin-you-dont-need-lodash-underscore
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -5,3 +5,2 @@ /** | ||
*/ | ||
"use strict"; | ||
@@ -12,27 +11,27 @@ //------------------------------------------------------------------------------ | ||
const errorMessages = { | ||
concat: 'Consider using the native Array.concat()', | ||
fill: 'Consider using the native Array.fill()', | ||
find: 'Consider using the native Array.find()', | ||
findIndex: 'Consider using the native Array.findIndex()', | ||
indexOf: 'Consider using the native Array.indexOf()', | ||
join: 'Consider using the native Array.join()', | ||
lastIndexOf: 'Consider using the native Array.lastIndexOf()', | ||
reverse: 'Consider using the native Array.reverse()', | ||
each: 'Consider using the native Array.forEach()', | ||
every: 'Consider using the native Array.every()', | ||
filter: 'Consider using the native Array.filter()', | ||
includes: 'Consider using the native Array.includes()', | ||
map: 'Consider using the native Array.map()', | ||
reduce: 'Consider using the native Array.reduce()', | ||
reduceRight: 'Consider using the native Array.reduceRight()', | ||
size: 'Consider using the native array length property', | ||
some: 'Consider using the native Array.some()', | ||
isNaN: 'Consider using the ES6 Number.isNaN function', | ||
extendOwn: 'Consider using the ES6 Object.assign function', | ||
assign: 'Consider using the ES6 Object.assign function', | ||
keys: 'Consider using the ES6 Object.keys function', | ||
repeat: 'Consider using the native repeat function', | ||
toLower: 'Consider using the native toLowerCase function', | ||
toUpper: 'Consider using the native toUpperCase function', | ||
trim: 'Consider using the native trim function', | ||
concat: 'Consider using the native Array.prototype.concat()', | ||
fill: 'Consider using the native ES6 Array.prototype.fill()', | ||
find: 'Consider using the native ES6 Array.prototype.find()', | ||
findIndex: 'Consider using the native ES6 Array.prototype.findIndex()', | ||
indexOf: 'Consider using the native Array.prototype.indexOf()', | ||
join: 'Consider using the native Array.prototype.join()', | ||
lastIndexOf: 'Consider using the native Array.prototype.lastIndexOf()', | ||
reverse: 'Consider using the native Array.prototype.reverse()', | ||
each: 'Consider using the native Array.prototype.forEach()', | ||
every: 'Consider using the native Array.prototype.every()', | ||
filter: 'Consider using the native Array.prototype.filter()', | ||
includes: 'Consider using the native Array.prototype.includes()', | ||
map: 'Consider using the native Array.prototype.map()', | ||
reduce: 'Consider using the native Array.prototype.reduce()', | ||
reduceRight: 'Consider using the native Array.prototype.reduceRight()', | ||
size: 'Consider using the native Array.prototype.length', | ||
some: 'Consider using the native Array.prototype.some()', | ||
isNaN: 'Consider using the native isNaN() or ES6 Number.isNaN()', | ||
extendOwn: 'Consider using the native ES6 Object.assign()', | ||
assign: 'Consider using the native ES6 Object.assign()', | ||
keys: 'Consider using the native Object.keys()', | ||
repeat: 'Consider using the native ES6 String.prototype.repeat()', | ||
toLower: 'Consider using the native String.prototype.toLowerCase()', | ||
toUpper: 'Consider using the native String.prototype.toUpperCase()', | ||
trim: 'Consider using the native String.prototype.trim()', | ||
}; | ||
@@ -39,0 +38,0 @@ |
{ | ||
"name": "eslint-plugin-you-dont-need-lodash-underscore", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "Lists of methods which you can use natively", | ||
@@ -22,3 +22,5 @@ "repository": { | ||
"scripts": { | ||
"test": "mocha tests --recursive" | ||
"coveralls": "cat ./reports/coverage/lcov.info | coveralls", | ||
"test": "npm run unit-test", | ||
"unit-test": "istanbul cover --dir reports/coverage node_modules/mocha/bin/_mocha tests/**/*.js -- --reporter dot" | ||
}, | ||
@@ -29,3 +31,5 @@ "dependencies": { | ||
"devDependencies": { | ||
"coveralls": "^2.11.9", | ||
"eslint": "^3.0", | ||
"istanbul": "^0.4.4", | ||
"mocha": "^2.5.3" | ||
@@ -32,0 +36,0 @@ }, |
@@ -34,3 +34,20 @@ ## You don't (may not) need Lodash/Underscore [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/cht8687/You-Dont-Need-Lodash-Underscore) | ||
## ESLint Plugin | ||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/eslint-plugin-you-dont-need-lodash-underscore"> | ||
<img src="https://img.shields.io/npm/v/eslint-plugin-you-dont-need-lodash-underscore.svg?style=flat-square" | ||
alt="NPM Version"> | ||
</a> | ||
<a href="https://npmjs.org/package/eslint-plugin-you-dont-need-lodash-underscore"> | ||
<img src="http://img.shields.io/npm/dm/eslint-plugin-you-dont-need-lodash-underscore.svg?style=flat-square" | ||
alt="Downloads"> | ||
</a> | ||
<a href="https://travis-ci.org/cht8687/You-Dont-Need-Lodash-Underscore"> | ||
<img src="https://img.shields.io/travis/cht8687/You-Dont-Need-Lodash-Underscore.svg?style=flat-square" | ||
alt="Build Status"> | ||
</a> | ||
<a href="https://coveralls.io/github/cht8687/You-Dont-Need-Lodash-Underscore?branch=master"> | ||
<img src="https://coveralls.io/repos/cht8687/You-Dont-Need-Lodash-Underscore/badge.svg?branch=master&service=github" | ||
alt="Coverage Status" /> | ||
</a> | ||
</p> | ||
If you're using [ESLint](http://eslint.org/), you can install a | ||
@@ -37,0 +54,0 @@ [plugin](http://eslint.org/docs/user-guide/configuring#using-the-configuration-from-a-plugin) that |
@@ -7,3 +7,3 @@ /** | ||
var rule = require("../../../lib/rules/no-lodash-underscore"), | ||
var rule = require("../../../lib/rules/all"), | ||
@@ -26,7 +26,7 @@ RuleTester = require("eslint").RuleTester; | ||
code: '_.concat(array, 2, [3], [[4]])', | ||
errors: ['Consider using the native Array.concat()'] | ||
errors: ['Consider using the native Array.prototype.concat()'] | ||
}, | ||
{ | ||
code: '_.keys({one: 1, two: 2, three: 3})', | ||
errors: ['Consider using the ES6 Object.keys function'] | ||
errors: ['Consider using the native Object.keys()'] | ||
}, | ||
@@ -33,0 +33,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
38206
8
871
0
4
94