Regenerating node_modules

This commit is contained in:
Chris Raynor 2020-09-14 10:42:37 +01:00
parent 09b4a82c83
commit c96f84308a
No known key found for this signature in database
GPG key ID: 579A1FBC36FDA261
5488 changed files with 487362 additions and 60779 deletions

49
node_modules/eslint-rule-documentation/index.js generated vendored Normal file
View file

@ -0,0 +1,49 @@
'use strict';
var plugins = require('./plugins.json');
for (var pluginName of Object.keys(plugins)) {
var url = plugins[pluginName];
if (!url.includes('/')) {
url += '/eslint-plugin-' + pluginName;
}
if (url.split('/').length === 2) {
url = 'https://github.com/' + url + '/blob/master/docs/rules/RULENAME.md';
}
plugins[pluginName] = url;
}
function getRuleURI(ruleId) {
if (typeof ruleId !== 'string') {
throw new TypeError(`ruleId must be a string, got ${typeof ruleId}`);
}
var ruleParts = ruleId.split('/');
if (ruleParts.length === 1) {
return {
found: true,
url: 'https://eslint.org/docs/rules/' + ruleId
};
}
var pluginName = ruleParts[0];
var ruleName = ruleParts[1];
var url = plugins[pluginName];
if (!url) {
return {
found: false,
url: 'https://github.com/jfmengels/eslint-rule-documentation/blob/master/contributing.md'
};
}
return {
found: true,
url: url.replace('RULENAME', ruleName)
};
}
module.exports = getRuleURI;

21
node_modules/eslint-rule-documentation/license generated vendored Normal file
View file

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) Jeroen Engels <jfm.engels@gmail.com> (github.com/jfmengels)
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.

40
node_modules/eslint-rule-documentation/package.json generated vendored Normal file
View file

@ -0,0 +1,40 @@
{
"name": "eslint-rule-documentation",
"version": "1.0.23",
"description": "Find the url for the documentation of an ESLint rule",
"license": "MIT",
"repository": "jfmengels/eslint-rule-documentation",
"author": {
"name": "Jeroen Engels",
"email": "jfm.engels@gmail.com",
"url": "github.com/jfmengels"
},
"engines": {
"node": ">=4.0.0"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js",
"plugins.json"
],
"keywords": [
"eslint",
"eslintplugin",
"eslint-plugin",
"plugin",
"plugins",
"rule",
"rules",
"doc",
"documentation"
],
"devDependencies": {
"ava": "^0.15.2",
"xo": "^0.16.0"
},
"xo": {
"space": 2
}
}

44
node_modules/eslint-rule-documentation/plugins.json generated vendored Normal file
View file

@ -0,0 +1,44 @@
{
"angular": "Gillespie59",
"ava": "avajs",
"backbone": "ilyavolodin",
"ember": "netguru",
"es6-recommended": "https://github.com/mgtitimoli/eslint-plugin-es6-recommended#rules",
"eslint-comments": "mysticatea",
"eslint-plugin": "not-an-aardvark",
"flowtype": "https://github.com/gajus/eslint-plugin-flowtype#RULENAME",
"fp": "jfmengels",
"github": "github",
"immutable": "https://github.com/jhusain/eslint-plugin-immutable#RULENAME",
"import": "benmosher",
"import-order": "jfmengels",
"jasmine": "tlvince",
"jest": "jest-community",
"jsdoc": "https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-RULENAME",
"jsx-a11y": "evcohen",
"lodash": "wix",
"lodash-fp": "jfmengels",
"meteor": "dferber90",
"mocha": "lo1tuma",
"mongodb": "https://github.com/nfroidure/eslint-plugin-mongodb#RULENAME",
"mozilla": "https://gecko.readthedocs.io/en/latest/tools/lint/linters/eslint-plugin-mozilla.html#RULENAME",
"netguru-ember": "https://github.com/netguru/eslint-plugin-netguru-ember/blob/master/docs/RULES.md#RULENAME",
"no-unsanitized": "mozilla",
"no-use-extend-native": "dustinspecker",
"node": "mysticatea",
"prettier": "https://github.com/prettier/eslint-plugin-prettier#options",
"promise": "xjamundx",
"protractor": "alecxe",
"react": "yannickcr",
"react-native": "Intellicode",
"redux-saga": "pke",
"requirejs": "cvisco",
"security": "https://github.com/nodesecurity/eslint-plugin-security#rules",
"standard": "https://github.com/xjamundx/eslint-plugin-standard#rules-explanations",
"typescript": "nzakas",
"unicorn": "sindresorhus",
"xo": "sindresorhus/eslint-plugin-unicorn",
"visualforce": "forcedotcom",
"vue": "vuejs",
"jsx-control-statements": "vkbansal"
}

77
node_modules/eslint-rule-documentation/readme.md generated vendored Normal file
View file

@ -0,0 +1,77 @@
# eslint-rule-documentation [![Build Status](https://travis-ci.org/jfmengels/eslint-rule-documentation.svg?branch=master)](https://travis-ci.org/jfmengels/eslint-rule-documentation)
> Find the url for the documentation of an [ESLint] rule
## Install
```
$ npm install --save eslint-rule-documentation
```
## Usage
```js
const getRuleURI = require('eslint-rule-documentation');
// find url for core rules
getRuleURI('no-var');
// => { found: true, url: 'https://eslint.org/docs/rules/no-var' }
// find url for known plugins
getRuleURI('import/no-unresolved');
// => { found: true, url: 'https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md' }
// If the plugin is not known, get a link to help improve this
getRuleURI('unknown-foo/bar');
// => { found: false, url: 'https://github.com/jfmengels/eslint-rule-documentation/blob/master/contributing.md' }
```
## Contributing
If you find a plugin that you use is not in the [list of supported plugins](./plugins.json), please consider adding it to the project by following the instructions [here](./contributing.md).
## API
### getRuleURI(ruleId)
#### ruleId
Type: `string`
Id of an [ESLint] rule.
Examples:
- core rule: `no-var`
- plugin rule: `import/no-unresolved` (from the [eslint-plugin-import] plugin).
#### returns
Type: `object`
```js
{
found: <boolean>,
url: <string>
}
```
- `found`: `true` if the rule is an ESLint core rule, or a rule of a known plugin, `false` otherwise.
- `url`: if `found` is `true`, url of the documentation of a rule. If `found` is `false`, url of the [contribution guidelines](./contributing.md).
## Thanks
Special thanks to the team behind [linter-eslint] for the original work, and the people who contributed there.
## License
MIT © [Jeroen Engels](https://github.com/jfmengels)
[eslint-plugin-import]: https://github.com/benmosher/eslint-plugin-import
[ESLint]: https://eslint.org/
[linter-eslint]: https://github.com/AtomLinter/linter-eslint