eslint-plugin-clutter
Advanced tools
Comparing version 0.1.1 to 0.1.2
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.configs = exports.rules = void 0; | ||
const recommended_1 = require("./configs/recommended"); | ||
@@ -4,0 +5,0 @@ const no_unnecessary_dependency_1 = require("./rules/no-unnecessary-dependency"); |
"use strict"; | ||
/* eslint-disable max-len */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.packages = void 0; | ||
exports.packages = { | ||
@@ -40,3 +41,20 @@ 'q': 'Use native promise support instead, as it is now widely supported in all modern platforms.', | ||
'define-properties': 'Use `Object.defineProperties` instead.', | ||
'is-buffer': 'Use `Buffer.isBuffer` instead, or `obj.constructor?.isBuffer(obj)` to avoid bundling Buffer.' | ||
'is-buffer': 'Use `Buffer.isBuffer` instead, or `obj.constructor?.isBuffer(obj)` to avoid bundling Buffer.', | ||
'is-windows': 'Use `process.platform === \'win32\'` instead.', | ||
'is-dotfile': 'Use `startsWith(\'.\')` on the base name of the file or folder instead.', | ||
'is-whitespace': 'Use `str.trim() === \'\'` or a RegExp instead.', | ||
'array-first': 'Use `Array.prototype.slice` instead.', | ||
'array-last': 'Use `Array.prototype.slice` instead.', | ||
'array-rest': 'Use `Array.prototype.slice` instead.', | ||
'array-initial': 'Use `Array.prototype.slice` instead.', | ||
'filter-array': 'Use `Array.prototype.filter` instead.', | ||
'array-every': 'Use `Array.prototype.every` instead.', | ||
'index-of': 'Use `Array.prototype.indexOf` instead.', | ||
'last-index-of': 'Use `Array.prototype.lastIndexOf` instead.', | ||
'array-pull': 'Use `Array.prototype.splice` instead.', | ||
'pad-left': 'Use `String.prototype.padStart` instead, e.g. `"foo".padStart(6)`.', | ||
'is-primitive': 'Type-check the value manually, i.e. `typeof val !== \'object\' && typeof val !== \'function\'`', | ||
'is-odd': 'Use `(n % 2) === 1` instead.', | ||
'is-even': 'Use `(n % 2) === 0` instead.', | ||
'is-string': 'Use `typeof foo === \'string\'` instead.' | ||
}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.noUnnecessaryDependency = void 0; | ||
const messages_1 = require("../messages"); | ||
@@ -4,0 +5,0 @@ exports.noUnnecessaryDependency = { |
{ | ||
"name": "eslint-plugin-clutter", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "ESLint plugin for detecting redundant and unnecessary dependencies.", | ||
@@ -40,17 +40,17 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@types/chai": "^4.2.11", | ||
"@types/eslint": "^6.8.0", | ||
"@types/estree": "0.0.44", | ||
"@types/mocha": "^7.0.2", | ||
"@types/node": "^13.13.5", | ||
"@typescript-eslint/eslint-plugin": "^2.31.0", | ||
"@typescript-eslint/parser": "^2.31.0", | ||
"@types/chai": "^4.2.12", | ||
"@types/eslint": "^7.2.2", | ||
"@types/estree": "0.0.45", | ||
"@types/mocha": "^8.0.3", | ||
"@types/node": "^14.6.3", | ||
"@typescript-eslint/eslint-plugin": "^4.0.1", | ||
"@typescript-eslint/parser": "^4.0.1", | ||
"chai": "^4.2.0", | ||
"eslint": "^6.8.0", | ||
"eslint": "^7.8.1", | ||
"eslint-config-google": "^0.14.0", | ||
"mocha": "^7.1.2", | ||
"prettier": "^2.0.5", | ||
"typescript": "^3.8.3" | ||
"mocha": "^8.1.3", | ||
"prettier": "^2.1.1", | ||
"typescript": "^4.0.2" | ||
}, | ||
"dependencies": {} | ||
} |
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
11083
146