diff options
author | Michaël Zasso <targos@protonmail.com> | 2017-12-22 16:53:42 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2018-01-11 09:48:05 +0100 |
commit | 3dc30632755713179f345f4af024bd904c6162d0 (patch) | |
tree | f28c4f6dd6dfc5992edf301449d1a371d229755b /tools/node_modules/eslint/node_modules/x-is-function | |
parent | a2c7085dd4a8e60d1a47572aca8bb6fcb7a32f88 (diff) | |
download | android-node-v8-3dc30632755713179f345f4af024bd904c6162d0.tar.gz android-node-v8-3dc30632755713179f345f4af024bd904c6162d0.tar.bz2 android-node-v8-3dc30632755713179f345f4af024bd904c6162d0.zip |
tools: move eslint from tools to tools/node_modules
This is required because we need to add the babel-eslint dependency
and it has to be able to resolve "eslint".
babel-eslint is required to support future ES features such as async
iterators and import.meta.
Refs: https://github.com/nodejs/node/pull/17755
PR-URL: https://github.com/nodejs/node/pull/17820
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'tools/node_modules/eslint/node_modules/x-is-function')
4 files changed, 111 insertions, 0 deletions
diff --git a/tools/node_modules/eslint/node_modules/x-is-function/LICENSE b/tools/node_modules/eslint/node_modules/x-is-function/LICENSE new file mode 100644 index 0000000000..4f2aa21a49 --- /dev/null +++ b/tools/node_modules/eslint/node_modules/x-is-function/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2016 Alexander Praetorius + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/tools/node_modules/eslint/node_modules/x-is-function/README.md b/tools/node_modules/eslint/node_modules/x-is-function/README.md new file mode 100644 index 0000000000..0c21a7e9ff --- /dev/null +++ b/tools/node_modules/eslint/node_modules/x-is-function/README.md @@ -0,0 +1,41 @@ +# x-is-function +x is a function + +# usage +`npm install x-is-function` + +```js +var isFunction = require('x-is-function') + +isFunction(function () {}) +// -> true + +isFunction("hello") +// -> false + +isFunction("") +// -> false + +isFunction(9) +// -> false + +isFunction(true) +// -> false + +isFunction(new Date()) +// -> false + +isFunction({}) +// -> false + +isFunction(null) +// -> false + +isFunction(undefined) +// -> false +``` + + +# related +a list of other `x-is-...` modules can be found at +* [x-is](https://www.npmjs.com/package/x-is) diff --git a/tools/node_modules/eslint/node_modules/x-is-function/index.js b/tools/node_modules/eslint/node_modules/x-is-function/index.js new file mode 100644 index 0000000000..b820d6318d --- /dev/null +++ b/tools/node_modules/eslint/node_modules/x-is-function/index.js @@ -0,0 +1,3 @@ +module.exports = function isFunction (fn) { + return Object.prototype.toString.call(fn) === '[object Function]' +} diff --git a/tools/node_modules/eslint/node_modules/x-is-function/package.json b/tools/node_modules/eslint/node_modules/x-is-function/package.json new file mode 100644 index 0000000000..bbf0a19a6e --- /dev/null +++ b/tools/node_modules/eslint/node_modules/x-is-function/package.json @@ -0,0 +1,46 @@ +{ + "_from": "x-is-function@^1.0.4", + "_id": "x-is-function@1.0.4", + "_inBundle": false, + "_integrity": "sha1-XSlNw9Joy90GJYDgxd93o5HR+h4=", + "_location": "/x-is-function", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "x-is-function@^1.0.4", + "name": "x-is-function", + "escapedName": "x-is-function", + "rawSpec": "^1.0.4", + "saveSpec": null, + "fetchSpec": "^1.0.4" + }, + "_requiredBy": [ + "/unified" + ], + "_resolved": "https://registry.npmjs.org/x-is-function/-/x-is-function-1.0.4.tgz", + "_shasum": "5d294dc3d268cbdd062580e0c5df77a391d1fa1e", + "_spec": "x-is-function@^1.0.4", + "_where": "/Users/cjihrig/iojs/node/tools/eslint-tmp/node_modules/eslint/node_modules/unified", + "author": { + "name": "@serapath" + }, + "bugs": { + "url": "https://github.com/serapath/x-is-function/issues" + }, + "bundleDependencies": false, + "deprecated": false, + "description": "Simple function test", + "homepage": "https://github.com/serapath/x-is-function#readme", + "license": "MIT", + "main": "index.js", + "name": "x-is-function", + "repository": { + "type": "git", + "url": "git+https://github.com/serapath/x-is-function.git" + }, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "version": "1.0.4" +} |