diff --git a/packages/plugin-declare/README.md b/packages/plugin-declare/README.md index f7e7cedb13..d83c2e93c7 100644 --- a/packages/plugin-declare/README.md +++ b/packages/plugin-declare/README.md @@ -5,7 +5,6 @@ 🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to declare variable that was not defined before, including: -- is types: `isFn`, `isString`, `isNumber`, `isObject`, `isBool`, `isUndefined`, `isSymbol` and `isNull`; - [maybe](https://github.com/coderaiser/putout/tree/master/packages/plugin-maybe#readme): `maybeArray`, `maybeFn`, `maybeEmptyArray`; - wrap: `not`,`id`, `returns`; - fresh-import: `freshImport`, `freshImportDefault`; @@ -57,7 +56,6 @@ Use options: "parse", "stringify", "defineProperty", - "isArray", "noop", "join", "keys", @@ -136,21 +134,6 @@ const object = {}; const allValues = values(object); ``` -## `isArray` - -### ❌ Example of incorrect code - -```js -isArray(array); -``` - -### ✅ Example of correct code - -```js -const {isArray} = Array; -isArray(array); -``` - ## `noop` ### ❌ Example of incorrect code diff --git a/packages/plugin-declare/lib/index.js b/packages/plugin-declare/lib/index.js index c2c029630d..7db675e69a 100644 --- a/packages/plugin-declare/lib/index.js +++ b/packages/plugin-declare/lib/index.js @@ -10,8 +10,6 @@ module.exports.declare = () => ({ ...wrap, ...freshImport, ...fixtures, - isArray: 'const {isArray} = Array', - parse: 'const {parse} = JSON', stringify: 'const {stringify} = JSON', diff --git a/packages/plugin-declare/test/declare.js b/packages/plugin-declare/test/declare.js index b85d67f744..3d288e0ca9 100644 --- a/packages/plugin-declare/test/declare.js +++ b/packages/plugin-declare/test/declare.js @@ -22,11 +22,6 @@ test('putout: plugin: declare: transform: assign', (t) => { t.end(); }); -test('putout: plugin: declare: transform: is-array', (t) => { - t.transform('is-array'); - t.end(); -}); - test('putout: plugin: declare: transform: keys', (t) => { t.transform('keys'); t.end(); diff --git a/packages/plugin-declare/test/fixture/is-array-fix.js b/packages/plugin-declare/test/fixture/is-array-fix.js deleted file mode 100644 index 4a2f1f2fc2..0000000000 --- a/packages/plugin-declare/test/fixture/is-array-fix.js +++ /dev/null @@ -1,2 +0,0 @@ -const {isArray} = Array; -isArray(array); diff --git a/packages/plugin-declare/test/fixture/is-array.js b/packages/plugin-declare/test/fixture/is-array.js deleted file mode 100644 index f68e77ea8b..0000000000 --- a/packages/plugin-declare/test/fixture/is-array.js +++ /dev/null @@ -1 +0,0 @@ -isArray(array);