eslint-plugin-native-over-lodash
Advanced tools
Comparing version 0.1.2 to 1.0.0
@@ -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'), { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
9520
0
55