3.7.0 :rocket:
diff --git a/lib/constants.d.ts b/lib/constants.d.ts
index 58e0a9e..36a355a 100644
--- a/lib/constants.d.ts
+++ b/lib/constants.d.ts
@@ -17,6 +17,8 @@
email?: string;
/** The folder to deploy. */
folder: string;
+ /** The auto generated folder path. */
+ folderPath?: string;
/** GitHub deployment token. */
gitHubToken?: string | null;
/** Determines if the action is running in test mode or not. */
@@ -31,8 +33,6 @@
repositoryName?: string;
/** The fully qualified repositpory path, this gets auto generated if repositoryName is provided. */
repositoryPath?: string;
- /** The root directory where your project lives. */
- root?: string;
/** Wipes the commit history from the deployment branch in favor of a single commit. */
singleCommit?: boolean | null;
/** Determines if the action should run in silent mode or not. */
@@ -46,7 +46,28 @@
/** The folder where your deployment project lives. */
workspace: string;
}
+/** The minimum required values to run the action as a node module. */
+export interface NodeActionInterface {
+ /** Deployment access token. */
+ accessToken?: string | null;
+ /** The branch that the action should deploy to. */
+ branch: string;
+ /** The folder to deploy. */
+ folder: string;
+ /** GitHub deployment token. */
+ gitHubToken?: string | null;
+ /** The repository path, for example JamesIves/github-pages-deploy-action. */
+ repositoryName: string;
+ /** Determines if the action should run in silent mode or not. */
+ silent: boolean;
+ /** Set to true if you're using an ssh client in your build step. */
+ ssh?: boolean | null;
+ /** The folder where your deployment project lives. */
+ workspace: string;
+}
export declare const action: ActionInterface;
+/** Types for the required action parameters. */
+export declare type RequiredActionParameters = Pick<ActionInterface, 'accessToken' | 'gitHubToken' | 'ssh' | 'branch' | 'folder'>;
/** Status codes for the action. */
export declare enum Status {
SUCCESS = "success",
diff --git a/lib/constants.js b/lib/constants.js
index 05e5110..5422832 100644
--- a/lib/constants.js
+++ b/lib/constants.js
@@ -63,7 +63,6 @@
: repository && repository.full_name
? repository.full_name
: process.env.GITHUB_REPOSITORY,
- root: '.',
singleCommit: !util_1.isNullOrUndefined(core_1.getInput('SINGLE_COMMIT'))
? core_1.getInput('SINGLE_COMMIT').toLowerCase() === 'true'
: false,
diff --git a/lib/git.js b/lib/git.js
index 9ac52e1..8237030 100644
--- a/lib/git.js
+++ b/lib/git.js
@@ -23,7 +23,6 @@
function init(action) {
return __awaiter(this, void 0, void 0, function* () {
try {
- util_1.hasRequiredParameters(action);
core_1.info(`Deploying using ${action.tokenType}… 🔑`);
core_1.info('Configuring git…');
yield execute_1.execute(`git init`, action.workspace, action.silent);
@@ -56,7 +55,6 @@
function switchToBaseBranch(action) {
return __awaiter(this, void 0, void 0, function* () {
try {
- util_1.hasRequiredParameters(action);
yield execute_1.execute(`git checkout --progress --force ${action.baseBranch ? action.baseBranch : action.defaultBranch}`, action.workspace, action.silent);
}
catch (error) {
@@ -69,7 +67,6 @@
function generateBranch(action) {
return __awaiter(this, void 0, void 0, function* () {
try {
- util_1.hasRequiredParameters(action);
core_1.info(`Creating the ${action.branch} branch…`);
yield switchToBaseBranch(action);
yield execute_1.execute(`git checkout --orphan ${action.branch}`, action.workspace, action.silent);
@@ -94,7 +91,6 @@
.substr(2, 9)}`;
core_1.info('Starting to commit changes…');
try {
- util_1.hasRequiredParameters(action);
const commitMessage = !util_1.isNullOrUndefined(action.commitMessage)
? action.commitMessage
: `Deploying to ${action.branch} from ${action.baseBranch} ${process.env.GITHUB_SHA ? `@ ${process.env.GITHUB_SHA}` : ''} 🚀`;
@@ -118,9 +114,6 @@
core_1.info(`Applying stashed workspace changes… ⬆️`);
try {
yield execute_1.execute(`git stash apply`, action.workspace, action.silent);
- if (action.isTest) {
- throw new Error();
- }
}
catch (_a) {
core_1.info('Unable to apply from stash, continuing…');
@@ -150,13 +143,15 @@
Pushes all of the build files into the deployment directory.
Allows the user to specify the root if '.' is provided.
rsync is used to prevent file duplication. */
- yield execute_1.execute(`rsync -q -av --checksum --progress ${action.folder}/. ${action.targetFolder
+ yield execute_1.execute(`rsync -q -av --checksum --progress ${action.folderPath}/. ${action.targetFolder
? `${temporaryDeploymentDirectory}/${action.targetFolder}`
: temporaryDeploymentDirectory} ${action.clean
- ? `--delete ${excludes} ${!fs_1.default.existsSync(`${action.folder}/CNAME`) ? '--exclude CNAME' : ''} ${!fs_1.default.existsSync(`${action.folder}/.nojekyll`)
+ ? `--delete ${excludes} ${!fs_1.default.existsSync(`${action.folderPath}/CNAME`)
+ ? '--exclude CNAME'
+ : ''} ${!fs_1.default.existsSync(`${action.folderPath}/.nojekyll`)
? '--exclude .nojekyll'
: ''}`
- : ''} --exclude .ssh --exclude .git --exclude .github ${action.folder === action.root
+ : ''} --exclude .ssh --exclude .git --exclude .github ${action.folderPath === action.workspace
? `--exclude ${temporaryDeploymentDirectory}`
: ''}`, action.workspace, action.silent);
const hasFilesToCommit = yield execute_1.execute(`git status --porcelain`, `${action.workspace}/${temporaryDeploymentDirectory}`, action.silent);
diff --git a/lib/lib.d.ts b/lib/lib.d.ts
index ed545d5..90d04d2 100644
--- a/lib/lib.d.ts
+++ b/lib/lib.d.ts
@@ -1,8 +1,6 @@
-import { ActionInterface } from './constants';
-import { deploy, generateBranch, init } from './git';
+import { ActionInterface, NodeActionInterface } from './constants';
/** Initializes and runs the action.
*
* @param {object} configuration - The action configuration.
*/
-export default function run(configuration: ActionInterface): Promise<void>;
-export { init, deploy, generateBranch, ActionInterface };
+export default function run(configuration: ActionInterface | NodeActionInterface): Promise<void>;
diff --git a/lib/lib.js b/lib/lib.js
index 9ba68e8..2de5ff2 100644
--- a/lib/lib.js
+++ b/lib/lib.js
@@ -9,13 +9,9 @@
});
};
Object.defineProperty(exports, "__esModule", { value: true });
-exports.generateBranch = exports.deploy = exports.init = void 0;
const core_1 = require("@actions/core");
const constants_1 = require("./constants");
const git_1 = require("./git");
-Object.defineProperty(exports, "deploy", { enumerable: true, get: function () { return git_1.deploy; } });
-Object.defineProperty(exports, "generateBranch", { enumerable: true, get: function () { return git_1.generateBranch; } });
-Object.defineProperty(exports, "init", { enumerable: true, get: function () { return git_1.init; } });
const util_1 = require("./util");
/** Initializes and runs the action.
*
@@ -29,14 +25,17 @@
GitHub Pages Deploy Action 🚀
🚀 Getting Started Guide: https://github.com/marketplace/actions/deploy-to-github-pages
- ❓ FAQ/Wiki: https://github.com/JamesIves/github-pages-deploy-action/wiki
- 🔧 Support: https://github.com/JamesIves/github-pages-deploy-action/issues
- ⭐ Contribute: https://github.com/JamesIves/github-pages-deploy-action/blob/dev/CONTRIBUTING.md
+ ❓ Discussions / Q&A: https://github.com/JamesIves/github-pages-deploy-action/discussions
+ 🔧 Report a Bug: https://github.com/JamesIves/github-pages-deploy-action/issues
- 📣 Maintained by James Ives (https://jamesiv.es)`);
+ 📣 Maintained by James Ives: https://jamesiv.es
+ 💖 Support: https://github.com/sponsors/JamesIves`);
core_1.info('Checking configuration and starting deployment… 🚦');
- const settings = Object.assign(Object.assign({}, constants_1.action), configuration);
- // Defines the repository paths and token types.
+ const settings = Object.assign({}, configuration);
+ // Defines the repository/folder paths and token types.
+ // Also verifies that the action has all of the required parameters.
+ settings.folderPath = util_1.generateFolderPath(settings);
+ util_1.checkParameters(settings);
settings.repositoryPath = util_1.generateRepositoryPath(settings);
settings.tokenType = util_1.generateTokenType(settings);
yield git_1.init(settings);
diff --git a/lib/util.d.ts b/lib/util.d.ts
index b4e30ab..d110e8b 100644
--- a/lib/util.d.ts
+++ b/lib/util.d.ts
@@ -2,5 +2,6 @@
export declare const isNullOrUndefined: (value: any) => boolean;
export declare const generateTokenType: (action: ActionInterface) => string;
export declare const generateRepositoryPath: (action: ActionInterface) => string;
-export declare const hasRequiredParameters: (action: ActionInterface) => void;
+export declare const generateFolderPath: (action: ActionInterface) => string;
+export declare const checkParameters: (action: ActionInterface) => void;
export declare const suppressSensitiveInformation: (str: string, action: ActionInterface) => string;
diff --git a/lib/util.js b/lib/util.js
index 697f5d2..9d24472 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -1,7 +1,13 @@
"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
-exports.suppressSensitiveInformation = exports.hasRequiredParameters = exports.generateRepositoryPath = exports.generateTokenType = exports.isNullOrUndefined = void 0;
+exports.suppressSensitiveInformation = exports.checkParameters = exports.generateFolderPath = exports.generateRepositoryPath = exports.generateTokenType = exports.isNullOrUndefined = void 0;
+const fs_1 = require("fs");
+const path_1 = __importDefault(require("path"));
const core_1 = require("@actions/core");
+/* Replaces all instances of a match in a string. */
const replaceAll = (input, find, replace) => input.split(find).join(replace);
/* Utility function that checks to see if a value is undefined or not. */
exports.isNullOrUndefined = (value) => typeof value === 'undefined' || value === null || value === '';
@@ -17,23 +23,33 @@
exports.generateRepositoryPath = (action) => action.ssh
? `git@github.com:${action.repositoryName}`
: `https://${action.accessToken || `x-access-token:${action.gitHubToken}`}@github.com/${action.repositoryName}.git`;
+/* Genetate absolute folder path by the provided folder name */
+exports.generateFolderPath = (action) => {
+ const folderName = action['folder'];
+ return path_1.default.isAbsolute(folderName)
+ ? folderName
+ : folderName.startsWith('~')
+ ? folderName.replace('~', process.env.HOME)
+ : path_1.default.join(action.workspace, folderName);
+};
/* Checks for the required tokens and formatting. Throws an error if any case is matched. */
-exports.hasRequiredParameters = (action) => {
- if ((exports.isNullOrUndefined(action.accessToken) &&
- exports.isNullOrUndefined(action.gitHubToken) &&
- exports.isNullOrUndefined(action.ssh)) ||
- exports.isNullOrUndefined(action.repositoryPath) ||
- (action.accessToken && action.accessToken === '')) {
+const hasRequiredParameters = (action, params) => {
+ const nonNullParams = params.filter(param => !exports.isNullOrUndefined(action[param]));
+ return Boolean(nonNullParams.length);
+};
+/* Verifies the action has the required parameters to run, otherwise throw an error. */
+exports.checkParameters = (action) => {
+ if (!hasRequiredParameters(action, ['accessToken', 'gitHubToken', 'ssh'])) {
throw new Error('No deployment token/method was provided. You must provide the action with either a Personal Access Token or the GitHub Token secret in order to deploy. If you wish to use an ssh deploy token then you must set SSH to true.');
}
- if (exports.isNullOrUndefined(action.branch)) {
+ if (!hasRequiredParameters(action, ['branch'])) {
throw new Error('Branch is required.');
}
- if (!action.folder || exports.isNullOrUndefined(action.folder)) {
+ if (!hasRequiredParameters(action, ['folder'])) {
throw new Error('You must provide the action with a folder to deploy.');
}
- if (action.folder.startsWith('/') || action.folder.startsWith('./')) {
- throw new Error("Incorrectly formatted build folder. The deployment folder cannot be prefixed with '/' or './'. Instead reference the folder name directly.");
+ if (!fs_1.existsSync(action.folderPath)) {
+ throw new Error(`The directory you're trying to deploy named ${action.folderPath} doesn't exist. Please double check the path and any prerequisite build scripts and try again. ❗`);
}
};
/* Suppresses sensitive information from being exposed in error messages. */
diff --git a/node_modules/.bin/eslint-github-init b/node_modules/.bin/eslint-github-init
deleted file mode 120000
index 5f657e9..0000000
--- a/node_modules/.bin/eslint-github-init
+++ /dev/null
@@ -1 +0,0 @@
-../eslint-plugin-github/bin/eslint-github-init.js
\ No newline at end of file
diff --git a/node_modules/.bin/eslint-unused-modules b/node_modules/.bin/eslint-unused-modules
deleted file mode 120000
index abc0e5d..0000000
--- a/node_modules/.bin/eslint-unused-modules
+++ /dev/null
@@ -1 +0,0 @@
-../eslint-plugin-github/bin/eslint-unused-modules.js
\ No newline at end of file
diff --git a/node_modules/.bin/flow-coverage b/node_modules/.bin/flow-coverage
deleted file mode 120000
index 05e9f7a..0000000
--- a/node_modules/.bin/flow-coverage
+++ /dev/null
@@ -1 +0,0 @@
-../eslint-plugin-github/bin/flow-coverage.js
\ No newline at end of file
diff --git a/node_modules/.bin/github-lint b/node_modules/.bin/github-lint
deleted file mode 120000
index 466698f..0000000
--- a/node_modules/.bin/github-lint
+++ /dev/null
@@ -1 +0,0 @@
-../eslint-plugin-github/bin/github-lint.js
\ No newline at end of file
diff --git a/node_modules/.bin/jsdoctypeparser b/node_modules/.bin/jsdoctypeparser
deleted file mode 120000
index 5b82c28..0000000
--- a/node_modules/.bin/jsdoctypeparser
+++ /dev/null
@@ -1 +0,0 @@
-../jsdoctypeparser/bin/jsdoctypeparser
\ No newline at end of file
diff --git a/node_modules/.bin/loose-envify b/node_modules/.bin/loose-envify
deleted file mode 120000
index ed9009c..0000000
--- a/node_modules/.bin/loose-envify
+++ /dev/null
@@ -1 +0,0 @@
-../loose-envify/cli.js
\ No newline at end of file
diff --git a/node_modules/.bin/npm-check-github-package-requirements b/node_modules/.bin/npm-check-github-package-requirements
deleted file mode 120000
index fdeac3b..0000000
--- a/node_modules/.bin/npm-check-github-package-requirements
+++ /dev/null
@@ -1 +0,0 @@
-../eslint-plugin-github/bin/npm-check-github-package-requirements.js
\ No newline at end of file
diff --git a/node_modules/.bin/rimraf b/node_modules/.bin/rimraf
index 7d23b3f..4cd49a4 120000
--- a/node_modules/.bin/rimraf
+++ b/node_modules/.bin/rimraf
@@ -1 +1 @@
-../flat-cache/node_modules/rimraf/bin.js
\ No newline at end of file
+../rimraf/bin.js
\ No newline at end of file
diff --git a/node_modules/@babel/core/node_modules/.bin/semver b/node_modules/@babel/core/node_modules/.bin/semver
index 317eb29..085f561 120000
--- a/node_modules/@babel/core/node_modules/.bin/semver
+++ b/node_modules/@babel/core/node_modules/.bin/semver
@@ -1 +1 @@
-../semver/bin/semver
\ No newline at end of file
+../../../../normalize-package-data/node_modules/semver/bin/semver
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/LICENSE b/node_modules/@babel/runtime-corejs3/LICENSE
deleted file mode 100644
index f31575e..0000000
--- a/node_modules/@babel/runtime-corejs3/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-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/node_modules/@babel/runtime-corejs3/README.md b/node_modules/@babel/runtime-corejs3/README.md
deleted file mode 100644
index 78ce1b4..0000000
--- a/node_modules/@babel/runtime-corejs3/README.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# @babel/runtime-corejs3
-
-> babel's modular runtime helpers with core-js@3 polyfilling
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save-dev @babel/runtime-corejs3
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/runtime-corejs3 --dev
-```
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js b/node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js
deleted file mode 100644
index 468393e..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/array/from");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/array/is-array.js b/node_modules/@babel/runtime-corejs3/core-js-stable/array/is-array.js
deleted file mode 100644
index 974dfb4..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/array/is-array.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/array/is-array");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/array/of.js b/node_modules/@babel/runtime-corejs3/core-js-stable/array/of.js
deleted file mode 100644
index c3355a8..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/array/of.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/array/of");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/clear-immediate.js b/node_modules/@babel/runtime-corejs3/core-js-stable/clear-immediate.js
deleted file mode 100644
index f2e7116..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/clear-immediate.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/clear-immediate");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/date/now.js b/node_modules/@babel/runtime-corejs3/core-js-stable/date/now.js
deleted file mode 100644
index de1eb3f..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/date/now.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/date/now");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/bind.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/bind.js
deleted file mode 100644
index 7e53580..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/bind.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/bind");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/code-point-at.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/code-point-at.js
deleted file mode 100644
index 4301cab..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/code-point-at.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/code-point-at");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js
deleted file mode 100644
index 3e9fe5d..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/concat");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/copy-within.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/copy-within.js
deleted file mode 100644
index 4c6b64c..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/copy-within.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/copy-within");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/ends-with.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/ends-with.js
deleted file mode 100644
index 8c87327..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/ends-with.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/ends-with");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/entries.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/entries.js
deleted file mode 100644
index 536beb0..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/entries.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/entries");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/every.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/every.js
deleted file mode 100644
index b8caa69..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/every.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/every");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/fill.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/fill.js
deleted file mode 100644
index ab4e00d..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/fill.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/fill");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js
deleted file mode 100644
index 82c3d4f..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/filter");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/find-index.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/find-index.js
deleted file mode 100644
index 54547e0..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/find-index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/find-index");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js
deleted file mode 100644
index a97795c..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/find");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/flags.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/flags.js
deleted file mode 100644
index 126ca63..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/flags.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/flags");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/flat-map.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/flat-map.js
deleted file mode 100644
index 5008ceb..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/flat-map.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/flat-map");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/flat.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/flat.js
deleted file mode 100644
index 9113bd4..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/flat.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/flat");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/for-each.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/for-each.js
deleted file mode 100644
index def7519..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/for-each.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/for-each");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js
deleted file mode 100644
index 6481029..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/includes");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js
deleted file mode 100644
index 349cbb2..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/index-of");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/keys.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/keys.js
deleted file mode 100644
index e418fa7..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/keys.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/keys");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/last-index-of.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/last-index-of.js
deleted file mode 100644
index 0493997..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/last-index-of.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/last-index-of");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js
deleted file mode 100644
index 823c96d..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/map");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/pad-end.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/pad-end.js
deleted file mode 100644
index 4643368..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/pad-end.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/pad-end");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/pad-start.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/pad-start.js
deleted file mode 100644
index 0fc1290..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/pad-start.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/pad-start");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce-right.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce-right.js
deleted file mode 100644
index 05939ae..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce-right.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/reduce-right");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce.js
deleted file mode 100644
index 6b268bf..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/reduce");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/repeat.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/repeat.js
deleted file mode 100644
index cf6db61..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/repeat.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/repeat");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/reverse.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/reverse.js
deleted file mode 100644
index 665219c..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/reverse.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/reverse");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js
deleted file mode 100644
index 237e11d..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/slice");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/some.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/some.js
deleted file mode 100644
index 1d9c925..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/some.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/some");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/sort.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/sort.js
deleted file mode 100644
index 43c83a8..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/sort.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/sort");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/splice.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/splice.js
deleted file mode 100644
index 70794ea..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/splice.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/splice");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/starts-with.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/starts-with.js
deleted file mode 100644
index 5898867..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/starts-with.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/starts-with");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim-end.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim-end.js
deleted file mode 100644
index 3684244..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim-end.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/trim-end");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim-left.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim-left.js
deleted file mode 100644
index 9b63733..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim-left.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/trim-left");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim-right.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim-right.js
deleted file mode 100644
index 4680046..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim-right.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/trim-right");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim-start.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim-start.js
deleted file mode 100644
index c964460..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim-start.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/trim-start");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim.js
deleted file mode 100644
index fa394d7..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/trim");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/values.js b/node_modules/@babel/runtime-corejs3/core-js-stable/instance/values.js
deleted file mode 100644
index 17def65..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/instance/values.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/instance/values");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/json/stringify.js b/node_modules/@babel/runtime-corejs3/core-js-stable/json/stringify.js
deleted file mode 100644
index 16028c0..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/json/stringify.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/json/stringify");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/map.js b/node_modules/@babel/runtime-corejs3/core-js-stable/map.js
deleted file mode 100644
index 007829f..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/map.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/map");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/math/acosh.js b/node_modules/@babel/runtime-corejs3/core-js-stable/math/acosh.js
deleted file mode 100644
index 9ad4163..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/math/acosh.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/math/acosh");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/math/asinh.js b/node_modules/@babel/runtime-corejs3/core-js-stable/math/asinh.js
deleted file mode 100644
index 3cfde2b..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/math/asinh.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/math/asinh");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/math/atanh.js b/node_modules/@babel/runtime-corejs3/core-js-stable/math/atanh.js
deleted file mode 100644
index 4fb7f70..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/math/atanh.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/math/atanh");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/math/cbrt.js b/node_modules/@babel/runtime-corejs3/core-js-stable/math/cbrt.js
deleted file mode 100644
index ea8b8bb..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/math/cbrt.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/math/cbrt");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/math/clz32.js b/node_modules/@babel/runtime-corejs3/core-js-stable/math/clz32.js
deleted file mode 100644
index b407eea..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/math/clz32.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/math/clz32");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/math/cosh.js b/node_modules/@babel/runtime-corejs3/core-js-stable/math/cosh.js
deleted file mode 100644
index 1fb429e..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/math/cosh.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/math/cosh");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/math/expm1.js b/node_modules/@babel/runtime-corejs3/core-js-stable/math/expm1.js
deleted file mode 100644
index 7263979..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/math/expm1.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/math/expm1");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/math/fround.js b/node_modules/@babel/runtime-corejs3/core-js-stable/math/fround.js
deleted file mode 100644
index 3cc97d0..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/math/fround.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/math/fround");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/math/hypot.js b/node_modules/@babel/runtime-corejs3/core-js-stable/math/hypot.js
deleted file mode 100644
index 3ce6bd5..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/math/hypot.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/math/hypot");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/math/imul.js b/node_modules/@babel/runtime-corejs3/core-js-stable/math/imul.js
deleted file mode 100644
index 5a34abd..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/math/imul.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/math/imul");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/math/log10.js b/node_modules/@babel/runtime-corejs3/core-js-stable/math/log10.js
deleted file mode 100644
index f2879dc..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/math/log10.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/math/log10");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/math/log1p.js b/node_modules/@babel/runtime-corejs3/core-js-stable/math/log1p.js
deleted file mode 100644
index 3a0247d..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/math/log1p.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/math/log1p");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/math/log2.js b/node_modules/@babel/runtime-corejs3/core-js-stable/math/log2.js
deleted file mode 100644
index 908d2f6..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/math/log2.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/math/log2");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/math/sign.js b/node_modules/@babel/runtime-corejs3/core-js-stable/math/sign.js
deleted file mode 100644
index 9e8d539..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/math/sign.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/math/sign");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/math/sinh.js b/node_modules/@babel/runtime-corejs3/core-js-stable/math/sinh.js
deleted file mode 100644
index 5cc1b55..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/math/sinh.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/math/sinh");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/math/tanh.js b/node_modules/@babel/runtime-corejs3/core-js-stable/math/tanh.js
deleted file mode 100644
index f3859e7..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/math/tanh.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/math/tanh");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/math/trunc.js b/node_modules/@babel/runtime-corejs3/core-js-stable/math/trunc.js
deleted file mode 100644
index 93bbcff..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/math/trunc.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/math/trunc");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/number/epsilon.js b/node_modules/@babel/runtime-corejs3/core-js-stable/number/epsilon.js
deleted file mode 100644
index dfb1c3b..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/number/epsilon.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/number/epsilon");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/number/is-finite.js b/node_modules/@babel/runtime-corejs3/core-js-stable/number/is-finite.js
deleted file mode 100644
index d65bd35..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/number/is-finite.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/number/is-finite");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/number/is-integer.js b/node_modules/@babel/runtime-corejs3/core-js-stable/number/is-integer.js
deleted file mode 100644
index fc11947..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/number/is-integer.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/number/is-integer");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/number/is-nan.js b/node_modules/@babel/runtime-corejs3/core-js-stable/number/is-nan.js
deleted file mode 100644
index a9939a4..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/number/is-nan.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/number/is-nan");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/number/is-safe-integer.js b/node_modules/@babel/runtime-corejs3/core-js-stable/number/is-safe-integer.js
deleted file mode 100644
index a333254..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/number/is-safe-integer.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/number/is-safe-integer");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/number/max-safe-integer.js b/node_modules/@babel/runtime-corejs3/core-js-stable/number/max-safe-integer.js
deleted file mode 100644
index 855bd4c..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/number/max-safe-integer.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/number/max-safe-integer");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/number/min-safe-integer.js b/node_modules/@babel/runtime-corejs3/core-js-stable/number/min-safe-integer.js
deleted file mode 100644
index b242906..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/number/min-safe-integer.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/number/min-safe-integer");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/number/parse-float.js b/node_modules/@babel/runtime-corejs3/core-js-stable/number/parse-float.js
deleted file mode 100644
index 9d2c7c4..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/number/parse-float.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/number/parse-float");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/number/parse-int.js b/node_modules/@babel/runtime-corejs3/core-js-stable/number/parse-int.js
deleted file mode 100644
index 54120af..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/number/parse-int.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/number/parse-int");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/assign.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/assign.js
deleted file mode 100644
index 5e3e128..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/assign.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/assign");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/create.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/create.js
deleted file mode 100644
index b0d00d3..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/create.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/create");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js
deleted file mode 100644
index 60d7637..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/define-properties");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js
deleted file mode 100644
index bdf30c6..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/define-property");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/entries.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/entries.js
deleted file mode 100644
index 0b0b76c..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/entries.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/entries");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/freeze.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/freeze.js
deleted file mode 100644
index abbc7d6..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/freeze.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/freeze");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/from-entries.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/from-entries.js
deleted file mode 100644
index 01164ef..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/from-entries.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/from-entries");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js
deleted file mode 100644
index c2ed98b..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/get-own-property-descriptor");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js
deleted file mode 100644
index 8f0fc95..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/get-own-property-descriptors");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-names.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-names.js
deleted file mode 100644
index 0807d5d..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-names.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/get-own-property-names");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js
deleted file mode 100644
index bf45955..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/get-own-property-symbols");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/get-prototype-of.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/get-prototype-of.js
deleted file mode 100644
index f22b095..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/get-prototype-of.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/get-prototype-of");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/is-extensible.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/is-extensible.js
deleted file mode 100644
index 2cafb77..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/is-extensible.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/is-extensible");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/is-frozen.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/is-frozen.js
deleted file mode 100644
index 8067ae7..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/is-frozen.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/is-frozen");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/is-sealed.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/is-sealed.js
deleted file mode 100644
index fb94859..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/is-sealed.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/is-sealed");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/is.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/is.js
deleted file mode 100644
index 056f817..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/is.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/is");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js
deleted file mode 100644
index 40bccaf..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/keys");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/prevent-extensions.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/prevent-extensions.js
deleted file mode 100644
index ae6d21d..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/prevent-extensions.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/prevent-extensions");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/seal.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/seal.js
deleted file mode 100644
index faa2d34..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/seal.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/seal");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/set-prototype-of.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/set-prototype-of.js
deleted file mode 100644
index 28a8b6a..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/set-prototype-of.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/set-prototype-of");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/object/values.js b/node_modules/@babel/runtime-corejs3/core-js-stable/object/values.js
deleted file mode 100644
index 3ccfa47..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/object/values.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/object/values");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/parse-float.js b/node_modules/@babel/runtime-corejs3/core-js-stable/parse-float.js
deleted file mode 100644
index 994dc6a..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/parse-float.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/parse-float");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/parse-int.js b/node_modules/@babel/runtime-corejs3/core-js-stable/parse-int.js
deleted file mode 100644
index c9d10ed..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/parse-int.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/parse-int");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/promise.js b/node_modules/@babel/runtime-corejs3/core-js-stable/promise.js
deleted file mode 100644
index 32f1fab..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/promise.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/promise");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/queue-microtask.js b/node_modules/@babel/runtime-corejs3/core-js-stable/queue-microtask.js
deleted file mode 100644
index 743d81b..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/queue-microtask.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/queue-microtask");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/apply.js b/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/apply.js
deleted file mode 100644
index 3ef9afb..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/apply.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/reflect/apply");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/construct.js b/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/construct.js
deleted file mode 100644
index 24d1ac3..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/construct.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/reflect/construct");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/define-property.js b/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/define-property.js
deleted file mode 100644
index 92a1f7a..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/define-property.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/reflect/define-property");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/delete-property.js b/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/delete-property.js
deleted file mode 100644
index 21bb710..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/delete-property.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/reflect/delete-property");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/get-own-property-descriptor.js b/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/get-own-property-descriptor.js
deleted file mode 100644
index def452d..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/get-own-property-descriptor.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/reflect/get-own-property-descriptor");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/get-prototype-of.js b/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/get-prototype-of.js
deleted file mode 100644
index 0219996..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/get-prototype-of.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/reflect/get-prototype-of");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/get.js b/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/get.js
deleted file mode 100644
index c4c91de..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/get.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/reflect/get");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/has.js b/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/has.js
deleted file mode 100644
index 66082e9..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/has.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/reflect/has");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/is-extensible.js b/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/is-extensible.js
deleted file mode 100644
index 93446d0..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/is-extensible.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/reflect/is-extensible");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/own-keys.js b/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/own-keys.js
deleted file mode 100644
index 443b23b..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/own-keys.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/reflect/own-keys");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/prevent-extensions.js b/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/prevent-extensions.js
deleted file mode 100644
index 77c69d9..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/prevent-extensions.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/reflect/prevent-extensions");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/set-prototype-of.js b/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/set-prototype-of.js
deleted file mode 100644
index bb0cdff..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/set-prototype-of.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/reflect/set-prototype-of");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/set.js b/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/set.js
deleted file mode 100644
index 857bdc9..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/reflect/set.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/reflect/set");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/set-immediate.js b/node_modules/@babel/runtime-corejs3/core-js-stable/set-immediate.js
deleted file mode 100644
index f941542..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/set-immediate.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/set-immediate");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/set-interval.js b/node_modules/@babel/runtime-corejs3/core-js-stable/set-interval.js
deleted file mode 100644
index 0e41ff5..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/set-interval.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/set-interval");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/set-timeout.js b/node_modules/@babel/runtime-corejs3/core-js-stable/set-timeout.js
deleted file mode 100644
index 401edca..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/set-timeout.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/set-timeout");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/set.js b/node_modules/@babel/runtime-corejs3/core-js-stable/set.js
deleted file mode 100644
index 21ef670..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/set.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/set");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/string/from-code-point.js b/node_modules/@babel/runtime-corejs3/core-js-stable/string/from-code-point.js
deleted file mode 100644
index f1d0c10..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/string/from-code-point.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/string/from-code-point");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/string/raw.js b/node_modules/@babel/runtime-corejs3/core-js-stable/string/raw.js
deleted file mode 100644
index 894439a..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/string/raw.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/string/raw");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js b/node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js
deleted file mode 100644
index 060d2c8..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/symbol");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/async-iterator.js b/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/async-iterator.js
deleted file mode 100644
index 2794af4..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/async-iterator.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/symbol/async-iterator");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/for.js b/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/for.js
deleted file mode 100644
index e7cbdb2..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/for.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/symbol/for");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/has-instance.js b/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/has-instance.js
deleted file mode 100644
index e12df6e..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/has-instance.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/symbol/has-instance");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/is-concat-spreadable.js b/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/is-concat-spreadable.js
deleted file mode 100644
index c82b4aa..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/is-concat-spreadable.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/symbol/is-concat-spreadable");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/iterator.js b/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/iterator.js
deleted file mode 100644
index a1fbb82..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/iterator.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/symbol/iterator");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/key-for.js b/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/key-for.js
deleted file mode 100644
index 9a061e1..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/key-for.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/symbol/key-for");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/match.js b/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/match.js
deleted file mode 100644
index 8491342..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/match.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/symbol/match");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/replace.js b/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/replace.js
deleted file mode 100644
index 1e00079..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/replace.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/symbol/replace");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/search.js b/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/search.js
deleted file mode 100644
index 439812c..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/search.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/symbol/search");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/species.js b/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/species.js
deleted file mode 100644
index 5aa5fac..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/species.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/symbol/species");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/split.js b/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/split.js
deleted file mode 100644
index 3d19398..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/split.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/symbol/split");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/to-primitive.js b/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/to-primitive.js
deleted file mode 100644
index 2751de4..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/to-primitive.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/symbol/to-primitive");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/to-string-tag.js b/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/to-string-tag.js
deleted file mode 100644
index 6132896..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/to-string-tag.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/symbol/to-string-tag");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/unscopables.js b/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/unscopables.js
deleted file mode 100644
index b84e75e..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/symbol/unscopables.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/symbol/unscopables");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/url-search-params.js b/node_modules/@babel/runtime-corejs3/core-js-stable/url-search-params.js
deleted file mode 100644
index 4147a64..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/url-search-params.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/url-search-params");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/url.js b/node_modules/@babel/runtime-corejs3/core-js-stable/url.js
deleted file mode 100644
index 8d302fc..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/url.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/url");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js b/node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js
deleted file mode 100644
index d6715bb..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/weak-map");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js-stable/weak-set.js b/node_modules/@babel/runtime-corejs3/core-js-stable/weak-set.js
deleted file mode 100644
index d73724c..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js-stable/weak-set.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/stable/weak-set");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/aggregate-error.js b/node_modules/@babel/runtime-corejs3/core-js/aggregate-error.js
deleted file mode 100644
index 8adca0a..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/aggregate-error.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/aggregate-error");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/array/from.js b/node_modules/@babel/runtime-corejs3/core-js/array/from.js
deleted file mode 100644
index cfba3a9..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/array/from.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/array/from");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/array/is-array.js b/node_modules/@babel/runtime-corejs3/core-js/array/is-array.js
deleted file mode 100644
index b1d8071..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/array/is-array.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/array/is-array");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/array/of.js b/node_modules/@babel/runtime-corejs3/core-js/array/of.js
deleted file mode 100644
index fb8b393..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/array/of.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/array/of");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/clear-immediate.js b/node_modules/@babel/runtime-corejs3/core-js/clear-immediate.js
deleted file mode 100644
index a7db03b..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/clear-immediate.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/clear-immediate");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/composite-key.js b/node_modules/@babel/runtime-corejs3/core-js/composite-key.js
deleted file mode 100644
index 13af38a..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/composite-key.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/composite-key");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/composite-symbol.js b/node_modules/@babel/runtime-corejs3/core-js/composite-symbol.js
deleted file mode 100644
index 1e1d420..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/composite-symbol.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/composite-symbol");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/date/now.js b/node_modules/@babel/runtime-corejs3/core-js/date/now.js
deleted file mode 100644
index 65e4acd..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/date/now.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/date/now");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.js b/node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.js
deleted file mode 100644
index 16a1cfe..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/get-iterator-method");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/get-iterator.js b/node_modules/@babel/runtime-corejs3/core-js/get-iterator.js
deleted file mode 100644
index efb412e..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/get-iterator.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/get-iterator");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/global-this.js b/node_modules/@babel/runtime-corejs3/core-js/global-this.js
deleted file mode 100644
index 37f697a..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/global-this.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/global-this");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/at.js b/node_modules/@babel/runtime-corejs3/core-js/instance/at.js
deleted file mode 100644
index b997e2a..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/at.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/at");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/bind.js b/node_modules/@babel/runtime-corejs3/core-js/instance/bind.js
deleted file mode 100644
index c22c3ac..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/bind.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/bind");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/code-point-at.js b/node_modules/@babel/runtime-corejs3/core-js/instance/code-point-at.js
deleted file mode 100644
index 9662545..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/code-point-at.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/code-point-at");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/code-points.js b/node_modules/@babel/runtime-corejs3/core-js/instance/code-points.js
deleted file mode 100644
index c356dc2..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/code-points.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/code-points");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/concat.js b/node_modules/@babel/runtime-corejs3/core-js/instance/concat.js
deleted file mode 100644
index 9c78c5b..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/concat.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/concat");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/copy-within.js b/node_modules/@babel/runtime-corejs3/core-js/instance/copy-within.js
deleted file mode 100644
index f3be320..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/copy-within.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/copy-within");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/ends-with.js b/node_modules/@babel/runtime-corejs3/core-js/instance/ends-with.js
deleted file mode 100644
index 98cf0cc..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/ends-with.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/ends-with");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/entries.js b/node_modules/@babel/runtime-corejs3/core-js/instance/entries.js
deleted file mode 100644
index 32864e2..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/entries.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/entries");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/every.js b/node_modules/@babel/runtime-corejs3/core-js/instance/every.js
deleted file mode 100644
index 4663214..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/every.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/every");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/fill.js b/node_modules/@babel/runtime-corejs3/core-js/instance/fill.js
deleted file mode 100644
index 69eba3d..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/fill.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/fill");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/filter.js b/node_modules/@babel/runtime-corejs3/core-js/instance/filter.js
deleted file mode 100644
index e147151..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/filter.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/filter");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/find-index.js b/node_modules/@babel/runtime-corejs3/core-js/instance/find-index.js
deleted file mode 100644
index fccbd05..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/find-index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/find-index");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/find.js b/node_modules/@babel/runtime-corejs3/core-js/instance/find.js
deleted file mode 100644
index ae62982..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/find.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/find");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/flags.js b/node_modules/@babel/runtime-corejs3/core-js/instance/flags.js
deleted file mode 100644
index 984243e..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/flags.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/flags");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/flat-map.js b/node_modules/@babel/runtime-corejs3/core-js/instance/flat-map.js
deleted file mode 100644
index 8bc910d..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/flat-map.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/flat-map");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/flat.js b/node_modules/@babel/runtime-corejs3/core-js/instance/flat.js
deleted file mode 100644
index 71143f9..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/flat.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/flat");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/for-each.js b/node_modules/@babel/runtime-corejs3/core-js/instance/for-each.js
deleted file mode 100644
index 520c6ea..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/for-each.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/for-each");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/includes.js b/node_modules/@babel/runtime-corejs3/core-js/instance/includes.js
deleted file mode 100644
index 4a8a5bd..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/includes.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/includes");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/index-of.js b/node_modules/@babel/runtime-corejs3/core-js/instance/index-of.js
deleted file mode 100644
index 68a1200..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/index-of.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/index-of");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/keys.js b/node_modules/@babel/runtime-corejs3/core-js/instance/keys.js
deleted file mode 100644
index 704da3f..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/keys.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/keys");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/last-index-of.js b/node_modules/@babel/runtime-corejs3/core-js/instance/last-index-of.js
deleted file mode 100644
index 1552e76..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/last-index-of.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/last-index-of");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/map.js b/node_modules/@babel/runtime-corejs3/core-js/instance/map.js
deleted file mode 100644
index f7cc5e0..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/map.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/map");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/match-all.js b/node_modules/@babel/runtime-corejs3/core-js/instance/match-all.js
deleted file mode 100644
index d69fb2f..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/match-all.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/match-all");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/pad-end.js b/node_modules/@babel/runtime-corejs3/core-js/instance/pad-end.js
deleted file mode 100644
index d2ea8bb..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/pad-end.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/pad-end");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/pad-start.js b/node_modules/@babel/runtime-corejs3/core-js/instance/pad-start.js
deleted file mode 100644
index 8ad02c0..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/pad-start.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/pad-start");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/reduce-right.js b/node_modules/@babel/runtime-corejs3/core-js/instance/reduce-right.js
deleted file mode 100644
index 8d15c13..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/reduce-right.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/reduce-right");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/reduce.js b/node_modules/@babel/runtime-corejs3/core-js/instance/reduce.js
deleted file mode 100644
index 86e5ba6..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/reduce.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/reduce");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/repeat.js b/node_modules/@babel/runtime-corejs3/core-js/instance/repeat.js
deleted file mode 100644
index 9671960..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/repeat.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/repeat");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/replace-all.js b/node_modules/@babel/runtime-corejs3/core-js/instance/replace-all.js
deleted file mode 100644
index 61aae15..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/replace-all.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/replace-all");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/reverse.js b/node_modules/@babel/runtime-corejs3/core-js/instance/reverse.js
deleted file mode 100644
index 93d6f41..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/reverse.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/reverse");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/slice.js b/node_modules/@babel/runtime-corejs3/core-js/instance/slice.js
deleted file mode 100644
index b09f830..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/slice.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/slice");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/some.js b/node_modules/@babel/runtime-corejs3/core-js/instance/some.js
deleted file mode 100644
index 2492d93..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/some.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/some");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/sort.js b/node_modules/@babel/runtime-corejs3/core-js/instance/sort.js
deleted file mode 100644
index b2446c8..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/sort.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/sort");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/splice.js b/node_modules/@babel/runtime-corejs3/core-js/instance/splice.js
deleted file mode 100644
index a11dd12..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/splice.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/splice");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/starts-with.js b/node_modules/@babel/runtime-corejs3/core-js/instance/starts-with.js
deleted file mode 100644
index 207e095..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/starts-with.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/starts-with");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/trim-end.js b/node_modules/@babel/runtime-corejs3/core-js/instance/trim-end.js
deleted file mode 100644
index 0168e67..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/trim-end.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/trim-end");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/trim-left.js b/node_modules/@babel/runtime-corejs3/core-js/instance/trim-left.js
deleted file mode 100644
index 08c5ddb..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/trim-left.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/trim-left");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/trim-right.js b/node_modules/@babel/runtime-corejs3/core-js/instance/trim-right.js
deleted file mode 100644
index db70121..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/trim-right.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/trim-right");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/trim-start.js b/node_modules/@babel/runtime-corejs3/core-js/instance/trim-start.js
deleted file mode 100644
index 9bd4e4a..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/trim-start.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/trim-start");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/trim.js b/node_modules/@babel/runtime-corejs3/core-js/instance/trim.js
deleted file mode 100644
index 3fc0269..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/trim.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/trim");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/instance/values.js b/node_modules/@babel/runtime-corejs3/core-js/instance/values.js
deleted file mode 100644
index 9a8607d..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/instance/values.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/instance/values");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/is-iterable.js b/node_modules/@babel/runtime-corejs3/core-js/is-iterable.js
deleted file mode 100644
index b2323fe..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/is-iterable.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/is-iterable");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/json/stringify.js b/node_modules/@babel/runtime-corejs3/core-js/json/stringify.js
deleted file mode 100644
index 4f20a95..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/json/stringify.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/json/stringify");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/map.js b/node_modules/@babel/runtime-corejs3/core-js/map.js
deleted file mode 100644
index 9dc3dd1..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/map.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/map");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/acosh.js b/node_modules/@babel/runtime-corejs3/core-js/math/acosh.js
deleted file mode 100644
index 630dfa3..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/acosh.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/acosh");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/asinh.js b/node_modules/@babel/runtime-corejs3/core-js/math/asinh.js
deleted file mode 100644
index 58c55cd..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/asinh.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/asinh");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/atanh.js b/node_modules/@babel/runtime-corejs3/core-js/math/atanh.js
deleted file mode 100644
index 1f85a68..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/atanh.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/atanh");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/cbrt.js b/node_modules/@babel/runtime-corejs3/core-js/math/cbrt.js
deleted file mode 100644
index bcdfa5c..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/cbrt.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/cbrt");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/clamp.js b/node_modules/@babel/runtime-corejs3/core-js/math/clamp.js
deleted file mode 100644
index 6517db9..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/clamp.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/clamp");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/clz32.js b/node_modules/@babel/runtime-corejs3/core-js/math/clz32.js
deleted file mode 100644
index 39fc6a2..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/clz32.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/clz32");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/cosh.js b/node_modules/@babel/runtime-corejs3/core-js/math/cosh.js
deleted file mode 100644
index 0471ef5..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/cosh.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/cosh");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/deg-per-rad.js b/node_modules/@babel/runtime-corejs3/core-js/math/deg-per-rad.js
deleted file mode 100644
index bb1717b..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/deg-per-rad.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/deg-per-rad");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/degrees.js b/node_modules/@babel/runtime-corejs3/core-js/math/degrees.js
deleted file mode 100644
index 56ee32a..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/degrees.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/degrees");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/expm1.js b/node_modules/@babel/runtime-corejs3/core-js/math/expm1.js
deleted file mode 100644
index 3dda5cf..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/expm1.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/expm1");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/fround.js b/node_modules/@babel/runtime-corejs3/core-js/math/fround.js
deleted file mode 100644
index 2e7bb79..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/fround.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/fround");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/fscale.js b/node_modules/@babel/runtime-corejs3/core-js/math/fscale.js
deleted file mode 100644
index 6e4deff..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/fscale.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/fscale");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/hypot.js b/node_modules/@babel/runtime-corejs3/core-js/math/hypot.js
deleted file mode 100644
index 1eb1f88..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/hypot.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/hypot");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/iaddh.js b/node_modules/@babel/runtime-corejs3/core-js/math/iaddh.js
deleted file mode 100644
index ae8cb2b..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/iaddh.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/iaddh");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/imul.js b/node_modules/@babel/runtime-corejs3/core-js/math/imul.js
deleted file mode 100644
index c0577a7..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/imul.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/imul");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/imulh.js b/node_modules/@babel/runtime-corejs3/core-js/math/imulh.js
deleted file mode 100644
index ae2226a..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/imulh.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/imulh");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/isubh.js b/node_modules/@babel/runtime-corejs3/core-js/math/isubh.js
deleted file mode 100644
index 7f5f30b..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/isubh.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/isubh");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/log10.js b/node_modules/@babel/runtime-corejs3/core-js/math/log10.js
deleted file mode 100644
index d9aaf59..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/log10.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/log10");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/log1p.js b/node_modules/@babel/runtime-corejs3/core-js/math/log1p.js
deleted file mode 100644
index 19be200..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/log1p.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/log1p");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/log2.js b/node_modules/@babel/runtime-corejs3/core-js/math/log2.js
deleted file mode 100644
index b23be53..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/log2.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/log2");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/rad-per-deg.js b/node_modules/@babel/runtime-corejs3/core-js/math/rad-per-deg.js
deleted file mode 100644
index f702240..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/rad-per-deg.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/rad-per-deg");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/radians.js b/node_modules/@babel/runtime-corejs3/core-js/math/radians.js
deleted file mode 100644
index e81c8e0..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/radians.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/radians");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/scale.js b/node_modules/@babel/runtime-corejs3/core-js/math/scale.js
deleted file mode 100644
index 997a9e8..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/scale.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/scale");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/seeded-prng.js b/node_modules/@babel/runtime-corejs3/core-js/math/seeded-prng.js
deleted file mode 100644
index 0ee49f6..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/seeded-prng.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/seeded-prng");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/sign.js b/node_modules/@babel/runtime-corejs3/core-js/math/sign.js
deleted file mode 100644
index a077429..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/sign.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/sign");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/signbit.js b/node_modules/@babel/runtime-corejs3/core-js/math/signbit.js
deleted file mode 100644
index fe0d3bf..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/signbit.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/signbit");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/sinh.js b/node_modules/@babel/runtime-corejs3/core-js/math/sinh.js
deleted file mode 100644
index 5d04b70..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/sinh.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/sinh");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/tanh.js b/node_modules/@babel/runtime-corejs3/core-js/math/tanh.js
deleted file mode 100644
index ac400f4..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/tanh.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/tanh");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/trunc.js b/node_modules/@babel/runtime-corejs3/core-js/math/trunc.js
deleted file mode 100644
index cdeb996..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/trunc.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/trunc");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/math/umulh.js b/node_modules/@babel/runtime-corejs3/core-js/math/umulh.js
deleted file mode 100644
index af11f0b..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/math/umulh.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/math/umulh");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/number/epsilon.js b/node_modules/@babel/runtime-corejs3/core-js/number/epsilon.js
deleted file mode 100644
index 994cd88..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/number/epsilon.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/number/epsilon");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/number/from-string.js b/node_modules/@babel/runtime-corejs3/core-js/number/from-string.js
deleted file mode 100644
index d81c011..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/number/from-string.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/number/from-string");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/number/is-finite.js b/node_modules/@babel/runtime-corejs3/core-js/number/is-finite.js
deleted file mode 100644
index 3de1455..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/number/is-finite.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/number/is-finite");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/number/is-integer.js b/node_modules/@babel/runtime-corejs3/core-js/number/is-integer.js
deleted file mode 100644
index 4023e4e..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/number/is-integer.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/number/is-integer");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/number/is-nan.js b/node_modules/@babel/runtime-corejs3/core-js/number/is-nan.js
deleted file mode 100644
index 7a38bc3..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/number/is-nan.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/number/is-nan");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/number/is-safe-integer.js b/node_modules/@babel/runtime-corejs3/core-js/number/is-safe-integer.js
deleted file mode 100644
index 35dd12b..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/number/is-safe-integer.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/number/is-safe-integer");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/number/max-safe-integer.js b/node_modules/@babel/runtime-corejs3/core-js/number/max-safe-integer.js
deleted file mode 100644
index 351d645..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/number/max-safe-integer.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/number/max-safe-integer");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/number/min-safe-integer.js b/node_modules/@babel/runtime-corejs3/core-js/number/min-safe-integer.js
deleted file mode 100644
index e2c6f22..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/number/min-safe-integer.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/number/min-safe-integer");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/number/parse-float.js b/node_modules/@babel/runtime-corejs3/core-js/number/parse-float.js
deleted file mode 100644
index c468d11..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/number/parse-float.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/number/parse-float");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/number/parse-int.js b/node_modules/@babel/runtime-corejs3/core-js/number/parse-int.js
deleted file mode 100644
index e694ff0..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/number/parse-int.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/number/parse-int");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/assign.js b/node_modules/@babel/runtime-corejs3/core-js/object/assign.js
deleted file mode 100644
index 6c9b32f..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/assign.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/assign");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/create.js b/node_modules/@babel/runtime-corejs3/core-js/object/create.js
deleted file mode 100644
index 582da6e..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/create.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/create");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/define-properties.js b/node_modules/@babel/runtime-corejs3/core-js/object/define-properties.js
deleted file mode 100644
index f326118..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/define-properties.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/define-properties");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/define-property.js b/node_modules/@babel/runtime-corejs3/core-js/object/define-property.js
deleted file mode 100644
index 9aa5e2b..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/define-property.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/define-property");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/entries.js b/node_modules/@babel/runtime-corejs3/core-js/object/entries.js
deleted file mode 100644
index 3cefbcf..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/entries.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/entries");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/freeze.js b/node_modules/@babel/runtime-corejs3/core-js/object/freeze.js
deleted file mode 100644
index 9c93002..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/freeze.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/freeze");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/from-entries.js b/node_modules/@babel/runtime-corejs3/core-js/object/from-entries.js
deleted file mode 100644
index 7000f10..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/from-entries.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/from-entries");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/get-own-property-descriptor.js b/node_modules/@babel/runtime-corejs3/core-js/object/get-own-property-descriptor.js
deleted file mode 100644
index 8a04870..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/get-own-property-descriptor.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/get-own-property-descriptor");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/get-own-property-descriptors.js b/node_modules/@babel/runtime-corejs3/core-js/object/get-own-property-descriptors.js
deleted file mode 100644
index d6a59e6..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/get-own-property-descriptors.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/get-own-property-descriptors");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/get-own-property-names.js b/node_modules/@babel/runtime-corejs3/core-js/object/get-own-property-names.js
deleted file mode 100644
index b825da0..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/get-own-property-names.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/get-own-property-names");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/get-own-property-symbols.js b/node_modules/@babel/runtime-corejs3/core-js/object/get-own-property-symbols.js
deleted file mode 100644
index c998127..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/get-own-property-symbols.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/get-own-property-symbols");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/get-prototype-of.js b/node_modules/@babel/runtime-corejs3/core-js/object/get-prototype-of.js
deleted file mode 100644
index 97d61f1..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/get-prototype-of.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/get-prototype-of");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/is-extensible.js b/node_modules/@babel/runtime-corejs3/core-js/object/is-extensible.js
deleted file mode 100644
index 2be029c..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/is-extensible.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/is-extensible");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/is-frozen.js b/node_modules/@babel/runtime-corejs3/core-js/object/is-frozen.js
deleted file mode 100644
index 0c4906f..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/is-frozen.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/is-frozen");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/is-sealed.js b/node_modules/@babel/runtime-corejs3/core-js/object/is-sealed.js
deleted file mode 100644
index d343920..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/is-sealed.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/is-sealed");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/is.js b/node_modules/@babel/runtime-corejs3/core-js/object/is.js
deleted file mode 100644
index 8a764ae..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/is.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/is");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/keys.js b/node_modules/@babel/runtime-corejs3/core-js/object/keys.js
deleted file mode 100644
index 8121852..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/keys.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/keys");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/prevent-extensions.js b/node_modules/@babel/runtime-corejs3/core-js/object/prevent-extensions.js
deleted file mode 100644
index ad55d7b..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/prevent-extensions.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/prevent-extensions");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/seal.js b/node_modules/@babel/runtime-corejs3/core-js/object/seal.js
deleted file mode 100644
index f98205e..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/seal.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/seal");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/set-prototype-of.js b/node_modules/@babel/runtime-corejs3/core-js/object/set-prototype-of.js
deleted file mode 100644
index 3535dbc..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/set-prototype-of.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/set-prototype-of");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/object/values.js b/node_modules/@babel/runtime-corejs3/core-js/object/values.js
deleted file mode 100644
index e192401..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/object/values.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/object/values");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/observable.js b/node_modules/@babel/runtime-corejs3/core-js/observable.js
deleted file mode 100644
index 9a0cd33..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/observable.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/observable");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/parse-float.js b/node_modules/@babel/runtime-corejs3/core-js/parse-float.js
deleted file mode 100644
index d6ab95d..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/parse-float.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/parse-float");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/parse-int.js b/node_modules/@babel/runtime-corejs3/core-js/parse-int.js
deleted file mode 100644
index 73ed9db..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/parse-int.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/parse-int");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/promise.js b/node_modules/@babel/runtime-corejs3/core-js/promise.js
deleted file mode 100644
index 46b8ddd..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/promise.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/promise");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/queue-microtask.js b/node_modules/@babel/runtime-corejs3/core-js/queue-microtask.js
deleted file mode 100644
index 131d625..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/queue-microtask.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/queue-microtask");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/apply.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/apply.js
deleted file mode 100644
index db86be6..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/apply.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/apply");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/construct.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/construct.js
deleted file mode 100644
index 3e7f8f7..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/construct.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/construct");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/define-metadata.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/define-metadata.js
deleted file mode 100644
index 0eadd23..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/define-metadata.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/define-metadata");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/define-property.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/define-property.js
deleted file mode 100644
index 9665eeb..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/define-property.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/define-property");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/delete-metadata.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/delete-metadata.js
deleted file mode 100644
index d65f6b4..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/delete-metadata.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/delete-metadata");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/delete-property.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/delete-property.js
deleted file mode 100644
index c1db05f..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/delete-property.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/delete-property");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/get-metadata-keys.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/get-metadata-keys.js
deleted file mode 100644
index 179a701..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/get-metadata-keys.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/get-metadata-keys");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/get-metadata.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/get-metadata.js
deleted file mode 100644
index d1c1f7f..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/get-metadata.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/get-metadata");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/get-own-metadata-keys.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/get-own-metadata-keys.js
deleted file mode 100644
index 8061b75..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/get-own-metadata-keys.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/get-own-metadata-keys");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/get-own-metadata.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/get-own-metadata.js
deleted file mode 100644
index c9c1345..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/get-own-metadata.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/get-own-metadata");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/get-own-property-descriptor.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/get-own-property-descriptor.js
deleted file mode 100644
index 19634a7..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/get-own-property-descriptor.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/get-own-property-descriptor");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/get-prototype-of.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/get-prototype-of.js
deleted file mode 100644
index 6499584..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/get-prototype-of.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/get-prototype-of");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/get.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/get.js
deleted file mode 100644
index f123bfc..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/get.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/get");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/has-metadata.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/has-metadata.js
deleted file mode 100644
index 28e8758..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/has-metadata.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/has-metadata");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/has-own-metadata.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/has-own-metadata.js
deleted file mode 100644
index d14f150..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/has-own-metadata.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/has-own-metadata");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/has.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/has.js
deleted file mode 100644
index 66072e0..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/has.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/has");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/is-extensible.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/is-extensible.js
deleted file mode 100644
index f358991..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/is-extensible.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/is-extensible");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/metadata.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/metadata.js
deleted file mode 100644
index 5d3b28c..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/metadata.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/metadata");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/own-keys.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/own-keys.js
deleted file mode 100644
index 703fb6e..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/own-keys.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/own-keys");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/prevent-extensions.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/prevent-extensions.js
deleted file mode 100644
index 35f54e5..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/prevent-extensions.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/prevent-extensions");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/set-prototype-of.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/set-prototype-of.js
deleted file mode 100644
index b8e09ef..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/set-prototype-of.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/set-prototype-of");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/reflect/set.js b/node_modules/@babel/runtime-corejs3/core-js/reflect/set.js
deleted file mode 100644
index 0bd4a84..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/reflect/set.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/reflect/set");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/set-immediate.js b/node_modules/@babel/runtime-corejs3/core-js/set-immediate.js
deleted file mode 100644
index d41ffb1..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/set-immediate.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/set-immediate");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/set-interval.js b/node_modules/@babel/runtime-corejs3/core-js/set-interval.js
deleted file mode 100644
index 091f3a9..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/set-interval.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/set-interval");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/set-timeout.js b/node_modules/@babel/runtime-corejs3/core-js/set-timeout.js
deleted file mode 100644
index 3938f30..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/set-timeout.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/set-timeout");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/set.js b/node_modules/@babel/runtime-corejs3/core-js/set.js
deleted file mode 100644
index 20d7679..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/set.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/set");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/string/from-code-point.js b/node_modules/@babel/runtime-corejs3/core-js/string/from-code-point.js
deleted file mode 100644
index 2fc0d7f..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/string/from-code-point.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/string/from-code-point");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/string/raw.js b/node_modules/@babel/runtime-corejs3/core-js/string/raw.js
deleted file mode 100644
index 6f6af11..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/string/raw.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/string/raw");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/symbol.js b/node_modules/@babel/runtime-corejs3/core-js/symbol.js
deleted file mode 100644
index ded5c62..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/symbol.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/symbol");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/symbol/async-iterator.js b/node_modules/@babel/runtime-corejs3/core-js/symbol/async-iterator.js
deleted file mode 100644
index 0e3012e..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/symbol/async-iterator.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/symbol/async-iterator");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/symbol/dispose.js b/node_modules/@babel/runtime-corejs3/core-js/symbol/dispose.js
deleted file mode 100644
index cf5db36..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/symbol/dispose.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/symbol/dispose");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/symbol/for.js b/node_modules/@babel/runtime-corejs3/core-js/symbol/for.js
deleted file mode 100644
index a05c72f..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/symbol/for.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/symbol/for");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/symbol/has-instance.js b/node_modules/@babel/runtime-corejs3/core-js/symbol/has-instance.js
deleted file mode 100644
index ee6c73b..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/symbol/has-instance.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/symbol/has-instance");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/symbol/is-concat-spreadable.js b/node_modules/@babel/runtime-corejs3/core-js/symbol/is-concat-spreadable.js
deleted file mode 100644
index ed3aec0..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/symbol/is-concat-spreadable.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/symbol/is-concat-spreadable");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/symbol/iterator.js b/node_modules/@babel/runtime-corejs3/core-js/symbol/iterator.js
deleted file mode 100644
index 305a0c2..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/symbol/iterator.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/symbol/iterator");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/symbol/key-for.js b/node_modules/@babel/runtime-corejs3/core-js/symbol/key-for.js
deleted file mode 100644
index 5855279..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/symbol/key-for.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/symbol/key-for");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/symbol/match.js b/node_modules/@babel/runtime-corejs3/core-js/symbol/match.js
deleted file mode 100644
index 8cf9e94..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/symbol/match.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/symbol/match");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/symbol/observable.js b/node_modules/@babel/runtime-corejs3/core-js/symbol/observable.js
deleted file mode 100644
index e035146..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/symbol/observable.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/symbol/observable");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/symbol/pattern-match.js b/node_modules/@babel/runtime-corejs3/core-js/symbol/pattern-match.js
deleted file mode 100644
index 2f36f0a..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/symbol/pattern-match.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/symbol/pattern-match");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/symbol/replace.js b/node_modules/@babel/runtime-corejs3/core-js/symbol/replace.js
deleted file mode 100644
index dcc29ca..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/symbol/replace.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/symbol/replace");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/symbol/search.js b/node_modules/@babel/runtime-corejs3/core-js/symbol/search.js
deleted file mode 100644
index ef064ca..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/symbol/search.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/symbol/search");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/symbol/species.js b/node_modules/@babel/runtime-corejs3/core-js/symbol/species.js
deleted file mode 100644
index c034dff..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/symbol/species.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/symbol/species");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/symbol/split.js b/node_modules/@babel/runtime-corejs3/core-js/symbol/split.js
deleted file mode 100644
index a8414a1..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/symbol/split.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/symbol/split");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/symbol/to-primitive.js b/node_modules/@babel/runtime-corejs3/core-js/symbol/to-primitive.js
deleted file mode 100644
index e2b9ada..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/symbol/to-primitive.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/symbol/to-primitive");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/symbol/to-string-tag.js b/node_modules/@babel/runtime-corejs3/core-js/symbol/to-string-tag.js
deleted file mode 100644
index 238bb98..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/symbol/to-string-tag.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/symbol/to-string-tag");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/symbol/unscopables.js b/node_modules/@babel/runtime-corejs3/core-js/symbol/unscopables.js
deleted file mode 100644
index 9fe1283..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/symbol/unscopables.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/symbol/unscopables");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/url-search-params.js b/node_modules/@babel/runtime-corejs3/core-js/url-search-params.js
deleted file mode 100644
index 3fe02ce..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/url-search-params.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/url-search-params");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/url.js b/node_modules/@babel/runtime-corejs3/core-js/url.js
deleted file mode 100644
index 4b3e1f1..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/url.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/url");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/weak-map.js b/node_modules/@babel/runtime-corejs3/core-js/weak-map.js
deleted file mode 100644
index a8e96be..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/weak-map.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/weak-map");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/core-js/weak-set.js b/node_modules/@babel/runtime-corejs3/core-js/weak-set.js
deleted file mode 100644
index f512041..0000000
--- a/node_modules/@babel/runtime-corejs3/core-js/weak-set.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("core-js-pure/features/weak-set");
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/AsyncGenerator.js b/node_modules/@babel/runtime-corejs3/helpers/AsyncGenerator.js
deleted file mode 100644
index 46c0358..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/AsyncGenerator.js
+++ /dev/null
@@ -1,107 +0,0 @@
-var _Symbol$asyncIterator = require("../core-js/symbol/async-iterator");
-
-var _Symbol = require("../core-js/symbol");
-
-var _Promise = require("../core-js/promise");
-
-var AwaitValue = require("./AwaitValue");
-
-function AsyncGenerator(gen) {
- var front, back;
-
- function send(key, arg) {
- return new _Promise(function (resolve, reject) {
- var request = {
- key: key,
- arg: arg,
- resolve: resolve,
- reject: reject,
- next: null
- };
-
- if (back) {
- back = back.next = request;
- } else {
- front = back = request;
- resume(key, arg);
- }
- });
- }
-
- function resume(key, arg) {
- try {
- var result = gen[key](arg);
- var value = result.value;
- var wrappedAwait = value instanceof AwaitValue;
-
- _Promise.resolve(wrappedAwait ? value.wrapped : value).then(function (arg) {
- if (wrappedAwait) {
- resume(key === "return" ? "return" : "next", arg);
- return;
- }
-
- settle(result.done ? "return" : "normal", arg);
- }, function (err) {
- resume("throw", err);
- });
- } catch (err) {
- settle("throw", err);
- }
- }
-
- function settle(type, value) {
- switch (type) {
- case "return":
- front.resolve({
- value: value,
- done: true
- });
- break;
-
- case "throw":
- front.reject(value);
- break;
-
- default:
- front.resolve({
- value: value,
- done: false
- });
- break;
- }
-
- front = front.next;
-
- if (front) {
- resume(front.key, front.arg);
- } else {
- back = null;
- }
- }
-
- this._invoke = send;
-
- if (typeof gen["return"] !== "function") {
- this["return"] = undefined;
- }
-}
-
-if (typeof _Symbol === "function" && _Symbol$asyncIterator) {
- AsyncGenerator.prototype[_Symbol$asyncIterator] = function () {
- return this;
- };
-}
-
-AsyncGenerator.prototype.next = function (arg) {
- return this._invoke("next", arg);
-};
-
-AsyncGenerator.prototype["throw"] = function (arg) {
- return this._invoke("throw", arg);
-};
-
-AsyncGenerator.prototype["return"] = function (arg) {
- return this._invoke("return", arg);
-};
-
-module.exports = AsyncGenerator;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/AwaitValue.js b/node_modules/@babel/runtime-corejs3/helpers/AwaitValue.js
deleted file mode 100644
index f9f4184..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/AwaitValue.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _AwaitValue(value) {
- this.wrapped = value;
-}
-
-module.exports = _AwaitValue;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/applyDecoratedDescriptor.js b/node_modules/@babel/runtime-corejs3/helpers/applyDecoratedDescriptor.js
deleted file mode 100644
index 7558588..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/applyDecoratedDescriptor.js
+++ /dev/null
@@ -1,47 +0,0 @@
-var _Object$defineProperty = require("../core-js/object/define-property");
-
-var _sliceInstanceProperty = require("../core-js/instance/slice");
-
-var _reverseInstanceProperty = require("../core-js/instance/reverse");
-
-var _reduceInstanceProperty = require("../core-js/instance/reduce");
-
-var _Object$keys = require("../core-js/object/keys");
-
-var _forEachInstanceProperty = require("../core-js/instance/for-each");
-
-function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
- var _context, _context2, _context3;
-
- var desc = {};
-
- _forEachInstanceProperty(_context = _Object$keys(descriptor)).call(_context, function (key) {
- desc[key] = descriptor[key];
- });
-
- desc.enumerable = !!desc.enumerable;
- desc.configurable = !!desc.configurable;
-
- if ('value' in desc || desc.initializer) {
- desc.writable = true;
- }
-
- desc = _reduceInstanceProperty(_context2 = _reverseInstanceProperty(_context3 = _sliceInstanceProperty(decorators).call(decorators)).call(_context3)).call(_context2, function (desc, decorator) {
- return decorator(target, property, desc) || desc;
- }, desc);
-
- if (context && desc.initializer !== void 0) {
- desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
- desc.initializer = undefined;
- }
-
- if (desc.initializer === void 0) {
- _Object$defineProperty(target, property, desc);
-
- desc = null;
- }
-
- return desc;
-}
-
-module.exports = _applyDecoratedDescriptor;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/arrayWithHoles.js b/node_modules/@babel/runtime-corejs3/helpers/arrayWithHoles.js
deleted file mode 100644
index 4522bd5..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/arrayWithHoles.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var _Array$isArray = require("../core-js/array/is-array");
-
-function _arrayWithHoles(arr) {
- if (_Array$isArray(arr)) return arr;
-}
-
-module.exports = _arrayWithHoles;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/arrayWithoutHoles.js b/node_modules/@babel/runtime-corejs3/helpers/arrayWithoutHoles.js
deleted file mode 100644
index 13f124c..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/arrayWithoutHoles.js
+++ /dev/null
@@ -1,13 +0,0 @@
-var _Array$isArray = require("../core-js/array/is-array");
-
-function _arrayWithoutHoles(arr) {
- if (_Array$isArray(arr)) {
- for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
- arr2[i] = arr[i];
- }
-
- return arr2;
- }
-}
-
-module.exports = _arrayWithoutHoles;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/assertThisInitialized.js b/node_modules/@babel/runtime-corejs3/helpers/assertThisInitialized.js
deleted file mode 100644
index 98d2949..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/assertThisInitialized.js
+++ /dev/null
@@ -1,9 +0,0 @@
-function _assertThisInitialized(self) {
- if (self === void 0) {
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- }
-
- return self;
-}
-
-module.exports = _assertThisInitialized;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/asyncGeneratorDelegate.js b/node_modules/@babel/runtime-corejs3/helpers/asyncGeneratorDelegate.js
deleted file mode 100644
index 839f973..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/asyncGeneratorDelegate.js
+++ /dev/null
@@ -1,64 +0,0 @@
-var _Symbol$iterator = require("../core-js/symbol/iterator");
-
-var _Symbol = require("../core-js/symbol");
-
-var _Promise = require("../core-js/promise");
-
-function _asyncGeneratorDelegate(inner, awaitWrap) {
- var iter = {},
- waiting = false;
-
- function pump(key, value) {
- waiting = true;
- value = new _Promise(function (resolve) {
- resolve(inner[key](value));
- });
- return {
- done: false,
- value: awaitWrap(value)
- };
- }
-
- ;
-
- if (typeof _Symbol === "function" && _Symbol$iterator) {
- iter[_Symbol$iterator] = function () {
- return this;
- };
- }
-
- iter.next = function (value) {
- if (waiting) {
- waiting = false;
- return value;
- }
-
- return pump("next", value);
- };
-
- if (typeof inner["throw"] === "function") {
- iter["throw"] = function (value) {
- if (waiting) {
- waiting = false;
- throw value;
- }
-
- return pump("throw", value);
- };
- }
-
- if (typeof inner["return"] === "function") {
- iter["return"] = function (value) {
- if (waiting) {
- waiting = false;
- return value;
- }
-
- return pump("return", value);
- };
- }
-
- return iter;
-}
-
-module.exports = _asyncGeneratorDelegate;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/asyncIterator.js b/node_modules/@babel/runtime-corejs3/helpers/asyncIterator.js
deleted file mode 100644
index 1366cc6..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/asyncIterator.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var _getIteratorMethod = require("../core-js/get-iterator-method");
-
-var _Symbol$iterator = require("../core-js/symbol/iterator");
-
-var _Symbol$asyncIterator = require("../core-js/symbol/async-iterator");
-
-var _Symbol = require("../core-js/symbol");
-
-function _asyncIterator(iterable) {
- var method;
-
- if (typeof _Symbol !== "undefined") {
- if (_Symbol$asyncIterator) {
- method = iterable[_Symbol$asyncIterator];
- if (method != null) return method.call(iterable);
- }
-
- if (_Symbol$iterator) {
- method = _getIteratorMethod(iterable);
- if (method != null) return method.call(iterable);
- }
- }
-
- throw new TypeError("Object is not async iterable");
-}
-
-module.exports = _asyncIterator;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js b/node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js
deleted file mode 100644
index f15531d..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var _Promise = require("../core-js/promise");
-
-function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
- try {
- var info = gen[key](arg);
- var value = info.value;
- } catch (error) {
- reject(error);
- return;
- }
-
- if (info.done) {
- resolve(value);
- } else {
- _Promise.resolve(value).then(_next, _throw);
- }
-}
-
-function _asyncToGenerator(fn) {
- return function () {
- var self = this,
- args = arguments;
- return new _Promise(function (resolve, reject) {
- var gen = fn.apply(self, args);
-
- function _next(value) {
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
- }
-
- function _throw(err) {
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
- }
-
- _next(undefined);
- });
- };
-}
-
-module.exports = _asyncToGenerator;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/awaitAsyncGenerator.js b/node_modules/@babel/runtime-corejs3/helpers/awaitAsyncGenerator.js
deleted file mode 100644
index 59f797a..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/awaitAsyncGenerator.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var AwaitValue = require("./AwaitValue");
-
-function _awaitAsyncGenerator(value) {
- return new AwaitValue(value);
-}
-
-module.exports = _awaitAsyncGenerator;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/classCallCheck.js b/node_modules/@babel/runtime-corejs3/helpers/classCallCheck.js
deleted file mode 100644
index f389f2e..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/classCallCheck.js
+++ /dev/null
@@ -1,7 +0,0 @@
-function _classCallCheck(instance, Constructor) {
- if (!(instance instanceof Constructor)) {
- throw new TypeError("Cannot call a class as a function");
- }
-}
-
-module.exports = _classCallCheck;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/classNameTDZError.js b/node_modules/@babel/runtime-corejs3/helpers/classNameTDZError.js
deleted file mode 100644
index 8c1bdf5..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/classNameTDZError.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _classNameTDZError(name) {
- throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys.");
-}
-
-module.exports = _classNameTDZError;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/classPrivateFieldDestructureSet.js b/node_modules/@babel/runtime-corejs3/helpers/classPrivateFieldDestructureSet.js
deleted file mode 100644
index fab9105..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/classPrivateFieldDestructureSet.js
+++ /dev/null
@@ -1,28 +0,0 @@
-function _classPrivateFieldDestructureSet(receiver, privateMap) {
- if (!privateMap.has(receiver)) {
- throw new TypeError("attempted to set private field on non-instance");
- }
-
- var descriptor = privateMap.get(receiver);
-
- if (descriptor.set) {
- if (!("__destrObj" in descriptor)) {
- descriptor.__destrObj = {
- set value(v) {
- descriptor.set.call(receiver, v);
- }
-
- };
- }
-
- return descriptor.__destrObj;
- } else {
- if (!descriptor.writable) {
- throw new TypeError("attempted to set read only private field");
- }
-
- return descriptor;
- }
-}
-
-module.exports = _classPrivateFieldDestructureSet;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/classPrivateFieldGet.js b/node_modules/@babel/runtime-corejs3/helpers/classPrivateFieldGet.js
deleted file mode 100644
index 106c3cd..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/classPrivateFieldGet.js
+++ /dev/null
@@ -1,15 +0,0 @@
-function _classPrivateFieldGet(receiver, privateMap) {
- var descriptor = privateMap.get(receiver);
-
- if (!descriptor) {
- throw new TypeError("attempted to get private field on non-instance");
- }
-
- if (descriptor.get) {
- return descriptor.get.call(receiver);
- }
-
- return descriptor.value;
-}
-
-module.exports = _classPrivateFieldGet;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/classPrivateFieldLooseBase.js b/node_modules/@babel/runtime-corejs3/helpers/classPrivateFieldLooseBase.js
deleted file mode 100644
index 64ed79d..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/classPrivateFieldLooseBase.js
+++ /dev/null
@@ -1,9 +0,0 @@
-function _classPrivateFieldBase(receiver, privateKey) {
- if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {
- throw new TypeError("attempted to use private field on non-instance");
- }
-
- return receiver;
-}
-
-module.exports = _classPrivateFieldBase;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/classPrivateFieldLooseKey.js b/node_modules/@babel/runtime-corejs3/helpers/classPrivateFieldLooseKey.js
deleted file mode 100644
index a1a6417..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/classPrivateFieldLooseKey.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var id = 0;
-
-function _classPrivateFieldKey(name) {
- return "__private_" + id++ + "_" + name;
-}
-
-module.exports = _classPrivateFieldKey;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/classPrivateFieldSet.js b/node_modules/@babel/runtime-corejs3/helpers/classPrivateFieldSet.js
deleted file mode 100644
index c92f97a..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/classPrivateFieldSet.js
+++ /dev/null
@@ -1,21 +0,0 @@
-function _classPrivateFieldSet(receiver, privateMap, value) {
- var descriptor = privateMap.get(receiver);
-
- if (!descriptor) {
- throw new TypeError("attempted to set private field on non-instance");
- }
-
- if (descriptor.set) {
- descriptor.set.call(receiver, value);
- } else {
- if (!descriptor.writable) {
- throw new TypeError("attempted to set read only private field");
- }
-
- descriptor.value = value;
- }
-
- return value;
-}
-
-module.exports = _classPrivateFieldSet;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/classPrivateMethodGet.js b/node_modules/@babel/runtime-corejs3/helpers/classPrivateMethodGet.js
deleted file mode 100644
index a3432b9..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/classPrivateMethodGet.js
+++ /dev/null
@@ -1,9 +0,0 @@
-function _classPrivateMethodGet(receiver, privateSet, fn) {
- if (!privateSet.has(receiver)) {
- throw new TypeError("attempted to get private field on non-instance");
- }
-
- return fn;
-}
-
-module.exports = _classPrivateMethodGet;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/classPrivateMethodSet.js b/node_modules/@babel/runtime-corejs3/helpers/classPrivateMethodSet.js
deleted file mode 100644
index 3847284..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/classPrivateMethodSet.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _classPrivateMethodSet() {
- throw new TypeError("attempted to reassign private method");
-}
-
-module.exports = _classPrivateMethodSet;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/classStaticPrivateFieldSpecGet.js b/node_modules/@babel/runtime-corejs3/helpers/classStaticPrivateFieldSpecGet.js
deleted file mode 100644
index c2b6766..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/classStaticPrivateFieldSpecGet.js
+++ /dev/null
@@ -1,13 +0,0 @@
-function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
- if (receiver !== classConstructor) {
- throw new TypeError("Private static access of wrong provenance");
- }
-
- if (descriptor.get) {
- return descriptor.get.call(receiver);
- }
-
- return descriptor.value;
-}
-
-module.exports = _classStaticPrivateFieldSpecGet;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/classStaticPrivateFieldSpecSet.js b/node_modules/@babel/runtime-corejs3/helpers/classStaticPrivateFieldSpecSet.js
deleted file mode 100644
index 8799fbb..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/classStaticPrivateFieldSpecSet.js
+++ /dev/null
@@ -1,19 +0,0 @@
-function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
- if (receiver !== classConstructor) {
- throw new TypeError("Private static access of wrong provenance");
- }
-
- if (descriptor.set) {
- descriptor.set.call(receiver, value);
- } else {
- if (!descriptor.writable) {
- throw new TypeError("attempted to set read only private field");
- }
-
- descriptor.value = value;
- }
-
- return value;
-}
-
-module.exports = _classStaticPrivateFieldSpecSet;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/classStaticPrivateMethodGet.js b/node_modules/@babel/runtime-corejs3/helpers/classStaticPrivateMethodGet.js
deleted file mode 100644
index f9b0d00..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/classStaticPrivateMethodGet.js
+++ /dev/null
@@ -1,9 +0,0 @@
-function _classStaticPrivateMethodGet(receiver, classConstructor, method) {
- if (receiver !== classConstructor) {
- throw new TypeError("Private static access of wrong provenance");
- }
-
- return method;
-}
-
-module.exports = _classStaticPrivateMethodGet;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/classStaticPrivateMethodSet.js b/node_modules/@babel/runtime-corejs3/helpers/classStaticPrivateMethodSet.js
deleted file mode 100644
index 89042da..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/classStaticPrivateMethodSet.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _classStaticPrivateMethodSet() {
- throw new TypeError("attempted to set read only static private field");
-}
-
-module.exports = _classStaticPrivateMethodSet;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/construct.js b/node_modules/@babel/runtime-corejs3/helpers/construct.js
deleted file mode 100644
index 1869f24..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/construct.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var _bindInstanceProperty = require("../core-js/instance/bind");
-
-var _Reflect$construct = require("../core-js/reflect/construct");
-
-var setPrototypeOf = require("./setPrototypeOf");
-
-function isNativeReflectConstruct() {
- if (typeof Reflect === "undefined" || !_Reflect$construct) return false;
- if (_Reflect$construct.sham) return false;
- if (typeof Proxy === "function") return true;
-
- try {
- Date.prototype.toString.call(_Reflect$construct(Date, [], function () {}));
- return true;
- } catch (e) {
- return false;
- }
-}
-
-function _construct(Parent, args, Class) {
- if (isNativeReflectConstruct()) {
- module.exports = _construct = _Reflect$construct;
- } else {
- module.exports = _construct = function _construct(Parent, args, Class) {
- var a = [null];
- a.push.apply(a, args);
-
- var Constructor = _bindInstanceProperty(Function).apply(Parent, a);
-
- var instance = new Constructor();
- if (Class) setPrototypeOf(instance, Class.prototype);
- return instance;
- };
- }
-
- return _construct.apply(null, arguments);
-}
-
-module.exports = _construct;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/createClass.js b/node_modules/@babel/runtime-corejs3/helpers/createClass.js
deleted file mode 100644
index c04c910..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/createClass.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var _Object$defineProperty = require("../core-js/object/define-property");
-
-function _defineProperties(target, props) {
- for (var i = 0; i < props.length; i++) {
- var descriptor = props[i];
- descriptor.enumerable = descriptor.enumerable || false;
- descriptor.configurable = true;
- if ("value" in descriptor) descriptor.writable = true;
-
- _Object$defineProperty(target, descriptor.key, descriptor);
- }
-}
-
-function _createClass(Constructor, protoProps, staticProps) {
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
- if (staticProps) _defineProperties(Constructor, staticProps);
- return Constructor;
-}
-
-module.exports = _createClass;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/decorate.js b/node_modules/@babel/runtime-corejs3/helpers/decorate.js
deleted file mode 100644
index 1b98c4e..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/decorate.js
+++ /dev/null
@@ -1,433 +0,0 @@
-var _findInstanceProperty = require("../core-js/instance/find");
-
-var _Object$assign = require("../core-js/object/assign");
-
-var _Symbol$toStringTag = require("../core-js/symbol/to-string-tag");
-
-var _spliceInstanceProperty = require("../core-js/instance/splice");
-
-var _indexOfInstanceProperty = require("../core-js/instance/index-of");
-
-var _Object$defineProperty = require("../core-js/object/define-property");
-
-var _forEachInstanceProperty = require("../core-js/instance/for-each");
-
-var _mapInstanceProperty = require("../core-js/instance/map");
-
-var toArray = require("./toArray");
-
-var toPropertyKey = require("./toPropertyKey");
-
-function _decorate(decorators, factory, superClass, mixins) {
- var _context;
-
- var api = _getDecoratorsApi();
-
- if (mixins) {
- for (var i = 0; i < mixins.length; i++) {
- api = mixins[i](api);
- }
- }
-
- var r = factory(function initialize(O) {
- api.initializeInstanceElements(O, decorated.elements);
- }, superClass);
- var decorated = api.decorateClass(_coalesceClassElements(_mapInstanceProperty(_context = r.d).call(_context, _createElementDescriptor)), decorators);
- api.initializeClassElements(r.F, decorated.elements);
- return api.runClassFinishers(r.F, decorated.finishers);
-}
-
-function _getDecoratorsApi() {
- _getDecoratorsApi = function _getDecoratorsApi() {
- return api;
- };
-
- var api = {
- elementsDefinitionOrder: [["method"], ["field"]],
- initializeInstanceElements: function initializeInstanceElements(O, elements) {
- var _context2;
-
- _forEachInstanceProperty(_context2 = ["method", "field"]).call(_context2, function (kind) {
- _forEachInstanceProperty(elements).call(elements, function (element) {
- if (element.kind === kind && element.placement === "own") {
- this.defineClassElement(O, element);
- }
- }, this);
- }, this);
- },
- initializeClassElements: function initializeClassElements(F, elements) {
- var _context3;
-
- var proto = F.prototype;
-
- _forEachInstanceProperty(_context3 = ["method", "field"]).call(_context3, function (kind) {
- _forEachInstanceProperty(elements).call(elements, function (element) {
- var placement = element.placement;
-
- if (element.kind === kind && (placement === "static" || placement === "prototype")) {
- var receiver = placement === "static" ? F : proto;
- this.defineClassElement(receiver, element);
- }
- }, this);
- }, this);
- },
- defineClassElement: function defineClassElement(receiver, element) {
- var descriptor = element.descriptor;
-
- if (element.kind === "field") {
- var initializer = element.initializer;
- descriptor = {
- enumerable: descriptor.enumerable,
- writable: descriptor.writable,
- configurable: descriptor.configurable,
- value: initializer === void 0 ? void 0 : initializer.call(receiver)
- };
- }
-
- _Object$defineProperty(receiver, element.key, descriptor);
- },
- decorateClass: function decorateClass(elements, decorators) {
- var newElements = [];
- var finishers = [];
- var placements = {
- "static": [],
- prototype: [],
- own: []
- };
-
- _forEachInstanceProperty(elements).call(elements, function (element) {
- this.addElementPlacement(element, placements);
- }, this);
-
- _forEachInstanceProperty(elements).call(elements, function (element) {
- if (!_hasDecorators(element)) return newElements.push(element);
- var elementFinishersExtras = this.decorateElement(element, placements);
- newElements.push(elementFinishersExtras.element);
- newElements.push.apply(newElements, elementFinishersExtras.extras);
- finishers.push.apply(finishers, elementFinishersExtras.finishers);
- }, this);
-
- if (!decorators) {
- return {
- elements: newElements,
- finishers: finishers
- };
- }
-
- var result = this.decorateConstructor(newElements, decorators);
- finishers.push.apply(finishers, result.finishers);
- result.finishers = finishers;
- return result;
- },
- addElementPlacement: function addElementPlacement(element, placements, silent) {
- var keys = placements[element.placement];
-
- if (!silent && _indexOfInstanceProperty(keys).call(keys, element.key) !== -1) {
- throw new TypeError("Duplicated element (" + element.key + ")");
- }
-
- keys.push(element.key);
- },
- decorateElement: function decorateElement(element, placements) {
- var extras = [];
- var finishers = [];
-
- for (var decorators = element.decorators, i = decorators.length - 1; i >= 0; i--) {
- var keys = placements[element.placement];
-
- _spliceInstanceProperty(keys).call(keys, _indexOfInstanceProperty(keys).call(keys, element.key), 1);
-
- var elementObject = this.fromElementDescriptor(element);
- var elementFinisherExtras = this.toElementFinisherExtras((0, decorators[i])(elementObject) || elementObject);
- element = elementFinisherExtras.element;
- this.addElementPlacement(element, placements);
-
- if (elementFinisherExtras.finisher) {
- finishers.push(elementFinisherExtras.finisher);
- }
-
- var newExtras = elementFinisherExtras.extras;
-
- if (newExtras) {
- for (var j = 0; j < newExtras.length; j++) {
- this.addElementPlacement(newExtras[j], placements);
- }
-
- extras.push.apply(extras, newExtras);
- }
- }
-
- return {
- element: element,
- finishers: finishers,
- extras: extras
- };
- },
- decorateConstructor: function decorateConstructor(elements, decorators) {
- var finishers = [];
-
- for (var i = decorators.length - 1; i >= 0; i--) {
- var obj = this.fromClassDescriptor(elements);
- var elementsAndFinisher = this.toClassDescriptor((0, decorators[i])(obj) || obj);
-
- if (elementsAndFinisher.finisher !== undefined) {
- finishers.push(elementsAndFinisher.finisher);
- }
-
- if (elementsAndFinisher.elements !== undefined) {
- elements = elementsAndFinisher.elements;
-
- for (var j = 0; j < elements.length - 1; j++) {
- for (var k = j + 1; k < elements.length; k++) {
- if (elements[j].key === elements[k].key && elements[j].placement === elements[k].placement) {
- throw new TypeError("Duplicated element (" + elements[j].key + ")");
- }
- }
- }
- }
- }
-
- return {
- elements: elements,
- finishers: finishers
- };
- },
- fromElementDescriptor: function fromElementDescriptor(element) {
- var obj = {
- kind: element.kind,
- key: element.key,
- placement: element.placement,
- descriptor: element.descriptor
- };
- var desc = {
- value: "Descriptor",
- configurable: true
- };
-
- _Object$defineProperty(obj, _Symbol$toStringTag, desc);
-
- if (element.kind === "field") obj.initializer = element.initializer;
- return obj;
- },
- toElementDescriptors: function toElementDescriptors(elementObjects) {
- var _context4;
-
- if (elementObjects === undefined) return;
- return _mapInstanceProperty(_context4 = toArray(elementObjects)).call(_context4, function (elementObject) {
- var element = this.toElementDescriptor(elementObject);
- this.disallowProperty(elementObject, "finisher", "An element descriptor");
- this.disallowProperty(elementObject, "extras", "An element descriptor");
- return element;
- }, this);
- },
- toElementDescriptor: function toElementDescriptor(elementObject) {
- var kind = String(elementObject.kind);
-
- if (kind !== "method" && kind !== "field") {
- throw new TypeError('An element descriptor\'s .kind property must be either "method" or' + ' "field", but a decorator created an element descriptor with' + ' .kind "' + kind + '"');
- }
-
- var key = toPropertyKey(elementObject.key);
- var placement = String(elementObject.placement);
-
- if (placement !== "static" && placement !== "prototype" && placement !== "own") {
- throw new TypeError('An element descriptor\'s .placement property must be one of "static",' + ' "prototype" or "own", but a decorator created an element descriptor' + ' with .placement "' + placement + '"');
- }
-
- var descriptor = elementObject.descriptor;
- this.disallowProperty(elementObject, "elements", "An element descriptor");
- var element = {
- kind: kind,
- key: key,
- placement: placement,
- descriptor: _Object$assign({}, descriptor)
- };
-
- if (kind !== "field") {
- this.disallowProperty(elementObject, "initializer", "A method descriptor");
- } else {
- this.disallowProperty(descriptor, "get", "The property descriptor of a field descriptor");
- this.disallowProperty(descriptor, "set", "The property descriptor of a field descriptor");
- this.disallowProperty(descriptor, "value", "The property descriptor of a field descriptor");
- element.initializer = elementObject.initializer;
- }
-
- return element;
- },
- toElementFinisherExtras: function toElementFinisherExtras(elementObject) {
- var element = this.toElementDescriptor(elementObject);
-
- var finisher = _optionalCallableProperty(elementObject, "finisher");
-
- var extras = this.toElementDescriptors(elementObject.extras);
- return {
- element: element,
- finisher: finisher,
- extras: extras
- };
- },
- fromClassDescriptor: function fromClassDescriptor(elements) {
- var obj = {
- kind: "class",
- elements: _mapInstanceProperty(elements).call(elements, this.fromElementDescriptor, this)
- };
- var desc = {
- value: "Descriptor",
- configurable: true
- };
-
- _Object$defineProperty(obj, _Symbol$toStringTag, desc);
-
- return obj;
- },
- toClassDescriptor: function toClassDescriptor(obj) {
- var kind = String(obj.kind);
-
- if (kind !== "class") {
- throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator' + ' created a class descriptor with .kind "' + kind + '"');
- }
-
- this.disallowProperty(obj, "key", "A class descriptor");
- this.disallowProperty(obj, "placement", "A class descriptor");
- this.disallowProperty(obj, "descriptor", "A class descriptor");
- this.disallowProperty(obj, "initializer", "A class descriptor");
- this.disallowProperty(obj, "extras", "A class descriptor");
-
- var finisher = _optionalCallableProperty(obj, "finisher");
-
- var elements = this.toElementDescriptors(obj.elements);
- return {
- elements: elements,
- finisher: finisher
- };
- },
- runClassFinishers: function runClassFinishers(constructor, finishers) {
- for (var i = 0; i < finishers.length; i++) {
- var newConstructor = (0, finishers[i])(constructor);
-
- if (newConstructor !== undefined) {
- if (typeof newConstructor !== "function") {
- throw new TypeError("Finishers must return a constructor.");
- }
-
- constructor = newConstructor;
- }
- }
-
- return constructor;
- },
- disallowProperty: function disallowProperty(obj, name, objectType) {
- if (obj[name] !== undefined) {
- throw new TypeError(objectType + " can't have a ." + name + " property.");
- }
- }
- };
- return api;
-}
-
-function _createElementDescriptor(def) {
- var key = toPropertyKey(def.key);
- var descriptor;
-
- if (def.kind === "method") {
- descriptor = {
- value: def.value,
- writable: true,
- configurable: true,
- enumerable: false
- };
- } else if (def.kind === "get") {
- descriptor = {
- get: def.value,
- configurable: true,
- enumerable: false
- };
- } else if (def.kind === "set") {
- descriptor = {
- set: def.value,
- configurable: true,
- enumerable: false
- };
- } else if (def.kind === "field") {
- descriptor = {
- configurable: true,
- writable: true,
- enumerable: true
- };
- }
-
- var element = {
- kind: def.kind === "field" ? "field" : "method",
- key: key,
- placement: def["static"] ? "static" : def.kind === "field" ? "own" : "prototype",
- descriptor: descriptor
- };
- if (def.decorators) element.decorators = def.decorators;
- if (def.kind === "field") element.initializer = def.value;
- return element;
-}
-
-function _coalesceGetterSetter(element, other) {
- if (element.descriptor.get !== undefined) {
- other.descriptor.get = element.descriptor.get;
- } else {
- other.descriptor.set = element.descriptor.set;
- }
-}
-
-function _coalesceClassElements(elements) {
- var newElements = [];
-
- var isSameElement = function isSameElement(other) {
- return other.kind === "method" && other.key === element.key && other.placement === element.placement;
- };
-
- for (var i = 0; i < elements.length; i++) {
- var element = elements[i];
- var other;
-
- if (element.kind === "method" && (other = _findInstanceProperty(newElements).call(newElements, isSameElement))) {
- if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor)) {
- if (_hasDecorators(element) || _hasDecorators(other)) {
- throw new ReferenceError("Duplicated methods (" + element.key + ") can't be decorated.");
- }
-
- other.descriptor = element.descriptor;
- } else {
- if (_hasDecorators(element)) {
- if (_hasDecorators(other)) {
- throw new ReferenceError("Decorators can't be placed on different accessors with for " + "the same property (" + element.key + ").");
- }
-
- other.decorators = element.decorators;
- }
-
- _coalesceGetterSetter(element, other);
- }
- } else {
- newElements.push(element);
- }
- }
-
- return newElements;
-}
-
-function _hasDecorators(element) {
- return element.decorators && element.decorators.length;
-}
-
-function _isDataDescriptor(desc) {
- return desc !== undefined && !(desc.value === undefined && desc.writable === undefined);
-}
-
-function _optionalCallableProperty(obj, name) {
- var value = obj[name];
-
- if (value !== undefined && typeof value !== "function") {
- throw new TypeError("Expected '" + name + "' to be a function");
- }
-
- return value;
-}
-
-module.exports = _decorate;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/defaults.js b/node_modules/@babel/runtime-corejs3/helpers/defaults.js
deleted file mode 100644
index 77c4b85..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/defaults.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var _Object$defineProperty = require("../core-js/object/define-property");
-
-var _Object$getOwnPropertyDescriptor = require("../core-js/object/get-own-property-descriptor");
-
-var _Object$getOwnPropertyNames = require("../core-js/object/get-own-property-names");
-
-function _defaults(obj, defaults) {
- var keys = _Object$getOwnPropertyNames(defaults);
-
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
-
- var value = _Object$getOwnPropertyDescriptor(defaults, key);
-
- if (value && value.configurable && obj[key] === undefined) {
- _Object$defineProperty(obj, key, value);
- }
- }
-
- return obj;
-}
-
-module.exports = _defaults;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/defineEnumerableProperties.js b/node_modules/@babel/runtime-corejs3/helpers/defineEnumerableProperties.js
deleted file mode 100644
index 0ef3a34..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/defineEnumerableProperties.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var _Object$getOwnPropertySymbols = require("../core-js/object/get-own-property-symbols");
-
-var _Object$defineProperty = require("../core-js/object/define-property");
-
-function _defineEnumerableProperties(obj, descs) {
- for (var key in descs) {
- var desc = descs[key];
- desc.configurable = desc.enumerable = true;
- if ("value" in desc) desc.writable = true;
-
- _Object$defineProperty(obj, key, desc);
- }
-
- if (_Object$getOwnPropertySymbols) {
- var objectSymbols = _Object$getOwnPropertySymbols(descs);
-
- for (var i = 0; i < objectSymbols.length; i++) {
- var sym = objectSymbols[i];
- var desc = descs[sym];
- desc.configurable = desc.enumerable = true;
- if ("value" in desc) desc.writable = true;
-
- _Object$defineProperty(obj, sym, desc);
- }
- }
-
- return obj;
-}
-
-module.exports = _defineEnumerableProperties;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/defineProperty.js b/node_modules/@babel/runtime-corejs3/helpers/defineProperty.js
deleted file mode 100644
index b08c5e8..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/defineProperty.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var _Object$defineProperty = require("../core-js/object/define-property");
-
-function _defineProperty(obj, key, value) {
- if (key in obj) {
- _Object$defineProperty(obj, key, {
- value: value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
-
- return obj;
-}
-
-module.exports = _defineProperty;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/AsyncGenerator.js b/node_modules/@babel/runtime-corejs3/helpers/esm/AsyncGenerator.js
deleted file mode 100644
index d37824f..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/AsyncGenerator.js
+++ /dev/null
@@ -1,101 +0,0 @@
-import _Symbol$asyncIterator from "../../core-js/symbol/async-iterator";
-import _Symbol from "../../core-js/symbol";
-import _Promise from "../../core-js/promise";
-import AwaitValue from "./AwaitValue";
-export default function AsyncGenerator(gen) {
- var front, back;
-
- function send(key, arg) {
- return new _Promise(function (resolve, reject) {
- var request = {
- key: key,
- arg: arg,
- resolve: resolve,
- reject: reject,
- next: null
- };
-
- if (back) {
- back = back.next = request;
- } else {
- front = back = request;
- resume(key, arg);
- }
- });
- }
-
- function resume(key, arg) {
- try {
- var result = gen[key](arg);
- var value = result.value;
- var wrappedAwait = value instanceof AwaitValue;
-
- _Promise.resolve(wrappedAwait ? value.wrapped : value).then(function (arg) {
- if (wrappedAwait) {
- resume(key === "return" ? "return" : "next", arg);
- return;
- }
-
- settle(result.done ? "return" : "normal", arg);
- }, function (err) {
- resume("throw", err);
- });
- } catch (err) {
- settle("throw", err);
- }
- }
-
- function settle(type, value) {
- switch (type) {
- case "return":
- front.resolve({
- value: value,
- done: true
- });
- break;
-
- case "throw":
- front.reject(value);
- break;
-
- default:
- front.resolve({
- value: value,
- done: false
- });
- break;
- }
-
- front = front.next;
-
- if (front) {
- resume(front.key, front.arg);
- } else {
- back = null;
- }
- }
-
- this._invoke = send;
-
- if (typeof gen["return"] !== "function") {
- this["return"] = undefined;
- }
-}
-
-if (typeof _Symbol === "function" && _Symbol$asyncIterator) {
- AsyncGenerator.prototype[_Symbol$asyncIterator] = function () {
- return this;
- };
-}
-
-AsyncGenerator.prototype.next = function (arg) {
- return this._invoke("next", arg);
-};
-
-AsyncGenerator.prototype["throw"] = function (arg) {
- return this._invoke("throw", arg);
-};
-
-AsyncGenerator.prototype["return"] = function (arg) {
- return this._invoke("return", arg);
-};
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/AwaitValue.js b/node_modules/@babel/runtime-corejs3/helpers/esm/AwaitValue.js
deleted file mode 100644
index 5237e18..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/AwaitValue.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _AwaitValue(value) {
- this.wrapped = value;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/applyDecoratedDescriptor.js b/node_modules/@babel/runtime-corejs3/helpers/esm/applyDecoratedDescriptor.js
deleted file mode 100644
index 52f9e4e..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/applyDecoratedDescriptor.js
+++ /dev/null
@@ -1,39 +0,0 @@
-import _Object$defineProperty from "../../core-js/object/define-property";
-import _sliceInstanceProperty from "../../core-js/instance/slice";
-import _reverseInstanceProperty from "../../core-js/instance/reverse";
-import _reduceInstanceProperty from "../../core-js/instance/reduce";
-import _Object$keys from "../../core-js/object/keys";
-import _forEachInstanceProperty from "../../core-js/instance/for-each";
-export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
- var _context, _context2, _context3;
-
- var desc = {};
-
- _forEachInstanceProperty(_context = _Object$keys(descriptor)).call(_context, function (key) {
- desc[key] = descriptor[key];
- });
-
- desc.enumerable = !!desc.enumerable;
- desc.configurable = !!desc.configurable;
-
- if ('value' in desc || desc.initializer) {
- desc.writable = true;
- }
-
- desc = _reduceInstanceProperty(_context2 = _reverseInstanceProperty(_context3 = _sliceInstanceProperty(decorators).call(decorators)).call(_context3)).call(_context2, function (desc, decorator) {
- return decorator(target, property, desc) || desc;
- }, desc);
-
- if (context && desc.initializer !== void 0) {
- desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
- desc.initializer = undefined;
- }
-
- if (desc.initializer === void 0) {
- _Object$defineProperty(target, property, desc);
-
- desc = null;
- }
-
- return desc;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/arrayWithHoles.js b/node_modules/@babel/runtime-corejs3/helpers/esm/arrayWithHoles.js
deleted file mode 100644
index 2c3a087..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/arrayWithHoles.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import _Array$isArray from "../../core-js/array/is-array";
-export default function _arrayWithHoles(arr) {
- if (_Array$isArray(arr)) return arr;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/arrayWithoutHoles.js b/node_modules/@babel/runtime-corejs3/helpers/esm/arrayWithoutHoles.js
deleted file mode 100644
index 5f86abc..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/arrayWithoutHoles.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import _Array$isArray from "../../core-js/array/is-array";
-export default function _arrayWithoutHoles(arr) {
- if (_Array$isArray(arr)) {
- for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
- arr2[i] = arr[i];
- }
-
- return arr2;
- }
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/assertThisInitialized.js b/node_modules/@babel/runtime-corejs3/helpers/esm/assertThisInitialized.js
deleted file mode 100644
index bbf849c..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/assertThisInitialized.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function _assertThisInitialized(self) {
- if (self === void 0) {
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- }
-
- return self;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/asyncGeneratorDelegate.js b/node_modules/@babel/runtime-corejs3/helpers/esm/asyncGeneratorDelegate.js
deleted file mode 100644
index 13088ef..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/asyncGeneratorDelegate.js
+++ /dev/null
@@ -1,59 +0,0 @@
-import _Symbol$iterator from "../../core-js/symbol/iterator";
-import _Symbol from "../../core-js/symbol";
-import _Promise from "../../core-js/promise";
-export default function _asyncGeneratorDelegate(inner, awaitWrap) {
- var iter = {},
- waiting = false;
-
- function pump(key, value) {
- waiting = true;
- value = new _Promise(function (resolve) {
- resolve(inner[key](value));
- });
- return {
- done: false,
- value: awaitWrap(value)
- };
- }
-
- ;
-
- if (typeof _Symbol === "function" && _Symbol$iterator) {
- iter[_Symbol$iterator] = function () {
- return this;
- };
- }
-
- iter.next = function (value) {
- if (waiting) {
- waiting = false;
- return value;
- }
-
- return pump("next", value);
- };
-
- if (typeof inner["throw"] === "function") {
- iter["throw"] = function (value) {
- if (waiting) {
- waiting = false;
- throw value;
- }
-
- return pump("throw", value);
- };
- }
-
- if (typeof inner["return"] === "function") {
- iter["return"] = function (value) {
- if (waiting) {
- waiting = false;
- return value;
- }
-
- return pump("return", value);
- };
- }
-
- return iter;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/asyncIterator.js b/node_modules/@babel/runtime-corejs3/helpers/esm/asyncIterator.js
deleted file mode 100644
index b2d65bf..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/asyncIterator.js
+++ /dev/null
@@ -1,21 +0,0 @@
-import _getIteratorMethod from "../../core-js/get-iterator-method";
-import _Symbol$iterator from "../../core-js/symbol/iterator";
-import _Symbol$asyncIterator from "../../core-js/symbol/async-iterator";
-import _Symbol from "../../core-js/symbol";
-export default function _asyncIterator(iterable) {
- var method;
-
- if (typeof _Symbol !== "undefined") {
- if (_Symbol$asyncIterator) {
- method = iterable[_Symbol$asyncIterator];
- if (method != null) return method.call(iterable);
- }
-
- if (_Symbol$iterator) {
- method = _getIteratorMethod(iterable);
- if (method != null) return method.call(iterable);
- }
- }
-
- throw new TypeError("Object is not async iterable");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/asyncToGenerator.js b/node_modules/@babel/runtime-corejs3/helpers/esm/asyncToGenerator.js
deleted file mode 100644
index c597faa..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/asyncToGenerator.js
+++ /dev/null
@@ -1,37 +0,0 @@
-import _Promise from "../../core-js/promise";
-
-function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
- try {
- var info = gen[key](arg);
- var value = info.value;
- } catch (error) {
- reject(error);
- return;
- }
-
- if (info.done) {
- resolve(value);
- } else {
- _Promise.resolve(value).then(_next, _throw);
- }
-}
-
-export default function _asyncToGenerator(fn) {
- return function () {
- var self = this,
- args = arguments;
- return new _Promise(function (resolve, reject) {
- var gen = fn.apply(self, args);
-
- function _next(value) {
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
- }
-
- function _throw(err) {
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
- }
-
- _next(undefined);
- });
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/awaitAsyncGenerator.js b/node_modules/@babel/runtime-corejs3/helpers/esm/awaitAsyncGenerator.js
deleted file mode 100644
index 462f99c..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/awaitAsyncGenerator.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import AwaitValue from "./AwaitValue";
-export default function _awaitAsyncGenerator(value) {
- return new AwaitValue(value);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/classCallCheck.js b/node_modules/@babel/runtime-corejs3/helpers/esm/classCallCheck.js
deleted file mode 100644
index 2f1738a..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/classCallCheck.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function _classCallCheck(instance, Constructor) {
- if (!(instance instanceof Constructor)) {
- throw new TypeError("Cannot call a class as a function");
- }
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/classNameTDZError.js b/node_modules/@babel/runtime-corejs3/helpers/esm/classNameTDZError.js
deleted file mode 100644
index f7b6dd5..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/classNameTDZError.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _classNameTDZError(name) {
- throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys.");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldDestructureSet.js b/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldDestructureSet.js
deleted file mode 100644
index 1f265bc..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldDestructureSet.js
+++ /dev/null
@@ -1,26 +0,0 @@
-export default function _classPrivateFieldDestructureSet(receiver, privateMap) {
- if (!privateMap.has(receiver)) {
- throw new TypeError("attempted to set private field on non-instance");
- }
-
- var descriptor = privateMap.get(receiver);
-
- if (descriptor.set) {
- if (!("__destrObj" in descriptor)) {
- descriptor.__destrObj = {
- set value(v) {
- descriptor.set.call(receiver, v);
- }
-
- };
- }
-
- return descriptor.__destrObj;
- } else {
- if (!descriptor.writable) {
- throw new TypeError("attempted to set read only private field");
- }
-
- return descriptor;
- }
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldGet.js b/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldGet.js
deleted file mode 100644
index f8287f1..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldGet.js
+++ /dev/null
@@ -1,13 +0,0 @@
-export default function _classPrivateFieldGet(receiver, privateMap) {
- var descriptor = privateMap.get(receiver);
-
- if (!descriptor) {
- throw new TypeError("attempted to get private field on non-instance");
- }
-
- if (descriptor.get) {
- return descriptor.get.call(receiver);
- }
-
- return descriptor.value;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldLooseBase.js b/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldLooseBase.js
deleted file mode 100644
index 5b10916..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldLooseBase.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function _classPrivateFieldBase(receiver, privateKey) {
- if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {
- throw new TypeError("attempted to use private field on non-instance");
- }
-
- return receiver;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldLooseKey.js b/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldLooseKey.js
deleted file mode 100644
index 5b7e5ac..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldLooseKey.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var id = 0;
-export default function _classPrivateFieldKey(name) {
- return "__private_" + id++ + "_" + name;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldSet.js b/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldSet.js
deleted file mode 100644
index fb4e5d2..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateFieldSet.js
+++ /dev/null
@@ -1,19 +0,0 @@
-export default function _classPrivateFieldSet(receiver, privateMap, value) {
- var descriptor = privateMap.get(receiver);
-
- if (!descriptor) {
- throw new TypeError("attempted to set private field on non-instance");
- }
-
- if (descriptor.set) {
- descriptor.set.call(receiver, value);
- } else {
- if (!descriptor.writable) {
- throw new TypeError("attempted to set read only private field");
- }
-
- descriptor.value = value;
- }
-
- return value;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateMethodGet.js b/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateMethodGet.js
deleted file mode 100644
index 38b9d58..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateMethodGet.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function _classPrivateMethodGet(receiver, privateSet, fn) {
- if (!privateSet.has(receiver)) {
- throw new TypeError("attempted to get private field on non-instance");
- }
-
- return fn;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateMethodSet.js b/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateMethodSet.js
deleted file mode 100644
index 2bbaf3a..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/classPrivateMethodSet.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _classPrivateMethodSet() {
- throw new TypeError("attempted to reassign private method");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/classStaticPrivateFieldSpecGet.js b/node_modules/@babel/runtime-corejs3/helpers/esm/classStaticPrivateFieldSpecGet.js
deleted file mode 100644
index 75a9b7c..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/classStaticPrivateFieldSpecGet.js
+++ /dev/null
@@ -1,11 +0,0 @@
-export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
- if (receiver !== classConstructor) {
- throw new TypeError("Private static access of wrong provenance");
- }
-
- if (descriptor.get) {
- return descriptor.get.call(receiver);
- }
-
- return descriptor.value;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/classStaticPrivateFieldSpecSet.js b/node_modules/@babel/runtime-corejs3/helpers/esm/classStaticPrivateFieldSpecSet.js
deleted file mode 100644
index 163279f..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/classStaticPrivateFieldSpecSet.js
+++ /dev/null
@@ -1,17 +0,0 @@
-export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
- if (receiver !== classConstructor) {
- throw new TypeError("Private static access of wrong provenance");
- }
-
- if (descriptor.set) {
- descriptor.set.call(receiver, value);
- } else {
- if (!descriptor.writable) {
- throw new TypeError("attempted to set read only private field");
- }
-
- descriptor.value = value;
- }
-
- return value;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/classStaticPrivateMethodGet.js b/node_modules/@babel/runtime-corejs3/helpers/esm/classStaticPrivateMethodGet.js
deleted file mode 100644
index da9b1e5..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/classStaticPrivateMethodGet.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) {
- if (receiver !== classConstructor) {
- throw new TypeError("Private static access of wrong provenance");
- }
-
- return method;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/classStaticPrivateMethodSet.js b/node_modules/@babel/runtime-corejs3/helpers/esm/classStaticPrivateMethodSet.js
deleted file mode 100644
index d5ab60a..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/classStaticPrivateMethodSet.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _classStaticPrivateMethodSet() {
- throw new TypeError("attempted to set read only static private field");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/construct.js b/node_modules/@babel/runtime-corejs3/helpers/esm/construct.js
deleted file mode 100644
index 213320e..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/construct.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import _bindInstanceProperty from "../../core-js/instance/bind";
-import _Reflect$construct from "../../core-js/reflect/construct";
-import setPrototypeOf from "./setPrototypeOf";
-
-function isNativeReflectConstruct() {
- if (typeof Reflect === "undefined" || !_Reflect$construct) return false;
- if (_Reflect$construct.sham) return false;
- if (typeof Proxy === "function") return true;
-
- try {
- Date.prototype.toString.call(_Reflect$construct(Date, [], function () {}));
- return true;
- } catch (e) {
- return false;
- }
-}
-
-export default function _construct(Parent, args, Class) {
- if (isNativeReflectConstruct()) {
- _construct = _Reflect$construct;
- } else {
- _construct = function _construct(Parent, args, Class) {
- var a = [null];
- a.push.apply(a, args);
-
- var Constructor = _bindInstanceProperty(Function).apply(Parent, a);
-
- var instance = new Constructor();
- if (Class) setPrototypeOf(instance, Class.prototype);
- return instance;
- };
- }
-
- return _construct.apply(null, arguments);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/createClass.js b/node_modules/@babel/runtime-corejs3/helpers/esm/createClass.js
deleted file mode 100644
index 8a6ab38..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/createClass.js
+++ /dev/null
@@ -1,18 +0,0 @@
-import _Object$defineProperty from "../../core-js/object/define-property";
-
-function _defineProperties(target, props) {
- for (var i = 0; i < props.length; i++) {
- var descriptor = props[i];
- descriptor.enumerable = descriptor.enumerable || false;
- descriptor.configurable = true;
- if ("value" in descriptor) descriptor.writable = true;
-
- _Object$defineProperty(target, descriptor.key, descriptor);
- }
-}
-
-export default function _createClass(Constructor, protoProps, staticProps) {
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
- if (staticProps) _defineProperties(Constructor, staticProps);
- return Constructor;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/decorate.js b/node_modules/@babel/runtime-corejs3/helpers/esm/decorate.js
deleted file mode 100644
index b91bd49..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/decorate.js
+++ /dev/null
@@ -1,421 +0,0 @@
-import _findInstanceProperty from "../../core-js/instance/find";
-import _Object$assign from "../../core-js/object/assign";
-import _Symbol$toStringTag from "../../core-js/symbol/to-string-tag";
-import _spliceInstanceProperty from "../../core-js/instance/splice";
-import _indexOfInstanceProperty from "../../core-js/instance/index-of";
-import _Object$defineProperty from "../../core-js/object/define-property";
-import _forEachInstanceProperty from "../../core-js/instance/for-each";
-import _mapInstanceProperty from "../../core-js/instance/map";
-import toArray from "./toArray";
-import toPropertyKey from "./toPropertyKey";
-export default function _decorate(decorators, factory, superClass, mixins) {
- var _context;
-
- var api = _getDecoratorsApi();
-
- if (mixins) {
- for (var i = 0; i < mixins.length; i++) {
- api = mixins[i](api);
- }
- }
-
- var r = factory(function initialize(O) {
- api.initializeInstanceElements(O, decorated.elements);
- }, superClass);
- var decorated = api.decorateClass(_coalesceClassElements(_mapInstanceProperty(_context = r.d).call(_context, _createElementDescriptor)), decorators);
- api.initializeClassElements(r.F, decorated.elements);
- return api.runClassFinishers(r.F, decorated.finishers);
-}
-
-function _getDecoratorsApi() {
- _getDecoratorsApi = function _getDecoratorsApi() {
- return api;
- };
-
- var api = {
- elementsDefinitionOrder: [["method"], ["field"]],
- initializeInstanceElements: function initializeInstanceElements(O, elements) {
- var _context2;
-
- _forEachInstanceProperty(_context2 = ["method", "field"]).call(_context2, function (kind) {
- _forEachInstanceProperty(elements).call(elements, function (element) {
- if (element.kind === kind && element.placement === "own") {
- this.defineClassElement(O, element);
- }
- }, this);
- }, this);
- },
- initializeClassElements: function initializeClassElements(F, elements) {
- var _context3;
-
- var proto = F.prototype;
-
- _forEachInstanceProperty(_context3 = ["method", "field"]).call(_context3, function (kind) {
- _forEachInstanceProperty(elements).call(elements, function (element) {
- var placement = element.placement;
-
- if (element.kind === kind && (placement === "static" || placement === "prototype")) {
- var receiver = placement === "static" ? F : proto;
- this.defineClassElement(receiver, element);
- }
- }, this);
- }, this);
- },
- defineClassElement: function defineClassElement(receiver, element) {
- var descriptor = element.descriptor;
-
- if (element.kind === "field") {
- var initializer = element.initializer;
- descriptor = {
- enumerable: descriptor.enumerable,
- writable: descriptor.writable,
- configurable: descriptor.configurable,
- value: initializer === void 0 ? void 0 : initializer.call(receiver)
- };
- }
-
- _Object$defineProperty(receiver, element.key, descriptor);
- },
- decorateClass: function decorateClass(elements, decorators) {
- var newElements = [];
- var finishers = [];
- var placements = {
- "static": [],
- prototype: [],
- own: []
- };
-
- _forEachInstanceProperty(elements).call(elements, function (element) {
- this.addElementPlacement(element, placements);
- }, this);
-
- _forEachInstanceProperty(elements).call(elements, function (element) {
- if (!_hasDecorators(element)) return newElements.push(element);
- var elementFinishersExtras = this.decorateElement(element, placements);
- newElements.push(elementFinishersExtras.element);
- newElements.push.apply(newElements, elementFinishersExtras.extras);
- finishers.push.apply(finishers, elementFinishersExtras.finishers);
- }, this);
-
- if (!decorators) {
- return {
- elements: newElements,
- finishers: finishers
- };
- }
-
- var result = this.decorateConstructor(newElements, decorators);
- finishers.push.apply(finishers, result.finishers);
- result.finishers = finishers;
- return result;
- },
- addElementPlacement: function addElementPlacement(element, placements, silent) {
- var keys = placements[element.placement];
-
- if (!silent && _indexOfInstanceProperty(keys).call(keys, element.key) !== -1) {
- throw new TypeError("Duplicated element (" + element.key + ")");
- }
-
- keys.push(element.key);
- },
- decorateElement: function decorateElement(element, placements) {
- var extras = [];
- var finishers = [];
-
- for (var decorators = element.decorators, i = decorators.length - 1; i >= 0; i--) {
- var keys = placements[element.placement];
-
- _spliceInstanceProperty(keys).call(keys, _indexOfInstanceProperty(keys).call(keys, element.key), 1);
-
- var elementObject = this.fromElementDescriptor(element);
- var elementFinisherExtras = this.toElementFinisherExtras((0, decorators[i])(elementObject) || elementObject);
- element = elementFinisherExtras.element;
- this.addElementPlacement(element, placements);
-
- if (elementFinisherExtras.finisher) {
- finishers.push(elementFinisherExtras.finisher);
- }
-
- var newExtras = elementFinisherExtras.extras;
-
- if (newExtras) {
- for (var j = 0; j < newExtras.length; j++) {
- this.addElementPlacement(newExtras[j], placements);
- }
-
- extras.push.apply(extras, newExtras);
- }
- }
-
- return {
- element: element,
- finishers: finishers,
- extras: extras
- };
- },
- decorateConstructor: function decorateConstructor(elements, decorators) {
- var finishers = [];
-
- for (var i = decorators.length - 1; i >= 0; i--) {
- var obj = this.fromClassDescriptor(elements);
- var elementsAndFinisher = this.toClassDescriptor((0, decorators[i])(obj) || obj);
-
- if (elementsAndFinisher.finisher !== undefined) {
- finishers.push(elementsAndFinisher.finisher);
- }
-
- if (elementsAndFinisher.elements !== undefined) {
- elements = elementsAndFinisher.elements;
-
- for (var j = 0; j < elements.length - 1; j++) {
- for (var k = j + 1; k < elements.length; k++) {
- if (elements[j].key === elements[k].key && elements[j].placement === elements[k].placement) {
- throw new TypeError("Duplicated element (" + elements[j].key + ")");
- }
- }
- }
- }
- }
-
- return {
- elements: elements,
- finishers: finishers
- };
- },
- fromElementDescriptor: function fromElementDescriptor(element) {
- var obj = {
- kind: element.kind,
- key: element.key,
- placement: element.placement,
- descriptor: element.descriptor
- };
- var desc = {
- value: "Descriptor",
- configurable: true
- };
-
- _Object$defineProperty(obj, _Symbol$toStringTag, desc);
-
- if (element.kind === "field") obj.initializer = element.initializer;
- return obj;
- },
- toElementDescriptors: function toElementDescriptors(elementObjects) {
- var _context4;
-
- if (elementObjects === undefined) return;
- return _mapInstanceProperty(_context4 = toArray(elementObjects)).call(_context4, function (elementObject) {
- var element = this.toElementDescriptor(elementObject);
- this.disallowProperty(elementObject, "finisher", "An element descriptor");
- this.disallowProperty(elementObject, "extras", "An element descriptor");
- return element;
- }, this);
- },
- toElementDescriptor: function toElementDescriptor(elementObject) {
- var kind = String(elementObject.kind);
-
- if (kind !== "method" && kind !== "field") {
- throw new TypeError('An element descriptor\'s .kind property must be either "method" or' + ' "field", but a decorator created an element descriptor with' + ' .kind "' + kind + '"');
- }
-
- var key = toPropertyKey(elementObject.key);
- var placement = String(elementObject.placement);
-
- if (placement !== "static" && placement !== "prototype" && placement !== "own") {
- throw new TypeError('An element descriptor\'s .placement property must be one of "static",' + ' "prototype" or "own", but a decorator created an element descriptor' + ' with .placement "' + placement + '"');
- }
-
- var descriptor = elementObject.descriptor;
- this.disallowProperty(elementObject, "elements", "An element descriptor");
- var element = {
- kind: kind,
- key: key,
- placement: placement,
- descriptor: _Object$assign({}, descriptor)
- };
-
- if (kind !== "field") {
- this.disallowProperty(elementObject, "initializer", "A method descriptor");
- } else {
- this.disallowProperty(descriptor, "get", "The property descriptor of a field descriptor");
- this.disallowProperty(descriptor, "set", "The property descriptor of a field descriptor");
- this.disallowProperty(descriptor, "value", "The property descriptor of a field descriptor");
- element.initializer = elementObject.initializer;
- }
-
- return element;
- },
- toElementFinisherExtras: function toElementFinisherExtras(elementObject) {
- var element = this.toElementDescriptor(elementObject);
-
- var finisher = _optionalCallableProperty(elementObject, "finisher");
-
- var extras = this.toElementDescriptors(elementObject.extras);
- return {
- element: element,
- finisher: finisher,
- extras: extras
- };
- },
- fromClassDescriptor: function fromClassDescriptor(elements) {
- var obj = {
- kind: "class",
- elements: _mapInstanceProperty(elements).call(elements, this.fromElementDescriptor, this)
- };
- var desc = {
- value: "Descriptor",
- configurable: true
- };
-
- _Object$defineProperty(obj, _Symbol$toStringTag, desc);
-
- return obj;
- },
- toClassDescriptor: function toClassDescriptor(obj) {
- var kind = String(obj.kind);
-
- if (kind !== "class") {
- throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator' + ' created a class descriptor with .kind "' + kind + '"');
- }
-
- this.disallowProperty(obj, "key", "A class descriptor");
- this.disallowProperty(obj, "placement", "A class descriptor");
- this.disallowProperty(obj, "descriptor", "A class descriptor");
- this.disallowProperty(obj, "initializer", "A class descriptor");
- this.disallowProperty(obj, "extras", "A class descriptor");
-
- var finisher = _optionalCallableProperty(obj, "finisher");
-
- var elements = this.toElementDescriptors(obj.elements);
- return {
- elements: elements,
- finisher: finisher
- };
- },
- runClassFinishers: function runClassFinishers(constructor, finishers) {
- for (var i = 0; i < finishers.length; i++) {
- var newConstructor = (0, finishers[i])(constructor);
-
- if (newConstructor !== undefined) {
- if (typeof newConstructor !== "function") {
- throw new TypeError("Finishers must return a constructor.");
- }
-
- constructor = newConstructor;
- }
- }
-
- return constructor;
- },
- disallowProperty: function disallowProperty(obj, name, objectType) {
- if (obj[name] !== undefined) {
- throw new TypeError(objectType + " can't have a ." + name + " property.");
- }
- }
- };
- return api;
-}
-
-function _createElementDescriptor(def) {
- var key = toPropertyKey(def.key);
- var descriptor;
-
- if (def.kind === "method") {
- descriptor = {
- value: def.value,
- writable: true,
- configurable: true,
- enumerable: false
- };
- } else if (def.kind === "get") {
- descriptor = {
- get: def.value,
- configurable: true,
- enumerable: false
- };
- } else if (def.kind === "set") {
- descriptor = {
- set: def.value,
- configurable: true,
- enumerable: false
- };
- } else if (def.kind === "field") {
- descriptor = {
- configurable: true,
- writable: true,
- enumerable: true
- };
- }
-
- var element = {
- kind: def.kind === "field" ? "field" : "method",
- key: key,
- placement: def["static"] ? "static" : def.kind === "field" ? "own" : "prototype",
- descriptor: descriptor
- };
- if (def.decorators) element.decorators = def.decorators;
- if (def.kind === "field") element.initializer = def.value;
- return element;
-}
-
-function _coalesceGetterSetter(element, other) {
- if (element.descriptor.get !== undefined) {
- other.descriptor.get = element.descriptor.get;
- } else {
- other.descriptor.set = element.descriptor.set;
- }
-}
-
-function _coalesceClassElements(elements) {
- var newElements = [];
-
- var isSameElement = function isSameElement(other) {
- return other.kind === "method" && other.key === element.key && other.placement === element.placement;
- };
-
- for (var i = 0; i < elements.length; i++) {
- var element = elements[i];
- var other;
-
- if (element.kind === "method" && (other = _findInstanceProperty(newElements).call(newElements, isSameElement))) {
- if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor)) {
- if (_hasDecorators(element) || _hasDecorators(other)) {
- throw new ReferenceError("Duplicated methods (" + element.key + ") can't be decorated.");
- }
-
- other.descriptor = element.descriptor;
- } else {
- if (_hasDecorators(element)) {
- if (_hasDecorators(other)) {
- throw new ReferenceError("Decorators can't be placed on different accessors with for " + "the same property (" + element.key + ").");
- }
-
- other.decorators = element.decorators;
- }
-
- _coalesceGetterSetter(element, other);
- }
- } else {
- newElements.push(element);
- }
- }
-
- return newElements;
-}
-
-function _hasDecorators(element) {
- return element.decorators && element.decorators.length;
-}
-
-function _isDataDescriptor(desc) {
- return desc !== undefined && !(desc.value === undefined && desc.writable === undefined);
-}
-
-function _optionalCallableProperty(obj, name) {
- var value = obj[name];
-
- if (value !== undefined && typeof value !== "function") {
- throw new TypeError("Expected '" + name + "' to be a function");
- }
-
- return value;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/defaults.js b/node_modules/@babel/runtime-corejs3/helpers/esm/defaults.js
deleted file mode 100644
index 8f7670a..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/defaults.js
+++ /dev/null
@@ -1,18 +0,0 @@
-import _Object$defineProperty from "../../core-js/object/define-property";
-import _Object$getOwnPropertyDescriptor from "../../core-js/object/get-own-property-descriptor";
-import _Object$getOwnPropertyNames from "../../core-js/object/get-own-property-names";
-export default function _defaults(obj, defaults) {
- var keys = _Object$getOwnPropertyNames(defaults);
-
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
-
- var value = _Object$getOwnPropertyDescriptor(defaults, key);
-
- if (value && value.configurable && obj[key] === undefined) {
- _Object$defineProperty(obj, key, value);
- }
- }
-
- return obj;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/defineEnumerableProperties.js b/node_modules/@babel/runtime-corejs3/helpers/esm/defineEnumerableProperties.js
deleted file mode 100644
index 5c19c68..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/defineEnumerableProperties.js
+++ /dev/null
@@ -1,26 +0,0 @@
-import _Object$getOwnPropertySymbols from "../../core-js/object/get-own-property-symbols";
-import _Object$defineProperty from "../../core-js/object/define-property";
-export default function _defineEnumerableProperties(obj, descs) {
- for (var key in descs) {
- var desc = descs[key];
- desc.configurable = desc.enumerable = true;
- if ("value" in desc) desc.writable = true;
-
- _Object$defineProperty(obj, key, desc);
- }
-
- if (_Object$getOwnPropertySymbols) {
- var objectSymbols = _Object$getOwnPropertySymbols(descs);
-
- for (var i = 0; i < objectSymbols.length; i++) {
- var sym = objectSymbols[i];
- var desc = descs[sym];
- desc.configurable = desc.enumerable = true;
- if ("value" in desc) desc.writable = true;
-
- _Object$defineProperty(obj, sym, desc);
- }
- }
-
- return obj;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js b/node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js
deleted file mode 100644
index 54752ab..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import _Object$defineProperty from "../../core-js/object/define-property";
-export default function _defineProperty(obj, key, value) {
- if (key in obj) {
- _Object$defineProperty(obj, key, {
- value: value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
-
- return obj;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/extends.js b/node_modules/@babel/runtime-corejs3/helpers/esm/extends.js
deleted file mode 100644
index ed3c050..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/extends.js
+++ /dev/null
@@ -1,18 +0,0 @@
-import _Object$assign from "../../core-js/object/assign";
-export default function _extends() {
- _extends = _Object$assign || function (target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i];
-
- for (var key in source) {
- if (Object.prototype.hasOwnProperty.call(source, key)) {
- target[key] = source[key];
- }
- }
- }
-
- return target;
- };
-
- return _extends.apply(this, arguments);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/get.js b/node_modules/@babel/runtime-corejs3/helpers/esm/get.js
deleted file mode 100644
index 7c30d6b..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/get.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import _Object$getOwnPropertyDescriptor from "../../core-js/object/get-own-property-descriptor";
-import _Reflect$get from "../../core-js/reflect/get";
-import superPropBase from "./superPropBase";
-export default function _get(target, property, receiver) {
- if (typeof Reflect !== "undefined" && _Reflect$get) {
- _get = _Reflect$get;
- } else {
- _get = function _get(target, property, receiver) {
- var base = superPropBase(target, property);
- if (!base) return;
-
- var desc = _Object$getOwnPropertyDescriptor(base, property);
-
- if (desc.get) {
- return desc.get.call(receiver);
- }
-
- return desc.value;
- };
- }
-
- return _get(target, property, receiver || target);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/getPrototypeOf.js b/node_modules/@babel/runtime-corejs3/helpers/esm/getPrototypeOf.js
deleted file mode 100644
index 5fb6b56..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/getPrototypeOf.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import _Object$getPrototypeOf from "../../core-js/object/get-prototype-of";
-import _Object$setPrototypeOf from "../../core-js/object/set-prototype-of";
-export default function _getPrototypeOf(o) {
- _getPrototypeOf = _Object$setPrototypeOf ? _Object$getPrototypeOf : function _getPrototypeOf(o) {
- return o.__proto__ || _Object$getPrototypeOf(o);
- };
- return _getPrototypeOf(o);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/inherits.js b/node_modules/@babel/runtime-corejs3/helpers/esm/inherits.js
deleted file mode 100644
index a80b414..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/inherits.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import _Object$create from "../../core-js/object/create";
-import setPrototypeOf from "./setPrototypeOf";
-export default function _inherits(subClass, superClass) {
- if (typeof superClass !== "function" && superClass !== null) {
- throw new TypeError("Super expression must either be null or a function");
- }
-
- subClass.prototype = _Object$create(superClass && superClass.prototype, {
- constructor: {
- value: subClass,
- writable: true,
- configurable: true
- }
- });
- if (superClass) setPrototypeOf(subClass, superClass);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/inheritsLoose.js b/node_modules/@babel/runtime-corejs3/helpers/esm/inheritsLoose.js
deleted file mode 100644
index a5fc29d..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/inheritsLoose.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import _Object$create from "../../core-js/object/create";
-export default function _inheritsLoose(subClass, superClass) {
- subClass.prototype = _Object$create(superClass.prototype);
- subClass.prototype.constructor = subClass;
- subClass.__proto__ = superClass;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/initializerDefineProperty.js b/node_modules/@babel/runtime-corejs3/helpers/esm/initializerDefineProperty.js
deleted file mode 100644
index d43d6a4..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/initializerDefineProperty.js
+++ /dev/null
@@ -1,11 +0,0 @@
-import _Object$defineProperty from "../../core-js/object/define-property";
-export default function _initializerDefineProperty(target, property, descriptor, context) {
- if (!descriptor) return;
-
- _Object$defineProperty(target, property, {
- enumerable: descriptor.enumerable,
- configurable: descriptor.configurable,
- writable: descriptor.writable,
- value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
- });
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/initializerWarningHelper.js b/node_modules/@babel/runtime-corejs3/helpers/esm/initializerWarningHelper.js
deleted file mode 100644
index 30d518c..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/initializerWarningHelper.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _initializerWarningHelper(descriptor, context) {
- throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.');
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/instanceof.js b/node_modules/@babel/runtime-corejs3/helpers/esm/instanceof.js
deleted file mode 100644
index 3769adc..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/instanceof.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import _Symbol$hasInstance from "../../core-js/symbol/has-instance";
-import _Symbol from "../../core-js/symbol";
-export default function _instanceof(left, right) {
- if (right != null && typeof _Symbol !== "undefined" && right[_Symbol$hasInstance]) {
- return !!right[_Symbol$hasInstance](left);
- } else {
- return left instanceof right;
- }
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/interopRequireDefault.js b/node_modules/@babel/runtime-corejs3/helpers/esm/interopRequireDefault.js
deleted file mode 100644
index c2df7b6..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/interopRequireDefault.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function _interopRequireDefault(obj) {
- return obj && obj.__esModule ? obj : {
- "default": obj
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/interopRequireWildcard.js b/node_modules/@babel/runtime-corejs3/helpers/esm/interopRequireWildcard.js
deleted file mode 100644
index a51ab4d..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/interopRequireWildcard.js
+++ /dev/null
@@ -1,56 +0,0 @@
-import _Object$getOwnPropertyDescriptor from "../../core-js/object/get-own-property-descriptor";
-import _Object$defineProperty from "../../core-js/object/define-property";
-import _typeof from "../../helpers/esm/typeof";
-import _WeakMap from "../../core-js/weak-map";
-
-function _getRequireWildcardCache() {
- if (typeof _WeakMap !== "function") return null;
- var cache = new _WeakMap();
-
- _getRequireWildcardCache = function _getRequireWildcardCache() {
- return cache;
- };
-
- return cache;
-}
-
-export default function _interopRequireWildcard(obj) {
- if (obj && obj.__esModule) {
- return obj;
- }
-
- if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
- return {
- "default": obj
- };
- }
-
- var cache = _getRequireWildcardCache();
-
- if (cache && cache.has(obj)) {
- return cache.get(obj);
- }
-
- var newObj = {};
- var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor;
-
- for (var key in obj) {
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
- var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null;
-
- if (desc && (desc.get || desc.set)) {
- _Object$defineProperty(newObj, key, desc);
- } else {
- newObj[key] = obj[key];
- }
- }
- }
-
- newObj["default"] = obj;
-
- if (cache) {
- cache.set(obj, newObj);
- }
-
- return newObj;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/isNativeFunction.js b/node_modules/@babel/runtime-corejs3/helpers/esm/isNativeFunction.js
deleted file mode 100644
index 102a53a..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/isNativeFunction.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import _indexOfInstanceProperty from "../../core-js/instance/index-of";
-export default function _isNativeFunction(fn) {
- var _context;
-
- return _indexOfInstanceProperty(_context = Function.toString.call(fn)).call(_context, "[native code]") !== -1;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/iterableToArray.js b/node_modules/@babel/runtime-corejs3/helpers/esm/iterableToArray.js
deleted file mode 100644
index 9f20ecd..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/iterableToArray.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import _Array$from from "../../core-js/array/from";
-import _isIterable from "../../core-js/is-iterable";
-export default function _iterableToArray(iter) {
- if (_isIterable(Object(iter)) || Object.prototype.toString.call(iter) === "[object Arguments]") return _Array$from(iter);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/iterableToArrayLimit.js b/node_modules/@babel/runtime-corejs3/helpers/esm/iterableToArrayLimit.js
deleted file mode 100644
index 748cf7b..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/iterableToArrayLimit.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import _getIterator from "../../core-js/get-iterator";
-import _isIterable from "../../core-js/is-iterable";
-export default function _iterableToArrayLimit(arr, i) {
- if (!(_isIterable(Object(arr)) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
- return;
- }
-
- var _arr = [];
- var _n = true;
- var _d = false;
- var _e = undefined;
-
- try {
- for (var _i = _getIterator(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {
- _arr.push(_s.value);
-
- if (i && _arr.length === i) break;
- }
- } catch (err) {
- _d = true;
- _e = err;
- } finally {
- try {
- if (!_n && _i["return"] != null) _i["return"]();
- } finally {
- if (_d) throw _e;
- }
- }
-
- return _arr;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/iterableToArrayLimitLoose.js b/node_modules/@babel/runtime-corejs3/helpers/esm/iterableToArrayLimitLoose.js
deleted file mode 100644
index 13b8ff9..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/iterableToArrayLimitLoose.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import _getIterator from "../../core-js/get-iterator";
-import _isIterable from "../../core-js/is-iterable";
-export default function _iterableToArrayLimitLoose(arr, i) {
- if (!(_isIterable(Object(arr)) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
- return;
- }
-
- var _arr = [];
-
- for (var _iterator = _getIterator(arr), _step; !(_step = _iterator.next()).done;) {
- _arr.push(_step.value);
-
- if (i && _arr.length === i) break;
- }
-
- return _arr;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/jsx.js b/node_modules/@babel/runtime-corejs3/helpers/esm/jsx.js
deleted file mode 100644
index 6a6f5db..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/jsx.js
+++ /dev/null
@@ -1,48 +0,0 @@
-import _Symbol$for from "../../core-js/symbol/for";
-import _Symbol from "../../core-js/symbol";
-var REACT_ELEMENT_TYPE;
-export default function _createRawReactElement(type, props, key, children) {
- if (!REACT_ELEMENT_TYPE) {
- REACT_ELEMENT_TYPE = typeof _Symbol === "function" && _Symbol$for && _Symbol$for("react.element") || 0xeac7;
- }
-
- var defaultProps = type && type.defaultProps;
- var childrenLength = arguments.length - 3;
-
- if (!props && childrenLength !== 0) {
- props = {
- children: void 0
- };
- }
-
- if (childrenLength === 1) {
- props.children = children;
- } else if (childrenLength > 1) {
- var childArray = new Array(childrenLength);
-
- for (var i = 0; i < childrenLength; i++) {
- childArray[i] = arguments[i + 3];
- }
-
- props.children = childArray;
- }
-
- if (props && defaultProps) {
- for (var propName in defaultProps) {
- if (props[propName] === void 0) {
- props[propName] = defaultProps[propName];
- }
- }
- } else if (!props) {
- props = defaultProps || {};
- }
-
- return {
- $$typeof: REACT_ELEMENT_TYPE,
- type: type,
- key: key === undefined ? null : '' + key,
- ref: null,
- props: props,
- _owner: null
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/newArrowCheck.js b/node_modules/@babel/runtime-corejs3/helpers/esm/newArrowCheck.js
deleted file mode 100644
index d6cd864..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/newArrowCheck.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function _newArrowCheck(innerThis, boundThis) {
- if (innerThis !== boundThis) {
- throw new TypeError("Cannot instantiate an arrow function");
- }
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/nonIterableRest.js b/node_modules/@babel/runtime-corejs3/helpers/esm/nonIterableRest.js
deleted file mode 100644
index f94186d..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/nonIterableRest.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _nonIterableRest() {
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/nonIterableSpread.js b/node_modules/@babel/runtime-corejs3/helpers/esm/nonIterableSpread.js
deleted file mode 100644
index d6bc738..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/nonIterableSpread.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _nonIterableSpread() {
- throw new TypeError("Invalid attempt to spread non-iterable instance");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/objectDestructuringEmpty.js b/node_modules/@babel/runtime-corejs3/helpers/esm/objectDestructuringEmpty.js
deleted file mode 100644
index 82b67d2..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/objectDestructuringEmpty.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _objectDestructuringEmpty(obj) {
- if (obj == null) throw new TypeError("Cannot destructure undefined");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/objectSpread.js b/node_modules/@babel/runtime-corejs3/helpers/esm/objectSpread.js
deleted file mode 100644
index 50bb9ca..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/objectSpread.js
+++ /dev/null
@@ -1,28 +0,0 @@
-import _forEachInstanceProperty from "../../core-js/instance/for-each";
-import _Object$getOwnPropertyDescriptor from "../../core-js/object/get-own-property-descriptor";
-import _filterInstanceProperty from "../../core-js/instance/filter";
-import _concatInstanceProperty from "../../core-js/instance/concat";
-import _Object$getOwnPropertySymbols from "../../core-js/object/get-own-property-symbols";
-import _Object$keys from "../../core-js/object/keys";
-import defineProperty from "./defineProperty";
-export default function _objectSpread(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i] != null ? Object(arguments[i]) : {};
-
- var ownKeys = _Object$keys(source);
-
- if (typeof _Object$getOwnPropertySymbols === 'function') {
- var _context;
-
- ownKeys = _concatInstanceProperty(ownKeys).call(ownKeys, _filterInstanceProperty(_context = _Object$getOwnPropertySymbols(source)).call(_context, function (sym) {
- return _Object$getOwnPropertyDescriptor(source, sym).enumerable;
- }));
- }
-
- _forEachInstanceProperty(ownKeys).call(ownKeys, function (key) {
- defineProperty(target, key, source[key]);
- });
- }
-
- return target;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/objectSpread2.js b/node_modules/@babel/runtime-corejs3/helpers/esm/objectSpread2.js
deleted file mode 100644
index e203c5e..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/objectSpread2.js
+++ /dev/null
@@ -1,48 +0,0 @@
-import _Object$defineProperty from "../../core-js/object/define-property";
-import _Object$defineProperties from "../../core-js/object/define-properties";
-import _Object$getOwnPropertyDescriptors from "../../core-js/object/get-own-property-descriptors";
-import _forEachInstanceProperty from "../../core-js/instance/for-each";
-import _Object$getOwnPropertyDescriptor from "../../core-js/object/get-own-property-descriptor";
-import _filterInstanceProperty from "../../core-js/instance/filter";
-import _Object$getOwnPropertySymbols from "../../core-js/object/get-own-property-symbols";
-import _Object$keys from "../../core-js/object/keys";
-import defineProperty from "./defineProperty";
-
-function ownKeys(object, enumerableOnly) {
- var keys = _Object$keys(object);
-
- if (_Object$getOwnPropertySymbols) {
- var symbols = _Object$getOwnPropertySymbols(object);
-
- if (enumerableOnly) symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) {
- return _Object$getOwnPropertyDescriptor(object, sym).enumerable;
- });
- keys.push.apply(keys, symbols);
- }
-
- return keys;
-}
-
-export default function _objectSpread2(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i] != null ? arguments[i] : {};
-
- if (i % 2) {
- var _context;
-
- _forEachInstanceProperty(_context = ownKeys(Object(source), true)).call(_context, function (key) {
- defineProperty(target, key, source[key]);
- });
- } else if (_Object$getOwnPropertyDescriptors) {
- _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source));
- } else {
- var _context2;
-
- _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) {
- _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key));
- });
- }
- }
-
- return target;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/objectWithoutProperties.js b/node_modules/@babel/runtime-corejs3/helpers/esm/objectWithoutProperties.js
deleted file mode 100644
index 04df2e1..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/objectWithoutProperties.js
+++ /dev/null
@@ -1,21 +0,0 @@
-import _indexOfInstanceProperty from "../../core-js/instance/index-of";
-import _Object$getOwnPropertySymbols from "../../core-js/object/get-own-property-symbols";
-import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose";
-export default function _objectWithoutProperties(source, excluded) {
- if (source == null) return {};
- var target = objectWithoutPropertiesLoose(source, excluded);
- var key, i;
-
- if (_Object$getOwnPropertySymbols) {
- var sourceSymbolKeys = _Object$getOwnPropertySymbols(source);
-
- for (i = 0; i < sourceSymbolKeys.length; i++) {
- key = sourceSymbolKeys[i];
- if (_indexOfInstanceProperty(excluded).call(excluded, key) >= 0) continue;
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
- target[key] = source[key];
- }
- }
-
- return target;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/objectWithoutPropertiesLoose.js b/node_modules/@babel/runtime-corejs3/helpers/esm/objectWithoutPropertiesLoose.js
deleted file mode 100644
index 6518d0b..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/objectWithoutPropertiesLoose.js
+++ /dev/null
@@ -1,18 +0,0 @@
-import _indexOfInstanceProperty from "../../core-js/instance/index-of";
-import _Object$keys from "../../core-js/object/keys";
-export default function _objectWithoutPropertiesLoose(source, excluded) {
- if (source == null) return {};
- var target = {};
-
- var sourceKeys = _Object$keys(source);
-
- var key, i;
-
- for (i = 0; i < sourceKeys.length; i++) {
- key = sourceKeys[i];
- if (_indexOfInstanceProperty(excluded).call(excluded, key) >= 0) continue;
- target[key] = source[key];
- }
-
- return target;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/package.json b/node_modules/@babel/runtime-corejs3/helpers/esm/package.json
deleted file mode 100644
index aead43d..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "module"
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn.js b/node_modules/@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn.js
deleted file mode 100644
index be7b7a4..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import _typeof from "../../helpers/esm/typeof";
-import assertThisInitialized from "./assertThisInitialized";
-export default function _possibleConstructorReturn(self, call) {
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
- return call;
- }
-
- return assertThisInitialized(self);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/readOnlyError.js b/node_modules/@babel/runtime-corejs3/helpers/esm/readOnlyError.js
deleted file mode 100644
index 45d01d7..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/readOnlyError.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _readOnlyError(name) {
- throw new Error("\"" + name + "\" is read-only");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/set.js b/node_modules/@babel/runtime-corejs3/helpers/esm/set.js
deleted file mode 100644
index 7a5a804..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/set.js
+++ /dev/null
@@ -1,55 +0,0 @@
-import _Object$defineProperty from "../../core-js/object/define-property";
-import _Object$getOwnPropertyDescriptor from "../../core-js/object/get-own-property-descriptor";
-import _Reflect$set from "../../core-js/reflect/set";
-import superPropBase from "./superPropBase";
-import defineProperty from "./defineProperty";
-
-function set(target, property, value, receiver) {
- if (typeof Reflect !== "undefined" && _Reflect$set) {
- set = _Reflect$set;
- } else {
- set = function set(target, property, value, receiver) {
- var base = superPropBase(target, property);
- var desc;
-
- if (base) {
- desc = _Object$getOwnPropertyDescriptor(base, property);
-
- if (desc.set) {
- desc.set.call(receiver, value);
- return true;
- } else if (!desc.writable) {
- return false;
- }
- }
-
- desc = _Object$getOwnPropertyDescriptor(receiver, property);
-
- if (desc) {
- if (!desc.writable) {
- return false;
- }
-
- desc.value = value;
-
- _Object$defineProperty(receiver, property, desc);
- } else {
- defineProperty(receiver, property, value);
- }
-
- return true;
- };
- }
-
- return set(target, property, value, receiver);
-}
-
-export default function _set(target, property, value, receiver, isStrict) {
- var s = set(target, property, value, receiver || target);
-
- if (!s && isStrict) {
- throw new Error('failed to set property');
- }
-
- return value;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/setPrototypeOf.js b/node_modules/@babel/runtime-corejs3/helpers/esm/setPrototypeOf.js
deleted file mode 100644
index 56682d5..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/setPrototypeOf.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import _Object$setPrototypeOf from "../../core-js/object/set-prototype-of";
-export default function _setPrototypeOf(o, p) {
- _setPrototypeOf = _Object$setPrototypeOf || function _setPrototypeOf(o, p) {
- o.__proto__ = p;
- return o;
- };
-
- return _setPrototypeOf(o, p);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/skipFirstGeneratorNext.js b/node_modules/@babel/runtime-corejs3/helpers/esm/skipFirstGeneratorNext.js
deleted file mode 100644
index cadd9bb..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/skipFirstGeneratorNext.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function _skipFirstGeneratorNext(fn) {
- return function () {
- var it = fn.apply(this, arguments);
- it.next();
- return it;
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArray.js b/node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArray.js
deleted file mode 100644
index f6f1081..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArray.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import arrayWithHoles from "./arrayWithHoles";
-import iterableToArrayLimit from "./iterableToArrayLimit";
-import nonIterableRest from "./nonIterableRest";
-export default function _slicedToArray(arr, i) {
- return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArrayLoose.js b/node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArrayLoose.js
deleted file mode 100644
index e675789..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArrayLoose.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import arrayWithHoles from "./arrayWithHoles";
-import iterableToArrayLimitLoose from "./iterableToArrayLimitLoose";
-import nonIterableRest from "./nonIterableRest";
-export default function _slicedToArrayLoose(arr, i) {
- return arrayWithHoles(arr) || iterableToArrayLimitLoose(arr, i) || nonIterableRest();
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/superPropBase.js b/node_modules/@babel/runtime-corejs3/helpers/esm/superPropBase.js
deleted file mode 100644
index eace947..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/superPropBase.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import getPrototypeOf from "./getPrototypeOf";
-export default function _superPropBase(object, property) {
- while (!Object.prototype.hasOwnProperty.call(object, property)) {
- object = getPrototypeOf(object);
- if (object === null) break;
- }
-
- return object;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/taggedTemplateLiteral.js b/node_modules/@babel/runtime-corejs3/helpers/esm/taggedTemplateLiteral.js
deleted file mode 100644
index d29648a..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/taggedTemplateLiteral.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import _Object$defineProperties from "../../core-js/object/define-properties";
-import _Object$freeze from "../../core-js/object/freeze";
-import _sliceInstanceProperty from "../../core-js/instance/slice";
-export default function _taggedTemplateLiteral(strings, raw) {
- if (!raw) {
- raw = _sliceInstanceProperty(strings).call(strings, 0);
- }
-
- return _Object$freeze(_Object$defineProperties(strings, {
- raw: {
- value: _Object$freeze(raw)
- }
- }));
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/taggedTemplateLiteralLoose.js b/node_modules/@babel/runtime-corejs3/helpers/esm/taggedTemplateLiteralLoose.js
deleted file mode 100644
index cc03511..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/taggedTemplateLiteralLoose.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import _sliceInstanceProperty from "../../core-js/instance/slice";
-export default function _taggedTemplateLiteralLoose(strings, raw) {
- if (!raw) {
- raw = _sliceInstanceProperty(strings).call(strings, 0);
- }
-
- strings.raw = raw;
- return strings;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/tdz.js b/node_modules/@babel/runtime-corejs3/helpers/esm/tdz.js
deleted file mode 100644
index d5d0adc..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/tdz.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _tdzError(name) {
- throw new ReferenceError(name + " is not defined - temporal dead zone");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/temporalRef.js b/node_modules/@babel/runtime-corejs3/helpers/esm/temporalRef.js
deleted file mode 100644
index 6d167a3..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/temporalRef.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import undef from "./temporalUndefined";
-import err from "./tdz";
-export default function _temporalRef(val, name) {
- return val === undef ? err(name) : val;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/temporalUndefined.js b/node_modules/@babel/runtime-corejs3/helpers/esm/temporalUndefined.js
deleted file mode 100644
index 1a35717..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/temporalUndefined.js
+++ /dev/null
@@ -1 +0,0 @@
-export default function _temporalUndefined() {}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/toArray.js b/node_modules/@babel/runtime-corejs3/helpers/esm/toArray.js
deleted file mode 100644
index 5acb22b..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/toArray.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import arrayWithHoles from "./arrayWithHoles";
-import iterableToArray from "./iterableToArray";
-import nonIterableRest from "./nonIterableRest";
-export default function _toArray(arr) {
- return arrayWithHoles(arr) || iterableToArray(arr) || nonIterableRest();
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/toConsumableArray.js b/node_modules/@babel/runtime-corejs3/helpers/esm/toConsumableArray.js
deleted file mode 100644
index 7e480b9..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/toConsumableArray.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import arrayWithoutHoles from "./arrayWithoutHoles";
-import iterableToArray from "./iterableToArray";
-import nonIterableSpread from "./nonIterableSpread";
-export default function _toConsumableArray(arr) {
- return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/toPrimitive.js b/node_modules/@babel/runtime-corejs3/helpers/esm/toPrimitive.js
deleted file mode 100644
index ddfb41e..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/toPrimitive.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import _Symbol$toPrimitive from "../../core-js/symbol/to-primitive";
-import _typeof from "../../helpers/esm/typeof";
-export default function _toPrimitive(input, hint) {
- if (_typeof(input) !== "object" || input === null) return input;
- var prim = input[_Symbol$toPrimitive];
-
- if (prim !== undefined) {
- var res = prim.call(input, hint || "default");
- if (_typeof(res) !== "object") return res;
- throw new TypeError("@@toPrimitive must return a primitive value.");
- }
-
- return (hint === "string" ? String : Number)(input);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/toPropertyKey.js b/node_modules/@babel/runtime-corejs3/helpers/esm/toPropertyKey.js
deleted file mode 100644
index 7b53a4d..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/toPropertyKey.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import _typeof from "../../helpers/esm/typeof";
-import toPrimitive from "./toPrimitive";
-export default function _toPropertyKey(arg) {
- var key = toPrimitive(arg, "string");
- return _typeof(key) === "symbol" ? key : String(key);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/typeof.js b/node_modules/@babel/runtime-corejs3/helpers/esm/typeof.js
deleted file mode 100644
index 499dd0c..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/typeof.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import _Symbol$iterator from "../../core-js/symbol/iterator";
-import _Symbol from "../../core-js/symbol";
-export default function _typeof(obj) {
- "@babel/helpers - typeof";
-
- if (typeof _Symbol === "function" && typeof _Symbol$iterator === "symbol") {
- _typeof = function _typeof(obj) {
- return typeof obj;
- };
- } else {
- _typeof = function _typeof(obj) {
- return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj;
- };
- }
-
- return _typeof(obj);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/wrapAsyncGenerator.js b/node_modules/@babel/runtime-corejs3/helpers/esm/wrapAsyncGenerator.js
deleted file mode 100644
index 6d6d981..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/wrapAsyncGenerator.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import AsyncGenerator from "./AsyncGenerator";
-export default function _wrapAsyncGenerator(fn) {
- return function () {
- return new AsyncGenerator(fn.apply(this, arguments));
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/wrapNativeSuper.js b/node_modules/@babel/runtime-corejs3/helpers/esm/wrapNativeSuper.js
deleted file mode 100644
index c2778d8..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/wrapNativeSuper.js
+++ /dev/null
@@ -1,39 +0,0 @@
-import _Object$create from "../../core-js/object/create";
-import _Map from "../../core-js/map";
-import getPrototypeOf from "./getPrototypeOf";
-import setPrototypeOf from "./setPrototypeOf";
-import isNativeFunction from "./isNativeFunction";
-import construct from "./construct";
-export default function _wrapNativeSuper(Class) {
- var _cache = typeof _Map === "function" ? new _Map() : undefined;
-
- _wrapNativeSuper = function _wrapNativeSuper(Class) {
- if (Class === null || !isNativeFunction(Class)) return Class;
-
- if (typeof Class !== "function") {
- throw new TypeError("Super expression must either be null or a function");
- }
-
- if (typeof _cache !== "undefined") {
- if (_cache.has(Class)) return _cache.get(Class);
-
- _cache.set(Class, Wrapper);
- }
-
- function Wrapper() {
- return construct(Class, arguments, getPrototypeOf(this).constructor);
- }
-
- Wrapper.prototype = _Object$create(Class.prototype, {
- constructor: {
- value: Wrapper,
- enumerable: false,
- writable: true,
- configurable: true
- }
- });
- return setPrototypeOf(Wrapper, Class);
- };
-
- return _wrapNativeSuper(Class);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/esm/wrapRegExp.js b/node_modules/@babel/runtime-corejs3/helpers/esm/wrapRegExp.js
deleted file mode 100644
index 8b32bac..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/esm/wrapRegExp.js
+++ /dev/null
@@ -1,76 +0,0 @@
-import _Object$create from "../../core-js/object/create";
-import _Object$keys from "../../core-js/object/keys";
-import _reduceInstanceProperty from "../../core-js/instance/reduce";
-import _typeof from "../../helpers/esm/typeof";
-import _Symbol$replace from "../../core-js/symbol/replace";
-import _WeakMap from "../../core-js/weak-map";
-import wrapNativeSuper from "./wrapNativeSuper";
-import getPrototypeOf from "./getPrototypeOf";
-import possibleConstructorReturn from "./possibleConstructorReturn";
-import inherits from "./inherits";
-export default function _wrapRegExp(re, groups) {
- _wrapRegExp = function _wrapRegExp(re, groups) {
- return new BabelRegExp(re, undefined, groups);
- };
-
- var _RegExp = wrapNativeSuper(RegExp);
-
- var _super = RegExp.prototype;
-
- var _groups = new _WeakMap();
-
- function BabelRegExp(re, flags, groups) {
- var _this = _RegExp.call(this, re, flags);
-
- _groups.set(_this, groups || _groups.get(re));
-
- return _this;
- }
-
- inherits(BabelRegExp, _RegExp);
-
- BabelRegExp.prototype.exec = function (str) {
- var result = _super.exec.call(this, str);
-
- if (result) result.groups = buildGroups(result, this);
- return result;
- };
-
- BabelRegExp.prototype[_Symbol$replace] = function (str, substitution) {
- if (typeof substitution === "string") {
- var groups = _groups.get(this);
-
- return _super[_Symbol$replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
- return "$" + groups[name];
- }));
- } else if (typeof substitution === "function") {
- var _this = this;
-
- return _super[_Symbol$replace].call(this, str, function () {
- var args = [];
- args.push.apply(args, arguments);
-
- if (_typeof(args[args.length - 1]) !== "object") {
- args.push(buildGroups(args, _this));
- }
-
- return substitution.apply(this, args);
- });
- } else {
- return _super[_Symbol$replace].call(this, str, substitution);
- }
- };
-
- function buildGroups(result, re) {
- var _context;
-
- var g = _groups.get(re);
-
- return _reduceInstanceProperty(_context = _Object$keys(g)).call(_context, function (groups, name) {
- groups[name] = result[g[name]];
- return groups;
- }, _Object$create(null));
- }
-
- return _wrapRegExp.apply(this, arguments);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/extends.js b/node_modules/@babel/runtime-corejs3/helpers/extends.js
deleted file mode 100644
index 7327dea..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/extends.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var _Object$assign = require("../core-js/object/assign");
-
-function _extends() {
- module.exports = _extends = _Object$assign || function (target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i];
-
- for (var key in source) {
- if (Object.prototype.hasOwnProperty.call(source, key)) {
- target[key] = source[key];
- }
- }
- }
-
- return target;
- };
-
- return _extends.apply(this, arguments);
-}
-
-module.exports = _extends;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/get.js b/node_modules/@babel/runtime-corejs3/helpers/get.js
deleted file mode 100644
index a51e99d..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/get.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var _Object$getOwnPropertyDescriptor = require("../core-js/object/get-own-property-descriptor");
-
-var _Reflect$get = require("../core-js/reflect/get");
-
-var superPropBase = require("./superPropBase");
-
-function _get(target, property, receiver) {
- if (typeof Reflect !== "undefined" && _Reflect$get) {
- module.exports = _get = _Reflect$get;
- } else {
- module.exports = _get = function _get(target, property, receiver) {
- var base = superPropBase(target, property);
- if (!base) return;
-
- var desc = _Object$getOwnPropertyDescriptor(base, property);
-
- if (desc.get) {
- return desc.get.call(receiver);
- }
-
- return desc.value;
- };
- }
-
- return _get(target, property, receiver || target);
-}
-
-module.exports = _get;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/getPrototypeOf.js b/node_modules/@babel/runtime-corejs3/helpers/getPrototypeOf.js
deleted file mode 100644
index ac8d552..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/getPrototypeOf.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var _Object$getPrototypeOf = require("../core-js/object/get-prototype-of");
-
-var _Object$setPrototypeOf = require("../core-js/object/set-prototype-of");
-
-function _getPrototypeOf(o) {
- module.exports = _getPrototypeOf = _Object$setPrototypeOf ? _Object$getPrototypeOf : function _getPrototypeOf(o) {
- return o.__proto__ || _Object$getPrototypeOf(o);
- };
- return _getPrototypeOf(o);
-}
-
-module.exports = _getPrototypeOf;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/inherits.js b/node_modules/@babel/runtime-corejs3/helpers/inherits.js
deleted file mode 100644
index 4540e02..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/inherits.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var _Object$create = require("../core-js/object/create");
-
-var setPrototypeOf = require("./setPrototypeOf");
-
-function _inherits(subClass, superClass) {
- if (typeof superClass !== "function" && superClass !== null) {
- throw new TypeError("Super expression must either be null or a function");
- }
-
- subClass.prototype = _Object$create(superClass && superClass.prototype, {
- constructor: {
- value: subClass,
- writable: true,
- configurable: true
- }
- });
- if (superClass) setPrototypeOf(subClass, superClass);
-}
-
-module.exports = _inherits;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/inheritsLoose.js b/node_modules/@babel/runtime-corejs3/helpers/inheritsLoose.js
deleted file mode 100644
index bb367a5..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/inheritsLoose.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var _Object$create = require("../core-js/object/create");
-
-function _inheritsLoose(subClass, superClass) {
- subClass.prototype = _Object$create(superClass.prototype);
- subClass.prototype.constructor = subClass;
- subClass.__proto__ = superClass;
-}
-
-module.exports = _inheritsLoose;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/initializerDefineProperty.js b/node_modules/@babel/runtime-corejs3/helpers/initializerDefineProperty.js
deleted file mode 100644
index c0b86d9..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/initializerDefineProperty.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var _Object$defineProperty = require("../core-js/object/define-property");
-
-function _initializerDefineProperty(target, property, descriptor, context) {
- if (!descriptor) return;
-
- _Object$defineProperty(target, property, {
- enumerable: descriptor.enumerable,
- configurable: descriptor.configurable,
- writable: descriptor.writable,
- value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
- });
-}
-
-module.exports = _initializerDefineProperty;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/initializerWarningHelper.js b/node_modules/@babel/runtime-corejs3/helpers/initializerWarningHelper.js
deleted file mode 100644
index 50ec82c..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/initializerWarningHelper.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _initializerWarningHelper(descriptor, context) {
- throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.');
-}
-
-module.exports = _initializerWarningHelper;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/instanceof.js b/node_modules/@babel/runtime-corejs3/helpers/instanceof.js
deleted file mode 100644
index 9ccb3f6..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/instanceof.js
+++ /dev/null
@@ -1,13 +0,0 @@
-var _Symbol$hasInstance = require("../core-js/symbol/has-instance");
-
-var _Symbol = require("../core-js/symbol");
-
-function _instanceof(left, right) {
- if (right != null && typeof _Symbol !== "undefined" && right[_Symbol$hasInstance]) {
- return !!right[_Symbol$hasInstance](left);
- } else {
- return left instanceof right;
- }
-}
-
-module.exports = _instanceof;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js b/node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js
deleted file mode 100644
index f713d13..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js
+++ /dev/null
@@ -1,7 +0,0 @@
-function _interopRequireDefault(obj) {
- return obj && obj.__esModule ? obj : {
- "default": obj
- };
-}
-
-module.exports = _interopRequireDefault;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/interopRequireWildcard.js b/node_modules/@babel/runtime-corejs3/helpers/interopRequireWildcard.js
deleted file mode 100644
index 812a934..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/interopRequireWildcard.js
+++ /dev/null
@@ -1,61 +0,0 @@
-var _Object$getOwnPropertyDescriptor = require("../core-js/object/get-own-property-descriptor");
-
-var _Object$defineProperty = require("../core-js/object/define-property");
-
-var _typeof = require("../helpers/typeof");
-
-var _WeakMap = require("../core-js/weak-map");
-
-function _getRequireWildcardCache() {
- if (typeof _WeakMap !== "function") return null;
- var cache = new _WeakMap();
-
- _getRequireWildcardCache = function _getRequireWildcardCache() {
- return cache;
- };
-
- return cache;
-}
-
-function _interopRequireWildcard(obj) {
- if (obj && obj.__esModule) {
- return obj;
- }
-
- if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
- return {
- "default": obj
- };
- }
-
- var cache = _getRequireWildcardCache();
-
- if (cache && cache.has(obj)) {
- return cache.get(obj);
- }
-
- var newObj = {};
- var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor;
-
- for (var key in obj) {
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
- var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null;
-
- if (desc && (desc.get || desc.set)) {
- _Object$defineProperty(newObj, key, desc);
- } else {
- newObj[key] = obj[key];
- }
- }
- }
-
- newObj["default"] = obj;
-
- if (cache) {
- cache.set(obj, newObj);
- }
-
- return newObj;
-}
-
-module.exports = _interopRequireWildcard;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/isNativeFunction.js b/node_modules/@babel/runtime-corejs3/helpers/isNativeFunction.js
deleted file mode 100644
index 5f44eb5..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/isNativeFunction.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var _indexOfInstanceProperty = require("../core-js/instance/index-of");
-
-function _isNativeFunction(fn) {
- var _context;
-
- return _indexOfInstanceProperty(_context = Function.toString.call(fn)).call(_context, "[native code]") !== -1;
-}
-
-module.exports = _isNativeFunction;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/iterableToArray.js b/node_modules/@babel/runtime-corejs3/helpers/iterableToArray.js
deleted file mode 100644
index c7834a3..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/iterableToArray.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var _Array$from = require("../core-js/array/from");
-
-var _isIterable = require("../core-js/is-iterable");
-
-function _iterableToArray(iter) {
- if (_isIterable(Object(iter)) || Object.prototype.toString.call(iter) === "[object Arguments]") return _Array$from(iter);
-}
-
-module.exports = _iterableToArray;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimit.js b/node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimit.js
deleted file mode 100644
index c52fd5e..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimit.js
+++ /dev/null
@@ -1,35 +0,0 @@
-var _getIterator = require("../core-js/get-iterator");
-
-var _isIterable = require("../core-js/is-iterable");
-
-function _iterableToArrayLimit(arr, i) {
- if (!(_isIterable(Object(arr)) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
- return;
- }
-
- var _arr = [];
- var _n = true;
- var _d = false;
- var _e = undefined;
-
- try {
- for (var _i = _getIterator(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {
- _arr.push(_s.value);
-
- if (i && _arr.length === i) break;
- }
- } catch (err) {
- _d = true;
- _e = err;
- } finally {
- try {
- if (!_n && _i["return"] != null) _i["return"]();
- } finally {
- if (_d) throw _e;
- }
- }
-
- return _arr;
-}
-
-module.exports = _iterableToArrayLimit;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimitLoose.js b/node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimitLoose.js
deleted file mode 100644
index 326d8dd..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimitLoose.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var _getIterator = require("../core-js/get-iterator");
-
-var _isIterable = require("../core-js/is-iterable");
-
-function _iterableToArrayLimitLoose(arr, i) {
- if (!(_isIterable(Object(arr)) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
- return;
- }
-
- var _arr = [];
-
- for (var _iterator = _getIterator(arr), _step; !(_step = _iterator.next()).done;) {
- _arr.push(_step.value);
-
- if (i && _arr.length === i) break;
- }
-
- return _arr;
-}
-
-module.exports = _iterableToArrayLimitLoose;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/jsx.js b/node_modules/@babel/runtime-corejs3/helpers/jsx.js
deleted file mode 100644
index 6b72de2..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/jsx.js
+++ /dev/null
@@ -1,53 +0,0 @@
-var _Symbol$for = require("../core-js/symbol/for");
-
-var _Symbol = require("../core-js/symbol");
-
-var REACT_ELEMENT_TYPE;
-
-function _createRawReactElement(type, props, key, children) {
- if (!REACT_ELEMENT_TYPE) {
- REACT_ELEMENT_TYPE = typeof _Symbol === "function" && _Symbol$for && _Symbol$for("react.element") || 0xeac7;
- }
-
- var defaultProps = type && type.defaultProps;
- var childrenLength = arguments.length - 3;
-
- if (!props && childrenLength !== 0) {
- props = {
- children: void 0
- };
- }
-
- if (childrenLength === 1) {
- props.children = children;
- } else if (childrenLength > 1) {
- var childArray = new Array(childrenLength);
-
- for (var i = 0; i < childrenLength; i++) {
- childArray[i] = arguments[i + 3];
- }
-
- props.children = childArray;
- }
-
- if (props && defaultProps) {
- for (var propName in defaultProps) {
- if (props[propName] === void 0) {
- props[propName] = defaultProps[propName];
- }
- }
- } else if (!props) {
- props = defaultProps || {};
- }
-
- return {
- $$typeof: REACT_ELEMENT_TYPE,
- type: type,
- key: key === undefined ? null : '' + key,
- ref: null,
- props: props,
- _owner: null
- };
-}
-
-module.exports = _createRawReactElement;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/newArrowCheck.js b/node_modules/@babel/runtime-corejs3/helpers/newArrowCheck.js
deleted file mode 100644
index 9b59f58..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/newArrowCheck.js
+++ /dev/null
@@ -1,7 +0,0 @@
-function _newArrowCheck(innerThis, boundThis) {
- if (innerThis !== boundThis) {
- throw new TypeError("Cannot instantiate an arrow function");
- }
-}
-
-module.exports = _newArrowCheck;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/nonIterableRest.js b/node_modules/@babel/runtime-corejs3/helpers/nonIterableRest.js
deleted file mode 100644
index eb447dd..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/nonIterableRest.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _nonIterableRest() {
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
-}
-
-module.exports = _nonIterableRest;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/nonIterableSpread.js b/node_modules/@babel/runtime-corejs3/helpers/nonIterableSpread.js
deleted file mode 100644
index 7d7ca43..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/nonIterableSpread.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _nonIterableSpread() {
- throw new TypeError("Invalid attempt to spread non-iterable instance");
-}
-
-module.exports = _nonIterableSpread;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/objectDestructuringEmpty.js b/node_modules/@babel/runtime-corejs3/helpers/objectDestructuringEmpty.js
deleted file mode 100644
index 1d5c04a..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/objectDestructuringEmpty.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _objectDestructuringEmpty(obj) {
- if (obj == null) throw new TypeError("Cannot destructure undefined");
-}
-
-module.exports = _objectDestructuringEmpty;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/objectSpread.js b/node_modules/@babel/runtime-corejs3/helpers/objectSpread.js
deleted file mode 100644
index 09a794a..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/objectSpread.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var _forEachInstanceProperty = require("../core-js/instance/for-each");
-
-var _Object$getOwnPropertyDescriptor = require("../core-js/object/get-own-property-descriptor");
-
-var _filterInstanceProperty = require("../core-js/instance/filter");
-
-var _concatInstanceProperty = require("../core-js/instance/concat");
-
-var _Object$getOwnPropertySymbols = require("../core-js/object/get-own-property-symbols");
-
-var _Object$keys = require("../core-js/object/keys");
-
-var defineProperty = require("./defineProperty");
-
-function _objectSpread(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i] != null ? Object(arguments[i]) : {};
-
- var ownKeys = _Object$keys(source);
-
- if (typeof _Object$getOwnPropertySymbols === 'function') {
- var _context;
-
- ownKeys = _concatInstanceProperty(ownKeys).call(ownKeys, _filterInstanceProperty(_context = _Object$getOwnPropertySymbols(source)).call(_context, function (sym) {
- return _Object$getOwnPropertyDescriptor(source, sym).enumerable;
- }));
- }
-
- _forEachInstanceProperty(ownKeys).call(ownKeys, function (key) {
- defineProperty(target, key, source[key]);
- });
- }
-
- return target;
-}
-
-module.exports = _objectSpread;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/objectSpread2.js b/node_modules/@babel/runtime-corejs3/helpers/objectSpread2.js
deleted file mode 100644
index ab4a226..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/objectSpread2.js
+++ /dev/null
@@ -1,58 +0,0 @@
-var _Object$defineProperty = require("../core-js/object/define-property");
-
-var _Object$defineProperties = require("../core-js/object/define-properties");
-
-var _Object$getOwnPropertyDescriptors = require("../core-js/object/get-own-property-descriptors");
-
-var _forEachInstanceProperty = require("../core-js/instance/for-each");
-
-var _Object$getOwnPropertyDescriptor = require("../core-js/object/get-own-property-descriptor");
-
-var _filterInstanceProperty = require("../core-js/instance/filter");
-
-var _Object$getOwnPropertySymbols = require("../core-js/object/get-own-property-symbols");
-
-var _Object$keys = require("../core-js/object/keys");
-
-var defineProperty = require("./defineProperty");
-
-function ownKeys(object, enumerableOnly) {
- var keys = _Object$keys(object);
-
- if (_Object$getOwnPropertySymbols) {
- var symbols = _Object$getOwnPropertySymbols(object);
-
- if (enumerableOnly) symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) {
- return _Object$getOwnPropertyDescriptor(object, sym).enumerable;
- });
- keys.push.apply(keys, symbols);
- }
-
- return keys;
-}
-
-function _objectSpread2(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i] != null ? arguments[i] : {};
-
- if (i % 2) {
- var _context;
-
- _forEachInstanceProperty(_context = ownKeys(Object(source), true)).call(_context, function (key) {
- defineProperty(target, key, source[key]);
- });
- } else if (_Object$getOwnPropertyDescriptors) {
- _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source));
- } else {
- var _context2;
-
- _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) {
- _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key));
- });
- }
- }
-
- return target;
-}
-
-module.exports = _objectSpread2;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/objectWithoutProperties.js b/node_modules/@babel/runtime-corejs3/helpers/objectWithoutProperties.js
deleted file mode 100644
index 85672e2..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/objectWithoutProperties.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var _indexOfInstanceProperty = require("../core-js/instance/index-of");
-
-var _Object$getOwnPropertySymbols = require("../core-js/object/get-own-property-symbols");
-
-var objectWithoutPropertiesLoose = require("./objectWithoutPropertiesLoose");
-
-function _objectWithoutProperties(source, excluded) {
- if (source == null) return {};
- var target = objectWithoutPropertiesLoose(source, excluded);
- var key, i;
-
- if (_Object$getOwnPropertySymbols) {
- var sourceSymbolKeys = _Object$getOwnPropertySymbols(source);
-
- for (i = 0; i < sourceSymbolKeys.length; i++) {
- key = sourceSymbolKeys[i];
- if (_indexOfInstanceProperty(excluded).call(excluded, key) >= 0) continue;
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
- target[key] = source[key];
- }
- }
-
- return target;
-}
-
-module.exports = _objectWithoutProperties;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/objectWithoutPropertiesLoose.js b/node_modules/@babel/runtime-corejs3/helpers/objectWithoutPropertiesLoose.js
deleted file mode 100644
index ad79fd4..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/objectWithoutPropertiesLoose.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var _indexOfInstanceProperty = require("../core-js/instance/index-of");
-
-var _Object$keys = require("../core-js/object/keys");
-
-function _objectWithoutPropertiesLoose(source, excluded) {
- if (source == null) return {};
- var target = {};
-
- var sourceKeys = _Object$keys(source);
-
- var key, i;
-
- for (i = 0; i < sourceKeys.length; i++) {
- key = sourceKeys[i];
- if (_indexOfInstanceProperty(excluded).call(excluded, key) >= 0) continue;
- target[key] = source[key];
- }
-
- return target;
-}
-
-module.exports = _objectWithoutPropertiesLoose;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/possibleConstructorReturn.js b/node_modules/@babel/runtime-corejs3/helpers/possibleConstructorReturn.js
deleted file mode 100644
index 84f7bf6..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/possibleConstructorReturn.js
+++ /dev/null
@@ -1,13 +0,0 @@
-var _typeof = require("../helpers/typeof");
-
-var assertThisInitialized = require("./assertThisInitialized");
-
-function _possibleConstructorReturn(self, call) {
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
- return call;
- }
-
- return assertThisInitialized(self);
-}
-
-module.exports = _possibleConstructorReturn;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/readOnlyError.js b/node_modules/@babel/runtime-corejs3/helpers/readOnlyError.js
deleted file mode 100644
index 4e61e3f..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/readOnlyError.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _readOnlyError(name) {
- throw new Error("\"" + name + "\" is read-only");
-}
-
-module.exports = _readOnlyError;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/set.js b/node_modules/@babel/runtime-corejs3/helpers/set.js
deleted file mode 100644
index ca46857..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/set.js
+++ /dev/null
@@ -1,61 +0,0 @@
-var _Object$defineProperty = require("../core-js/object/define-property");
-
-var _Object$getOwnPropertyDescriptor = require("../core-js/object/get-own-property-descriptor");
-
-var _Reflect$set = require("../core-js/reflect/set");
-
-var superPropBase = require("./superPropBase");
-
-var defineProperty = require("./defineProperty");
-
-function set(target, property, value, receiver) {
- if (typeof Reflect !== "undefined" && _Reflect$set) {
- set = _Reflect$set;
- } else {
- set = function set(target, property, value, receiver) {
- var base = superPropBase(target, property);
- var desc;
-
- if (base) {
- desc = _Object$getOwnPropertyDescriptor(base, property);
-
- if (desc.set) {
- desc.set.call(receiver, value);
- return true;
- } else if (!desc.writable) {
- return false;
- }
- }
-
- desc = _Object$getOwnPropertyDescriptor(receiver, property);
-
- if (desc) {
- if (!desc.writable) {
- return false;
- }
-
- desc.value = value;
-
- _Object$defineProperty(receiver, property, desc);
- } else {
- defineProperty(receiver, property, value);
- }
-
- return true;
- };
- }
-
- return set(target, property, value, receiver);
-}
-
-function _set(target, property, value, receiver, isStrict) {
- var s = set(target, property, value, receiver || target);
-
- if (!s && isStrict) {
- throw new Error('failed to set property');
- }
-
- return value;
-}
-
-module.exports = _set;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/setPrototypeOf.js b/node_modules/@babel/runtime-corejs3/helpers/setPrototypeOf.js
deleted file mode 100644
index ccca1c2..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/setPrototypeOf.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var _Object$setPrototypeOf = require("../core-js/object/set-prototype-of");
-
-function _setPrototypeOf(o, p) {
- module.exports = _setPrototypeOf = _Object$setPrototypeOf || function _setPrototypeOf(o, p) {
- o.__proto__ = p;
- return o;
- };
-
- return _setPrototypeOf(o, p);
-}
-
-module.exports = _setPrototypeOf;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/skipFirstGeneratorNext.js b/node_modules/@babel/runtime-corejs3/helpers/skipFirstGeneratorNext.js
deleted file mode 100644
index e1d6c86..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/skipFirstGeneratorNext.js
+++ /dev/null
@@ -1,9 +0,0 @@
-function _skipFirstGeneratorNext(fn) {
- return function () {
- var it = fn.apply(this, arguments);
- it.next();
- return it;
- };
-}
-
-module.exports = _skipFirstGeneratorNext;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js b/node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js
deleted file mode 100644
index 243ea9e..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var arrayWithHoles = require("./arrayWithHoles");
-
-var iterableToArrayLimit = require("./iterableToArrayLimit");
-
-var nonIterableRest = require("./nonIterableRest");
-
-function _slicedToArray(arr, i) {
- return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();
-}
-
-module.exports = _slicedToArray;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/slicedToArrayLoose.js b/node_modules/@babel/runtime-corejs3/helpers/slicedToArrayLoose.js
deleted file mode 100644
index c7e4313..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/slicedToArrayLoose.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var arrayWithHoles = require("./arrayWithHoles");
-
-var iterableToArrayLimitLoose = require("./iterableToArrayLimitLoose");
-
-var nonIterableRest = require("./nonIterableRest");
-
-function _slicedToArrayLoose(arr, i) {
- return arrayWithHoles(arr) || iterableToArrayLimitLoose(arr, i) || nonIterableRest();
-}
-
-module.exports = _slicedToArrayLoose;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/superPropBase.js b/node_modules/@babel/runtime-corejs3/helpers/superPropBase.js
deleted file mode 100644
index bbb34a2..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/superPropBase.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var getPrototypeOf = require("./getPrototypeOf");
-
-function _superPropBase(object, property) {
- while (!Object.prototype.hasOwnProperty.call(object, property)) {
- object = getPrototypeOf(object);
- if (object === null) break;
- }
-
- return object;
-}
-
-module.exports = _superPropBase;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/taggedTemplateLiteral.js b/node_modules/@babel/runtime-corejs3/helpers/taggedTemplateLiteral.js
deleted file mode 100644
index 6385c66..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/taggedTemplateLiteral.js
+++ /dev/null
@@ -1,19 +0,0 @@
-var _Object$defineProperties = require("../core-js/object/define-properties");
-
-var _Object$freeze = require("../core-js/object/freeze");
-
-var _sliceInstanceProperty = require("../core-js/instance/slice");
-
-function _taggedTemplateLiteral(strings, raw) {
- if (!raw) {
- raw = _sliceInstanceProperty(strings).call(strings, 0);
- }
-
- return _Object$freeze(_Object$defineProperties(strings, {
- raw: {
- value: _Object$freeze(raw)
- }
- }));
-}
-
-module.exports = _taggedTemplateLiteral;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/taggedTemplateLiteralLoose.js b/node_modules/@babel/runtime-corejs3/helpers/taggedTemplateLiteralLoose.js
deleted file mode 100644
index 223ab3e..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/taggedTemplateLiteralLoose.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var _sliceInstanceProperty = require("../core-js/instance/slice");
-
-function _taggedTemplateLiteralLoose(strings, raw) {
- if (!raw) {
- raw = _sliceInstanceProperty(strings).call(strings, 0);
- }
-
- strings.raw = raw;
- return strings;
-}
-
-module.exports = _taggedTemplateLiteralLoose;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/tdz.js b/node_modules/@babel/runtime-corejs3/helpers/tdz.js
deleted file mode 100644
index 6075e8d..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/tdz.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _tdzError(name) {
- throw new ReferenceError(name + " is not defined - temporal dead zone");
-}
-
-module.exports = _tdzError;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/temporalRef.js b/node_modules/@babel/runtime-corejs3/helpers/temporalRef.js
deleted file mode 100644
index 8aa5e5e..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/temporalRef.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var temporalUndefined = require("./temporalUndefined");
-
-var tdz = require("./tdz");
-
-function _temporalRef(val, name) {
- return val === temporalUndefined ? tdz(name) : val;
-}
-
-module.exports = _temporalRef;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/temporalUndefined.js b/node_modules/@babel/runtime-corejs3/helpers/temporalUndefined.js
deleted file mode 100644
index 416d9b3..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/temporalUndefined.js
+++ /dev/null
@@ -1,3 +0,0 @@
-function _temporalUndefined() {}
-
-module.exports = _temporalUndefined;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/toArray.js b/node_modules/@babel/runtime-corejs3/helpers/toArray.js
deleted file mode 100644
index c28fd9e..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/toArray.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var arrayWithHoles = require("./arrayWithHoles");
-
-var iterableToArray = require("./iterableToArray");
-
-var nonIterableRest = require("./nonIterableRest");
-
-function _toArray(arr) {
- return arrayWithHoles(arr) || iterableToArray(arr) || nonIterableRest();
-}
-
-module.exports = _toArray;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js b/node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js
deleted file mode 100644
index 4cd54a3..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var arrayWithoutHoles = require("./arrayWithoutHoles");
-
-var iterableToArray = require("./iterableToArray");
-
-var nonIterableSpread = require("./nonIterableSpread");
-
-function _toConsumableArray(arr) {
- return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();
-}
-
-module.exports = _toConsumableArray;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/toPrimitive.js b/node_modules/@babel/runtime-corejs3/helpers/toPrimitive.js
deleted file mode 100644
index 9959204..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/toPrimitive.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var _Symbol$toPrimitive = require("../core-js/symbol/to-primitive");
-
-var _typeof = require("../helpers/typeof");
-
-function _toPrimitive(input, hint) {
- if (_typeof(input) !== "object" || input === null) return input;
- var prim = input[_Symbol$toPrimitive];
-
- if (prim !== undefined) {
- var res = prim.call(input, hint || "default");
- if (_typeof(res) !== "object") return res;
- throw new TypeError("@@toPrimitive must return a primitive value.");
- }
-
- return (hint === "string" ? String : Number)(input);
-}
-
-module.exports = _toPrimitive;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/toPropertyKey.js b/node_modules/@babel/runtime-corejs3/helpers/toPropertyKey.js
deleted file mode 100644
index 108b083..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/toPropertyKey.js
+++ /dev/null
@@ -1,10 +0,0 @@
-var _typeof = require("../helpers/typeof");
-
-var toPrimitive = require("./toPrimitive");
-
-function _toPropertyKey(arg) {
- var key = toPrimitive(arg, "string");
- return _typeof(key) === "symbol" ? key : String(key);
-}
-
-module.exports = _toPropertyKey;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/typeof.js b/node_modules/@babel/runtime-corejs3/helpers/typeof.js
deleted file mode 100644
index 897af2a..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/typeof.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var _Symbol$iterator = require("../core-js/symbol/iterator");
-
-var _Symbol = require("../core-js/symbol");
-
-function _typeof(obj) {
- "@babel/helpers - typeof";
-
- if (typeof _Symbol === "function" && typeof _Symbol$iterator === "symbol") {
- module.exports = _typeof = function _typeof(obj) {
- return typeof obj;
- };
- } else {
- module.exports = _typeof = function _typeof(obj) {
- return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj;
- };
- }
-
- return _typeof(obj);
-}
-
-module.exports = _typeof;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/wrapAsyncGenerator.js b/node_modules/@babel/runtime-corejs3/helpers/wrapAsyncGenerator.js
deleted file mode 100644
index 11554f3..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/wrapAsyncGenerator.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var AsyncGenerator = require("./AsyncGenerator");
-
-function _wrapAsyncGenerator(fn) {
- return function () {
- return new AsyncGenerator(fn.apply(this, arguments));
- };
-}
-
-module.exports = _wrapAsyncGenerator;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/wrapNativeSuper.js b/node_modules/@babel/runtime-corejs3/helpers/wrapNativeSuper.js
deleted file mode 100644
index 0d9cb7a..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/wrapNativeSuper.js
+++ /dev/null
@@ -1,47 +0,0 @@
-var _Object$create = require("../core-js/object/create");
-
-var _Map = require("../core-js/map");
-
-var getPrototypeOf = require("./getPrototypeOf");
-
-var setPrototypeOf = require("./setPrototypeOf");
-
-var isNativeFunction = require("./isNativeFunction");
-
-var construct = require("./construct");
-
-function _wrapNativeSuper(Class) {
- var _cache = typeof _Map === "function" ? new _Map() : undefined;
-
- module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
- if (Class === null || !isNativeFunction(Class)) return Class;
-
- if (typeof Class !== "function") {
- throw new TypeError("Super expression must either be null or a function");
- }
-
- if (typeof _cache !== "undefined") {
- if (_cache.has(Class)) return _cache.get(Class);
-
- _cache.set(Class, Wrapper);
- }
-
- function Wrapper() {
- return construct(Class, arguments, getPrototypeOf(this).constructor);
- }
-
- Wrapper.prototype = _Object$create(Class.prototype, {
- constructor: {
- value: Wrapper,
- enumerable: false,
- writable: true,
- configurable: true
- }
- });
- return setPrototypeOf(Wrapper, Class);
- };
-
- return _wrapNativeSuper(Class);
-}
-
-module.exports = _wrapNativeSuper;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/helpers/wrapRegExp.js b/node_modules/@babel/runtime-corejs3/helpers/wrapRegExp.js
deleted file mode 100644
index 84c123f..0000000
--- a/node_modules/@babel/runtime-corejs3/helpers/wrapRegExp.js
+++ /dev/null
@@ -1,88 +0,0 @@
-var _Object$create = require("../core-js/object/create");
-
-var _Object$keys = require("../core-js/object/keys");
-
-var _reduceInstanceProperty = require("../core-js/instance/reduce");
-
-var _typeof = require("../helpers/typeof");
-
-var _Symbol$replace = require("../core-js/symbol/replace");
-
-var _WeakMap = require("../core-js/weak-map");
-
-var wrapNativeSuper = require("./wrapNativeSuper");
-
-var getPrototypeOf = require("./getPrototypeOf");
-
-var possibleConstructorReturn = require("./possibleConstructorReturn");
-
-var inherits = require("./inherits");
-
-function _wrapRegExp(re, groups) {
- module.exports = _wrapRegExp = function _wrapRegExp(re, groups) {
- return new BabelRegExp(re, undefined, groups);
- };
-
- var _RegExp = wrapNativeSuper(RegExp);
-
- var _super = RegExp.prototype;
-
- var _groups = new _WeakMap();
-
- function BabelRegExp(re, flags, groups) {
- var _this = _RegExp.call(this, re, flags);
-
- _groups.set(_this, groups || _groups.get(re));
-
- return _this;
- }
-
- inherits(BabelRegExp, _RegExp);
-
- BabelRegExp.prototype.exec = function (str) {
- var result = _super.exec.call(this, str);
-
- if (result) result.groups = buildGroups(result, this);
- return result;
- };
-
- BabelRegExp.prototype[_Symbol$replace] = function (str, substitution) {
- if (typeof substitution === "string") {
- var groups = _groups.get(this);
-
- return _super[_Symbol$replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
- return "$" + groups[name];
- }));
- } else if (typeof substitution === "function") {
- var _this = this;
-
- return _super[_Symbol$replace].call(this, str, function () {
- var args = [];
- args.push.apply(args, arguments);
-
- if (_typeof(args[args.length - 1]) !== "object") {
- args.push(buildGroups(args, _this));
- }
-
- return substitution.apply(this, args);
- });
- } else {
- return _super[_Symbol$replace].call(this, str, substitution);
- }
- };
-
- function buildGroups(result, re) {
- var _context;
-
- var g = _groups.get(re);
-
- return _reduceInstanceProperty(_context = _Object$keys(g)).call(_context, function (groups, name) {
- groups[name] = result[g[name]];
- return groups;
- }, _Object$create(null));
- }
-
- return _wrapRegExp.apply(this, arguments);
-}
-
-module.exports = _wrapRegExp;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime-corejs3/package.json b/node_modules/@babel/runtime-corejs3/package.json
deleted file mode 100644
index d00f5de..0000000
--- a/node_modules/@babel/runtime-corejs3/package.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "@babel/runtime-corejs3",
- "version": "7.8.7",
- "description": "babel's modular runtime helpers with core-js@3 polyfilling",
- "license": "MIT",
- "publishConfig": {
- "access": "public"
- },
- "repository": "https://github.com/babel/babel/tree/master/packages/babel-runtime-corejs3",
- "author": "Denis Pushkarev <zloirock@zloirock.ru>",
- "dependencies": {
- "core-js-pure": "^3.0.0",
- "regenerator-runtime": "^0.13.4"
- },
- "gitHead": "595f65f33b8e948e34d12be83f700cf8d070c790"
-}
diff --git a/node_modules/@babel/runtime-corejs3/regenerator/index.js b/node_modules/@babel/runtime-corejs3/regenerator/index.js
deleted file mode 100644
index 9fd4158..0000000
--- a/node_modules/@babel/runtime-corejs3/regenerator/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("regenerator-runtime");
diff --git a/node_modules/@babel/runtime/LICENSE b/node_modules/@babel/runtime/LICENSE
deleted file mode 100644
index f31575e..0000000
--- a/node_modules/@babel/runtime/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-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/node_modules/@babel/runtime/README.md b/node_modules/@babel/runtime/README.md
deleted file mode 100644
index 72e8daa..0000000
--- a/node_modules/@babel/runtime/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/runtime
-
-> babel's modular runtime helpers
-
-See our website [@babel/runtime](https://babeljs.io/docs/en/next/babel-runtime.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save @babel/runtime
-```
-
-or using yarn:
-
-```sh
-yarn add @babel/runtime
-```
diff --git a/node_modules/@babel/runtime/helpers/AsyncGenerator.js b/node_modules/@babel/runtime/helpers/AsyncGenerator.js
deleted file mode 100644
index 5e23730..0000000
--- a/node_modules/@babel/runtime/helpers/AsyncGenerator.js
+++ /dev/null
@@ -1,100 +0,0 @@
-var AwaitValue = require("./AwaitValue");
-
-function AsyncGenerator(gen) {
- var front, back;
-
- function send(key, arg) {
- return new Promise(function (resolve, reject) {
- var request = {
- key: key,
- arg: arg,
- resolve: resolve,
- reject: reject,
- next: null
- };
-
- if (back) {
- back = back.next = request;
- } else {
- front = back = request;
- resume(key, arg);
- }
- });
- }
-
- function resume(key, arg) {
- try {
- var result = gen[key](arg);
- var value = result.value;
- var wrappedAwait = value instanceof AwaitValue;
- Promise.resolve(wrappedAwait ? value.wrapped : value).then(function (arg) {
- if (wrappedAwait) {
- resume(key === "return" ? "return" : "next", arg);
- return;
- }
-
- settle(result.done ? "return" : "normal", arg);
- }, function (err) {
- resume("throw", err);
- });
- } catch (err) {
- settle("throw", err);
- }
- }
-
- function settle(type, value) {
- switch (type) {
- case "return":
- front.resolve({
- value: value,
- done: true
- });
- break;
-
- case "throw":
- front.reject(value);
- break;
-
- default:
- front.resolve({
- value: value,
- done: false
- });
- break;
- }
-
- front = front.next;
-
- if (front) {
- resume(front.key, front.arg);
- } else {
- back = null;
- }
- }
-
- this._invoke = send;
-
- if (typeof gen["return"] !== "function") {
- this["return"] = undefined;
- }
-}
-
-if (typeof Symbol === "function" && Symbol.asyncIterator) {
- AsyncGenerator.prototype[Symbol.asyncIterator] = function () {
- return this;
- };
-}
-
-AsyncGenerator.prototype.next = function (arg) {
- return this._invoke("next", arg);
-};
-
-AsyncGenerator.prototype["throw"] = function (arg) {
- return this._invoke("throw", arg);
-};
-
-AsyncGenerator.prototype["return"] = function (arg) {
- return this._invoke("return", arg);
-};
-
-module.exports = AsyncGenerator;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/AwaitValue.js b/node_modules/@babel/runtime/helpers/AwaitValue.js
deleted file mode 100644
index f9f4184..0000000
--- a/node_modules/@babel/runtime/helpers/AwaitValue.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _AwaitValue(value) {
- this.wrapped = value;
-}
-
-module.exports = _AwaitValue;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js b/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js
deleted file mode 100644
index b0b41dd..0000000
--- a/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js
+++ /dev/null
@@ -1,30 +0,0 @@
-function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
- var desc = {};
- Object.keys(descriptor).forEach(function (key) {
- desc[key] = descriptor[key];
- });
- desc.enumerable = !!desc.enumerable;
- desc.configurable = !!desc.configurable;
-
- if ('value' in desc || desc.initializer) {
- desc.writable = true;
- }
-
- desc = decorators.slice().reverse().reduce(function (desc, decorator) {
- return decorator(target, property, desc) || desc;
- }, desc);
-
- if (context && desc.initializer !== void 0) {
- desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
- desc.initializer = undefined;
- }
-
- if (desc.initializer === void 0) {
- Object.defineProperty(target, property, desc);
- desc = null;
- }
-
- return desc;
-}
-
-module.exports = _applyDecoratedDescriptor;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/arrayWithHoles.js b/node_modules/@babel/runtime/helpers/arrayWithHoles.js
deleted file mode 100644
index 5a62a8c..0000000
--- a/node_modules/@babel/runtime/helpers/arrayWithHoles.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _arrayWithHoles(arr) {
- if (Array.isArray(arr)) return arr;
-}
-
-module.exports = _arrayWithHoles;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js b/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js
deleted file mode 100644
index 3234017..0000000
--- a/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js
+++ /dev/null
@@ -1,11 +0,0 @@
-function _arrayWithoutHoles(arr) {
- if (Array.isArray(arr)) {
- for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
- arr2[i] = arr[i];
- }
-
- return arr2;
- }
-}
-
-module.exports = _arrayWithoutHoles;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/assertThisInitialized.js b/node_modules/@babel/runtime/helpers/assertThisInitialized.js
deleted file mode 100644
index 98d2949..0000000
--- a/node_modules/@babel/runtime/helpers/assertThisInitialized.js
+++ /dev/null
@@ -1,9 +0,0 @@
-function _assertThisInitialized(self) {
- if (self === void 0) {
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- }
-
- return self;
-}
-
-module.exports = _assertThisInitialized;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js b/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js
deleted file mode 100644
index c37ecf2..0000000
--- a/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js
+++ /dev/null
@@ -1,58 +0,0 @@
-function _asyncGeneratorDelegate(inner, awaitWrap) {
- var iter = {},
- waiting = false;
-
- function pump(key, value) {
- waiting = true;
- value = new Promise(function (resolve) {
- resolve(inner[key](value));
- });
- return {
- done: false,
- value: awaitWrap(value)
- };
- }
-
- ;
-
- if (typeof Symbol === "function" && Symbol.iterator) {
- iter[Symbol.iterator] = function () {
- return this;
- };
- }
-
- iter.next = function (value) {
- if (waiting) {
- waiting = false;
- return value;
- }
-
- return pump("next", value);
- };
-
- if (typeof inner["throw"] === "function") {
- iter["throw"] = function (value) {
- if (waiting) {
- waiting = false;
- throw value;
- }
-
- return pump("throw", value);
- };
- }
-
- if (typeof inner["return"] === "function") {
- iter["return"] = function (value) {
- if (waiting) {
- waiting = false;
- return value;
- }
-
- return pump("return", value);
- };
- }
-
- return iter;
-}
-
-module.exports = _asyncGeneratorDelegate;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/asyncIterator.js b/node_modules/@babel/runtime/helpers/asyncIterator.js
deleted file mode 100644
index ef5db27..0000000
--- a/node_modules/@babel/runtime/helpers/asyncIterator.js
+++ /dev/null
@@ -1,19 +0,0 @@
-function _asyncIterator(iterable) {
- var method;
-
- if (typeof Symbol !== "undefined") {
- if (Symbol.asyncIterator) {
- method = iterable[Symbol.asyncIterator];
- if (method != null) return method.call(iterable);
- }
-
- if (Symbol.iterator) {
- method = iterable[Symbol.iterator];
- if (method != null) return method.call(iterable);
- }
- }
-
- throw new TypeError("Object is not async iterable");
-}
-
-module.exports = _asyncIterator;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/asyncToGenerator.js b/node_modules/@babel/runtime/helpers/asyncToGenerator.js
deleted file mode 100644
index f5db93d..0000000
--- a/node_modules/@babel/runtime/helpers/asyncToGenerator.js
+++ /dev/null
@@ -1,37 +0,0 @@
-function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
- try {
- var info = gen[key](arg);
- var value = info.value;
- } catch (error) {
- reject(error);
- return;
- }
-
- if (info.done) {
- resolve(value);
- } else {
- Promise.resolve(value).then(_next, _throw);
- }
-}
-
-function _asyncToGenerator(fn) {
- return function () {
- var self = this,
- args = arguments;
- return new Promise(function (resolve, reject) {
- var gen = fn.apply(self, args);
-
- function _next(value) {
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
- }
-
- function _throw(err) {
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
- }
-
- _next(undefined);
- });
- };
-}
-
-module.exports = _asyncToGenerator;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js b/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js
deleted file mode 100644
index 59f797a..0000000
--- a/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var AwaitValue = require("./AwaitValue");
-
-function _awaitAsyncGenerator(value) {
- return new AwaitValue(value);
-}
-
-module.exports = _awaitAsyncGenerator;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/classCallCheck.js b/node_modules/@babel/runtime/helpers/classCallCheck.js
deleted file mode 100644
index f389f2e..0000000
--- a/node_modules/@babel/runtime/helpers/classCallCheck.js
+++ /dev/null
@@ -1,7 +0,0 @@
-function _classCallCheck(instance, Constructor) {
- if (!(instance instanceof Constructor)) {
- throw new TypeError("Cannot call a class as a function");
- }
-}
-
-module.exports = _classCallCheck;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/classNameTDZError.js b/node_modules/@babel/runtime/helpers/classNameTDZError.js
deleted file mode 100644
index 8c1bdf5..0000000
--- a/node_modules/@babel/runtime/helpers/classNameTDZError.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _classNameTDZError(name) {
- throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys.");
-}
-
-module.exports = _classNameTDZError;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js b/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js
deleted file mode 100644
index fab9105..0000000
--- a/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js
+++ /dev/null
@@ -1,28 +0,0 @@
-function _classPrivateFieldDestructureSet(receiver, privateMap) {
- if (!privateMap.has(receiver)) {
- throw new TypeError("attempted to set private field on non-instance");
- }
-
- var descriptor = privateMap.get(receiver);
-
- if (descriptor.set) {
- if (!("__destrObj" in descriptor)) {
- descriptor.__destrObj = {
- set value(v) {
- descriptor.set.call(receiver, v);
- }
-
- };
- }
-
- return descriptor.__destrObj;
- } else {
- if (!descriptor.writable) {
- throw new TypeError("attempted to set read only private field");
- }
-
- return descriptor;
- }
-}
-
-module.exports = _classPrivateFieldDestructureSet;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js b/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js
deleted file mode 100644
index 106c3cd..0000000
--- a/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js
+++ /dev/null
@@ -1,15 +0,0 @@
-function _classPrivateFieldGet(receiver, privateMap) {
- var descriptor = privateMap.get(receiver);
-
- if (!descriptor) {
- throw new TypeError("attempted to get private field on non-instance");
- }
-
- if (descriptor.get) {
- return descriptor.get.call(receiver);
- }
-
- return descriptor.value;
-}
-
-module.exports = _classPrivateFieldGet;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js b/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js
deleted file mode 100644
index 64ed79d..0000000
--- a/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js
+++ /dev/null
@@ -1,9 +0,0 @@
-function _classPrivateFieldBase(receiver, privateKey) {
- if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {
- throw new TypeError("attempted to use private field on non-instance");
- }
-
- return receiver;
-}
-
-module.exports = _classPrivateFieldBase;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js b/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js
deleted file mode 100644
index a1a6417..0000000
--- a/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var id = 0;
-
-function _classPrivateFieldKey(name) {
- return "__private_" + id++ + "_" + name;
-}
-
-module.exports = _classPrivateFieldKey;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js b/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js
deleted file mode 100644
index c92f97a..0000000
--- a/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js
+++ /dev/null
@@ -1,21 +0,0 @@
-function _classPrivateFieldSet(receiver, privateMap, value) {
- var descriptor = privateMap.get(receiver);
-
- if (!descriptor) {
- throw new TypeError("attempted to set private field on non-instance");
- }
-
- if (descriptor.set) {
- descriptor.set.call(receiver, value);
- } else {
- if (!descriptor.writable) {
- throw new TypeError("attempted to set read only private field");
- }
-
- descriptor.value = value;
- }
-
- return value;
-}
-
-module.exports = _classPrivateFieldSet;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js b/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js
deleted file mode 100644
index a3432b9..0000000
--- a/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js
+++ /dev/null
@@ -1,9 +0,0 @@
-function _classPrivateMethodGet(receiver, privateSet, fn) {
- if (!privateSet.has(receiver)) {
- throw new TypeError("attempted to get private field on non-instance");
- }
-
- return fn;
-}
-
-module.exports = _classPrivateMethodGet;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js b/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js
deleted file mode 100644
index 3847284..0000000
--- a/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _classPrivateMethodSet() {
- throw new TypeError("attempted to reassign private method");
-}
-
-module.exports = _classPrivateMethodSet;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js
deleted file mode 100644
index c2b6766..0000000
--- a/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js
+++ /dev/null
@@ -1,13 +0,0 @@
-function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
- if (receiver !== classConstructor) {
- throw new TypeError("Private static access of wrong provenance");
- }
-
- if (descriptor.get) {
- return descriptor.get.call(receiver);
- }
-
- return descriptor.value;
-}
-
-module.exports = _classStaticPrivateFieldSpecGet;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js
deleted file mode 100644
index 8799fbb..0000000
--- a/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js
+++ /dev/null
@@ -1,19 +0,0 @@
-function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
- if (receiver !== classConstructor) {
- throw new TypeError("Private static access of wrong provenance");
- }
-
- if (descriptor.set) {
- descriptor.set.call(receiver, value);
- } else {
- if (!descriptor.writable) {
- throw new TypeError("attempted to set read only private field");
- }
-
- descriptor.value = value;
- }
-
- return value;
-}
-
-module.exports = _classStaticPrivateFieldSpecSet;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js
deleted file mode 100644
index f9b0d00..0000000
--- a/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js
+++ /dev/null
@@ -1,9 +0,0 @@
-function _classStaticPrivateMethodGet(receiver, classConstructor, method) {
- if (receiver !== classConstructor) {
- throw new TypeError("Private static access of wrong provenance");
- }
-
- return method;
-}
-
-module.exports = _classStaticPrivateMethodGet;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js b/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js
deleted file mode 100644
index 89042da..0000000
--- a/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _classStaticPrivateMethodSet() {
- throw new TypeError("attempted to set read only static private field");
-}
-
-module.exports = _classStaticPrivateMethodSet;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/construct.js b/node_modules/@babel/runtime/helpers/construct.js
deleted file mode 100644
index 723a7ea..0000000
--- a/node_modules/@babel/runtime/helpers/construct.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var setPrototypeOf = require("./setPrototypeOf");
-
-function isNativeReflectConstruct() {
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
- if (Reflect.construct.sham) return false;
- if (typeof Proxy === "function") return true;
-
- try {
- Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
- return true;
- } catch (e) {
- return false;
- }
-}
-
-function _construct(Parent, args, Class) {
- if (isNativeReflectConstruct()) {
- module.exports = _construct = Reflect.construct;
- } else {
- module.exports = _construct = function _construct(Parent, args, Class) {
- var a = [null];
- a.push.apply(a, args);
- var Constructor = Function.bind.apply(Parent, a);
- var instance = new Constructor();
- if (Class) setPrototypeOf(instance, Class.prototype);
- return instance;
- };
- }
-
- return _construct.apply(null, arguments);
-}
-
-module.exports = _construct;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/createClass.js b/node_modules/@babel/runtime/helpers/createClass.js
deleted file mode 100644
index f9d4841..0000000
--- a/node_modules/@babel/runtime/helpers/createClass.js
+++ /dev/null
@@ -1,17 +0,0 @@
-function _defineProperties(target, props) {
- for (var i = 0; i < props.length; i++) {
- var descriptor = props[i];
- descriptor.enumerable = descriptor.enumerable || false;
- descriptor.configurable = true;
- if ("value" in descriptor) descriptor.writable = true;
- Object.defineProperty(target, descriptor.key, descriptor);
- }
-}
-
-function _createClass(Constructor, protoProps, staticProps) {
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
- if (staticProps) _defineProperties(Constructor, staticProps);
- return Constructor;
-}
-
-module.exports = _createClass;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/decorate.js b/node_modules/@babel/runtime/helpers/decorate.js
deleted file mode 100644
index 77c0b98..0000000
--- a/node_modules/@babel/runtime/helpers/decorate.js
+++ /dev/null
@@ -1,400 +0,0 @@
-var toArray = require("./toArray");
-
-var toPropertyKey = require("./toPropertyKey");
-
-function _decorate(decorators, factory, superClass, mixins) {
- var api = _getDecoratorsApi();
-
- if (mixins) {
- for (var i = 0; i < mixins.length; i++) {
- api = mixins[i](api);
- }
- }
-
- var r = factory(function initialize(O) {
- api.initializeInstanceElements(O, decorated.elements);
- }, superClass);
- var decorated = api.decorateClass(_coalesceClassElements(r.d.map(_createElementDescriptor)), decorators);
- api.initializeClassElements(r.F, decorated.elements);
- return api.runClassFinishers(r.F, decorated.finishers);
-}
-
-function _getDecoratorsApi() {
- _getDecoratorsApi = function _getDecoratorsApi() {
- return api;
- };
-
- var api = {
- elementsDefinitionOrder: [["method"], ["field"]],
- initializeInstanceElements: function initializeInstanceElements(O, elements) {
- ["method", "field"].forEach(function (kind) {
- elements.forEach(function (element) {
- if (element.kind === kind && element.placement === "own") {
- this.defineClassElement(O, element);
- }
- }, this);
- }, this);
- },
- initializeClassElements: function initializeClassElements(F, elements) {
- var proto = F.prototype;
- ["method", "field"].forEach(function (kind) {
- elements.forEach(function (element) {
- var placement = element.placement;
-
- if (element.kind === kind && (placement === "static" || placement === "prototype")) {
- var receiver = placement === "static" ? F : proto;
- this.defineClassElement(receiver, element);
- }
- }, this);
- }, this);
- },
- defineClassElement: function defineClassElement(receiver, element) {
- var descriptor = element.descriptor;
-
- if (element.kind === "field") {
- var initializer = element.initializer;
- descriptor = {
- enumerable: descriptor.enumerable,
- writable: descriptor.writable,
- configurable: descriptor.configurable,
- value: initializer === void 0 ? void 0 : initializer.call(receiver)
- };
- }
-
- Object.defineProperty(receiver, element.key, descriptor);
- },
- decorateClass: function decorateClass(elements, decorators) {
- var newElements = [];
- var finishers = [];
- var placements = {
- "static": [],
- prototype: [],
- own: []
- };
- elements.forEach(function (element) {
- this.addElementPlacement(element, placements);
- }, this);
- elements.forEach(function (element) {
- if (!_hasDecorators(element)) return newElements.push(element);
- var elementFinishersExtras = this.decorateElement(element, placements);
- newElements.push(elementFinishersExtras.element);
- newElements.push.apply(newElements, elementFinishersExtras.extras);
- finishers.push.apply(finishers, elementFinishersExtras.finishers);
- }, this);
-
- if (!decorators) {
- return {
- elements: newElements,
- finishers: finishers
- };
- }
-
- var result = this.decorateConstructor(newElements, decorators);
- finishers.push.apply(finishers, result.finishers);
- result.finishers = finishers;
- return result;
- },
- addElementPlacement: function addElementPlacement(element, placements, silent) {
- var keys = placements[element.placement];
-
- if (!silent && keys.indexOf(element.key) !== -1) {
- throw new TypeError("Duplicated element (" + element.key + ")");
- }
-
- keys.push(element.key);
- },
- decorateElement: function decorateElement(element, placements) {
- var extras = [];
- var finishers = [];
-
- for (var decorators = element.decorators, i = decorators.length - 1; i >= 0; i--) {
- var keys = placements[element.placement];
- keys.splice(keys.indexOf(element.key), 1);
- var elementObject = this.fromElementDescriptor(element);
- var elementFinisherExtras = this.toElementFinisherExtras((0, decorators[i])(elementObject) || elementObject);
- element = elementFinisherExtras.element;
- this.addElementPlacement(element, placements);
-
- if (elementFinisherExtras.finisher) {
- finishers.push(elementFinisherExtras.finisher);
- }
-
- var newExtras = elementFinisherExtras.extras;
-
- if (newExtras) {
- for (var j = 0; j < newExtras.length; j++) {
- this.addElementPlacement(newExtras[j], placements);
- }
-
- extras.push.apply(extras, newExtras);
- }
- }
-
- return {
- element: element,
- finishers: finishers,
- extras: extras
- };
- },
- decorateConstructor: function decorateConstructor(elements, decorators) {
- var finishers = [];
-
- for (var i = decorators.length - 1; i >= 0; i--) {
- var obj = this.fromClassDescriptor(elements);
- var elementsAndFinisher = this.toClassDescriptor((0, decorators[i])(obj) || obj);
-
- if (elementsAndFinisher.finisher !== undefined) {
- finishers.push(elementsAndFinisher.finisher);
- }
-
- if (elementsAndFinisher.elements !== undefined) {
- elements = elementsAndFinisher.elements;
-
- for (var j = 0; j < elements.length - 1; j++) {
- for (var k = j + 1; k < elements.length; k++) {
- if (elements[j].key === elements[k].key && elements[j].placement === elements[k].placement) {
- throw new TypeError("Duplicated element (" + elements[j].key + ")");
- }
- }
- }
- }
- }
-
- return {
- elements: elements,
- finishers: finishers
- };
- },
- fromElementDescriptor: function fromElementDescriptor(element) {
- var obj = {
- kind: element.kind,
- key: element.key,
- placement: element.placement,
- descriptor: element.descriptor
- };
- var desc = {
- value: "Descriptor",
- configurable: true
- };
- Object.defineProperty(obj, Symbol.toStringTag, desc);
- if (element.kind === "field") obj.initializer = element.initializer;
- return obj;
- },
- toElementDescriptors: function toElementDescriptors(elementObjects) {
- if (elementObjects === undefined) return;
- return toArray(elementObjects).map(function (elementObject) {
- var element = this.toElementDescriptor(elementObject);
- this.disallowProperty(elementObject, "finisher", "An element descriptor");
- this.disallowProperty(elementObject, "extras", "An element descriptor");
- return element;
- }, this);
- },
- toElementDescriptor: function toElementDescriptor(elementObject) {
- var kind = String(elementObject.kind);
-
- if (kind !== "method" && kind !== "field") {
- throw new TypeError('An element descriptor\'s .kind property must be either "method" or' + ' "field", but a decorator created an element descriptor with' + ' .kind "' + kind + '"');
- }
-
- var key = toPropertyKey(elementObject.key);
- var placement = String(elementObject.placement);
-
- if (placement !== "static" && placement !== "prototype" && placement !== "own") {
- throw new TypeError('An element descriptor\'s .placement property must be one of "static",' + ' "prototype" or "own", but a decorator created an element descriptor' + ' with .placement "' + placement + '"');
- }
-
- var descriptor = elementObject.descriptor;
- this.disallowProperty(elementObject, "elements", "An element descriptor");
- var element = {
- kind: kind,
- key: key,
- placement: placement,
- descriptor: Object.assign({}, descriptor)
- };
-
- if (kind !== "field") {
- this.disallowProperty(elementObject, "initializer", "A method descriptor");
- } else {
- this.disallowProperty(descriptor, "get", "The property descriptor of a field descriptor");
- this.disallowProperty(descriptor, "set", "The property descriptor of a field descriptor");
- this.disallowProperty(descriptor, "value", "The property descriptor of a field descriptor");
- element.initializer = elementObject.initializer;
- }
-
- return element;
- },
- toElementFinisherExtras: function toElementFinisherExtras(elementObject) {
- var element = this.toElementDescriptor(elementObject);
-
- var finisher = _optionalCallableProperty(elementObject, "finisher");
-
- var extras = this.toElementDescriptors(elementObject.extras);
- return {
- element: element,
- finisher: finisher,
- extras: extras
- };
- },
- fromClassDescriptor: function fromClassDescriptor(elements) {
- var obj = {
- kind: "class",
- elements: elements.map(this.fromElementDescriptor, this)
- };
- var desc = {
- value: "Descriptor",
- configurable: true
- };
- Object.defineProperty(obj, Symbol.toStringTag, desc);
- return obj;
- },
- toClassDescriptor: function toClassDescriptor(obj) {
- var kind = String(obj.kind);
-
- if (kind !== "class") {
- throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator' + ' created a class descriptor with .kind "' + kind + '"');
- }
-
- this.disallowProperty(obj, "key", "A class descriptor");
- this.disallowProperty(obj, "placement", "A class descriptor");
- this.disallowProperty(obj, "descriptor", "A class descriptor");
- this.disallowProperty(obj, "initializer", "A class descriptor");
- this.disallowProperty(obj, "extras", "A class descriptor");
-
- var finisher = _optionalCallableProperty(obj, "finisher");
-
- var elements = this.toElementDescriptors(obj.elements);
- return {
- elements: elements,
- finisher: finisher
- };
- },
- runClassFinishers: function runClassFinishers(constructor, finishers) {
- for (var i = 0; i < finishers.length; i++) {
- var newConstructor = (0, finishers[i])(constructor);
-
- if (newConstructor !== undefined) {
- if (typeof newConstructor !== "function") {
- throw new TypeError("Finishers must return a constructor.");
- }
-
- constructor = newConstructor;
- }
- }
-
- return constructor;
- },
- disallowProperty: function disallowProperty(obj, name, objectType) {
- if (obj[name] !== undefined) {
- throw new TypeError(objectType + " can't have a ." + name + " property.");
- }
- }
- };
- return api;
-}
-
-function _createElementDescriptor(def) {
- var key = toPropertyKey(def.key);
- var descriptor;
-
- if (def.kind === "method") {
- descriptor = {
- value: def.value,
- writable: true,
- configurable: true,
- enumerable: false
- };
- } else if (def.kind === "get") {
- descriptor = {
- get: def.value,
- configurable: true,
- enumerable: false
- };
- } else if (def.kind === "set") {
- descriptor = {
- set: def.value,
- configurable: true,
- enumerable: false
- };
- } else if (def.kind === "field") {
- descriptor = {
- configurable: true,
- writable: true,
- enumerable: true
- };
- }
-
- var element = {
- kind: def.kind === "field" ? "field" : "method",
- key: key,
- placement: def["static"] ? "static" : def.kind === "field" ? "own" : "prototype",
- descriptor: descriptor
- };
- if (def.decorators) element.decorators = def.decorators;
- if (def.kind === "field") element.initializer = def.value;
- return element;
-}
-
-function _coalesceGetterSetter(element, other) {
- if (element.descriptor.get !== undefined) {
- other.descriptor.get = element.descriptor.get;
- } else {
- other.descriptor.set = element.descriptor.set;
- }
-}
-
-function _coalesceClassElements(elements) {
- var newElements = [];
-
- var isSameElement = function isSameElement(other) {
- return other.kind === "method" && other.key === element.key && other.placement === element.placement;
- };
-
- for (var i = 0; i < elements.length; i++) {
- var element = elements[i];
- var other;
-
- if (element.kind === "method" && (other = newElements.find(isSameElement))) {
- if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor)) {
- if (_hasDecorators(element) || _hasDecorators(other)) {
- throw new ReferenceError("Duplicated methods (" + element.key + ") can't be decorated.");
- }
-
- other.descriptor = element.descriptor;
- } else {
- if (_hasDecorators(element)) {
- if (_hasDecorators(other)) {
- throw new ReferenceError("Decorators can't be placed on different accessors with for " + "the same property (" + element.key + ").");
- }
-
- other.decorators = element.decorators;
- }
-
- _coalesceGetterSetter(element, other);
- }
- } else {
- newElements.push(element);
- }
- }
-
- return newElements;
-}
-
-function _hasDecorators(element) {
- return element.decorators && element.decorators.length;
-}
-
-function _isDataDescriptor(desc) {
- return desc !== undefined && !(desc.value === undefined && desc.writable === undefined);
-}
-
-function _optionalCallableProperty(obj, name) {
- var value = obj[name];
-
- if (value !== undefined && typeof value !== "function") {
- throw new TypeError("Expected '" + name + "' to be a function");
- }
-
- return value;
-}
-
-module.exports = _decorate;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/defaults.js b/node_modules/@babel/runtime/helpers/defaults.js
deleted file mode 100644
index 55ba1fe..0000000
--- a/node_modules/@babel/runtime/helpers/defaults.js
+++ /dev/null
@@ -1,16 +0,0 @@
-function _defaults(obj, defaults) {
- var keys = Object.getOwnPropertyNames(defaults);
-
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
- var value = Object.getOwnPropertyDescriptor(defaults, key);
-
- if (value && value.configurable && obj[key] === undefined) {
- Object.defineProperty(obj, key, value);
- }
- }
-
- return obj;
-}
-
-module.exports = _defaults;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js b/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
deleted file mode 100644
index 5d80ea1..0000000
--- a/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
+++ /dev/null
@@ -1,24 +0,0 @@
-function _defineEnumerableProperties(obj, descs) {
- for (var key in descs) {
- var desc = descs[key];
- desc.configurable = desc.enumerable = true;
- if ("value" in desc) desc.writable = true;
- Object.defineProperty(obj, key, desc);
- }
-
- if (Object.getOwnPropertySymbols) {
- var objectSymbols = Object.getOwnPropertySymbols(descs);
-
- for (var i = 0; i < objectSymbols.length; i++) {
- var sym = objectSymbols[i];
- var desc = descs[sym];
- desc.configurable = desc.enumerable = true;
- if ("value" in desc) desc.writable = true;
- Object.defineProperty(obj, sym, desc);
- }
- }
-
- return obj;
-}
-
-module.exports = _defineEnumerableProperties;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/defineProperty.js b/node_modules/@babel/runtime/helpers/defineProperty.js
deleted file mode 100644
index 32a8d73..0000000
--- a/node_modules/@babel/runtime/helpers/defineProperty.js
+++ /dev/null
@@ -1,16 +0,0 @@
-function _defineProperty(obj, key, value) {
- if (key in obj) {
- Object.defineProperty(obj, key, {
- value: value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
-
- return obj;
-}
-
-module.exports = _defineProperty;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js b/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js
deleted file mode 100644
index 65361d9..0000000
--- a/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js
+++ /dev/null
@@ -1,97 +0,0 @@
-import AwaitValue from "./AwaitValue";
-export default function AsyncGenerator(gen) {
- var front, back;
-
- function send(key, arg) {
- return new Promise(function (resolve, reject) {
- var request = {
- key: key,
- arg: arg,
- resolve: resolve,
- reject: reject,
- next: null
- };
-
- if (back) {
- back = back.next = request;
- } else {
- front = back = request;
- resume(key, arg);
- }
- });
- }
-
- function resume(key, arg) {
- try {
- var result = gen[key](arg);
- var value = result.value;
- var wrappedAwait = value instanceof AwaitValue;
- Promise.resolve(wrappedAwait ? value.wrapped : value).then(function (arg) {
- if (wrappedAwait) {
- resume(key === "return" ? "return" : "next", arg);
- return;
- }
-
- settle(result.done ? "return" : "normal", arg);
- }, function (err) {
- resume("throw", err);
- });
- } catch (err) {
- settle("throw", err);
- }
- }
-
- function settle(type, value) {
- switch (type) {
- case "return":
- front.resolve({
- value: value,
- done: true
- });
- break;
-
- case "throw":
- front.reject(value);
- break;
-
- default:
- front.resolve({
- value: value,
- done: false
- });
- break;
- }
-
- front = front.next;
-
- if (front) {
- resume(front.key, front.arg);
- } else {
- back = null;
- }
- }
-
- this._invoke = send;
-
- if (typeof gen["return"] !== "function") {
- this["return"] = undefined;
- }
-}
-
-if (typeof Symbol === "function" && Symbol.asyncIterator) {
- AsyncGenerator.prototype[Symbol.asyncIterator] = function () {
- return this;
- };
-}
-
-AsyncGenerator.prototype.next = function (arg) {
- return this._invoke("next", arg);
-};
-
-AsyncGenerator.prototype["throw"] = function (arg) {
- return this._invoke("throw", arg);
-};
-
-AsyncGenerator.prototype["return"] = function (arg) {
- return this._invoke("return", arg);
-};
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/AwaitValue.js b/node_modules/@babel/runtime/helpers/esm/AwaitValue.js
deleted file mode 100644
index 5237e18..0000000
--- a/node_modules/@babel/runtime/helpers/esm/AwaitValue.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _AwaitValue(value) {
- this.wrapped = value;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js b/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js
deleted file mode 100644
index 84b5961..0000000
--- a/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js
+++ /dev/null
@@ -1,28 +0,0 @@
-export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {
- var desc = {};
- Object.keys(descriptor).forEach(function (key) {
- desc[key] = descriptor[key];
- });
- desc.enumerable = !!desc.enumerable;
- desc.configurable = !!desc.configurable;
-
- if ('value' in desc || desc.initializer) {
- desc.writable = true;
- }
-
- desc = decorators.slice().reverse().reduce(function (desc, decorator) {
- return decorator(target, property, desc) || desc;
- }, desc);
-
- if (context && desc.initializer !== void 0) {
- desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
- desc.initializer = undefined;
- }
-
- if (desc.initializer === void 0) {
- Object.defineProperty(target, property, desc);
- desc = null;
- }
-
- return desc;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js b/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
deleted file mode 100644
index be734fc..0000000
--- a/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _arrayWithHoles(arr) {
- if (Array.isArray(arr)) return arr;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js b/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
deleted file mode 100644
index cbcffa1..0000000
--- a/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
+++ /dev/null
@@ -1,9 +0,0 @@
-export default function _arrayWithoutHoles(arr) {
- if (Array.isArray(arr)) {
- for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
- arr2[i] = arr[i];
- }
-
- return arr2;
- }
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js b/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
deleted file mode 100644
index bbf849c..0000000
--- a/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function _assertThisInitialized(self) {
- if (self === void 0) {
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
- }
-
- return self;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js b/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js
deleted file mode 100644
index eb56fe5..0000000
--- a/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js
+++ /dev/null
@@ -1,56 +0,0 @@
-export default function _asyncGeneratorDelegate(inner, awaitWrap) {
- var iter = {},
- waiting = false;
-
- function pump(key, value) {
- waiting = true;
- value = new Promise(function (resolve) {
- resolve(inner[key](value));
- });
- return {
- done: false,
- value: awaitWrap(value)
- };
- }
-
- ;
-
- if (typeof Symbol === "function" && Symbol.iterator) {
- iter[Symbol.iterator] = function () {
- return this;
- };
- }
-
- iter.next = function (value) {
- if (waiting) {
- waiting = false;
- return value;
- }
-
- return pump("next", value);
- };
-
- if (typeof inner["throw"] === "function") {
- iter["throw"] = function (value) {
- if (waiting) {
- waiting = false;
- throw value;
- }
-
- return pump("throw", value);
- };
- }
-
- if (typeof inner["return"] === "function") {
- iter["return"] = function (value) {
- if (waiting) {
- waiting = false;
- return value;
- }
-
- return pump("return", value);
- };
- }
-
- return iter;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/asyncIterator.js b/node_modules/@babel/runtime/helpers/esm/asyncIterator.js
deleted file mode 100644
index e03fa97..0000000
--- a/node_modules/@babel/runtime/helpers/esm/asyncIterator.js
+++ /dev/null
@@ -1,17 +0,0 @@
-export default function _asyncIterator(iterable) {
- var method;
-
- if (typeof Symbol !== "undefined") {
- if (Symbol.asyncIterator) {
- method = iterable[Symbol.asyncIterator];
- if (method != null) return method.call(iterable);
- }
-
- if (Symbol.iterator) {
- method = iterable[Symbol.iterator];
- if (method != null) return method.call(iterable);
- }
- }
-
- throw new TypeError("Object is not async iterable");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js b/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
deleted file mode 100644
index 2a25f54..0000000
--- a/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
+++ /dev/null
@@ -1,35 +0,0 @@
-function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
- try {
- var info = gen[key](arg);
- var value = info.value;
- } catch (error) {
- reject(error);
- return;
- }
-
- if (info.done) {
- resolve(value);
- } else {
- Promise.resolve(value).then(_next, _throw);
- }
-}
-
-export default function _asyncToGenerator(fn) {
- return function () {
- var self = this,
- args = arguments;
- return new Promise(function (resolve, reject) {
- var gen = fn.apply(self, args);
-
- function _next(value) {
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
- }
-
- function _throw(err) {
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
- }
-
- _next(undefined);
- });
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js b/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js
deleted file mode 100644
index 462f99c..0000000
--- a/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import AwaitValue from "./AwaitValue";
-export default function _awaitAsyncGenerator(value) {
- return new AwaitValue(value);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/classCallCheck.js b/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
deleted file mode 100644
index 2f1738a..0000000
--- a/node_modules/@babel/runtime/helpers/esm/classCallCheck.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function _classCallCheck(instance, Constructor) {
- if (!(instance instanceof Constructor)) {
- throw new TypeError("Cannot call a class as a function");
- }
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js b/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js
deleted file mode 100644
index f7b6dd5..0000000
--- a/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _classNameTDZError(name) {
- throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys.");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js
deleted file mode 100644
index 1f265bc..0000000
--- a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js
+++ /dev/null
@@ -1,26 +0,0 @@
-export default function _classPrivateFieldDestructureSet(receiver, privateMap) {
- if (!privateMap.has(receiver)) {
- throw new TypeError("attempted to set private field on non-instance");
- }
-
- var descriptor = privateMap.get(receiver);
-
- if (descriptor.set) {
- if (!("__destrObj" in descriptor)) {
- descriptor.__destrObj = {
- set value(v) {
- descriptor.set.call(receiver, v);
- }
-
- };
- }
-
- return descriptor.__destrObj;
- } else {
- if (!descriptor.writable) {
- throw new TypeError("attempted to set read only private field");
- }
-
- return descriptor;
- }
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js
deleted file mode 100644
index f8287f1..0000000
--- a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js
+++ /dev/null
@@ -1,13 +0,0 @@
-export default function _classPrivateFieldGet(receiver, privateMap) {
- var descriptor = privateMap.get(receiver);
-
- if (!descriptor) {
- throw new TypeError("attempted to get private field on non-instance");
- }
-
- if (descriptor.get) {
- return descriptor.get.call(receiver);
- }
-
- return descriptor.value;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js
deleted file mode 100644
index 5b10916..0000000
--- a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function _classPrivateFieldBase(receiver, privateKey) {
- if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {
- throw new TypeError("attempted to use private field on non-instance");
- }
-
- return receiver;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js
deleted file mode 100644
index 5b7e5ac..0000000
--- a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var id = 0;
-export default function _classPrivateFieldKey(name) {
- return "__private_" + id++ + "_" + name;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js
deleted file mode 100644
index fb4e5d2..0000000
--- a/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js
+++ /dev/null
@@ -1,19 +0,0 @@
-export default function _classPrivateFieldSet(receiver, privateMap, value) {
- var descriptor = privateMap.get(receiver);
-
- if (!descriptor) {
- throw new TypeError("attempted to set private field on non-instance");
- }
-
- if (descriptor.set) {
- descriptor.set.call(receiver, value);
- } else {
- if (!descriptor.writable) {
- throw new TypeError("attempted to set read only private field");
- }
-
- descriptor.value = value;
- }
-
- return value;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js
deleted file mode 100644
index 38b9d58..0000000
--- a/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function _classPrivateMethodGet(receiver, privateSet, fn) {
- if (!privateSet.has(receiver)) {
- throw new TypeError("attempted to get private field on non-instance");
- }
-
- return fn;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js b/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js
deleted file mode 100644
index 2bbaf3a..0000000
--- a/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _classPrivateMethodSet() {
- throw new TypeError("attempted to reassign private method");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js
deleted file mode 100644
index 75a9b7c..0000000
--- a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js
+++ /dev/null
@@ -1,11 +0,0 @@
-export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
- if (receiver !== classConstructor) {
- throw new TypeError("Private static access of wrong provenance");
- }
-
- if (descriptor.get) {
- return descriptor.get.call(receiver);
- }
-
- return descriptor.value;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js
deleted file mode 100644
index 163279f..0000000
--- a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js
+++ /dev/null
@@ -1,17 +0,0 @@
-export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
- if (receiver !== classConstructor) {
- throw new TypeError("Private static access of wrong provenance");
- }
-
- if (descriptor.set) {
- descriptor.set.call(receiver, value);
- } else {
- if (!descriptor.writable) {
- throw new TypeError("attempted to set read only private field");
- }
-
- descriptor.value = value;
- }
-
- return value;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js
deleted file mode 100644
index da9b1e5..0000000
--- a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) {
- if (receiver !== classConstructor) {
- throw new TypeError("Private static access of wrong provenance");
- }
-
- return method;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js b/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js
deleted file mode 100644
index d5ab60a..0000000
--- a/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _classStaticPrivateMethodSet() {
- throw new TypeError("attempted to set read only static private field");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/construct.js b/node_modules/@babel/runtime/helpers/esm/construct.js
deleted file mode 100644
index 82f20fa..0000000
--- a/node_modules/@babel/runtime/helpers/esm/construct.js
+++ /dev/null
@@ -1,31 +0,0 @@
-import setPrototypeOf from "./setPrototypeOf";
-
-function isNativeReflectConstruct() {
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
- if (Reflect.construct.sham) return false;
- if (typeof Proxy === "function") return true;
-
- try {
- Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
- return true;
- } catch (e) {
- return false;
- }
-}
-
-export default function _construct(Parent, args, Class) {
- if (isNativeReflectConstruct()) {
- _construct = Reflect.construct;
- } else {
- _construct = function _construct(Parent, args, Class) {
- var a = [null];
- a.push.apply(a, args);
- var Constructor = Function.bind.apply(Parent, a);
- var instance = new Constructor();
- if (Class) setPrototypeOf(instance, Class.prototype);
- return instance;
- };
- }
-
- return _construct.apply(null, arguments);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/createClass.js b/node_modules/@babel/runtime/helpers/esm/createClass.js
deleted file mode 100644
index d6cf412..0000000
--- a/node_modules/@babel/runtime/helpers/esm/createClass.js
+++ /dev/null
@@ -1,15 +0,0 @@
-function _defineProperties(target, props) {
- for (var i = 0; i < props.length; i++) {
- var descriptor = props[i];
- descriptor.enumerable = descriptor.enumerable || false;
- descriptor.configurable = true;
- if ("value" in descriptor) descriptor.writable = true;
- Object.defineProperty(target, descriptor.key, descriptor);
- }
-}
-
-export default function _createClass(Constructor, protoProps, staticProps) {
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
- if (staticProps) _defineProperties(Constructor, staticProps);
- return Constructor;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/decorate.js b/node_modules/@babel/runtime/helpers/esm/decorate.js
deleted file mode 100644
index b6acd1f..0000000
--- a/node_modules/@babel/runtime/helpers/esm/decorate.js
+++ /dev/null
@@ -1,396 +0,0 @@
-import toArray from "./toArray";
-import toPropertyKey from "./toPropertyKey";
-export default function _decorate(decorators, factory, superClass, mixins) {
- var api = _getDecoratorsApi();
-
- if (mixins) {
- for (var i = 0; i < mixins.length; i++) {
- api = mixins[i](api);
- }
- }
-
- var r = factory(function initialize(O) {
- api.initializeInstanceElements(O, decorated.elements);
- }, superClass);
- var decorated = api.decorateClass(_coalesceClassElements(r.d.map(_createElementDescriptor)), decorators);
- api.initializeClassElements(r.F, decorated.elements);
- return api.runClassFinishers(r.F, decorated.finishers);
-}
-
-function _getDecoratorsApi() {
- _getDecoratorsApi = function _getDecoratorsApi() {
- return api;
- };
-
- var api = {
- elementsDefinitionOrder: [["method"], ["field"]],
- initializeInstanceElements: function initializeInstanceElements(O, elements) {
- ["method", "field"].forEach(function (kind) {
- elements.forEach(function (element) {
- if (element.kind === kind && element.placement === "own") {
- this.defineClassElement(O, element);
- }
- }, this);
- }, this);
- },
- initializeClassElements: function initializeClassElements(F, elements) {
- var proto = F.prototype;
- ["method", "field"].forEach(function (kind) {
- elements.forEach(function (element) {
- var placement = element.placement;
-
- if (element.kind === kind && (placement === "static" || placement === "prototype")) {
- var receiver = placement === "static" ? F : proto;
- this.defineClassElement(receiver, element);
- }
- }, this);
- }, this);
- },
- defineClassElement: function defineClassElement(receiver, element) {
- var descriptor = element.descriptor;
-
- if (element.kind === "field") {
- var initializer = element.initializer;
- descriptor = {
- enumerable: descriptor.enumerable,
- writable: descriptor.writable,
- configurable: descriptor.configurable,
- value: initializer === void 0 ? void 0 : initializer.call(receiver)
- };
- }
-
- Object.defineProperty(receiver, element.key, descriptor);
- },
- decorateClass: function decorateClass(elements, decorators) {
- var newElements = [];
- var finishers = [];
- var placements = {
- "static": [],
- prototype: [],
- own: []
- };
- elements.forEach(function (element) {
- this.addElementPlacement(element, placements);
- }, this);
- elements.forEach(function (element) {
- if (!_hasDecorators(element)) return newElements.push(element);
- var elementFinishersExtras = this.decorateElement(element, placements);
- newElements.push(elementFinishersExtras.element);
- newElements.push.apply(newElements, elementFinishersExtras.extras);
- finishers.push.apply(finishers, elementFinishersExtras.finishers);
- }, this);
-
- if (!decorators) {
- return {
- elements: newElements,
- finishers: finishers
- };
- }
-
- var result = this.decorateConstructor(newElements, decorators);
- finishers.push.apply(finishers, result.finishers);
- result.finishers = finishers;
- return result;
- },
- addElementPlacement: function addElementPlacement(element, placements, silent) {
- var keys = placements[element.placement];
-
- if (!silent && keys.indexOf(element.key) !== -1) {
- throw new TypeError("Duplicated element (" + element.key + ")");
- }
-
- keys.push(element.key);
- },
- decorateElement: function decorateElement(element, placements) {
- var extras = [];
- var finishers = [];
-
- for (var decorators = element.decorators, i = decorators.length - 1; i >= 0; i--) {
- var keys = placements[element.placement];
- keys.splice(keys.indexOf(element.key), 1);
- var elementObject = this.fromElementDescriptor(element);
- var elementFinisherExtras = this.toElementFinisherExtras((0, decorators[i])(elementObject) || elementObject);
- element = elementFinisherExtras.element;
- this.addElementPlacement(element, placements);
-
- if (elementFinisherExtras.finisher) {
- finishers.push(elementFinisherExtras.finisher);
- }
-
- var newExtras = elementFinisherExtras.extras;
-
- if (newExtras) {
- for (var j = 0; j < newExtras.length; j++) {
- this.addElementPlacement(newExtras[j], placements);
- }
-
- extras.push.apply(extras, newExtras);
- }
- }
-
- return {
- element: element,
- finishers: finishers,
- extras: extras
- };
- },
- decorateConstructor: function decorateConstructor(elements, decorators) {
- var finishers = [];
-
- for (var i = decorators.length - 1; i >= 0; i--) {
- var obj = this.fromClassDescriptor(elements);
- var elementsAndFinisher = this.toClassDescriptor((0, decorators[i])(obj) || obj);
-
- if (elementsAndFinisher.finisher !== undefined) {
- finishers.push(elementsAndFinisher.finisher);
- }
-
- if (elementsAndFinisher.elements !== undefined) {
- elements = elementsAndFinisher.elements;
-
- for (var j = 0; j < elements.length - 1; j++) {
- for (var k = j + 1; k < elements.length; k++) {
- if (elements[j].key === elements[k].key && elements[j].placement === elements[k].placement) {
- throw new TypeError("Duplicated element (" + elements[j].key + ")");
- }
- }
- }
- }
- }
-
- return {
- elements: elements,
- finishers: finishers
- };
- },
- fromElementDescriptor: function fromElementDescriptor(element) {
- var obj = {
- kind: element.kind,
- key: element.key,
- placement: element.placement,
- descriptor: element.descriptor
- };
- var desc = {
- value: "Descriptor",
- configurable: true
- };
- Object.defineProperty(obj, Symbol.toStringTag, desc);
- if (element.kind === "field") obj.initializer = element.initializer;
- return obj;
- },
- toElementDescriptors: function toElementDescriptors(elementObjects) {
- if (elementObjects === undefined) return;
- return toArray(elementObjects).map(function (elementObject) {
- var element = this.toElementDescriptor(elementObject);
- this.disallowProperty(elementObject, "finisher", "An element descriptor");
- this.disallowProperty(elementObject, "extras", "An element descriptor");
- return element;
- }, this);
- },
- toElementDescriptor: function toElementDescriptor(elementObject) {
- var kind = String(elementObject.kind);
-
- if (kind !== "method" && kind !== "field") {
- throw new TypeError('An element descriptor\'s .kind property must be either "method" or' + ' "field", but a decorator created an element descriptor with' + ' .kind "' + kind + '"');
- }
-
- var key = toPropertyKey(elementObject.key);
- var placement = String(elementObject.placement);
-
- if (placement !== "static" && placement !== "prototype" && placement !== "own") {
- throw new TypeError('An element descriptor\'s .placement property must be one of "static",' + ' "prototype" or "own", but a decorator created an element descriptor' + ' with .placement "' + placement + '"');
- }
-
- var descriptor = elementObject.descriptor;
- this.disallowProperty(elementObject, "elements", "An element descriptor");
- var element = {
- kind: kind,
- key: key,
- placement: placement,
- descriptor: Object.assign({}, descriptor)
- };
-
- if (kind !== "field") {
- this.disallowProperty(elementObject, "initializer", "A method descriptor");
- } else {
- this.disallowProperty(descriptor, "get", "The property descriptor of a field descriptor");
- this.disallowProperty(descriptor, "set", "The property descriptor of a field descriptor");
- this.disallowProperty(descriptor, "value", "The property descriptor of a field descriptor");
- element.initializer = elementObject.initializer;
- }
-
- return element;
- },
- toElementFinisherExtras: function toElementFinisherExtras(elementObject) {
- var element = this.toElementDescriptor(elementObject);
-
- var finisher = _optionalCallableProperty(elementObject, "finisher");
-
- var extras = this.toElementDescriptors(elementObject.extras);
- return {
- element: element,
- finisher: finisher,
- extras: extras
- };
- },
- fromClassDescriptor: function fromClassDescriptor(elements) {
- var obj = {
- kind: "class",
- elements: elements.map(this.fromElementDescriptor, this)
- };
- var desc = {
- value: "Descriptor",
- configurable: true
- };
- Object.defineProperty(obj, Symbol.toStringTag, desc);
- return obj;
- },
- toClassDescriptor: function toClassDescriptor(obj) {
- var kind = String(obj.kind);
-
- if (kind !== "class") {
- throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator' + ' created a class descriptor with .kind "' + kind + '"');
- }
-
- this.disallowProperty(obj, "key", "A class descriptor");
- this.disallowProperty(obj, "placement", "A class descriptor");
- this.disallowProperty(obj, "descriptor", "A class descriptor");
- this.disallowProperty(obj, "initializer", "A class descriptor");
- this.disallowProperty(obj, "extras", "A class descriptor");
-
- var finisher = _optionalCallableProperty(obj, "finisher");
-
- var elements = this.toElementDescriptors(obj.elements);
- return {
- elements: elements,
- finisher: finisher
- };
- },
- runClassFinishers: function runClassFinishers(constructor, finishers) {
- for (var i = 0; i < finishers.length; i++) {
- var newConstructor = (0, finishers[i])(constructor);
-
- if (newConstructor !== undefined) {
- if (typeof newConstructor !== "function") {
- throw new TypeError("Finishers must return a constructor.");
- }
-
- constructor = newConstructor;
- }
- }
-
- return constructor;
- },
- disallowProperty: function disallowProperty(obj, name, objectType) {
- if (obj[name] !== undefined) {
- throw new TypeError(objectType + " can't have a ." + name + " property.");
- }
- }
- };
- return api;
-}
-
-function _createElementDescriptor(def) {
- var key = toPropertyKey(def.key);
- var descriptor;
-
- if (def.kind === "method") {
- descriptor = {
- value: def.value,
- writable: true,
- configurable: true,
- enumerable: false
- };
- } else if (def.kind === "get") {
- descriptor = {
- get: def.value,
- configurable: true,
- enumerable: false
- };
- } else if (def.kind === "set") {
- descriptor = {
- set: def.value,
- configurable: true,
- enumerable: false
- };
- } else if (def.kind === "field") {
- descriptor = {
- configurable: true,
- writable: true,
- enumerable: true
- };
- }
-
- var element = {
- kind: def.kind === "field" ? "field" : "method",
- key: key,
- placement: def["static"] ? "static" : def.kind === "field" ? "own" : "prototype",
- descriptor: descriptor
- };
- if (def.decorators) element.decorators = def.decorators;
- if (def.kind === "field") element.initializer = def.value;
- return element;
-}
-
-function _coalesceGetterSetter(element, other) {
- if (element.descriptor.get !== undefined) {
- other.descriptor.get = element.descriptor.get;
- } else {
- other.descriptor.set = element.descriptor.set;
- }
-}
-
-function _coalesceClassElements(elements) {
- var newElements = [];
-
- var isSameElement = function isSameElement(other) {
- return other.kind === "method" && other.key === element.key && other.placement === element.placement;
- };
-
- for (var i = 0; i < elements.length; i++) {
- var element = elements[i];
- var other;
-
- if (element.kind === "method" && (other = newElements.find(isSameElement))) {
- if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor)) {
- if (_hasDecorators(element) || _hasDecorators(other)) {
- throw new ReferenceError("Duplicated methods (" + element.key + ") can't be decorated.");
- }
-
- other.descriptor = element.descriptor;
- } else {
- if (_hasDecorators(element)) {
- if (_hasDecorators(other)) {
- throw new ReferenceError("Decorators can't be placed on different accessors with for " + "the same property (" + element.key + ").");
- }
-
- other.decorators = element.decorators;
- }
-
- _coalesceGetterSetter(element, other);
- }
- } else {
- newElements.push(element);
- }
- }
-
- return newElements;
-}
-
-function _hasDecorators(element) {
- return element.decorators && element.decorators.length;
-}
-
-function _isDataDescriptor(desc) {
- return desc !== undefined && !(desc.value === undefined && desc.writable === undefined);
-}
-
-function _optionalCallableProperty(obj, name) {
- var value = obj[name];
-
- if (value !== undefined && typeof value !== "function") {
- throw new TypeError("Expected '" + name + "' to be a function");
- }
-
- return value;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/defaults.js b/node_modules/@babel/runtime/helpers/esm/defaults.js
deleted file mode 100644
index 3de1d8e..0000000
--- a/node_modules/@babel/runtime/helpers/esm/defaults.js
+++ /dev/null
@@ -1,14 +0,0 @@
-export default function _defaults(obj, defaults) {
- var keys = Object.getOwnPropertyNames(defaults);
-
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
- var value = Object.getOwnPropertyDescriptor(defaults, key);
-
- if (value && value.configurable && obj[key] === undefined) {
- Object.defineProperty(obj, key, value);
- }
- }
-
- return obj;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js b/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js
deleted file mode 100644
index 7981acd..0000000
--- a/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js
+++ /dev/null
@@ -1,22 +0,0 @@
-export default function _defineEnumerableProperties(obj, descs) {
- for (var key in descs) {
- var desc = descs[key];
- desc.configurable = desc.enumerable = true;
- if ("value" in desc) desc.writable = true;
- Object.defineProperty(obj, key, desc);
- }
-
- if (Object.getOwnPropertySymbols) {
- var objectSymbols = Object.getOwnPropertySymbols(descs);
-
- for (var i = 0; i < objectSymbols.length; i++) {
- var sym = objectSymbols[i];
- var desc = descs[sym];
- desc.configurable = desc.enumerable = true;
- if ("value" in desc) desc.writable = true;
- Object.defineProperty(obj, sym, desc);
- }
- }
-
- return obj;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/defineProperty.js b/node_modules/@babel/runtime/helpers/esm/defineProperty.js
deleted file mode 100644
index 7cf6e59..0000000
--- a/node_modules/@babel/runtime/helpers/esm/defineProperty.js
+++ /dev/null
@@ -1,14 +0,0 @@
-export default function _defineProperty(obj, key, value) {
- if (key in obj) {
- Object.defineProperty(obj, key, {
- value: value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
-
- return obj;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/extends.js b/node_modules/@babel/runtime/helpers/esm/extends.js
deleted file mode 100644
index b9b138d..0000000
--- a/node_modules/@babel/runtime/helpers/esm/extends.js
+++ /dev/null
@@ -1,17 +0,0 @@
-export default function _extends() {
- _extends = Object.assign || function (target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i];
-
- for (var key in source) {
- if (Object.prototype.hasOwnProperty.call(source, key)) {
- target[key] = source[key];
- }
- }
- }
-
- return target;
- };
-
- return _extends.apply(this, arguments);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/get.js b/node_modules/@babel/runtime/helpers/esm/get.js
deleted file mode 100644
index a369d4d..0000000
--- a/node_modules/@babel/runtime/helpers/esm/get.js
+++ /dev/null
@@ -1,20 +0,0 @@
-import superPropBase from "./superPropBase";
-export default function _get(target, property, receiver) {
- if (typeof Reflect !== "undefined" && Reflect.get) {
- _get = Reflect.get;
- } else {
- _get = function _get(target, property, receiver) {
- var base = superPropBase(target, property);
- if (!base) return;
- var desc = Object.getOwnPropertyDescriptor(base, property);
-
- if (desc.get) {
- return desc.get.call(receiver);
- }
-
- return desc.value;
- };
- }
-
- return _get(target, property, receiver || target);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js b/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
deleted file mode 100644
index 5abafe3..0000000
--- a/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
+++ /dev/null
@@ -1,6 +0,0 @@
-export default function _getPrototypeOf(o) {
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
- return o.__proto__ || Object.getPrototypeOf(o);
- };
- return _getPrototypeOf(o);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/inherits.js b/node_modules/@babel/runtime/helpers/esm/inherits.js
deleted file mode 100644
index 035648d..0000000
--- a/node_modules/@babel/runtime/helpers/esm/inherits.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import setPrototypeOf from "./setPrototypeOf";
-export default function _inherits(subClass, superClass) {
- if (typeof superClass !== "function" && superClass !== null) {
- throw new TypeError("Super expression must either be null or a function");
- }
-
- subClass.prototype = Object.create(superClass && superClass.prototype, {
- constructor: {
- value: subClass,
- writable: true,
- configurable: true
- }
- });
- if (superClass) setPrototypeOf(subClass, superClass);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js b/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
deleted file mode 100644
index 32017e6..0000000
--- a/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function _inheritsLoose(subClass, superClass) {
- subClass.prototype = Object.create(superClass.prototype);
- subClass.prototype.constructor = subClass;
- subClass.__proto__ = superClass;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js b/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js
deleted file mode 100644
index 26fdea0..0000000
--- a/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js
+++ /dev/null
@@ -1,9 +0,0 @@
-export default function _initializerDefineProperty(target, property, descriptor, context) {
- if (!descriptor) return;
- Object.defineProperty(target, property, {
- enumerable: descriptor.enumerable,
- configurable: descriptor.configurable,
- writable: descriptor.writable,
- value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
- });
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js b/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js
deleted file mode 100644
index 30d518c..0000000
--- a/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _initializerWarningHelper(descriptor, context) {
- throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.');
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/instanceof.js b/node_modules/@babel/runtime/helpers/esm/instanceof.js
deleted file mode 100644
index 8c43b71..0000000
--- a/node_modules/@babel/runtime/helpers/esm/instanceof.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function _instanceof(left, right) {
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
- return !!right[Symbol.hasInstance](left);
- } else {
- return left instanceof right;
- }
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js b/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js
deleted file mode 100644
index c2df7b6..0000000
--- a/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function _interopRequireDefault(obj) {
- return obj && obj.__esModule ? obj : {
- "default": obj
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js b/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js
deleted file mode 100644
index d39be9e..0000000
--- a/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js
+++ /dev/null
@@ -1,53 +0,0 @@
-import _typeof from "../../helpers/esm/typeof";
-
-function _getRequireWildcardCache() {
- if (typeof WeakMap !== "function") return null;
- var cache = new WeakMap();
-
- _getRequireWildcardCache = function _getRequireWildcardCache() {
- return cache;
- };
-
- return cache;
-}
-
-export default function _interopRequireWildcard(obj) {
- if (obj && obj.__esModule) {
- return obj;
- }
-
- if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
- return {
- "default": obj
- };
- }
-
- var cache = _getRequireWildcardCache();
-
- if (cache && cache.has(obj)) {
- return cache.get(obj);
- }
-
- var newObj = {};
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
-
- for (var key in obj) {
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
-
- if (desc && (desc.get || desc.set)) {
- Object.defineProperty(newObj, key, desc);
- } else {
- newObj[key] = obj[key];
- }
- }
- }
-
- newObj["default"] = obj;
-
- if (cache) {
- cache.set(obj, newObj);
- }
-
- return newObj;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js b/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
deleted file mode 100644
index 7b1bc82..0000000
--- a/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _isNativeFunction(fn) {
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/iterableToArray.js b/node_modules/@babel/runtime/helpers/esm/iterableToArray.js
deleted file mode 100644
index 671e400..0000000
--- a/node_modules/@babel/runtime/helpers/esm/iterableToArray.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _iterableToArray(iter) {
- if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js b/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
deleted file mode 100644
index 535cdde..0000000
--- a/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
+++ /dev/null
@@ -1,29 +0,0 @@
-export default function _iterableToArrayLimit(arr, i) {
- if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
- return;
- }
-
- var _arr = [];
- var _n = true;
- var _d = false;
- var _e = undefined;
-
- try {
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
- _arr.push(_s.value);
-
- if (i && _arr.length === i) break;
- }
- } catch (err) {
- _d = true;
- _e = err;
- } finally {
- try {
- if (!_n && _i["return"] != null) _i["return"]();
- } finally {
- if (_d) throw _e;
- }
- }
-
- return _arr;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js b/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js
deleted file mode 100644
index aac8223..0000000
--- a/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js
+++ /dev/null
@@ -1,15 +0,0 @@
-export default function _iterableToArrayLimitLoose(arr, i) {
- if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
- return;
- }
-
- var _arr = [];
-
- for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {
- _arr.push(_step.value);
-
- if (i && _arr.length === i) break;
- }
-
- return _arr;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/jsx.js b/node_modules/@babel/runtime/helpers/esm/jsx.js
deleted file mode 100644
index 3a98cec..0000000
--- a/node_modules/@babel/runtime/helpers/esm/jsx.js
+++ /dev/null
@@ -1,46 +0,0 @@
-var REACT_ELEMENT_TYPE;
-export default function _createRawReactElement(type, props, key, children) {
- if (!REACT_ELEMENT_TYPE) {
- REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol["for"] && Symbol["for"]("react.element") || 0xeac7;
- }
-
- var defaultProps = type && type.defaultProps;
- var childrenLength = arguments.length - 3;
-
- if (!props && childrenLength !== 0) {
- props = {
- children: void 0
- };
- }
-
- if (childrenLength === 1) {
- props.children = children;
- } else if (childrenLength > 1) {
- var childArray = new Array(childrenLength);
-
- for (var i = 0; i < childrenLength; i++) {
- childArray[i] = arguments[i + 3];
- }
-
- props.children = childArray;
- }
-
- if (props && defaultProps) {
- for (var propName in defaultProps) {
- if (props[propName] === void 0) {
- props[propName] = defaultProps[propName];
- }
- }
- } else if (!props) {
- props = defaultProps || {};
- }
-
- return {
- $$typeof: REACT_ELEMENT_TYPE,
- type: type,
- key: key === undefined ? null : '' + key,
- ref: null,
- props: props,
- _owner: null
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js b/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js
deleted file mode 100644
index d6cd864..0000000
--- a/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export default function _newArrowCheck(innerThis, boundThis) {
- if (innerThis !== boundThis) {
- throw new TypeError("Cannot instantiate an arrow function");
- }
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js b/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
deleted file mode 100644
index f94186d..0000000
--- a/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _nonIterableRest() {
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js b/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
deleted file mode 100644
index d6bc738..0000000
--- a/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _nonIterableSpread() {
- throw new TypeError("Invalid attempt to spread non-iterable instance");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js b/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js
deleted file mode 100644
index 82b67d2..0000000
--- a/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _objectDestructuringEmpty(obj) {
- if (obj == null) throw new TypeError("Cannot destructure undefined");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/objectSpread.js b/node_modules/@babel/runtime/helpers/esm/objectSpread.js
deleted file mode 100644
index 0e189fb..0000000
--- a/node_modules/@babel/runtime/helpers/esm/objectSpread.js
+++ /dev/null
@@ -1,19 +0,0 @@
-import defineProperty from "./defineProperty";
-export default function _objectSpread(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i] != null ? Object(arguments[i]) : {};
- var ownKeys = Object.keys(source);
-
- if (typeof Object.getOwnPropertySymbols === 'function') {
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
- }));
- }
-
- ownKeys.forEach(function (key) {
- defineProperty(target, key, source[key]);
- });
- }
-
- return target;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/objectSpread2.js b/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
deleted file mode 100644
index 1da0866..0000000
--- a/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
+++ /dev/null
@@ -1,35 +0,0 @@
-import defineProperty from "./defineProperty";
-
-function ownKeys(object, enumerableOnly) {
- var keys = Object.keys(object);
-
- if (Object.getOwnPropertySymbols) {
- var symbols = Object.getOwnPropertySymbols(object);
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
- });
- keys.push.apply(keys, symbols);
- }
-
- return keys;
-}
-
-export default function _objectSpread2(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i] != null ? arguments[i] : {};
-
- if (i % 2) {
- ownKeys(Object(source), true).forEach(function (key) {
- defineProperty(target, key, source[key]);
- });
- } else if (Object.getOwnPropertyDescriptors) {
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
- } else {
- ownKeys(Object(source)).forEach(function (key) {
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
- });
- }
- }
-
- return target;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js b/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
deleted file mode 100644
index 2af6091..0000000
--- a/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
+++ /dev/null
@@ -1,19 +0,0 @@
-import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose";
-export default function _objectWithoutProperties(source, excluded) {
- if (source == null) return {};
- var target = objectWithoutPropertiesLoose(source, excluded);
- var key, i;
-
- if (Object.getOwnPropertySymbols) {
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
-
- for (i = 0; i < sourceSymbolKeys.length; i++) {
- key = sourceSymbolKeys[i];
- if (excluded.indexOf(key) >= 0) continue;
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
- target[key] = source[key];
- }
- }
-
- return target;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js b/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
deleted file mode 100644
index c36815c..0000000
--- a/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
+++ /dev/null
@@ -1,14 +0,0 @@
-export default function _objectWithoutPropertiesLoose(source, excluded) {
- if (source == null) return {};
- var target = {};
- var sourceKeys = Object.keys(source);
- var key, i;
-
- for (i = 0; i < sourceKeys.length; i++) {
- key = sourceKeys[i];
- if (excluded.indexOf(key) >= 0) continue;
- target[key] = source[key];
- }
-
- return target;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/package.json b/node_modules/@babel/runtime/helpers/esm/package.json
deleted file mode 100644
index aead43d..0000000
--- a/node_modules/@babel/runtime/helpers/esm/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "module"
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js b/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
deleted file mode 100644
index be7b7a4..0000000
--- a/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import _typeof from "../../helpers/esm/typeof";
-import assertThisInitialized from "./assertThisInitialized";
-export default function _possibleConstructorReturn(self, call) {
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
- return call;
- }
-
- return assertThisInitialized(self);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/readOnlyError.js b/node_modules/@babel/runtime/helpers/esm/readOnlyError.js
deleted file mode 100644
index 45d01d7..0000000
--- a/node_modules/@babel/runtime/helpers/esm/readOnlyError.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _readOnlyError(name) {
- throw new Error("\"" + name + "\" is read-only");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/set.js b/node_modules/@babel/runtime/helpers/esm/set.js
deleted file mode 100644
index fb20af7..0000000
--- a/node_modules/@babel/runtime/helpers/esm/set.js
+++ /dev/null
@@ -1,51 +0,0 @@
-import superPropBase from "./superPropBase";
-import defineProperty from "./defineProperty";
-
-function set(target, property, value, receiver) {
- if (typeof Reflect !== "undefined" && Reflect.set) {
- set = Reflect.set;
- } else {
- set = function set(target, property, value, receiver) {
- var base = superPropBase(target, property);
- var desc;
-
- if (base) {
- desc = Object.getOwnPropertyDescriptor(base, property);
-
- if (desc.set) {
- desc.set.call(receiver, value);
- return true;
- } else if (!desc.writable) {
- return false;
- }
- }
-
- desc = Object.getOwnPropertyDescriptor(receiver, property);
-
- if (desc) {
- if (!desc.writable) {
- return false;
- }
-
- desc.value = value;
- Object.defineProperty(receiver, property, desc);
- } else {
- defineProperty(receiver, property, value);
- }
-
- return true;
- };
- }
-
- return set(target, property, value, receiver);
-}
-
-export default function _set(target, property, value, receiver, isStrict) {
- var s = set(target, property, value, receiver || target);
-
- if (!s && isStrict) {
- throw new Error('failed to set property');
- }
-
- return value;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js b/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
deleted file mode 100644
index e6ef03e..0000000
--- a/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
+++ /dev/null
@@ -1,8 +0,0 @@
-export default function _setPrototypeOf(o, p) {
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
- o.__proto__ = p;
- return o;
- };
-
- return _setPrototypeOf(o, p);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js b/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js
deleted file mode 100644
index cadd9bb..0000000
--- a/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function _skipFirstGeneratorNext(fn) {
- return function () {
- var it = fn.apply(this, arguments);
- it.next();
- return it;
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/slicedToArray.js b/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
deleted file mode 100644
index f6f1081..0000000
--- a/node_modules/@babel/runtime/helpers/esm/slicedToArray.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import arrayWithHoles from "./arrayWithHoles";
-import iterableToArrayLimit from "./iterableToArrayLimit";
-import nonIterableRest from "./nonIterableRest";
-export default function _slicedToArray(arr, i) {
- return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js b/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js
deleted file mode 100644
index e675789..0000000
--- a/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import arrayWithHoles from "./arrayWithHoles";
-import iterableToArrayLimitLoose from "./iterableToArrayLimitLoose";
-import nonIterableRest from "./nonIterableRest";
-export default function _slicedToArrayLoose(arr, i) {
- return arrayWithHoles(arr) || iterableToArrayLimitLoose(arr, i) || nonIterableRest();
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/superPropBase.js b/node_modules/@babel/runtime/helpers/esm/superPropBase.js
deleted file mode 100644
index eace947..0000000
--- a/node_modules/@babel/runtime/helpers/esm/superPropBase.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import getPrototypeOf from "./getPrototypeOf";
-export default function _superPropBase(object, property) {
- while (!Object.prototype.hasOwnProperty.call(object, property)) {
- object = getPrototypeOf(object);
- if (object === null) break;
- }
-
- return object;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js b/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js
deleted file mode 100644
index 421f18a..0000000
--- a/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js
+++ /dev/null
@@ -1,11 +0,0 @@
-export default function _taggedTemplateLiteral(strings, raw) {
- if (!raw) {
- raw = strings.slice(0);
- }
-
- return Object.freeze(Object.defineProperties(strings, {
- raw: {
- value: Object.freeze(raw)
- }
- }));
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js b/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js
deleted file mode 100644
index c8f081e..0000000
--- a/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js
+++ /dev/null
@@ -1,8 +0,0 @@
-export default function _taggedTemplateLiteralLoose(strings, raw) {
- if (!raw) {
- raw = strings.slice(0);
- }
-
- strings.raw = raw;
- return strings;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/tdz.js b/node_modules/@babel/runtime/helpers/esm/tdz.js
deleted file mode 100644
index d5d0adc..0000000
--- a/node_modules/@babel/runtime/helpers/esm/tdz.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export default function _tdzError(name) {
- throw new ReferenceError(name + " is not defined - temporal dead zone");
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/temporalRef.js b/node_modules/@babel/runtime/helpers/esm/temporalRef.js
deleted file mode 100644
index 6d167a3..0000000
--- a/node_modules/@babel/runtime/helpers/esm/temporalRef.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import undef from "./temporalUndefined";
-import err from "./tdz";
-export default function _temporalRef(val, name) {
- return val === undef ? err(name) : val;
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js b/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js
deleted file mode 100644
index 1a35717..0000000
--- a/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js
+++ /dev/null
@@ -1 +0,0 @@
-export default function _temporalUndefined() {}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/toArray.js b/node_modules/@babel/runtime/helpers/esm/toArray.js
deleted file mode 100644
index 5acb22b..0000000
--- a/node_modules/@babel/runtime/helpers/esm/toArray.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import arrayWithHoles from "./arrayWithHoles";
-import iterableToArray from "./iterableToArray";
-import nonIterableRest from "./nonIterableRest";
-export default function _toArray(arr) {
- return arrayWithHoles(arr) || iterableToArray(arr) || nonIterableRest();
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js b/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
deleted file mode 100644
index 7e480b9..0000000
--- a/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import arrayWithoutHoles from "./arrayWithoutHoles";
-import iterableToArray from "./iterableToArray";
-import nonIterableSpread from "./nonIterableSpread";
-export default function _toConsumableArray(arr) {
- return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/toPrimitive.js b/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
deleted file mode 100644
index 72a4a09..0000000
--- a/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
+++ /dev/null
@@ -1,13 +0,0 @@
-import _typeof from "../../helpers/esm/typeof";
-export default function _toPrimitive(input, hint) {
- if (_typeof(input) !== "object" || input === null) return input;
- var prim = input[Symbol.toPrimitive];
-
- if (prim !== undefined) {
- var res = prim.call(input, hint || "default");
- if (_typeof(res) !== "object") return res;
- throw new TypeError("@@toPrimitive must return a primitive value.");
- }
-
- return (hint === "string" ? String : Number)(input);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js b/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
deleted file mode 100644
index 7b53a4d..0000000
--- a/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import _typeof from "../../helpers/esm/typeof";
-import toPrimitive from "./toPrimitive";
-export default function _toPropertyKey(arg) {
- var key = toPrimitive(arg, "string");
- return _typeof(key) === "symbol" ? key : String(key);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/typeof.js b/node_modules/@babel/runtime/helpers/esm/typeof.js
deleted file mode 100644
index eb444f7..0000000
--- a/node_modules/@babel/runtime/helpers/esm/typeof.js
+++ /dev/null
@@ -1,15 +0,0 @@
-export default function _typeof(obj) {
- "@babel/helpers - typeof";
-
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
- _typeof = function _typeof(obj) {
- return typeof obj;
- };
- } else {
- _typeof = function _typeof(obj) {
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
- };
- }
-
- return _typeof(obj);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js b/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js
deleted file mode 100644
index 6d6d981..0000000
--- a/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import AsyncGenerator from "./AsyncGenerator";
-export default function _wrapAsyncGenerator(fn) {
- return function () {
- return new AsyncGenerator(fn.apply(this, arguments));
- };
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js b/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
deleted file mode 100644
index 5c55d05..0000000
--- a/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
+++ /dev/null
@@ -1,37 +0,0 @@
-import getPrototypeOf from "./getPrototypeOf";
-import setPrototypeOf from "./setPrototypeOf";
-import isNativeFunction from "./isNativeFunction";
-import construct from "./construct";
-export default function _wrapNativeSuper(Class) {
- var _cache = typeof Map === "function" ? new Map() : undefined;
-
- _wrapNativeSuper = function _wrapNativeSuper(Class) {
- if (Class === null || !isNativeFunction(Class)) return Class;
-
- if (typeof Class !== "function") {
- throw new TypeError("Super expression must either be null or a function");
- }
-
- if (typeof _cache !== "undefined") {
- if (_cache.has(Class)) return _cache.get(Class);
-
- _cache.set(Class, Wrapper);
- }
-
- function Wrapper() {
- return construct(Class, arguments, getPrototypeOf(this).constructor);
- }
-
- Wrapper.prototype = Object.create(Class.prototype, {
- constructor: {
- value: Wrapper,
- enumerable: false,
- writable: true,
- configurable: true
- }
- });
- return setPrototypeOf(Wrapper, Class);
- };
-
- return _wrapNativeSuper(Class);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js b/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js
deleted file mode 100644
index c885450..0000000
--- a/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js
+++ /dev/null
@@ -1,69 +0,0 @@
-import _typeof from "../../helpers/esm/typeof";
-import wrapNativeSuper from "./wrapNativeSuper";
-import getPrototypeOf from "./getPrototypeOf";
-import possibleConstructorReturn from "./possibleConstructorReturn";
-import inherits from "./inherits";
-export default function _wrapRegExp(re, groups) {
- _wrapRegExp = function _wrapRegExp(re, groups) {
- return new BabelRegExp(re, undefined, groups);
- };
-
- var _RegExp = wrapNativeSuper(RegExp);
-
- var _super = RegExp.prototype;
-
- var _groups = new WeakMap();
-
- function BabelRegExp(re, flags, groups) {
- var _this = _RegExp.call(this, re, flags);
-
- _groups.set(_this, groups || _groups.get(re));
-
- return _this;
- }
-
- inherits(BabelRegExp, _RegExp);
-
- BabelRegExp.prototype.exec = function (str) {
- var result = _super.exec.call(this, str);
-
- if (result) result.groups = buildGroups(result, this);
- return result;
- };
-
- BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
- if (typeof substitution === "string") {
- var groups = _groups.get(this);
-
- return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
- return "$" + groups[name];
- }));
- } else if (typeof substitution === "function") {
- var _this = this;
-
- return _super[Symbol.replace].call(this, str, function () {
- var args = [];
- args.push.apply(args, arguments);
-
- if (_typeof(args[args.length - 1]) !== "object") {
- args.push(buildGroups(args, _this));
- }
-
- return substitution.apply(this, args);
- });
- } else {
- return _super[Symbol.replace].call(this, str, substitution);
- }
- };
-
- function buildGroups(result, re) {
- var g = _groups.get(re);
-
- return Object.keys(g).reduce(function (groups, name) {
- groups[name] = result[g[name]];
- return groups;
- }, Object.create(null));
- }
-
- return _wrapRegExp.apply(this, arguments);
-}
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/extends.js b/node_modules/@babel/runtime/helpers/extends.js
deleted file mode 100644
index 1816877..0000000
--- a/node_modules/@babel/runtime/helpers/extends.js
+++ /dev/null
@@ -1,19 +0,0 @@
-function _extends() {
- module.exports = _extends = Object.assign || function (target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i];
-
- for (var key in source) {
- if (Object.prototype.hasOwnProperty.call(source, key)) {
- target[key] = source[key];
- }
- }
- }
-
- return target;
- };
-
- return _extends.apply(this, arguments);
-}
-
-module.exports = _extends;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/get.js b/node_modules/@babel/runtime/helpers/get.js
deleted file mode 100644
index 31ffc65..0000000
--- a/node_modules/@babel/runtime/helpers/get.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var superPropBase = require("./superPropBase");
-
-function _get(target, property, receiver) {
- if (typeof Reflect !== "undefined" && Reflect.get) {
- module.exports = _get = Reflect.get;
- } else {
- module.exports = _get = function _get(target, property, receiver) {
- var base = superPropBase(target, property);
- if (!base) return;
- var desc = Object.getOwnPropertyDescriptor(base, property);
-
- if (desc.get) {
- return desc.get.call(receiver);
- }
-
- return desc.value;
- };
- }
-
- return _get(target, property, receiver || target);
-}
-
-module.exports = _get;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/getPrototypeOf.js b/node_modules/@babel/runtime/helpers/getPrototypeOf.js
deleted file mode 100644
index 5fc9a16..0000000
--- a/node_modules/@babel/runtime/helpers/getPrototypeOf.js
+++ /dev/null
@@ -1,8 +0,0 @@
-function _getPrototypeOf(o) {
- module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
- return o.__proto__ || Object.getPrototypeOf(o);
- };
- return _getPrototypeOf(o);
-}
-
-module.exports = _getPrototypeOf;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/inherits.js b/node_modules/@babel/runtime/helpers/inherits.js
deleted file mode 100644
index 6b4f286..0000000
--- a/node_modules/@babel/runtime/helpers/inherits.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var setPrototypeOf = require("./setPrototypeOf");
-
-function _inherits(subClass, superClass) {
- if (typeof superClass !== "function" && superClass !== null) {
- throw new TypeError("Super expression must either be null or a function");
- }
-
- subClass.prototype = Object.create(superClass && superClass.prototype, {
- constructor: {
- value: subClass,
- writable: true,
- configurable: true
- }
- });
- if (superClass) setPrototypeOf(subClass, superClass);
-}
-
-module.exports = _inherits;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/inheritsLoose.js b/node_modules/@babel/runtime/helpers/inheritsLoose.js
deleted file mode 100644
index c3f7cdb..0000000
--- a/node_modules/@babel/runtime/helpers/inheritsLoose.js
+++ /dev/null
@@ -1,7 +0,0 @@
-function _inheritsLoose(subClass, superClass) {
- subClass.prototype = Object.create(superClass.prototype);
- subClass.prototype.constructor = subClass;
- subClass.__proto__ = superClass;
-}
-
-module.exports = _inheritsLoose;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/initializerDefineProperty.js b/node_modules/@babel/runtime/helpers/initializerDefineProperty.js
deleted file mode 100644
index 4caa5ca..0000000
--- a/node_modules/@babel/runtime/helpers/initializerDefineProperty.js
+++ /dev/null
@@ -1,11 +0,0 @@
-function _initializerDefineProperty(target, property, descriptor, context) {
- if (!descriptor) return;
- Object.defineProperty(target, property, {
- enumerable: descriptor.enumerable,
- configurable: descriptor.configurable,
- writable: descriptor.writable,
- value: descriptor.initializer ? descriptor.initializer.call(context) : void 0
- });
-}
-
-module.exports = _initializerDefineProperty;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/initializerWarningHelper.js b/node_modules/@babel/runtime/helpers/initializerWarningHelper.js
deleted file mode 100644
index 50ec82c..0000000
--- a/node_modules/@babel/runtime/helpers/initializerWarningHelper.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _initializerWarningHelper(descriptor, context) {
- throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.');
-}
-
-module.exports = _initializerWarningHelper;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/instanceof.js b/node_modules/@babel/runtime/helpers/instanceof.js
deleted file mode 100644
index efe134c..0000000
--- a/node_modules/@babel/runtime/helpers/instanceof.js
+++ /dev/null
@@ -1,9 +0,0 @@
-function _instanceof(left, right) {
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
- return !!right[Symbol.hasInstance](left);
- } else {
- return left instanceof right;
- }
-}
-
-module.exports = _instanceof;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/interopRequireDefault.js b/node_modules/@babel/runtime/helpers/interopRequireDefault.js
deleted file mode 100644
index f713d13..0000000
--- a/node_modules/@babel/runtime/helpers/interopRequireDefault.js
+++ /dev/null
@@ -1,7 +0,0 @@
-function _interopRequireDefault(obj) {
- return obj && obj.__esModule ? obj : {
- "default": obj
- };
-}
-
-module.exports = _interopRequireDefault;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/interopRequireWildcard.js b/node_modules/@babel/runtime/helpers/interopRequireWildcard.js
deleted file mode 100644
index 68fd84c..0000000
--- a/node_modules/@babel/runtime/helpers/interopRequireWildcard.js
+++ /dev/null
@@ -1,55 +0,0 @@
-var _typeof = require("../helpers/typeof");
-
-function _getRequireWildcardCache() {
- if (typeof WeakMap !== "function") return null;
- var cache = new WeakMap();
-
- _getRequireWildcardCache = function _getRequireWildcardCache() {
- return cache;
- };
-
- return cache;
-}
-
-function _interopRequireWildcard(obj) {
- if (obj && obj.__esModule) {
- return obj;
- }
-
- if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
- return {
- "default": obj
- };
- }
-
- var cache = _getRequireWildcardCache();
-
- if (cache && cache.has(obj)) {
- return cache.get(obj);
- }
-
- var newObj = {};
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
-
- for (var key in obj) {
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
-
- if (desc && (desc.get || desc.set)) {
- Object.defineProperty(newObj, key, desc);
- } else {
- newObj[key] = obj[key];
- }
- }
- }
-
- newObj["default"] = obj;
-
- if (cache) {
- cache.set(obj, newObj);
- }
-
- return newObj;
-}
-
-module.exports = _interopRequireWildcard;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/isNativeFunction.js b/node_modules/@babel/runtime/helpers/isNativeFunction.js
deleted file mode 100644
index e2dc3ed..0000000
--- a/node_modules/@babel/runtime/helpers/isNativeFunction.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _isNativeFunction(fn) {
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
-}
-
-module.exports = _isNativeFunction;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/iterableToArray.js b/node_modules/@babel/runtime/helpers/iterableToArray.js
deleted file mode 100644
index e917e57..0000000
--- a/node_modules/@babel/runtime/helpers/iterableToArray.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _iterableToArray(iter) {
- if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
-}
-
-module.exports = _iterableToArray;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js b/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js
deleted file mode 100644
index cd01642..0000000
--- a/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js
+++ /dev/null
@@ -1,31 +0,0 @@
-function _iterableToArrayLimit(arr, i) {
- if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
- return;
- }
-
- var _arr = [];
- var _n = true;
- var _d = false;
- var _e = undefined;
-
- try {
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
- _arr.push(_s.value);
-
- if (i && _arr.length === i) break;
- }
- } catch (err) {
- _d = true;
- _e = err;
- } finally {
- try {
- if (!_n && _i["return"] != null) _i["return"]();
- } finally {
- if (_d) throw _e;
- }
- }
-
- return _arr;
-}
-
-module.exports = _iterableToArrayLimit;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js b/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js
deleted file mode 100644
index ccf8d2f..0000000
--- a/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js
+++ /dev/null
@@ -1,17 +0,0 @@
-function _iterableToArrayLimitLoose(arr, i) {
- if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
- return;
- }
-
- var _arr = [];
-
- for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {
- _arr.push(_step.value);
-
- if (i && _arr.length === i) break;
- }
-
- return _arr;
-}
-
-module.exports = _iterableToArrayLimitLoose;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/jsx.js b/node_modules/@babel/runtime/helpers/jsx.js
deleted file mode 100644
index 4b1ee54..0000000
--- a/node_modules/@babel/runtime/helpers/jsx.js
+++ /dev/null
@@ -1,49 +0,0 @@
-var REACT_ELEMENT_TYPE;
-
-function _createRawReactElement(type, props, key, children) {
- if (!REACT_ELEMENT_TYPE) {
- REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol["for"] && Symbol["for"]("react.element") || 0xeac7;
- }
-
- var defaultProps = type && type.defaultProps;
- var childrenLength = arguments.length - 3;
-
- if (!props && childrenLength !== 0) {
- props = {
- children: void 0
- };
- }
-
- if (childrenLength === 1) {
- props.children = children;
- } else if (childrenLength > 1) {
- var childArray = new Array(childrenLength);
-
- for (var i = 0; i < childrenLength; i++) {
- childArray[i] = arguments[i + 3];
- }
-
- props.children = childArray;
- }
-
- if (props && defaultProps) {
- for (var propName in defaultProps) {
- if (props[propName] === void 0) {
- props[propName] = defaultProps[propName];
- }
- }
- } else if (!props) {
- props = defaultProps || {};
- }
-
- return {
- $$typeof: REACT_ELEMENT_TYPE,
- type: type,
- key: key === undefined ? null : '' + key,
- ref: null,
- props: props,
- _owner: null
- };
-}
-
-module.exports = _createRawReactElement;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/newArrowCheck.js b/node_modules/@babel/runtime/helpers/newArrowCheck.js
deleted file mode 100644
index 9b59f58..0000000
--- a/node_modules/@babel/runtime/helpers/newArrowCheck.js
+++ /dev/null
@@ -1,7 +0,0 @@
-function _newArrowCheck(innerThis, boundThis) {
- if (innerThis !== boundThis) {
- throw new TypeError("Cannot instantiate an arrow function");
- }
-}
-
-module.exports = _newArrowCheck;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/nonIterableRest.js b/node_modules/@babel/runtime/helpers/nonIterableRest.js
deleted file mode 100644
index eb447dd..0000000
--- a/node_modules/@babel/runtime/helpers/nonIterableRest.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _nonIterableRest() {
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
-}
-
-module.exports = _nonIterableRest;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/nonIterableSpread.js b/node_modules/@babel/runtime/helpers/nonIterableSpread.js
deleted file mode 100644
index 7d7ca43..0000000
--- a/node_modules/@babel/runtime/helpers/nonIterableSpread.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _nonIterableSpread() {
- throw new TypeError("Invalid attempt to spread non-iterable instance");
-}
-
-module.exports = _nonIterableSpread;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js b/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js
deleted file mode 100644
index 1d5c04a..0000000
--- a/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _objectDestructuringEmpty(obj) {
- if (obj == null) throw new TypeError("Cannot destructure undefined");
-}
-
-module.exports = _objectDestructuringEmpty;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/objectSpread.js b/node_modules/@babel/runtime/helpers/objectSpread.js
deleted file mode 100644
index ad8036e..0000000
--- a/node_modules/@babel/runtime/helpers/objectSpread.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var defineProperty = require("./defineProperty");
-
-function _objectSpread(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i] != null ? Object(arguments[i]) : {};
- var ownKeys = Object.keys(source);
-
- if (typeof Object.getOwnPropertySymbols === 'function') {
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
- }));
- }
-
- ownKeys.forEach(function (key) {
- defineProperty(target, key, source[key]);
- });
- }
-
- return target;
-}
-
-module.exports = _objectSpread;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/objectSpread2.js b/node_modules/@babel/runtime/helpers/objectSpread2.js
deleted file mode 100644
index f067f3e..0000000
--- a/node_modules/@babel/runtime/helpers/objectSpread2.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var defineProperty = require("./defineProperty");
-
-function ownKeys(object, enumerableOnly) {
- var keys = Object.keys(object);
-
- if (Object.getOwnPropertySymbols) {
- var symbols = Object.getOwnPropertySymbols(object);
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
- });
- keys.push.apply(keys, symbols);
- }
-
- return keys;
-}
-
-function _objectSpread2(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i] != null ? arguments[i] : {};
-
- if (i % 2) {
- ownKeys(Object(source), true).forEach(function (key) {
- defineProperty(target, key, source[key]);
- });
- } else if (Object.getOwnPropertyDescriptors) {
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
- } else {
- ownKeys(Object(source)).forEach(function (key) {
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
- });
- }
- }
-
- return target;
-}
-
-module.exports = _objectSpread2;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/objectWithoutProperties.js b/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
deleted file mode 100644
index 253d33c..0000000
--- a/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var objectWithoutPropertiesLoose = require("./objectWithoutPropertiesLoose");
-
-function _objectWithoutProperties(source, excluded) {
- if (source == null) return {};
- var target = objectWithoutPropertiesLoose(source, excluded);
- var key, i;
-
- if (Object.getOwnPropertySymbols) {
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
-
- for (i = 0; i < sourceSymbolKeys.length; i++) {
- key = sourceSymbolKeys[i];
- if (excluded.indexOf(key) >= 0) continue;
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
- target[key] = source[key];
- }
- }
-
- return target;
-}
-
-module.exports = _objectWithoutProperties;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js b/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
deleted file mode 100644
index a58c56b..0000000
--- a/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
+++ /dev/null
@@ -1,16 +0,0 @@
-function _objectWithoutPropertiesLoose(source, excluded) {
- if (source == null) return {};
- var target = {};
- var sourceKeys = Object.keys(source);
- var key, i;
-
- for (i = 0; i < sourceKeys.length; i++) {
- key = sourceKeys[i];
- if (excluded.indexOf(key) >= 0) continue;
- target[key] = source[key];
- }
-
- return target;
-}
-
-module.exports = _objectWithoutPropertiesLoose;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js b/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
deleted file mode 100644
index 84f7bf6..0000000
--- a/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
+++ /dev/null
@@ -1,13 +0,0 @@
-var _typeof = require("../helpers/typeof");
-
-var assertThisInitialized = require("./assertThisInitialized");
-
-function _possibleConstructorReturn(self, call) {
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
- return call;
- }
-
- return assertThisInitialized(self);
-}
-
-module.exports = _possibleConstructorReturn;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/readOnlyError.js b/node_modules/@babel/runtime/helpers/readOnlyError.js
deleted file mode 100644
index 4e61e3f..0000000
--- a/node_modules/@babel/runtime/helpers/readOnlyError.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _readOnlyError(name) {
- throw new Error("\"" + name + "\" is read-only");
-}
-
-module.exports = _readOnlyError;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/set.js b/node_modules/@babel/runtime/helpers/set.js
deleted file mode 100644
index 97fa8c3..0000000
--- a/node_modules/@babel/runtime/helpers/set.js
+++ /dev/null
@@ -1,54 +0,0 @@
-var superPropBase = require("./superPropBase");
-
-var defineProperty = require("./defineProperty");
-
-function set(target, property, value, receiver) {
- if (typeof Reflect !== "undefined" && Reflect.set) {
- set = Reflect.set;
- } else {
- set = function set(target, property, value, receiver) {
- var base = superPropBase(target, property);
- var desc;
-
- if (base) {
- desc = Object.getOwnPropertyDescriptor(base, property);
-
- if (desc.set) {
- desc.set.call(receiver, value);
- return true;
- } else if (!desc.writable) {
- return false;
- }
- }
-
- desc = Object.getOwnPropertyDescriptor(receiver, property);
-
- if (desc) {
- if (!desc.writable) {
- return false;
- }
-
- desc.value = value;
- Object.defineProperty(receiver, property, desc);
- } else {
- defineProperty(receiver, property, value);
- }
-
- return true;
- };
- }
-
- return set(target, property, value, receiver);
-}
-
-function _set(target, property, value, receiver, isStrict) {
- var s = set(target, property, value, receiver || target);
-
- if (!s && isStrict) {
- throw new Error('failed to set property');
- }
-
- return value;
-}
-
-module.exports = _set;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/setPrototypeOf.js b/node_modules/@babel/runtime/helpers/setPrototypeOf.js
deleted file mode 100644
index d86e2fc..0000000
--- a/node_modules/@babel/runtime/helpers/setPrototypeOf.js
+++ /dev/null
@@ -1,10 +0,0 @@
-function _setPrototypeOf(o, p) {
- module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
- o.__proto__ = p;
- return o;
- };
-
- return _setPrototypeOf(o, p);
-}
-
-module.exports = _setPrototypeOf;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js b/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js
deleted file mode 100644
index e1d6c86..0000000
--- a/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js
+++ /dev/null
@@ -1,9 +0,0 @@
-function _skipFirstGeneratorNext(fn) {
- return function () {
- var it = fn.apply(this, arguments);
- it.next();
- return it;
- };
-}
-
-module.exports = _skipFirstGeneratorNext;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/slicedToArray.js b/node_modules/@babel/runtime/helpers/slicedToArray.js
deleted file mode 100644
index 243ea9e..0000000
--- a/node_modules/@babel/runtime/helpers/slicedToArray.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var arrayWithHoles = require("./arrayWithHoles");
-
-var iterableToArrayLimit = require("./iterableToArrayLimit");
-
-var nonIterableRest = require("./nonIterableRest");
-
-function _slicedToArray(arr, i) {
- return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();
-}
-
-module.exports = _slicedToArray;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js b/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js
deleted file mode 100644
index c7e4313..0000000
--- a/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var arrayWithHoles = require("./arrayWithHoles");
-
-var iterableToArrayLimitLoose = require("./iterableToArrayLimitLoose");
-
-var nonIterableRest = require("./nonIterableRest");
-
-function _slicedToArrayLoose(arr, i) {
- return arrayWithHoles(arr) || iterableToArrayLimitLoose(arr, i) || nonIterableRest();
-}
-
-module.exports = _slicedToArrayLoose;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/superPropBase.js b/node_modules/@babel/runtime/helpers/superPropBase.js
deleted file mode 100644
index bbb34a2..0000000
--- a/node_modules/@babel/runtime/helpers/superPropBase.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var getPrototypeOf = require("./getPrototypeOf");
-
-function _superPropBase(object, property) {
- while (!Object.prototype.hasOwnProperty.call(object, property)) {
- object = getPrototypeOf(object);
- if (object === null) break;
- }
-
- return object;
-}
-
-module.exports = _superPropBase;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js b/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js
deleted file mode 100644
index bdcc1e9..0000000
--- a/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js
+++ /dev/null
@@ -1,13 +0,0 @@
-function _taggedTemplateLiteral(strings, raw) {
- if (!raw) {
- raw = strings.slice(0);
- }
-
- return Object.freeze(Object.defineProperties(strings, {
- raw: {
- value: Object.freeze(raw)
- }
- }));
-}
-
-module.exports = _taggedTemplateLiteral;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js b/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js
deleted file mode 100644
index beced54..0000000
--- a/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js
+++ /dev/null
@@ -1,10 +0,0 @@
-function _taggedTemplateLiteralLoose(strings, raw) {
- if (!raw) {
- raw = strings.slice(0);
- }
-
- strings.raw = raw;
- return strings;
-}
-
-module.exports = _taggedTemplateLiteralLoose;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/tdz.js b/node_modules/@babel/runtime/helpers/tdz.js
deleted file mode 100644
index 6075e8d..0000000
--- a/node_modules/@babel/runtime/helpers/tdz.js
+++ /dev/null
@@ -1,5 +0,0 @@
-function _tdzError(name) {
- throw new ReferenceError(name + " is not defined - temporal dead zone");
-}
-
-module.exports = _tdzError;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/temporalRef.js b/node_modules/@babel/runtime/helpers/temporalRef.js
deleted file mode 100644
index 8aa5e5e..0000000
--- a/node_modules/@babel/runtime/helpers/temporalRef.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var temporalUndefined = require("./temporalUndefined");
-
-var tdz = require("./tdz");
-
-function _temporalRef(val, name) {
- return val === temporalUndefined ? tdz(name) : val;
-}
-
-module.exports = _temporalRef;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/temporalUndefined.js b/node_modules/@babel/runtime/helpers/temporalUndefined.js
deleted file mode 100644
index 416d9b3..0000000
--- a/node_modules/@babel/runtime/helpers/temporalUndefined.js
+++ /dev/null
@@ -1,3 +0,0 @@
-function _temporalUndefined() {}
-
-module.exports = _temporalUndefined;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/toArray.js b/node_modules/@babel/runtime/helpers/toArray.js
deleted file mode 100644
index c28fd9e..0000000
--- a/node_modules/@babel/runtime/helpers/toArray.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var arrayWithHoles = require("./arrayWithHoles");
-
-var iterableToArray = require("./iterableToArray");
-
-var nonIterableRest = require("./nonIterableRest");
-
-function _toArray(arr) {
- return arrayWithHoles(arr) || iterableToArray(arr) || nonIterableRest();
-}
-
-module.exports = _toArray;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/toConsumableArray.js b/node_modules/@babel/runtime/helpers/toConsumableArray.js
deleted file mode 100644
index 4cd54a3..0000000
--- a/node_modules/@babel/runtime/helpers/toConsumableArray.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var arrayWithoutHoles = require("./arrayWithoutHoles");
-
-var iterableToArray = require("./iterableToArray");
-
-var nonIterableSpread = require("./nonIterableSpread");
-
-function _toConsumableArray(arr) {
- return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();
-}
-
-module.exports = _toConsumableArray;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/toPrimitive.js b/node_modules/@babel/runtime/helpers/toPrimitive.js
deleted file mode 100644
index cd1d383..0000000
--- a/node_modules/@babel/runtime/helpers/toPrimitive.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var _typeof = require("../helpers/typeof");
-
-function _toPrimitive(input, hint) {
- if (_typeof(input) !== "object" || input === null) return input;
- var prim = input[Symbol.toPrimitive];
-
- if (prim !== undefined) {
- var res = prim.call(input, hint || "default");
- if (_typeof(res) !== "object") return res;
- throw new TypeError("@@toPrimitive must return a primitive value.");
- }
-
- return (hint === "string" ? String : Number)(input);
-}
-
-module.exports = _toPrimitive;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/toPropertyKey.js b/node_modules/@babel/runtime/helpers/toPropertyKey.js
deleted file mode 100644
index 108b083..0000000
--- a/node_modules/@babel/runtime/helpers/toPropertyKey.js
+++ /dev/null
@@ -1,10 +0,0 @@
-var _typeof = require("../helpers/typeof");
-
-var toPrimitive = require("./toPrimitive");
-
-function _toPropertyKey(arg) {
- var key = toPrimitive(arg, "string");
- return _typeof(key) === "symbol" ? key : String(key);
-}
-
-module.exports = _toPropertyKey;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/typeof.js b/node_modules/@babel/runtime/helpers/typeof.js
deleted file mode 100644
index cad1233..0000000
--- a/node_modules/@babel/runtime/helpers/typeof.js
+++ /dev/null
@@ -1,17 +0,0 @@
-function _typeof(obj) {
- "@babel/helpers - typeof";
-
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
- module.exports = _typeof = function _typeof(obj) {
- return typeof obj;
- };
- } else {
- module.exports = _typeof = function _typeof(obj) {
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
- };
- }
-
- return _typeof(obj);
-}
-
-module.exports = _typeof;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js b/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js
deleted file mode 100644
index 11554f3..0000000
--- a/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var AsyncGenerator = require("./AsyncGenerator");
-
-function _wrapAsyncGenerator(fn) {
- return function () {
- return new AsyncGenerator(fn.apply(this, arguments));
- };
-}
-
-module.exports = _wrapAsyncGenerator;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/wrapNativeSuper.js b/node_modules/@babel/runtime/helpers/wrapNativeSuper.js
deleted file mode 100644
index 3d4bd7a..0000000
--- a/node_modules/@babel/runtime/helpers/wrapNativeSuper.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var getPrototypeOf = require("./getPrototypeOf");
-
-var setPrototypeOf = require("./setPrototypeOf");
-
-var isNativeFunction = require("./isNativeFunction");
-
-var construct = require("./construct");
-
-function _wrapNativeSuper(Class) {
- var _cache = typeof Map === "function" ? new Map() : undefined;
-
- module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
- if (Class === null || !isNativeFunction(Class)) return Class;
-
- if (typeof Class !== "function") {
- throw new TypeError("Super expression must either be null or a function");
- }
-
- if (typeof _cache !== "undefined") {
- if (_cache.has(Class)) return _cache.get(Class);
-
- _cache.set(Class, Wrapper);
- }
-
- function Wrapper() {
- return construct(Class, arguments, getPrototypeOf(this).constructor);
- }
-
- Wrapper.prototype = Object.create(Class.prototype, {
- constructor: {
- value: Wrapper,
- enumerable: false,
- writable: true,
- configurable: true
- }
- });
- return setPrototypeOf(Wrapper, Class);
- };
-
- return _wrapNativeSuper(Class);
-}
-
-module.exports = _wrapNativeSuper;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/helpers/wrapRegExp.js b/node_modules/@babel/runtime/helpers/wrapRegExp.js
deleted file mode 100644
index fcf91d8..0000000
--- a/node_modules/@babel/runtime/helpers/wrapRegExp.js
+++ /dev/null
@@ -1,76 +0,0 @@
-var _typeof = require("../helpers/typeof");
-
-var wrapNativeSuper = require("./wrapNativeSuper");
-
-var getPrototypeOf = require("./getPrototypeOf");
-
-var possibleConstructorReturn = require("./possibleConstructorReturn");
-
-var inherits = require("./inherits");
-
-function _wrapRegExp(re, groups) {
- module.exports = _wrapRegExp = function _wrapRegExp(re, groups) {
- return new BabelRegExp(re, undefined, groups);
- };
-
- var _RegExp = wrapNativeSuper(RegExp);
-
- var _super = RegExp.prototype;
-
- var _groups = new WeakMap();
-
- function BabelRegExp(re, flags, groups) {
- var _this = _RegExp.call(this, re, flags);
-
- _groups.set(_this, groups || _groups.get(re));
-
- return _this;
- }
-
- inherits(BabelRegExp, _RegExp);
-
- BabelRegExp.prototype.exec = function (str) {
- var result = _super.exec.call(this, str);
-
- if (result) result.groups = buildGroups(result, this);
- return result;
- };
-
- BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
- if (typeof substitution === "string") {
- var groups = _groups.get(this);
-
- return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
- return "$" + groups[name];
- }));
- } else if (typeof substitution === "function") {
- var _this = this;
-
- return _super[Symbol.replace].call(this, str, function () {
- var args = [];
- args.push.apply(args, arguments);
-
- if (_typeof(args[args.length - 1]) !== "object") {
- args.push(buildGroups(args, _this));
- }
-
- return substitution.apply(this, args);
- });
- } else {
- return _super[Symbol.replace].call(this, str, substitution);
- }
- };
-
- function buildGroups(result, re) {
- var g = _groups.get(re);
-
- return Object.keys(g).reduce(function (groups, name) {
- groups[name] = result[g[name]];
- return groups;
- }, Object.create(null));
- }
-
- return _wrapRegExp.apply(this, arguments);
-}
-
-module.exports = _wrapRegExp;
\ No newline at end of file
diff --git a/node_modules/@babel/runtime/package.json b/node_modules/@babel/runtime/package.json
deleted file mode 100644
index 0d2b215..0000000
--- a/node_modules/@babel/runtime/package.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "name": "@babel/runtime",
- "version": "7.8.7",
- "description": "babel's modular runtime helpers",
- "license": "MIT",
- "publishConfig": {
- "access": "public"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel.git",
- "directory": "packages/babel-runtime"
- },
- "homepage": "https://babeljs.io/docs/en/next/babel-runtime",
- "author": "Sebastian McKenzie <sebmck@gmail.com>",
- "dependencies": {
- "regenerator-runtime": "^0.13.4"
- },
- "devDependencies": {
- "@babel/helpers": "^7.8.4"
- },
- "gitHead": "595f65f33b8e948e34d12be83f700cf8d070c790"
-}
diff --git a/node_modules/@babel/runtime/regenerator/index.js b/node_modules/@babel/runtime/regenerator/index.js
deleted file mode 100644
index 9fd4158..0000000
--- a/node_modules/@babel/runtime/regenerator/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require("regenerator-runtime");
diff --git a/node_modules/@babel/template/node_modules/.bin/parser b/node_modules/@babel/template/node_modules/.bin/parser
index ce7bf97..c99c430 120000
--- a/node_modules/@babel/template/node_modules/.bin/parser
+++ b/node_modules/@babel/template/node_modules/.bin/parser
@@ -1 +1 @@
-../@babel/parser/bin/babel-parser.js
\ No newline at end of file
+../../../../istanbul-lib-instrument/node_modules/@babel/parser/bin/babel-parser.js
\ No newline at end of file
diff --git a/node_modules/@babel/traverse/node_modules/.bin/parser b/node_modules/@babel/traverse/node_modules/.bin/parser
index ce7bf97..c99c430 120000
--- a/node_modules/@babel/traverse/node_modules/.bin/parser
+++ b/node_modules/@babel/traverse/node_modules/.bin/parser
@@ -1 +1 @@
-../@babel/parser/bin/babel-parser.js
\ No newline at end of file
+../../../../istanbul-lib-instrument/node_modules/@babel/parser/bin/babel-parser.js
\ No newline at end of file
diff --git a/node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from/index.d.ts b/node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from/index.d.ts
deleted file mode 100644
index dd5f5ef..0000000
--- a/node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from/index.d.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-declare const resolveFrom: {
- /**
- Resolve the path of a module like [`require.resolve()`](https://nodejs.org/api/globals.html#globals_require_resolve) but from a given path.
-
- @param fromDirectory - Directory to resolve from.
- @param moduleId - What you would use in `require()`.
- @returns Resolved module path. Throws when the module can't be found.
-
- @example
- ```
- import resolveFrom = require('resolve-from');
-
- // There is a file at `./foo/bar.js`
-
- resolveFrom('foo', './bar');
- //=> '/Users/sindresorhus/dev/test/foo/bar.js'
- ```
- */
- (fromDirectory: string, moduleId: string): string;
-
- /**
- Resolve the path of a module like [`require.resolve()`](https://nodejs.org/api/globals.html#globals_require_resolve) but from a given path.
-
- @param fromDirectory - Directory to resolve from.
- @param moduleId - What you would use in `require()`.
- @returns Resolved module path or `undefined` when the module can't be found.
- */
- silent(fromDirectory: string, moduleId: string): string | undefined;
-};
-
-export = resolveFrom;
diff --git a/node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from/index.js b/node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from/index.js
deleted file mode 100644
index 44f291c..0000000
--- a/node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from/index.js
+++ /dev/null
@@ -1,47 +0,0 @@
-'use strict';
-const path = require('path');
-const Module = require('module');
-const fs = require('fs');
-
-const resolveFrom = (fromDirectory, moduleId, silent) => {
- if (typeof fromDirectory !== 'string') {
- throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDirectory}\``);
- }
-
- if (typeof moduleId !== 'string') {
- throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
- }
-
- try {
- fromDirectory = fs.realpathSync(fromDirectory);
- } catch (error) {
- if (error.code === 'ENOENT') {
- fromDirectory = path.resolve(fromDirectory);
- } else if (silent) {
- return;
- } else {
- throw error;
- }
- }
-
- const fromFile = path.join(fromDirectory, 'noop.js');
-
- const resolveFileName = () => Module._resolveFilename(moduleId, {
- id: fromFile,
- filename: fromFile,
- paths: Module._nodeModulePaths(fromDirectory)
- });
-
- if (silent) {
- try {
- return resolveFileName();
- } catch (error) {
- return;
- }
- }
-
- return resolveFileName();
-};
-
-module.exports = (fromDirectory, moduleId) => resolveFrom(fromDirectory, moduleId);
-module.exports.silent = (fromDirectory, moduleId) => resolveFrom(fromDirectory, moduleId, true);
diff --git a/node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from/package.json b/node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from/package.json
deleted file mode 100644
index 733df16..0000000
--- a/node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from/package.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "name": "resolve-from",
- "version": "5.0.0",
- "description": "Resolve the path of a module like `require.resolve()` but from a given path",
- "license": "MIT",
- "repository": "sindresorhus/resolve-from",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "engines": {
- "node": ">=8"
- },
- "scripts": {
- "test": "xo && ava && tsd"
- },
- "files": [
- "index.js",
- "index.d.ts"
- ],
- "keywords": [
- "require",
- "resolve",
- "path",
- "module",
- "from",
- "like",
- "import"
- ],
- "devDependencies": {
- "ava": "^1.4.1",
- "tsd": "^0.7.2",
- "xo": "^0.24.0"
- }
-}
diff --git a/node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from/readme.md b/node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from/readme.md
deleted file mode 100644
index fd4f46f..0000000
--- a/node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from/readme.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# resolve-from [](https://travis-ci.org/sindresorhus/resolve-from)
-
-> Resolve the path of a module like [`require.resolve()`](https://nodejs.org/api/globals.html#globals_require_resolve) but from a given path
-
-
-## Install
-
-```
-$ npm install resolve-from
-```
-
-
-## Usage
-
-```js
-const resolveFrom = require('resolve-from');
-
-// There is a file at `./foo/bar.js`
-
-resolveFrom('foo', './bar');
-//=> '/Users/sindresorhus/dev/test/foo/bar.js'
-```
-
-
-## API
-
-### resolveFrom(fromDirectory, moduleId)
-
-Like `require()`, throws when the module can't be found.
-
-### resolveFrom.silent(fromDirectory, moduleId)
-
-Returns `undefined` instead of throwing when the module can't be found.
-
-#### fromDirectory
-
-Type: `string`
-
-Directory to resolve from.
-
-#### moduleId
-
-Type: `string`
-
-What you would use in `require()`.
-
-
-## Tip
-
-Create a partial using a bound function if you want to resolve from the same `fromDirectory` multiple times:
-
-```js
-const resolveFromFoo = resolveFrom.bind(null, 'foo');
-
-resolveFromFoo('./bar');
-resolveFromFoo('./baz');
-```
-
-
-## Related
-
-- [resolve-cwd](https://github.com/sindresorhus/resolve-cwd) - Resolve the path of a module from the current working directory
-- [import-from](https://github.com/sindresorhus/import-from) - Import a module from a given path
-- [import-cwd](https://github.com/sindresorhus/import-cwd) - Import a module from the current working directory
-- [resolve-pkg](https://github.com/sindresorhus/resolve-pkg) - Resolve the path of a package regardless of it having an entry point
-- [import-lazy](https://github.com/sindresorhus/import-lazy) - Import a module lazily
-- [resolve-global](https://github.com/sindresorhus/resolve-global) - Resolve the path of a globally installed module
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/@jest/core/node_modules/.bin/rimraf b/node_modules/@jest/core/node_modules/.bin/rimraf
index ec9dc7b..4cd49a4 120000
--- a/node_modules/@jest/core/node_modules/.bin/rimraf
+++ b/node_modules/@jest/core/node_modules/.bin/rimraf
@@ -1 +1 @@
-../../../../rimraf/bin.js
\ No newline at end of file
+../rimraf/bin.js
\ No newline at end of file
diff --git a/node_modules/mute-stream/LICENSE b/node_modules/@jest/core/node_modules/rimraf/LICENSE
similarity index 100%
rename from node_modules/mute-stream/LICENSE
rename to node_modules/@jest/core/node_modules/rimraf/LICENSE
diff --git a/node_modules/@jest/core/node_modules/rimraf/README.md b/node_modules/@jest/core/node_modules/rimraf/README.md
new file mode 100644
index 0000000..423b8cf
--- /dev/null
+++ b/node_modules/@jest/core/node_modules/rimraf/README.md
@@ -0,0 +1,101 @@
+[](https://travis-ci.org/isaacs/rimraf) [](https://david-dm.org/isaacs/rimraf) [](https://david-dm.org/isaacs/rimraf#info=devDependencies)
+
+The [UNIX command](http://en.wikipedia.org/wiki/Rm_(Unix)) `rm -rf` for node.
+
+Install with `npm install rimraf`, or just drop rimraf.js somewhere.
+
+## API
+
+`rimraf(f, [opts], callback)`
+
+The first parameter will be interpreted as a globbing pattern for files. If you
+want to disable globbing you can do so with `opts.disableGlob` (defaults to
+`false`). This might be handy, for instance, if you have filenames that contain
+globbing wildcard characters.
+
+The callback will be called with an error if there is one. Certain
+errors are handled for you:
+
+* Windows: `EBUSY` and `ENOTEMPTY` - rimraf will back off a maximum of
+ `opts.maxBusyTries` times before giving up, adding 100ms of wait
+ between each attempt. The default `maxBusyTries` is 3.
+* `ENOENT` - If the file doesn't exist, rimraf will return
+ successfully, since your desired outcome is already the case.
+* `EMFILE` - Since `readdir` requires opening a file descriptor, it's
+ possible to hit `EMFILE` if too many file descriptors are in use.
+ In the sync case, there's nothing to be done for this. But in the
+ async case, rimraf will gradually back off with timeouts up to
+ `opts.emfileWait` ms, which defaults to 1000.
+
+## options
+
+* unlink, chmod, stat, lstat, rmdir, readdir,
+ unlinkSync, chmodSync, statSync, lstatSync, rmdirSync, readdirSync
+
+ In order to use a custom file system library, you can override
+ specific fs functions on the options object.
+
+ If any of these functions are present on the options object, then
+ the supplied function will be used instead of the default fs
+ method.
+
+ Sync methods are only relevant for `rimraf.sync()`, of course.
+
+ For example:
+
+ ```javascript
+ var myCustomFS = require('some-custom-fs')
+
+ rimraf('some-thing', myCustomFS, callback)
+ ```
+
+* maxBusyTries
+
+ If an `EBUSY`, `ENOTEMPTY`, or `EPERM` error code is encountered
+ on Windows systems, then rimraf will retry with a linear backoff
+ wait of 100ms longer on each try. The default maxBusyTries is 3.
+
+ Only relevant for async usage.
+
+* emfileWait
+
+ If an `EMFILE` error is encountered, then rimraf will retry
+ repeatedly with a linear backoff of 1ms longer on each try, until
+ the timeout counter hits this max. The default limit is 1000.
+
+ If you repeatedly encounter `EMFILE` errors, then consider using
+ [graceful-fs](http://npm.im/graceful-fs) in your program.
+
+ Only relevant for async usage.
+
+* glob
+
+ Set to `false` to disable [glob](http://npm.im/glob) pattern
+ matching.
+
+ Set to an object to pass options to the glob module. The default
+ glob options are `{ nosort: true, silent: true }`.
+
+ Glob version 6 is used in this module.
+
+ Relevant for both sync and async usage.
+
+* disableGlob
+
+ Set to any non-falsey value to disable globbing entirely.
+ (Equivalent to setting `glob: false`.)
+
+## rimraf.sync
+
+It can remove stuff synchronously, too. But that's not so good. Use
+the async API. It's better.
+
+## CLI
+
+If installed with `npm install rimraf -g` it can be used as a global
+command `rimraf <path> [<path> ...]` which is useful for cross platform support.
+
+## mkdirp
+
+If you need to create a directory recursively, check out
+[mkdirp](https://github.com/substack/node-mkdirp).
diff --git a/node_modules/@jest/core/node_modules/rimraf/bin.js b/node_modules/@jest/core/node_modules/rimraf/bin.js
new file mode 100755
index 0000000..023814c
--- /dev/null
+++ b/node_modules/@jest/core/node_modules/rimraf/bin.js
@@ -0,0 +1,68 @@
+#!/usr/bin/env node
+
+const rimraf = require('./')
+
+const path = require('path')
+
+const isRoot = arg => /^(\/|[a-zA-Z]:\\)$/.test(path.resolve(arg))
+const filterOutRoot = arg => {
+ const ok = preserveRoot === false || !isRoot(arg)
+ if (!ok) {
+ console.error(`refusing to remove ${arg}`)
+ console.error('Set --no-preserve-root to allow this')
+ }
+ return ok
+}
+
+let help = false
+let dashdash = false
+let noglob = false
+let preserveRoot = true
+const args = process.argv.slice(2).filter(arg => {
+ if (dashdash)
+ return !!arg
+ else if (arg === '--')
+ dashdash = true
+ else if (arg === '--no-glob' || arg === '-G')
+ noglob = true
+ else if (arg === '--glob' || arg === '-g')
+ noglob = false
+ else if (arg.match(/^(-+|\/)(h(elp)?|\?)$/))
+ help = true
+ else if (arg === '--preserve-root')
+ preserveRoot = true
+ else if (arg === '--no-preserve-root')
+ preserveRoot = false
+ else
+ return !!arg
+}).filter(arg => !preserveRoot || filterOutRoot(arg))
+
+const go = n => {
+ if (n >= args.length)
+ return
+ const options = noglob ? { glob: false } : {}
+ rimraf(args[n], options, er => {
+ if (er)
+ throw er
+ go(n+1)
+ })
+}
+
+if (help || args.length === 0) {
+ // If they didn't ask for help, then this is not a "success"
+ const log = help ? console.log : console.error
+ log('Usage: rimraf <path> [<path> ...]')
+ log('')
+ log(' Deletes all files and folders at "path" recursively.')
+ log('')
+ log('Options:')
+ log('')
+ log(' -h, --help Display this usage info')
+ log(' -G, --no-glob Do not expand glob patterns in arguments')
+ log(' -g, --glob Expand glob patterns in arguments (default)')
+ log(' --preserve-root Do not remove \'/\' (default)')
+ log(' --no-preserve-root Do not treat \'/\' specially')
+ log(' -- Stop parsing flags')
+ process.exit(help ? 0 : 1)
+} else
+ go(0)
diff --git a/node_modules/@jest/core/node_modules/rimraf/package.json b/node_modules/@jest/core/node_modules/rimraf/package.json
new file mode 100644
index 0000000..68c98f9
--- /dev/null
+++ b/node_modules/@jest/core/node_modules/rimraf/package.json
@@ -0,0 +1,29 @@
+{
+ "name": "rimraf",
+ "version": "3.0.0",
+ "main": "rimraf.js",
+ "description": "A deep deletion module for node (like `rm -rf`)",
+ "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
+ "license": "ISC",
+ "repository": "git://github.com/isaacs/rimraf.git",
+ "scripts": {
+ "preversion": "npm test",
+ "postversion": "npm publish",
+ "postpublish": "git push origin --follow-tags",
+ "test": "tap test/*.js"
+ },
+ "bin": "./bin.js",
+ "dependencies": {
+ "glob": "^7.1.3"
+ },
+ "files": [
+ "LICENSE",
+ "README.md",
+ "bin.js",
+ "rimraf.js"
+ ],
+ "devDependencies": {
+ "mkdirp": "^0.5.1",
+ "tap": "^12.1.1"
+ }
+}
diff --git a/node_modules/@jest/core/node_modules/rimraf/rimraf.js b/node_modules/@jest/core/node_modules/rimraf/rimraf.js
new file mode 100644
index 0000000..309b8ca
--- /dev/null
+++ b/node_modules/@jest/core/node_modules/rimraf/rimraf.js
@@ -0,0 +1,368 @@
+const assert = require("assert")
+const path = require("path")
+const fs = require("fs")
+let glob = undefined
+try {
+ glob = require("glob")
+} catch (_err) {
+ // treat glob as optional.
+}
+
+const defaultGlobOpts = {
+ nosort: true,
+ silent: true
+}
+
+// for EMFILE handling
+let timeout = 0
+
+const isWindows = (process.platform === "win32")
+
+const defaults = options => {
+ const methods = [
+ 'unlink',
+ 'chmod',
+ 'stat',
+ 'lstat',
+ 'rmdir',
+ 'readdir'
+ ]
+ methods.forEach(m => {
+ options[m] = options[m] || fs[m]
+ m = m + 'Sync'
+ options[m] = options[m] || fs[m]
+ })
+
+ options.maxBusyTries = options.maxBusyTries || 3
+ options.emfileWait = options.emfileWait || 1000
+ if (options.glob === false) {
+ options.disableGlob = true
+ }
+ if (options.disableGlob !== true && glob === undefined) {
+ throw Error('glob dependency not found, set `options.disableGlob = true` if intentional')
+ }
+ options.disableGlob = options.disableGlob || false
+ options.glob = options.glob || defaultGlobOpts
+}
+
+const rimraf = (p, options, cb) => {
+ if (typeof options === 'function') {
+ cb = options
+ options = {}
+ }
+
+ assert(p, 'rimraf: missing path')
+ assert.equal(typeof p, 'string', 'rimraf: path should be a string')
+ assert.equal(typeof cb, 'function', 'rimraf: callback function required')
+ assert(options, 'rimraf: invalid options argument provided')
+ assert.equal(typeof options, 'object', 'rimraf: options should be object')
+
+ defaults(options)
+
+ let busyTries = 0
+ let errState = null
+ let n = 0
+
+ const next = (er) => {
+ errState = errState || er
+ if (--n === 0)
+ cb(errState)
+ }
+
+ const afterGlob = (er, results) => {
+ if (er)
+ return cb(er)
+
+ n = results.length
+ if (n === 0)
+ return cb()
+
+ results.forEach(p => {
+ const CB = (er) => {
+ if (er) {
+ if ((er.code === "EBUSY" || er.code === "ENOTEMPTY" || er.code === "EPERM") &&
+ busyTries < options.maxBusyTries) {
+ busyTries ++
+ // try again, with the same exact callback as this one.
+ return setTimeout(() => rimraf_(p, options, CB), busyTries * 100)
+ }
+
+ // this one won't happen if graceful-fs is used.
+ if (er.code === "EMFILE" && timeout < options.emfileWait) {
+ return setTimeout(() => rimraf_(p, options, CB), timeout ++)
+ }
+
+ // already gone
+ if (er.code === "ENOENT") er = null
+ }
+
+ timeout = 0
+ next(er)
+ }
+ rimraf_(p, options, CB)
+ })
+ }
+
+ if (options.disableGlob || !glob.hasMagic(p))
+ return afterGlob(null, [p])
+
+ options.lstat(p, (er, stat) => {
+ if (!er)
+ return afterGlob(null, [p])
+
+ glob(p, options.glob, afterGlob)
+ })
+
+}
+
+// Two possible strategies.
+// 1. Assume it's a file. unlink it, then do the dir stuff on EPERM or EISDIR
+// 2. Assume it's a directory. readdir, then do the file stuff on ENOTDIR
+//
+// Both result in an extra syscall when you guess wrong. However, there
+// are likely far more normal files in the world than directories. This
+// is based on the assumption that a the average number of files per
+// directory is >= 1.
+//
+// If anyone ever complains about this, then I guess the strategy could
+// be made configurable somehow. But until then, YAGNI.
+const rimraf_ = (p, options, cb) => {
+ assert(p)
+ assert(options)
+ assert(typeof cb === 'function')
+
+ // sunos lets the root user unlink directories, which is... weird.
+ // so we have to lstat here and make sure it's not a dir.
+ options.lstat(p, (er, st) => {
+ if (er && er.code === "ENOENT")
+ return cb(null)
+
+ // Windows can EPERM on stat. Life is suffering.
+ if (er && er.code === "EPERM" && isWindows)
+ fixWinEPERM(p, options, er, cb)
+
+ if (st && st.isDirectory())
+ return rmdir(p, options, er, cb)
+
+ options.unlink(p, er => {
+ if (er) {
+ if (er.code === "ENOENT")
+ return cb(null)
+ if (er.code === "EPERM")
+ return (isWindows)
+ ? fixWinEPERM(p, options, er, cb)
+ : rmdir(p, options, er, cb)
+ if (er.code === "EISDIR")
+ return rmdir(p, options, er, cb)
+ }
+ return cb(er)
+ })
+ })
+}
+
+const fixWinEPERM = (p, options, er, cb) => {
+ assert(p)
+ assert(options)
+ assert(typeof cb === 'function')
+ if (er)
+ assert(er instanceof Error)
+
+ options.chmod(p, 0o666, er2 => {
+ if (er2)
+ cb(er2.code === "ENOENT" ? null : er)
+ else
+ options.stat(p, (er3, stats) => {
+ if (er3)
+ cb(er3.code === "ENOENT" ? null : er)
+ else if (stats.isDirectory())
+ rmdir(p, options, er, cb)
+ else
+ options.unlink(p, cb)
+ })
+ })
+}
+
+const fixWinEPERMSync = (p, options, er) => {
+ assert(p)
+ assert(options)
+ if (er)
+ assert(er instanceof Error)
+
+ try {
+ options.chmodSync(p, 0o666)
+ } catch (er2) {
+ if (er2.code === "ENOENT")
+ return
+ else
+ throw er
+ }
+
+ let stats
+ try {
+ stats = options.statSync(p)
+ } catch (er3) {
+ if (er3.code === "ENOENT")
+ return
+ else
+ throw er
+ }
+
+ if (stats.isDirectory())
+ rmdirSync(p, options, er)
+ else
+ options.unlinkSync(p)
+}
+
+const rmdir = (p, options, originalEr, cb) => {
+ assert(p)
+ assert(options)
+ if (originalEr)
+ assert(originalEr instanceof Error)
+ assert(typeof cb === 'function')
+
+ // try to rmdir first, and only readdir on ENOTEMPTY or EEXIST (SunOS)
+ // if we guessed wrong, and it's not a directory, then
+ // raise the original error.
+ options.rmdir(p, er => {
+ if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM"))
+ rmkids(p, options, cb)
+ else if (er && er.code === "ENOTDIR")
+ cb(originalEr)
+ else
+ cb(er)
+ })
+}
+
+const rmkids = (p, options, cb) => {
+ assert(p)
+ assert(options)
+ assert(typeof cb === 'function')
+
+ options.readdir(p, (er, files) => {
+ if (er)
+ return cb(er)
+ let n = files.length
+ if (n === 0)
+ return options.rmdir(p, cb)
+ let errState
+ files.forEach(f => {
+ rimraf(path.join(p, f), options, er => {
+ if (errState)
+ return
+ if (er)
+ return cb(errState = er)
+ if (--n === 0)
+ options.rmdir(p, cb)
+ })
+ })
+ })
+}
+
+// this looks simpler, and is strictly *faster*, but will
+// tie up the JavaScript thread and fail on excessively
+// deep directory trees.
+const rimrafSync = (p, options) => {
+ options = options || {}
+ defaults(options)
+
+ assert(p, 'rimraf: missing path')
+ assert.equal(typeof p, 'string', 'rimraf: path should be a string')
+ assert(options, 'rimraf: missing options')
+ assert.equal(typeof options, 'object', 'rimraf: options should be object')
+
+ let results
+
+ if (options.disableGlob || !glob.hasMagic(p)) {
+ results = [p]
+ } else {
+ try {
+ options.lstatSync(p)
+ results = [p]
+ } catch (er) {
+ results = glob.sync(p, options.glob)
+ }
+ }
+
+ if (!results.length)
+ return
+
+ for (let i = 0; i < results.length; i++) {
+ const p = results[i]
+
+ let st
+ try {
+ st = options.lstatSync(p)
+ } catch (er) {
+ if (er.code === "ENOENT")
+ return
+
+ // Windows can EPERM on stat. Life is suffering.
+ if (er.code === "EPERM" && isWindows)
+ fixWinEPERMSync(p, options, er)
+ }
+
+ try {
+ // sunos lets the root user unlink directories, which is... weird.
+ if (st && st.isDirectory())
+ rmdirSync(p, options, null)
+ else
+ options.unlinkSync(p)
+ } catch (er) {
+ if (er.code === "ENOENT")
+ return
+ if (er.code === "EPERM")
+ return isWindows ? fixWinEPERMSync(p, options, er) : rmdirSync(p, options, er)
+ if (er.code !== "EISDIR")
+ throw er
+
+ rmdirSync(p, options, er)
+ }
+ }
+}
+
+const rmdirSync = (p, options, originalEr) => {
+ assert(p)
+ assert(options)
+ if (originalEr)
+ assert(originalEr instanceof Error)
+
+ try {
+ options.rmdirSync(p)
+ } catch (er) {
+ if (er.code === "ENOENT")
+ return
+ if (er.code === "ENOTDIR")
+ throw originalEr
+ if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")
+ rmkidsSync(p, options)
+ }
+}
+
+const rmkidsSync = (p, options) => {
+ assert(p)
+ assert(options)
+ options.readdirSync(p).forEach(f => rimrafSync(path.join(p, f), options))
+
+ // We only end up here once we got ENOTEMPTY at least once, and
+ // at this point, we are guaranteed to have removed all the kids.
+ // So, we know that it won't be ENOENT or ENOTDIR or anything else.
+ // try really hard to delete stuff on windows, because it has a
+ // PROFOUNDLY annoying habit of not closing handles promptly when
+ // files are deleted, resulting in spurious ENOTEMPTY errors.
+ const retries = isWindows ? 100 : 1
+ let i = 0
+ do {
+ let threw = true
+ try {
+ const ret = options.rmdirSync(p, options)
+ threw = false
+ return ret
+ } finally {
+ if (++i < retries && threw)
+ continue
+ }
+ } while (true)
+}
+
+module.exports = rimraf
+rimraf.sync = rimrafSync
diff --git a/node_modules/@jest/environment/build/index.d.ts b/node_modules/@jest/environment/build/index.d.ts
index 5310d92..4c5a409 100644
--- a/node_modules/@jest/environment/build/index.d.ts
+++ b/node_modules/@jest/environment/build/index.d.ts
@@ -16,7 +16,7 @@
docblockPragmas: Record<string, string | Array<string>>;
testPath: Config.Path;
}>;
-export declare type ModuleWrapper = (this: Module['exports'], module: Module, exports: Module['exports'], require: Module['require'], __dirname: string, __filename: Module['filename'], global: Global.Global, jest: Jest, ...extraGlobals: Array<Global.Global[keyof Global.Global]>) => unknown;
+export declare type ModuleWrapper = (this: Module['exports'], module: Module, exports: Module['exports'], require: Module['require'], __dirname: string, __filename: Module['filename'], global: Global.Global, jest?: Jest, ...extraGlobals: Array<Global.Global[keyof Global.Global]>) => unknown;
export declare class JestEnvironment {
constructor(config: Config.ProjectConfig, context?: EnvironmentContext);
global: Global.Global;
@@ -39,7 +39,7 @@
*
* @deprecated Use `expect.extend` instead
*/
- addMatchers(matchers: Record<string, any>): void;
+ addMatchers(matchers: Record<string, unknown>): void;
/**
* Advances all timers by the needed milliseconds so that only the next timeouts/intervals will run.
* Optionally, you can provide steps, so it will run steps amount of next timeouts/intervals.
@@ -118,7 +118,7 @@
/**
* Determines if the given function is a mocked function.
*/
- isMockFunction(fn: Function): fn is ReturnType<JestMockFn>;
+ isMockFunction(fn: (...args: Array<any>) => unknown): fn is ReturnType<JestMockFn>;
/**
* Mocks a module with an auto-mocked version when it is being required.
*/
diff --git a/node_modules/@jest/environment/node_modules/@jest/types/build/Circus.d.ts b/node_modules/@jest/environment/node_modules/@jest/types/build/Circus.d.ts
index e6ad88d..417a5fe 100644
--- a/node_modules/@jest/environment/node_modules/@jest/types/build/Circus.d.ts
+++ b/node_modules/@jest/environment/node_modules/@jest/types/build/Circus.d.ts
@@ -18,7 +18,7 @@
export declare type AsyncFn = TestFn | HookFn;
export declare type SharedHookType = 'afterAll' | 'beforeAll';
export declare type HookType = SharedHookType | 'afterEach' | 'beforeEach';
-export declare type TestContext = Record<string, any>;
+export declare type TestContext = Record<string, unknown>;
export declare type Exception = any;
export declare type FormattedError = string;
export declare type Hook = {
@@ -33,6 +33,9 @@
(event: SyncEvent, state: State): void;
}
export declare type Event = SyncEvent | AsyncEvent;
+interface JestGlobals extends Global.TestFrameworkGlobals {
+ expect: unknown;
+}
export declare type SyncEvent = {
asyncError: Error;
mode: BlockMode;
@@ -62,6 +65,7 @@
export declare type AsyncEvent = {
name: 'setup';
testNamePattern?: string;
+ runtimeGlobals: JestGlobals;
parentProcess: Process;
} | {
name: 'include_test_location_in_result';
@@ -143,7 +147,7 @@
export declare type TestResults = Array<TestResult>;
export declare type GlobalErrorHandlers = {
uncaughtException: Array<(exception: Exception) => void>;
- unhandledRejection: Array<(exception: Exception, promise: Promise<any>) => void>;
+ unhandledRejection: Array<(exception: Exception, promise: Promise<unknown>) => void>;
};
export declare type State = {
currentDescribeBlock: DescribeBlock;
diff --git a/node_modules/@jest/environment/node_modules/@jest/types/build/Config.d.ts b/node_modules/@jest/environment/node_modules/@jest/types/build/Config.d.ts
index f280c29..5f94989 100644
--- a/node_modules/@jest/environment/node_modules/@jest/types/build/Config.d.ts
+++ b/node_modules/@jest/environment/node_modules/@jest/types/build/Config.d.ts
@@ -42,6 +42,7 @@
forceCoverageMatch: Array<Glob>;
globals: ConfigGlobals;
haste: HasteConfig;
+ injectGlobals: boolean;
maxConcurrency: number;
maxWorkers: number | string;
moduleDirectories: Array<string>;
@@ -64,7 +65,7 @@
slowTestThreshold: number;
snapshotSerializers: Array<Path>;
testEnvironment: string;
- testEnvironmentOptions: Record<string, any>;
+ testEnvironmentOptions: Record<string, unknown>;
testFailureExitCode: string | number;
testLocationInResults: boolean;
testMatch: Array<Glob>;
@@ -122,6 +123,7 @@
globalSetup: string | null | undefined;
globalTeardown: string | null | undefined;
haste: HasteConfig;
+ injectGlobals: boolean;
reporters: Array<string | ReporterConfig>;
logHeapUsage: boolean;
lastCommit: boolean;
@@ -169,7 +171,7 @@
snapshotSerializers: Array<Path>;
errorOnDeprecated: boolean;
testEnvironment: string;
- testEnvironmentOptions: Record<string, any>;
+ testEnvironmentOptions: Record<string, unknown>;
testFailureExitCode: string | number;
testLocationInResults: boolean;
testMatch: Array<Glob>;
@@ -195,7 +197,7 @@
watch: boolean;
watchAll: boolean;
watchman: boolean;
- watchPlugins: Array<string | [string, Record<string, any>]>;
+ watchPlugins: Array<string | [string, Record<string, unknown>]>;
}>;
export declare type SnapshotUpdateState = 'all' | 'new' | 'none';
declare type NotifyMode = 'always' | 'failure' | 'success' | 'change' | 'success-change' | 'failure-change';
@@ -273,7 +275,7 @@
watchman: boolean;
watchPlugins?: Array<{
path: string;
- config: Record<string, any>;
+ config: Record<string, unknown>;
}> | null;
};
export declare type ProjectConfig = {
@@ -295,6 +297,7 @@
globalTeardown?: string;
globals: ConfigGlobals;
haste: HasteConfig;
+ injectGlobals: boolean;
moduleDirectories: Array<string>;
moduleFileExtensions: Array<string>;
moduleLoader?: Path;
@@ -318,7 +321,7 @@
snapshotResolver?: Path;
snapshotSerializers: Array<Path>;
testEnvironment: string;
- testEnvironmentOptions: Record<string, any>;
+ testEnvironmentOptions: Record<string, unknown>;
testMatch: Array<Glob>;
testLocationInResults: boolean;
testPathIgnorePatterns: Array<string>;
@@ -363,6 +366,7 @@
globalTeardown: string | null | undefined;
haste: string;
init: boolean;
+ injectGlobals: boolean;
json: boolean;
lastCommit: boolean;
logHeapUsage: boolean;
diff --git a/node_modules/@jest/environment/node_modules/@jest/types/build/Global.d.ts b/node_modules/@jest/environment/node_modules/@jest/types/build/Global.d.ts
index c1d541b..8670a49 100644
--- a/node_modules/@jest/environment/node_modules/@jest/types/build/Global.d.ts
+++ b/node_modules/@jest/environment/node_modules/@jest/types/build/Global.d.ts
@@ -24,9 +24,12 @@
export declare type EachTestFn<EachCallback extends TestCallback> = (...args: Array<any>) => ReturnType<EachCallback>;
declare type Jasmine = {
_DEFAULT_TIMEOUT_INTERVAL?: number;
- addMatchers: Function;
+ addMatchers: (matchers: Record<string, unknown>) => void;
};
-declare type Each<EachCallback extends TestCallback> = ((table: EachTable, ...taggedTemplateData: Array<unknown>) => (title: string, test: EachTestFn<EachCallback>, timeout?: number) => void) | (() => void);
+declare type Each<EachCallback extends TestCallback> = ((table: EachTable, ...taggedTemplateData: Array<unknown>) => (title: string, test: EachTestFn<EachCallback>, timeout?: number) => void) | (() => () => void);
+export interface HookBase {
+ (fn: HookFn, timeout?: number): void;
+}
export interface ItBase {
(testName: TestName, fn: TestFn, timeout?: number): void;
each: Each<TestFn>;
@@ -34,7 +37,7 @@
export interface It extends ItBase {
only: ItBase;
skip: ItBase;
- todo: (testName: TestName, ...rest: Array<any>) => void;
+ todo: (testName: TestName) => void;
}
export interface ItConcurrentBase {
(testName: string, testFn: ConcurrentTestFn, timeout?: number): void;
@@ -66,10 +69,10 @@
describe: Describe;
xdescribe: DescribeBase;
fdescribe: DescribeBase;
- beforeAll: HookFn;
- beforeEach: HookFn;
- afterEach: HookFn;
- afterAll: HookFn;
+ beforeAll: HookBase;
+ beforeEach: HookBase;
+ afterEach: HookBase;
+ afterAll: HookBase;
}
export interface GlobalAdditions extends TestFrameworkGlobals {
__coverage__: CoverageMapData;
@@ -80,6 +83,6 @@
spyOnProperty: () => void;
}
export interface Global extends GlobalAdditions, Omit<NodeJS.Global, keyof GlobalAdditions> {
- [extras: string]: any;
+ [extras: string]: unknown;
}
export {};
diff --git a/node_modules/@jest/environment/node_modules/@jest/types/package.json b/node_modules/@jest/environment/node_modules/@jest/types/package.json
index 772dfac..c8aa07c 100644
--- a/node_modules/@jest/environment/node_modules/@jest/types/package.json
+++ b/node_modules/@jest/environment/node_modules/@jest/types/package.json
@@ -1,6 +1,6 @@
{
"name": "@jest/types",
- "version": "26.3.0",
+ "version": "26.5.2",
"repository": {
"type": "git",
"url": "https://github.com/facebook/jest.git",
@@ -22,5 +22,5 @@
"publishConfig": {
"access": "public"
},
- "gitHead": "3a7e06fe855515a848241bb06a6f6e117847443d"
+ "gitHead": "d2bacceb51e7f05c9cb6d764d5cd886a2fd71267"
}
diff --git a/node_modules/@jest/environment/node_modules/jest-mock/build/index.d.ts b/node_modules/@jest/environment/node_modules/jest-mock/build/index.d.ts
index 4360cd5..ce7ba58 100644
--- a/node_modules/@jest/environment/node_modules/jest-mock/build/index.d.ts
+++ b/node_modules/@jest/environment/node_modules/jest-mock/build/index.d.ts
@@ -42,12 +42,13 @@
mockReturnThis(): this;
mockReturnValue(value: T): this;
mockReturnValueOnce(value: T): this;
- mockResolvedValue(value: T): this;
- mockResolvedValueOnce(value: T): this;
- mockRejectedValue(value: T): this;
- mockRejectedValueOnce(value: T): this;
+ mockResolvedValue(value: Unpromisify<T>): this;
+ mockResolvedValueOnce(value: Unpromisify<T>): this;
+ mockRejectedValue(value: unknown): this;
+ mockRejectedValueOnce(value: unknown): this;
}
}
+declare type Unpromisify<T> = T extends Promise<infer R> ? R : never;
/**
* Possible types of a MockFunctionResult.
* 'return': The call completed by returning normally.
diff --git a/node_modules/@jest/environment/node_modules/jest-mock/build/index.js b/node_modules/@jest/environment/node_modules/jest-mock/build/index.js
index 7c1e40d..2ebc513 100644
--- a/node_modules/@jest/environment/node_modules/jest-mock/build/index.js
+++ b/node_modules/@jest/environment/node_modules/jest-mock/build/index.js
@@ -21,6 +21,8 @@
* LICENSE file in the root directory of this source tree.
*/
+/* eslint-disable local/ban-types-eventually, local/prefer-rest-params-eventually */
+
/**
* Possible types of a MockFunctionResult.
* 'return': The call completed by returning normally.
@@ -909,7 +911,6 @@
return value == null ? '' + value : typeof value;
}
}
-/* eslint-disable-next-line no-redeclare */
const JestMock = new ModuleMockerClass(global);
module.exports = JestMock;
diff --git a/node_modules/@jest/environment/node_modules/jest-mock/package.json b/node_modules/@jest/environment/node_modules/jest-mock/package.json
index 7478b55..7d60952 100644
--- a/node_modules/@jest/environment/node_modules/jest-mock/package.json
+++ b/node_modules/@jest/environment/node_modules/jest-mock/package.json
@@ -1,6 +1,6 @@
{
"name": "jest-mock",
- "version": "26.3.0",
+ "version": "26.5.2",
"repository": {
"type": "git",
"url": "https://github.com/facebook/jest.git",
@@ -10,7 +10,7 @@
"node": ">= 10.14.2"
},
"dependencies": {
- "@jest/types": "^26.3.0",
+ "@jest/types": "^26.5.2",
"@types/node": "*"
},
"license": "MIT",
@@ -19,5 +19,5 @@
"publishConfig": {
"access": "public"
},
- "gitHead": "3a7e06fe855515a848241bb06a6f6e117847443d"
+ "gitHead": "d2bacceb51e7f05c9cb6d764d5cd886a2fd71267"
}
diff --git a/node_modules/@jest/environment/package.json b/node_modules/@jest/environment/package.json
index 6d43ea9..ef830fa 100644
--- a/node_modules/@jest/environment/package.json
+++ b/node_modules/@jest/environment/package.json
@@ -1,6 +1,6 @@
{
"name": "@jest/environment",
- "version": "26.3.0",
+ "version": "26.5.2",
"repository": {
"type": "git",
"url": "https://github.com/facebook/jest.git",
@@ -10,10 +10,10 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"dependencies": {
- "@jest/fake-timers": "^26.3.0",
- "@jest/types": "^26.3.0",
+ "@jest/fake-timers": "^26.5.2",
+ "@jest/types": "^26.5.2",
"@types/node": "*",
- "jest-mock": "^26.3.0"
+ "jest-mock": "^26.5.2"
},
"engines": {
"node": ">= 10.14.2"
@@ -21,5 +21,5 @@
"publishConfig": {
"access": "public"
},
- "gitHead": "3a7e06fe855515a848241bb06a6f6e117847443d"
+ "gitHead": "d2bacceb51e7f05c9cb6d764d5cd886a2fd71267"
}
diff --git a/node_modules/@jest/fake-timers/node_modules/@jest/types/build/Circus.d.ts b/node_modules/@jest/fake-timers/node_modules/@jest/types/build/Circus.d.ts
index e6ad88d..417a5fe 100644
--- a/node_modules/@jest/fake-timers/node_modules/@jest/types/build/Circus.d.ts
+++ b/node_modules/@jest/fake-timers/node_modules/@jest/types/build/Circus.d.ts
@@ -18,7 +18,7 @@
export declare type AsyncFn = TestFn | HookFn;
export declare type SharedHookType = 'afterAll' | 'beforeAll';
export declare type HookType = SharedHookType | 'afterEach' | 'beforeEach';
-export declare type TestContext = Record<string, any>;
+export declare type TestContext = Record<string, unknown>;
export declare type Exception = any;
export declare type FormattedError = string;
export declare type Hook = {
@@ -33,6 +33,9 @@
(event: SyncEvent, state: State): void;
}
export declare type Event = SyncEvent | AsyncEvent;
+interface JestGlobals extends Global.TestFrameworkGlobals {
+ expect: unknown;
+}
export declare type SyncEvent = {
asyncError: Error;
mode: BlockMode;
@@ -62,6 +65,7 @@
export declare type AsyncEvent = {
name: 'setup';
testNamePattern?: string;
+ runtimeGlobals: JestGlobals;
parentProcess: Process;
} | {
name: 'include_test_location_in_result';
@@ -143,7 +147,7 @@
export declare type TestResults = Array<TestResult>;
export declare type GlobalErrorHandlers = {
uncaughtException: Array<(exception: Exception) => void>;
- unhandledRejection: Array<(exception: Exception, promise: Promise<any>) => void>;
+ unhandledRejection: Array<(exception: Exception, promise: Promise<unknown>) => void>;
};
export declare type State = {
currentDescribeBlock: DescribeBlock;
diff --git a/node_modules/@jest/fake-timers/node_modules/@jest/types/build/Config.d.ts b/node_modules/@jest/fake-timers/node_modules/@jest/types/build/Config.d.ts
index f280c29..5f94989 100644
--- a/node_modules/@jest/fake-timers/node_modules/@jest/types/build/Config.d.ts
+++ b/node_modules/@jest/fake-timers/node_modules/@jest/types/build/Config.d.ts
@@ -42,6 +42,7 @@
forceCoverageMatch: Array<Glob>;
globals: ConfigGlobals;
haste: HasteConfig;
+ injectGlobals: boolean;
maxConcurrency: number;
maxWorkers: number | string;
moduleDirectories: Array<string>;
@@ -64,7 +65,7 @@
slowTestThreshold: number;
snapshotSerializers: Array<Path>;
testEnvironment: string;
- testEnvironmentOptions: Record<string, any>;
+ testEnvironmentOptions: Record<string, unknown>;
testFailureExitCode: string | number;
testLocationInResults: boolean;
testMatch: Array<Glob>;
@@ -122,6 +123,7 @@
globalSetup: string | null | undefined;
globalTeardown: string | null | undefined;
haste: HasteConfig;
+ injectGlobals: boolean;
reporters: Array<string | ReporterConfig>;
logHeapUsage: boolean;
lastCommit: boolean;
@@ -169,7 +171,7 @@
snapshotSerializers: Array<Path>;
errorOnDeprecated: boolean;
testEnvironment: string;
- testEnvironmentOptions: Record<string, any>;
+ testEnvironmentOptions: Record<string, unknown>;
testFailureExitCode: string | number;
testLocationInResults: boolean;
testMatch: Array<Glob>;
@@ -195,7 +197,7 @@
watch: boolean;
watchAll: boolean;
watchman: boolean;
- watchPlugins: Array<string | [string, Record<string, any>]>;
+ watchPlugins: Array<string | [string, Record<string, unknown>]>;
}>;
export declare type SnapshotUpdateState = 'all' | 'new' | 'none';
declare type NotifyMode = 'always' | 'failure' | 'success' | 'change' | 'success-change' | 'failure-change';
@@ -273,7 +275,7 @@
watchman: boolean;
watchPlugins?: Array<{
path: string;
- config: Record<string, any>;
+ config: Record<string, unknown>;
}> | null;
};
export declare type ProjectConfig = {
@@ -295,6 +297,7 @@
globalTeardown?: string;
globals: ConfigGlobals;
haste: HasteConfig;
+ injectGlobals: boolean;
moduleDirectories: Array<string>;
moduleFileExtensions: Array<string>;
moduleLoader?: Path;
@@ -318,7 +321,7 @@
snapshotResolver?: Path;
snapshotSerializers: Array<Path>;
testEnvironment: string;
- testEnvironmentOptions: Record<string, any>;
+ testEnvironmentOptions: Record<string, unknown>;
testMatch: Array<Glob>;
testLocationInResults: boolean;
testPathIgnorePatterns: Array<string>;
@@ -363,6 +366,7 @@
globalTeardown: string | null | undefined;
haste: string;
init: boolean;
+ injectGlobals: boolean;
json: boolean;
lastCommit: boolean;
logHeapUsage: boolean;
diff --git a/node_modules/@jest/fake-timers/node_modules/@jest/types/build/Global.d.ts b/node_modules/@jest/fake-timers/node_modules/@jest/types/build/Global.d.ts
index c1d541b..8670a49 100644
--- a/node_modules/@jest/fake-timers/node_modules/@jest/types/build/Global.d.ts
+++ b/node_modules/@jest/fake-timers/node_modules/@jest/types/build/Global.d.ts
@@ -24,9 +24,12 @@
export declare type EachTestFn<EachCallback extends TestCallback> = (...args: Array<any>) => ReturnType<EachCallback>;
declare type Jasmine = {
_DEFAULT_TIMEOUT_INTERVAL?: number;
- addMatchers: Function;
+ addMatchers: (matchers: Record<string, unknown>) => void;
};
-declare type Each<EachCallback extends TestCallback> = ((table: EachTable, ...taggedTemplateData: Array<unknown>) => (title: string, test: EachTestFn<EachCallback>, timeout?: number) => void) | (() => void);
+declare type Each<EachCallback extends TestCallback> = ((table: EachTable, ...taggedTemplateData: Array<unknown>) => (title: string, test: EachTestFn<EachCallback>, timeout?: number) => void) | (() => () => void);
+export interface HookBase {
+ (fn: HookFn, timeout?: number): void;
+}
export interface ItBase {
(testName: TestName, fn: TestFn, timeout?: number): void;
each: Each<TestFn>;
@@ -34,7 +37,7 @@
export interface It extends ItBase {
only: ItBase;
skip: ItBase;
- todo: (testName: TestName, ...rest: Array<any>) => void;
+ todo: (testName: TestName) => void;
}
export interface ItConcurrentBase {
(testName: string, testFn: ConcurrentTestFn, timeout?: number): void;
@@ -66,10 +69,10 @@
describe: Describe;
xdescribe: DescribeBase;
fdescribe: DescribeBase;
- beforeAll: HookFn;
- beforeEach: HookFn;
- afterEach: HookFn;
- afterAll: HookFn;
+ beforeAll: HookBase;
+ beforeEach: HookBase;
+ afterEach: HookBase;
+ afterAll: HookBase;
}
export interface GlobalAdditions extends TestFrameworkGlobals {
__coverage__: CoverageMapData;
@@ -80,6 +83,6 @@
spyOnProperty: () => void;
}
export interface Global extends GlobalAdditions, Omit<NodeJS.Global, keyof GlobalAdditions> {
- [extras: string]: any;
+ [extras: string]: unknown;
}
export {};
diff --git a/node_modules/@jest/fake-timers/node_modules/@jest/types/package.json b/node_modules/@jest/fake-timers/node_modules/@jest/types/package.json
index 772dfac..c8aa07c 100644
--- a/node_modules/@jest/fake-timers/node_modules/@jest/types/package.json
+++ b/node_modules/@jest/fake-timers/node_modules/@jest/types/package.json
@@ -1,6 +1,6 @@
{
"name": "@jest/types",
- "version": "26.3.0",
+ "version": "26.5.2",
"repository": {
"type": "git",
"url": "https://github.com/facebook/jest.git",
@@ -22,5 +22,5 @@
"publishConfig": {
"access": "public"
},
- "gitHead": "3a7e06fe855515a848241bb06a6f6e117847443d"
+ "gitHead": "d2bacceb51e7f05c9cb6d764d5cd886a2fd71267"
}
diff --git a/node_modules/@jest/fake-timers/node_modules/@types/stack-utils/LICENSE b/node_modules/@jest/fake-timers/node_modules/@types/stack-utils/LICENSE
new file mode 100644
index 0000000..9e841e7
--- /dev/null
+++ b/node_modules/@jest/fake-timers/node_modules/@types/stack-utils/LICENSE
@@ -0,0 +1,21 @@
+ MIT License
+
+ Copyright (c) Microsoft Corporation.
+
+ 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/node_modules/@jest/fake-timers/node_modules/@types/stack-utils/README.md b/node_modules/@jest/fake-timers/node_modules/@types/stack-utils/README.md
new file mode 100644
index 0000000..92a34de
--- /dev/null
+++ b/node_modules/@jest/fake-timers/node_modules/@types/stack-utils/README.md
@@ -0,0 +1,16 @@
+# Installation
+> `npm install --save @types/stack-utils`
+
+# Summary
+This package contains type definitions for stack-utils (https://github.com/tapjs/stack-utils#readme).
+
+# Details
+Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stack-utils.
+
+### Additional Details
+ * Last updated: Tue, 22 Sep 2020 00:22:28 GMT
+ * Dependencies: none
+ * Global values: none
+
+# Credits
+These definitions were written by [BendingBender](https://github.com/BendingBender).
diff --git a/node_modules/@jest/fake-timers/node_modules/@types/stack-utils/index.d.ts b/node_modules/@jest/fake-timers/node_modules/@types/stack-utils/index.d.ts
new file mode 100644
index 0000000..3427e35
--- /dev/null
+++ b/node_modules/@jest/fake-timers/node_modules/@types/stack-utils/index.d.ts
@@ -0,0 +1,65 @@
+// Type definitions for stack-utils 2.0
+// Project: https://github.com/tapjs/stack-utils#readme
+// Definitions by: BendingBender <https://github.com/BendingBender>
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// TypeScript Version: 2.2
+
+export = StackUtils;
+
+declare class StackUtils {
+ static nodeInternals(): RegExp[];
+ constructor(options?: StackUtils.Options);
+ clean(stack: string | string[]): string;
+ capture(limit?: number, startStackFunction?: Function): StackUtils.CallSite[];
+ capture(startStackFunction: Function): StackUtils.CallSite[];
+ captureString(limit?: number, startStackFunction?: Function): string;
+ captureString(startStackFunction: Function): string;
+ at(startStackFunction?: Function): StackUtils.CallSiteLike;
+ parseLine(line: string): StackUtils.StackLineData | null;
+}
+
+declare namespace StackUtils {
+ interface Options {
+ internals?: RegExp[];
+ ignoredPackages?: string[];
+ cwd?: string;
+ wrapCallSite?(callSite: CallSite): CallSite;
+ }
+
+ interface CallSite {
+ getThis(): object | undefined;
+ getTypeName(): string;
+ getFunction(): Function | undefined;
+ getFunctionName(): string;
+ getMethodName(): string | null;
+ getFileName(): string | undefined;
+ getLineNumber(): number;
+ getColumnNumber(): number;
+ getEvalOrigin(): CallSite | string;
+ isToplevel(): boolean;
+ isEval(): boolean;
+ isNative(): boolean;
+ isConstructor(): boolean;
+ }
+
+ interface CallSiteLike extends StackData {
+ type?: string;
+ }
+
+ interface StackLineData extends StackData {
+ evalLine?: number;
+ evalColumn?: number;
+ evalFile?: string;
+ }
+
+ interface StackData {
+ line?: number;
+ column?: number;
+ file?: string;
+ constructor?: boolean;
+ evalOrigin?: string;
+ native?: boolean;
+ function?: string;
+ method?: string;
+ }
+}
diff --git a/node_modules/@jest/fake-timers/node_modules/@types/stack-utils/package.json b/node_modules/@jest/fake-timers/node_modules/@types/stack-utils/package.json
new file mode 100644
index 0000000..1f9393a
--- /dev/null
+++ b/node_modules/@jest/fake-timers/node_modules/@types/stack-utils/package.json
@@ -0,0 +1,24 @@
+{
+ "name": "@types/stack-utils",
+ "version": "2.0.0",
+ "description": "TypeScript definitions for stack-utils",
+ "license": "MIT",
+ "contributors": [
+ {
+ "name": "BendingBender",
+ "url": "https://github.com/BendingBender",
+ "githubUsername": "BendingBender"
+ }
+ ],
+ "main": "",
+ "types": "index.d.ts",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
+ "directory": "types/stack-utils"
+ },
+ "scripts": {},
+ "dependencies": {},
+ "typesPublisherContentHash": "53c84779043276d5e313653eabfc4fedae5b103c7dc645555065fdc3b4b0a982",
+ "typeScriptVersion": "3.2"
+}
\ No newline at end of file
diff --git a/node_modules/@jest/fake-timers/node_modules/jest-message-util/package.json b/node_modules/@jest/fake-timers/node_modules/jest-message-util/package.json
index 6f8b6c4..2bbf224 100644
--- a/node_modules/@jest/fake-timers/node_modules/jest-message-util/package.json
+++ b/node_modules/@jest/fake-timers/node_modules/jest-message-util/package.json
@@ -1,6 +1,6 @@
{
"name": "jest-message-util",
- "version": "26.3.0",
+ "version": "26.5.2",
"repository": {
"type": "git",
"url": "https://github.com/facebook/jest.git",
@@ -14,8 +14,8 @@
"types": "build/index.d.ts",
"dependencies": {
"@babel/code-frame": "^7.0.0",
- "@jest/types": "^26.3.0",
- "@types/stack-utils": "^1.0.1",
+ "@jest/types": "^26.5.2",
+ "@types/stack-utils": "^2.0.0",
"chalk": "^4.0.0",
"graceful-fs": "^4.2.4",
"micromatch": "^4.0.2",
@@ -30,5 +30,5 @@
"publishConfig": {
"access": "public"
},
- "gitHead": "3a7e06fe855515a848241bb06a6f6e117847443d"
+ "gitHead": "d2bacceb51e7f05c9cb6d764d5cd886a2fd71267"
}
diff --git a/node_modules/@jest/fake-timers/node_modules/jest-mock/build/index.d.ts b/node_modules/@jest/fake-timers/node_modules/jest-mock/build/index.d.ts
index 4360cd5..ce7ba58 100644
--- a/node_modules/@jest/fake-timers/node_modules/jest-mock/build/index.d.ts
+++ b/node_modules/@jest/fake-timers/node_modules/jest-mock/build/index.d.ts
@@ -42,12 +42,13 @@
mockReturnThis(): this;
mockReturnValue(value: T): this;
mockReturnValueOnce(value: T): this;
- mockResolvedValue(value: T): this;
- mockResolvedValueOnce(value: T): this;
- mockRejectedValue(value: T): this;
- mockRejectedValueOnce(value: T): this;
+ mockResolvedValue(value: Unpromisify<T>): this;
+ mockResolvedValueOnce(value: Unpromisify<T>): this;
+ mockRejectedValue(value: unknown): this;
+ mockRejectedValueOnce(value: unknown): this;
}
}
+declare type Unpromisify<T> = T extends Promise<infer R> ? R : never;
/**
* Possible types of a MockFunctionResult.
* 'return': The call completed by returning normally.
diff --git a/node_modules/@jest/fake-timers/node_modules/jest-mock/build/index.js b/node_modules/@jest/fake-timers/node_modules/jest-mock/build/index.js
index 7c1e40d..2ebc513 100644
--- a/node_modules/@jest/fake-timers/node_modules/jest-mock/build/index.js
+++ b/node_modules/@jest/fake-timers/node_modules/jest-mock/build/index.js
@@ -21,6 +21,8 @@
* LICENSE file in the root directory of this source tree.
*/
+/* eslint-disable local/ban-types-eventually, local/prefer-rest-params-eventually */
+
/**
* Possible types of a MockFunctionResult.
* 'return': The call completed by returning normally.
@@ -909,7 +911,6 @@
return value == null ? '' + value : typeof value;
}
}
-/* eslint-disable-next-line no-redeclare */
const JestMock = new ModuleMockerClass(global);
module.exports = JestMock;
diff --git a/node_modules/@jest/fake-timers/node_modules/jest-mock/package.json b/node_modules/@jest/fake-timers/node_modules/jest-mock/package.json
index 7478b55..7d60952 100644
--- a/node_modules/@jest/fake-timers/node_modules/jest-mock/package.json
+++ b/node_modules/@jest/fake-timers/node_modules/jest-mock/package.json
@@ -1,6 +1,6 @@
{
"name": "jest-mock",
- "version": "26.3.0",
+ "version": "26.5.2",
"repository": {
"type": "git",
"url": "https://github.com/facebook/jest.git",
@@ -10,7 +10,7 @@
"node": ">= 10.14.2"
},
"dependencies": {
- "@jest/types": "^26.3.0",
+ "@jest/types": "^26.5.2",
"@types/node": "*"
},
"license": "MIT",
@@ -19,5 +19,5 @@
"publishConfig": {
"access": "public"
},
- "gitHead": "3a7e06fe855515a848241bb06a6f6e117847443d"
+ "gitHead": "d2bacceb51e7f05c9cb6d764d5cd886a2fd71267"
}
diff --git a/node_modules/@jest/fake-timers/node_modules/jest-util/build/ErrorWithStack.d.ts b/node_modules/@jest/fake-timers/node_modules/jest-util/build/ErrorWithStack.d.ts
index 2698f36..79764bd 100644
--- a/node_modules/@jest/fake-timers/node_modules/jest-util/build/ErrorWithStack.d.ts
+++ b/node_modules/@jest/fake-timers/node_modules/jest-util/build/ErrorWithStack.d.ts
@@ -5,5 +5,5 @@
* LICENSE file in the root directory of this source tree.
*/
export default class ErrorWithStack extends Error {
- constructor(message: string | undefined, callsite: Function);
+ constructor(message: string | undefined, callsite: (...args: Array<any>) => unknown);
}
diff --git a/node_modules/@jest/fake-timers/node_modules/jest-util/build/convertDescriptorToString.js b/node_modules/@jest/fake-timers/node_modules/jest-util/build/convertDescriptorToString.js
index 0cfab68..4b776af 100644
--- a/node_modules/@jest/fake-timers/node_modules/jest-util/build/convertDescriptorToString.js
+++ b/node_modules/@jest/fake-timers/node_modules/jest-util/build/convertDescriptorToString.js
@@ -11,6 +11,8 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
+
+/* eslint-disable local/ban-types-eventually */
// See: https://github.com/facebook/jest/pull/5154
function convertDescriptorToString(descriptor) {
if (
diff --git a/node_modules/@jest/fake-timers/node_modules/jest-util/build/globsToMatcher.d.ts b/node_modules/@jest/fake-timers/node_modules/jest-util/build/globsToMatcher.d.ts
index 4e6cc5b..687684f 100644
--- a/node_modules/@jest/fake-timers/node_modules/jest-util/build/globsToMatcher.d.ts
+++ b/node_modules/@jest/fake-timers/node_modules/jest-util/build/globsToMatcher.d.ts
@@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/
import type { Config } from '@jest/types';
+declare type Matcher = (str: Config.Path) => boolean;
/**
* Converts a list of globs into a function that matches a path against the
* globs.
@@ -22,4 +23,5 @@
* isMatch('pizza.js'); // true
* isMatch('pizza.test.js'); // false
*/
-export default function globsToMatcher(globs: Array<Config.Glob>): (path: Config.Path) => boolean;
+export default function globsToMatcher(globs: Array<Config.Glob>): Matcher;
+export {};
diff --git a/node_modules/@jest/fake-timers/node_modules/jest-util/build/globsToMatcher.js b/node_modules/@jest/fake-timers/node_modules/jest-util/build/globsToMatcher.js
index e517762..9e63c5c 100644
--- a/node_modules/@jest/fake-timers/node_modules/jest-util/build/globsToMatcher.js
+++ b/node_modules/@jest/fake-timers/node_modules/jest-util/build/globsToMatcher.js
@@ -55,7 +55,7 @@
if (globs.length === 0) {
// Since there were no globs given, we can simply have a fast path here and
// return with a very simple function.
- return _ => false;
+ return () => false;
}
const matchers = globs.map(glob => {
diff --git a/node_modules/@jest/fake-timers/node_modules/jest-util/package.json b/node_modules/@jest/fake-timers/node_modules/jest-util/package.json
index 01d0850..b584b93 100644
--- a/node_modules/@jest/fake-timers/node_modules/jest-util/package.json
+++ b/node_modules/@jest/fake-timers/node_modules/jest-util/package.json
@@ -1,6 +1,6 @@
{
"name": "jest-util",
- "version": "26.3.0",
+ "version": "26.5.2",
"repository": {
"type": "git",
"url": "https://github.com/facebook/jest.git",
@@ -10,7 +10,7 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"dependencies": {
- "@jest/types": "^26.3.0",
+ "@jest/types": "^26.5.2",
"@types/node": "*",
"chalk": "^4.0.0",
"graceful-fs": "^4.2.4",
@@ -28,5 +28,5 @@
"publishConfig": {
"access": "public"
},
- "gitHead": "3a7e06fe855515a848241bb06a6f6e117847443d"
+ "gitHead": "d2bacceb51e7f05c9cb6d764d5cd886a2fd71267"
}
diff --git a/node_modules/@jest/fake-timers/package.json b/node_modules/@jest/fake-timers/package.json
index 73ddfc6..310497f 100644
--- a/node_modules/@jest/fake-timers/package.json
+++ b/node_modules/@jest/fake-timers/package.json
@@ -1,6 +1,6 @@
{
"name": "@jest/fake-timers",
- "version": "26.3.0",
+ "version": "26.5.2",
"repository": {
"type": "git",
"url": "https://github.com/facebook/jest.git",
@@ -10,12 +10,12 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"dependencies": {
- "@jest/types": "^26.3.0",
+ "@jest/types": "^26.5.2",
"@sinonjs/fake-timers": "^6.0.1",
"@types/node": "*",
- "jest-message-util": "^26.3.0",
- "jest-mock": "^26.3.0",
- "jest-util": "^26.3.0"
+ "jest-message-util": "^26.5.2",
+ "jest-mock": "^26.5.2",
+ "jest-util": "^26.5.2"
},
"devDependencies": {
"@types/sinonjs__fake-timers": "^6.0.1"
@@ -26,5 +26,5 @@
"publishConfig": {
"access": "public"
},
- "gitHead": "3a7e06fe855515a848241bb06a6f6e117847443d"
+ "gitHead": "d2bacceb51e7f05c9cb6d764d5cd886a2fd71267"
}
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/LICENSE b/node_modules/@octokit/request/node_modules/@octokit/endpoint/LICENSE
deleted file mode 100644
index af5366d..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License
-
-Copyright (c) 2018 Octokit contributors
-
-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/node_modules/@octokit/request/node_modules/@octokit/endpoint/README.md b/node_modules/@octokit/request/node_modules/@octokit/endpoint/README.md
deleted file mode 100644
index ec54be2..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/README.md
+++ /dev/null
@@ -1,421 +0,0 @@
-# endpoint.js
-
-> Turns GitHub REST API endpoints into generic request options
-
-[](https://www.npmjs.com/package/@octokit/endpoint)
-
-
-`@octokit/endpoint` combines [GitHub REST API routes](https://developer.github.com/v3/) with your parameters and turns them into generic request options that can be used in any request library.
-
-<!-- update table of contents by running `npx markdown-toc README.md -i` -->
-
-<!-- toc -->
-
-- [Usage](#usage)
-- [API](#api)
- - [`endpoint(route, options)` or `endpoint(options)`](#endpointroute-options-or-endpointoptions)
- - [`endpoint.defaults()`](#endpointdefaults)
- - [`endpoint.DEFAULTS`](#endpointdefaults)
- - [`endpoint.merge(route, options)` or `endpoint.merge(options)`](#endpointmergeroute-options-or-endpointmergeoptions)
- - [`endpoint.parse()`](#endpointparse)
-- [Special cases](#special-cases)
- - [The `data` parameter – set request body directly](#the-data-parameter-%E2%80%93-set-request-body-directly)
- - [Set parameters for both the URL/query and the request body](#set-parameters-for-both-the-urlquery-and-the-request-body)
-- [LICENSE](#license)
-
-<!-- tocstop -->
-
-## Usage
-
-<table>
-<tbody valign=top align=left>
-<tr><th>
-Browsers
-</th><td width=100%>
-Load <code>@octokit/endpoint</code> directly from <a href="https://cdn.pika.dev">cdn.pika.dev</a>
-
-```html
-<script type="module">
-import { endpoint } from "https://cdn.pika.dev/@octokit/endpoint";
-</script>
-```
-
-</td></tr>
-<tr><th>
-Node
-</th><td>
-
-Install with <code>npm install @octokit/endpoint</code>
-
-```js
-const { endpoint } = require("@octokit/endpoint");
-// or: import { endpoint } from "@octokit/endpoint";
-```
-
-</td></tr>
-</tbody>
-</table>
-
-Example for [List organization repositories](https://developer.github.com/v3/repos/#list-organization-repositories)
-
-```js
-const requestOptions = endpoint("GET /orgs/:org/repos", {
- headers: {
- authorization: "token 0000000000000000000000000000000000000001",
- },
- org: "octokit",
- type: "private",
-});
-```
-
-The resulting `requestOptions` looks as follows
-
-```json
-{
- "method": "GET",
- "url": "https://api.github.com/orgs/octokit/repos?type=private",
- "headers": {
- "accept": "application/vnd.github.v3+json",
- "authorization": "token 0000000000000000000000000000000000000001",
- "user-agent": "octokit/endpoint.js v1.2.3"
- }
-}
-```
-
-You can pass `requestOptions` to common request libraries
-
-```js
-const { url, ...options } = requestOptions;
-// using with fetch (https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)
-fetch(url, options);
-// using with request (https://github.com/request/request)
-request(requestOptions);
-// using with got (https://github.com/sindresorhus/got)
-got[options.method](url, options);
-// using with axios
-axios(requestOptions);
-```
-
-## API
-
-### `endpoint(route, options)` or `endpoint(options)`
-
-<table>
- <thead align=left>
- <tr>
- <th>
- name
- </th>
- <th>
- type
- </th>
- <th width=100%>
- description
- </th>
- </tr>
- </thead>
- <tbody align=left valign=top>
- <tr>
- <th>
- <code>route</code>
- </th>
- <td>
- String
- </td>
- <td>
- If set, it has to be a string consisting of URL and the request method, e.g., <code>GET /orgs/:org</code>. If it’s set to a URL, only the method defaults to <code>GET</code>.
- </td>
- </tr>
- <tr>
- <th>
- <code>options.method</code>
- </th>
- <td>
- String
- </td>
- <td>
- <strong>Required unless <code>route</code> is set.</strong> Any supported <a href="https://developer.github.com/v3/#http-verbs">http verb</a>. <em>Defaults to <code>GET</code></em>.
- </td>
- </tr>
- <tr>
- <th>
- <code>options.url</code>
- </th>
- <td>
- String
- </td>
- <td>
- <strong>Required unless <code>route</code> is set.</strong> A path or full URL which may contain <code>:variable</code> or <code>{variable}</code> placeholders,
- e.g., <code>/orgs/:org/repos</code>. The <code>url</code> is parsed using <a href="https://github.com/bramstein/url-template">url-template</a>.
- </td>
- </tr>
- <tr>
- <th>
- <code>options.baseUrl</code>
- </th>
- <td>
- String
- </td>
- <td>
- <em>Defaults to <code>https://api.github.com</code></em>.
- </td>
- </tr>
- <tr>
- <th>
- <code>options.headers</code>
- </th>
- <td>
- Object
- </td>
- <td>
- Custom headers. Passed headers are merged with defaults:<br>
- <em><code>headers['user-agent']</code> defaults to <code>octokit-endpoint.js/1.2.3</code> (where <code>1.2.3</code> is the released version)</em>.<br>
- <em><code>headers['accept']</code> defaults to <code>application/vnd.github.v3+json</code></em>.<br>
- </td>
- </tr>
- <tr>
- <th>
- <code>options.mediaType.format</code>
- </th>
- <td>
- String
- </td>
- <td>
- Media type param, such as <code>raw</code>, <code>diff</code>, or <code>text+json</code>. See <a href="https://developer.github.com/v3/media/">Media Types</a>. Setting <code>options.mediaType.format</code> will amend the <code>headers.accept</code> value.
- </td>
- </tr>
- <tr>
- <th>
- <code>options.mediaType.previews</code>
- </th>
- <td>
- Array of Strings
- </td>
- <td>
- Name of previews, such as <code>mercy</code>, <code>symmetra</code>, or <code>scarlet-witch</code>. See <a href="https://developer.github.com/v3/previews/">API Previews</a>. If <code>options.mediaType.previews</code> was set as default, the new previews will be merged into the default ones. Setting <code>options.mediaType.previews</code> will amend the <code>headers.accept</code> value. <code>options.mediaType.previews</code> will be merged with an existing array set using <code>.defaults()</code>.
- </td>
- </tr>
- <tr>
- <th>
- <code>options.data</code>
- </th>
- <td>
- Any
- </td>
- <td>
- Set request body directly instead of setting it to JSON based on additional parameters. See <a href="#data-parameter">"The <code>data</code> parameter"</a> below.
- </td>
- </tr>
- <tr>
- <th>
- <code>options.request</code>
- </th>
- <td>
- Object
- </td>
- <td>
- Pass custom meta information for the request. The <code>request</code> object will be returned as is.
- </td>
- </tr>
- </tbody>
-</table>
-
-All other options will be passed depending on the `method` and `url` options.
-
-1. If the option key has a placeholder in the `url`, it will be used as the replacement. For example, if the passed options are `{url: '/orgs/:org/repos', org: 'foo'}` the returned `options.url` is `https://api.github.com/orgs/foo/repos`.
-2. If the `method` is `GET` or `HEAD`, the option is passed as a query parameter.
-3. Otherwise, the parameter is passed in the request body as a JSON key.
-
-**Result**
-
-`endpoint()` is a synchronous method and returns an object with the following keys:
-
-<table>
- <thead align=left>
- <tr>
- <th>
- key
- </th>
- <th>
- type
- </th>
- <th width=100%>
- description
- </th>
- </tr>
- </thead>
- <tbody align=left valign=top>
- <tr>
- <th><code>method</code></th>
- <td>String</td>
- <td>The http method. Always lowercase.</td>
- </tr>
- <tr>
- <th><code>url</code></th>
- <td>String</td>
- <td>The url with placeholders replaced with passed parameters.</td>
- </tr>
- <tr>
- <th><code>headers</code></th>
- <td>Object</td>
- <td>All header names are lowercased.</td>
- </tr>
- <tr>
- <th><code>body</code></th>
- <td>Any</td>
- <td>The request body if one is present. Only for <code>PATCH</code>, <code>POST</code>, <code>PUT</code>, <code>DELETE</code> requests.</td>
- </tr>
- <tr>
- <th><code>request</code></th>
- <td>Object</td>
- <td>Request meta option, it will be returned as it was passed into <code>endpoint()</code></td>
- </tr>
- </tbody>
-</table>
-
-### `endpoint.defaults()`
-
-Override or set default options. Example:
-
-```js
-const request = require("request");
-const myEndpoint = require("@octokit/endpoint").defaults({
- baseUrl: "https://github-enterprise.acme-inc.com/api/v3",
- headers: {
- "user-agent": "myApp/1.2.3",
- authorization: `token 0000000000000000000000000000000000000001`,
- },
- org: "my-project",
- per_page: 100,
-});
-
-request(myEndpoint(`GET /orgs/:org/repos`));
-```
-
-You can call `.defaults()` again on the returned method, the defaults will cascade.
-
-```js
-const myProjectEndpoint = endpoint.defaults({
- baseUrl: "https://github-enterprise.acme-inc.com/api/v3",
- headers: {
- "user-agent": "myApp/1.2.3",
- },
- org: "my-project",
-});
-const myProjectEndpointWithAuth = myProjectEndpoint.defaults({
- headers: {
- authorization: `token 0000000000000000000000000000000000000001`,
- },
-});
-```
-
-`myProjectEndpointWithAuth` now defaults the `baseUrl`, `headers['user-agent']`,
-`org` and `headers['authorization']` on top of `headers['accept']` that is set
-by the global default.
-
-### `endpoint.DEFAULTS`
-
-The current default options.
-
-```js
-endpoint.DEFAULTS.baseUrl; // https://api.github.com
-const myEndpoint = endpoint.defaults({
- baseUrl: "https://github-enterprise.acme-inc.com/api/v3",
-});
-myEndpoint.DEFAULTS.baseUrl; // https://github-enterprise.acme-inc.com/api/v3
-```
-
-### `endpoint.merge(route, options)` or `endpoint.merge(options)`
-
-Get the defaulted endpoint options, but without parsing them into request options:
-
-```js
-const myProjectEndpoint = endpoint.defaults({
- baseUrl: "https://github-enterprise.acme-inc.com/api/v3",
- headers: {
- "user-agent": "myApp/1.2.3",
- },
- org: "my-project",
-});
-myProjectEndpoint.merge("GET /orgs/:org/repos", {
- headers: {
- authorization: `token 0000000000000000000000000000000000000001`,
- },
- org: "my-secret-project",
- type: "private",
-});
-
-// {
-// baseUrl: 'https://github-enterprise.acme-inc.com/api/v3',
-// method: 'GET',
-// url: '/orgs/:org/repos',
-// headers: {
-// accept: 'application/vnd.github.v3+json',
-// authorization: `token 0000000000000000000000000000000000000001`,
-// 'user-agent': 'myApp/1.2.3'
-// },
-// org: 'my-secret-project',
-// type: 'private'
-// }
-```
-
-### `endpoint.parse()`
-
-Stateless method to turn endpoint options into request options. Calling
-`endpoint(options)` is the same as calling `endpoint.parse(endpoint.merge(options))`.
-
-## Special cases
-
-<a name="data-parameter"></a>
-
-### The `data` parameter – set request body directly
-
-Some endpoints such as [Render a Markdown document in raw mode](https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode) don’t have parameters that are sent as request body keys, instead, the request body needs to be set directly. In these cases, set the `data` parameter.
-
-```js
-const options = endpoint("POST /markdown/raw", {
- data: "Hello world github/linguist#1 **cool**, and #1!",
- headers: {
- accept: "text/html;charset=utf-8",
- "content-type": "text/plain",
- },
-});
-
-// options is
-// {
-// method: 'post',
-// url: 'https://api.github.com/markdown/raw',
-// headers: {
-// accept: 'text/html;charset=utf-8',
-// 'content-type': 'text/plain',
-// 'user-agent': userAgent
-// },
-// body: 'Hello world github/linguist#1 **cool**, and #1!'
-// }
-```
-
-### Set parameters for both the URL/query and the request body
-
-There are API endpoints that accept both query parameters as well as a body. In that case, you need to add the query parameters as templates to `options.url`, as defined in the [RFC 6570 URI Template specification](https://tools.ietf.org/html/rfc6570).
-
-Example
-
-```js
-endpoint(
- "POST https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}",
- {
- name: "example.zip",
- label: "short description",
- headers: {
- "content-type": "text/plain",
- "content-length": 14,
- authorization: `token 0000000000000000000000000000000000000001`,
- },
- data: "Hello, world!",
- }
-);
-```
-
-## LICENSE
-
-[MIT](LICENSE)
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-node/index.js b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-node/index.js
deleted file mode 100644
index 35f5878..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-node/index.js
+++ /dev/null
@@ -1,379 +0,0 @@
-'use strict';
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
-
-var isPlainObject = _interopDefault(require('is-plain-object'));
-var universalUserAgent = require('universal-user-agent');
-
-function lowercaseKeys(object) {
- if (!object) {
- return {};
- }
-
- return Object.keys(object).reduce((newObj, key) => {
- newObj[key.toLowerCase()] = object[key];
- return newObj;
- }, {});
-}
-
-function mergeDeep(defaults, options) {
- const result = Object.assign({}, defaults);
- Object.keys(options).forEach(key => {
- if (isPlainObject(options[key])) {
- if (!(key in defaults)) Object.assign(result, {
- [key]: options[key]
- });else result[key] = mergeDeep(defaults[key], options[key]);
- } else {
- Object.assign(result, {
- [key]: options[key]
- });
- }
- });
- return result;
-}
-
-function merge(defaults, route, options) {
- if (typeof route === "string") {
- let [method, url] = route.split(" ");
- options = Object.assign(url ? {
- method,
- url
- } : {
- url: method
- }, options);
- } else {
- options = Object.assign({}, route);
- } // lowercase header names before merging with defaults to avoid duplicates
-
-
- options.headers = lowercaseKeys(options.headers);
- const mergedOptions = mergeDeep(defaults || {}, options); // mediaType.previews arrays are merged, instead of overwritten
-
- if (defaults && defaults.mediaType.previews.length) {
- mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(preview => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews);
- }
-
- mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(preview => preview.replace(/-preview/, ""));
- return mergedOptions;
-}
-
-function addQueryParameters(url, parameters) {
- const separator = /\?/.test(url) ? "&" : "?";
- const names = Object.keys(parameters);
-
- if (names.length === 0) {
- return url;
- }
-
- return url + separator + names.map(name => {
- if (name === "q") {
- return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
- }
-
- return `${name}=${encodeURIComponent(parameters[name])}`;
- }).join("&");
-}
-
-const urlVariableRegex = /\{[^}]+\}/g;
-
-function removeNonChars(variableName) {
- return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
-}
-
-function extractUrlVariableNames(url) {
- const matches = url.match(urlVariableRegex);
-
- if (!matches) {
- return [];
- }
-
- return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
-}
-
-function omit(object, keysToOmit) {
- return Object.keys(object).filter(option => !keysToOmit.includes(option)).reduce((obj, key) => {
- obj[key] = object[key];
- return obj;
- }, {});
-}
-
-// Based on https://github.com/bramstein/url-template, licensed under BSD
-// TODO: create separate package.
-//
-// Copyright (c) 2012-2014, Bram Stein
-// All rights reserved.
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. The name of the author may not be used to endorse or promote products
-// derived from this software without specific prior written permission.
-// THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
-// EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-/* istanbul ignore file */
-function encodeReserved(str) {
- return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) {
- if (!/%[0-9A-Fa-f]/.test(part)) {
- part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
- }
-
- return part;
- }).join("");
-}
-
-function encodeUnreserved(str) {
- return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
- return "%" + c.charCodeAt(0).toString(16).toUpperCase();
- });
-}
-
-function encodeValue(operator, value, key) {
- value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value);
-
- if (key) {
- return encodeUnreserved(key) + "=" + value;
- } else {
- return value;
- }
-}
-
-function isDefined(value) {
- return value !== undefined && value !== null;
-}
-
-function isKeyOperator(operator) {
- return operator === ";" || operator === "&" || operator === "?";
-}
-
-function getValues(context, operator, key, modifier) {
- var value = context[key],
- result = [];
-
- if (isDefined(value) && value !== "") {
- if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
- value = value.toString();
-
- if (modifier && modifier !== "*") {
- value = value.substring(0, parseInt(modifier, 10));
- }
-
- result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
- } else {
- if (modifier === "*") {
- if (Array.isArray(value)) {
- value.filter(isDefined).forEach(function (value) {
- result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
- });
- } else {
- Object.keys(value).forEach(function (k) {
- if (isDefined(value[k])) {
- result.push(encodeValue(operator, value[k], k));
- }
- });
- }
- } else {
- const tmp = [];
-
- if (Array.isArray(value)) {
- value.filter(isDefined).forEach(function (value) {
- tmp.push(encodeValue(operator, value));
- });
- } else {
- Object.keys(value).forEach(function (k) {
- if (isDefined(value[k])) {
- tmp.push(encodeUnreserved(k));
- tmp.push(encodeValue(operator, value[k].toString()));
- }
- });
- }
-
- if (isKeyOperator(operator)) {
- result.push(encodeUnreserved(key) + "=" + tmp.join(","));
- } else if (tmp.length !== 0) {
- result.push(tmp.join(","));
- }
- }
- }
- } else {
- if (operator === ";") {
- if (isDefined(value)) {
- result.push(encodeUnreserved(key));
- }
- } else if (value === "" && (operator === "&" || operator === "?")) {
- result.push(encodeUnreserved(key) + "=");
- } else if (value === "") {
- result.push("");
- }
- }
-
- return result;
-}
-
-function parseUrl(template) {
- return {
- expand: expand.bind(null, template)
- };
-}
-
-function expand(template, context) {
- var operators = ["+", "#", ".", "/", ";", "?", "&"];
- return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) {
- if (expression) {
- let operator = "";
- const values = [];
-
- if (operators.indexOf(expression.charAt(0)) !== -1) {
- operator = expression.charAt(0);
- expression = expression.substr(1);
- }
-
- expression.split(/,/g).forEach(function (variable) {
- var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
- values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
- });
-
- if (operator && operator !== "+") {
- var separator = ",";
-
- if (operator === "?") {
- separator = "&";
- } else if (operator !== "#") {
- separator = operator;
- }
-
- return (values.length !== 0 ? operator : "") + values.join(separator);
- } else {
- return values.join(",");
- }
- } else {
- return encodeReserved(literal);
- }
- });
-}
-
-function parse(options) {
- // https://fetch.spec.whatwg.org/#methods
- let method = options.method.toUpperCase(); // replace :varname with {varname} to make it RFC 6570 compatible
-
- let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{+$1}");
- let headers = Object.assign({}, options.headers);
- let body;
- let parameters = omit(options, ["method", "baseUrl", "url", "headers", "request", "mediaType"]); // extract variable names from URL to calculate remaining variables later
-
- const urlVariableNames = extractUrlVariableNames(url);
- url = parseUrl(url).expand(parameters);
-
- if (!/^http/.test(url)) {
- url = options.baseUrl + url;
- }
-
- const omittedParameters = Object.keys(options).filter(option => urlVariableNames.includes(option)).concat("baseUrl");
- const remainingParameters = omit(parameters, omittedParameters);
- const isBinaryRequset = /application\/octet-stream/i.test(headers.accept);
-
- if (!isBinaryRequset) {
- if (options.mediaType.format) {
- // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw
- headers.accept = headers.accept.split(/,/).map(preview => preview.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`)).join(",");
- }
-
- if (options.mediaType.previews.length) {
- const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
- headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map(preview => {
- const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json";
- return `application/vnd.github.${preview}-preview${format}`;
- }).join(",");
- }
- } // for GET/HEAD requests, set URL query parameters from remaining parameters
- // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters
-
-
- if (["GET", "HEAD"].includes(method)) {
- url = addQueryParameters(url, remainingParameters);
- } else {
- if ("data" in remainingParameters) {
- body = remainingParameters.data;
- } else {
- if (Object.keys(remainingParameters).length) {
- body = remainingParameters;
- } else {
- headers["content-length"] = 0;
- }
- }
- } // default content-type for JSON if body is set
-
-
- if (!headers["content-type"] && typeof body !== "undefined") {
- headers["content-type"] = "application/json; charset=utf-8";
- } // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body.
- // fetch does not allow to set `content-length` header, but we can set body to an empty string
-
-
- if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
- body = "";
- } // Only return body/request keys if present
-
-
- return Object.assign({
- method,
- url,
- headers
- }, typeof body !== "undefined" ? {
- body
- } : null, options.request ? {
- request: options.request
- } : null);
-}
-
-function endpointWithDefaults(defaults, route, options) {
- return parse(merge(defaults, route, options));
-}
-
-function withDefaults(oldDefaults, newDefaults) {
- const DEFAULTS = merge(oldDefaults, newDefaults);
- const endpoint = endpointWithDefaults.bind(null, DEFAULTS);
- return Object.assign(endpoint, {
- DEFAULTS,
- defaults: withDefaults.bind(null, DEFAULTS),
- merge: merge.bind(null, DEFAULTS),
- parse
- });
-}
-
-const VERSION = "6.0.2";
-
-const userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`; // DEFAULTS has all properties set that EndpointOptions has, except url.
-// So we use RequestParameters and add method as additional required property.
-
-const DEFAULTS = {
- method: "GET",
- baseUrl: "https://api.github.com",
- headers: {
- accept: "application/vnd.github.v3+json",
- "user-agent": userAgent
- },
- mediaType: {
- format: "",
- previews: []
- }
-};
-
-const endpoint = withDefaults(null, DEFAULTS);
-
-exports.endpoint = endpoint;
-//# sourceMappingURL=index.js.map
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-node/index.js.map b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-node/index.js.map
deleted file mode 100644
index 911601b..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-node/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sources":["../dist-src/util/lowercase-keys.js","../dist-src/util/merge-deep.js","../dist-src/merge.js","../dist-src/util/add-query-parameters.js","../dist-src/util/extract-url-variable-names.js","../dist-src/util/omit.js","../dist-src/util/url-template.js","../dist-src/parse.js","../dist-src/endpoint-with-defaults.js","../dist-src/with-defaults.js","../dist-src/version.js","../dist-src/defaults.js","../dist-src/index.js"],"sourcesContent":["export function lowercaseKeys(object) {\n if (!object) {\n return {};\n }\n return Object.keys(object).reduce((newObj, key) => {\n newObj[key.toLowerCase()] = object[key];\n return newObj;\n }, {});\n}\n","import isPlainObject from \"is-plain-object\";\nexport function mergeDeep(defaults, options) {\n const result = Object.assign({}, defaults);\n Object.keys(options).forEach((key) => {\n if (isPlainObject(options[key])) {\n if (!(key in defaults))\n Object.assign(result, { [key]: options[key] });\n else\n result[key] = mergeDeep(defaults[key], options[key]);\n }\n else {\n Object.assign(result, { [key]: options[key] });\n }\n });\n return result;\n}\n","import { lowercaseKeys } from \"./util/lowercase-keys\";\nimport { mergeDeep } from \"./util/merge-deep\";\nexport function merge(defaults, route, options) {\n if (typeof route === \"string\") {\n let [method, url] = route.split(\" \");\n options = Object.assign(url ? { method, url } : { url: method }, options);\n }\n else {\n options = Object.assign({}, route);\n }\n // lowercase header names before merging with defaults to avoid duplicates\n options.headers = lowercaseKeys(options.headers);\n const mergedOptions = mergeDeep(defaults || {}, options);\n // mediaType.previews arrays are merged, instead of overwritten\n if (defaults && defaults.mediaType.previews.length) {\n mergedOptions.mediaType.previews = defaults.mediaType.previews\n .filter((preview) => !mergedOptions.mediaType.previews.includes(preview))\n .concat(mergedOptions.mediaType.previews);\n }\n mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map((preview) => preview.replace(/-preview/, \"\"));\n return mergedOptions;\n}\n","export function addQueryParameters(url, parameters) {\n const separator = /\\?/.test(url) ? \"&\" : \"?\";\n const names = Object.keys(parameters);\n if (names.length === 0) {\n return url;\n }\n return (url +\n separator +\n names\n .map((name) => {\n if (name === \"q\") {\n return (\"q=\" + parameters.q.split(\"+\").map(encodeURIComponent).join(\"+\"));\n }\n return `${name}=${encodeURIComponent(parameters[name])}`;\n })\n .join(\"&\"));\n}\n","const urlVariableRegex = /\\{[^}]+\\}/g;\nfunction removeNonChars(variableName) {\n return variableName.replace(/^\\W+|\\W+$/g, \"\").split(/,/);\n}\nexport function extractUrlVariableNames(url) {\n const matches = url.match(urlVariableRegex);\n if (!matches) {\n return [];\n }\n return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);\n}\n","export function omit(object, keysToOmit) {\n return Object.keys(object)\n .filter((option) => !keysToOmit.includes(option))\n .reduce((obj, key) => {\n obj[key] = object[key];\n return obj;\n }, {});\n}\n","// Based on https://github.com/bramstein/url-template, licensed under BSD\n// TODO: create separate package.\n//\n// Copyright (c) 2012-2014, Bram Stein\n// All rights reserved.\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions\n// are met:\n// 1. Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// 2. Redistributions in binary form must reproduce the above copyright\n// notice, this list of conditions and the following disclaimer in the\n// documentation and/or other materials provided with the distribution.\n// 3. The name of the author may not be used to endorse or promote products\n// derived from this software without specific prior written permission.\n// THIS SOFTWARE IS PROVIDED BY THE AUTHOR \"AS IS\" AND ANY EXPRESS OR IMPLIED\n// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO\n// EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,\n// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\n// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\n// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n/* istanbul ignore file */\nfunction encodeReserved(str) {\n return str\n .split(/(%[0-9A-Fa-f]{2})/g)\n .map(function (part) {\n if (!/%[0-9A-Fa-f]/.test(part)) {\n part = encodeURI(part).replace(/%5B/g, \"[\").replace(/%5D/g, \"]\");\n }\n return part;\n })\n .join(\"\");\n}\nfunction encodeUnreserved(str) {\n return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {\n return \"%\" + c.charCodeAt(0).toString(16).toUpperCase();\n });\n}\nfunction encodeValue(operator, value, key) {\n value =\n operator === \"+\" || operator === \"#\"\n ? encodeReserved(value)\n : encodeUnreserved(value);\n if (key) {\n return encodeUnreserved(key) + \"=\" + value;\n }\n else {\n return value;\n }\n}\nfunction isDefined(value) {\n return value !== undefined && value !== null;\n}\nfunction isKeyOperator(operator) {\n return operator === \";\" || operator === \"&\" || operator === \"?\";\n}\nfunction getValues(context, operator, key, modifier) {\n var value = context[key], result = [];\n if (isDefined(value) && value !== \"\") {\n if (typeof value === \"string\" ||\n typeof value === \"number\" ||\n typeof value === \"boolean\") {\n value = value.toString();\n if (modifier && modifier !== \"*\") {\n value = value.substring(0, parseInt(modifier, 10));\n }\n result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : \"\"));\n }\n else {\n if (modifier === \"*\") {\n if (Array.isArray(value)) {\n value.filter(isDefined).forEach(function (value) {\n result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : \"\"));\n });\n }\n else {\n Object.keys(value).forEach(function (k) {\n if (isDefined(value[k])) {\n result.push(encodeValue(operator, value[k], k));\n }\n });\n }\n }\n else {\n const tmp = [];\n if (Array.isArray(value)) {\n value.filter(isDefined).forEach(function (value) {\n tmp.push(encodeValue(operator, value));\n });\n }\n else {\n Object.keys(value).forEach(function (k) {\n if (isDefined(value[k])) {\n tmp.push(encodeUnreserved(k));\n tmp.push(encodeValue(operator, value[k].toString()));\n }\n });\n }\n if (isKeyOperator(operator)) {\n result.push(encodeUnreserved(key) + \"=\" + tmp.join(\",\"));\n }\n else if (tmp.length !== 0) {\n result.push(tmp.join(\",\"));\n }\n }\n }\n }\n else {\n if (operator === \";\") {\n if (isDefined(value)) {\n result.push(encodeUnreserved(key));\n }\n }\n else if (value === \"\" && (operator === \"&\" || operator === \"?\")) {\n result.push(encodeUnreserved(key) + \"=\");\n }\n else if (value === \"\") {\n result.push(\"\");\n }\n }\n return result;\n}\nexport function parseUrl(template) {\n return {\n expand: expand.bind(null, template),\n };\n}\nfunction expand(template, context) {\n var operators = [\"+\", \"#\", \".\", \"/\", \";\", \"?\", \"&\"];\n return template.replace(/\\{([^\\{\\}]+)\\}|([^\\{\\}]+)/g, function (_, expression, literal) {\n if (expression) {\n let operator = \"\";\n const values = [];\n if (operators.indexOf(expression.charAt(0)) !== -1) {\n operator = expression.charAt(0);\n expression = expression.substr(1);\n }\n expression.split(/,/g).forEach(function (variable) {\n var tmp = /([^:\\*]*)(?::(\\d+)|(\\*))?/.exec(variable);\n values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));\n });\n if (operator && operator !== \"+\") {\n var separator = \",\";\n if (operator === \"?\") {\n separator = \"&\";\n }\n else if (operator !== \"#\") {\n separator = operator;\n }\n return (values.length !== 0 ? operator : \"\") + values.join(separator);\n }\n else {\n return values.join(\",\");\n }\n }\n else {\n return encodeReserved(literal);\n }\n });\n}\n","import { addQueryParameters } from \"./util/add-query-parameters\";\nimport { extractUrlVariableNames } from \"./util/extract-url-variable-names\";\nimport { omit } from \"./util/omit\";\nimport { parseUrl } from \"./util/url-template\";\nexport function parse(options) {\n // https://fetch.spec.whatwg.org/#methods\n let method = options.method.toUpperCase();\n // replace :varname with {varname} to make it RFC 6570 compatible\n let url = (options.url || \"/\").replace(/:([a-z]\\w+)/g, \"{+$1}\");\n let headers = Object.assign({}, options.headers);\n let body;\n let parameters = omit(options, [\n \"method\",\n \"baseUrl\",\n \"url\",\n \"headers\",\n \"request\",\n \"mediaType\",\n ]);\n // extract variable names from URL to calculate remaining variables later\n const urlVariableNames = extractUrlVariableNames(url);\n url = parseUrl(url).expand(parameters);\n if (!/^http/.test(url)) {\n url = options.baseUrl + url;\n }\n const omittedParameters = Object.keys(options)\n .filter((option) => urlVariableNames.includes(option))\n .concat(\"baseUrl\");\n const remainingParameters = omit(parameters, omittedParameters);\n const isBinaryRequset = /application\\/octet-stream/i.test(headers.accept);\n if (!isBinaryRequset) {\n if (options.mediaType.format) {\n // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw\n headers.accept = headers.accept\n .split(/,/)\n .map((preview) => preview.replace(/application\\/vnd(\\.\\w+)(\\.v3)?(\\.\\w+)?(\\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`))\n .join(\",\");\n }\n if (options.mediaType.previews.length) {\n const previewsFromAcceptHeader = headers.accept.match(/[\\w-]+(?=-preview)/g) || [];\n headers.accept = previewsFromAcceptHeader\n .concat(options.mediaType.previews)\n .map((preview) => {\n const format = options.mediaType.format\n ? `.${options.mediaType.format}`\n : \"+json\";\n return `application/vnd.github.${preview}-preview${format}`;\n })\n .join(\",\");\n }\n }\n // for GET/HEAD requests, set URL query parameters from remaining parameters\n // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters\n if ([\"GET\", \"HEAD\"].includes(method)) {\n url = addQueryParameters(url, remainingParameters);\n }\n else {\n if (\"data\" in remainingParameters) {\n body = remainingParameters.data;\n }\n else {\n if (Object.keys(remainingParameters).length) {\n body = remainingParameters;\n }\n else {\n headers[\"content-length\"] = 0;\n }\n }\n }\n // default content-type for JSON if body is set\n if (!headers[\"content-type\"] && typeof body !== \"undefined\") {\n headers[\"content-type\"] = \"application/json; charset=utf-8\";\n }\n // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body.\n // fetch does not allow to set `content-length` header, but we can set body to an empty string\n if ([\"PATCH\", \"PUT\"].includes(method) && typeof body === \"undefined\") {\n body = \"\";\n }\n // Only return body/request keys if present\n return Object.assign({ method, url, headers }, typeof body !== \"undefined\" ? { body } : null, options.request ? { request: options.request } : null);\n}\n","import { merge } from \"./merge\";\nimport { parse } from \"./parse\";\nexport function endpointWithDefaults(defaults, route, options) {\n return parse(merge(defaults, route, options));\n}\n","import { endpointWithDefaults } from \"./endpoint-with-defaults\";\nimport { merge } from \"./merge\";\nimport { parse } from \"./parse\";\nexport function withDefaults(oldDefaults, newDefaults) {\n const DEFAULTS = merge(oldDefaults, newDefaults);\n const endpoint = endpointWithDefaults.bind(null, DEFAULTS);\n return Object.assign(endpoint, {\n DEFAULTS,\n defaults: withDefaults.bind(null, DEFAULTS),\n merge: merge.bind(null, DEFAULTS),\n parse,\n });\n}\n","export const VERSION = \"6.0.2\";\n","import { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nconst userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;\n// DEFAULTS has all properties set that EndpointOptions has, except url.\n// So we use RequestParameters and add method as additional required property.\nexport const DEFAULTS = {\n method: \"GET\",\n baseUrl: \"https://api.github.com\",\n headers: {\n accept: \"application/vnd.github.v3+json\",\n \"user-agent\": userAgent,\n },\n mediaType: {\n format: \"\",\n previews: [],\n },\n};\n","import { withDefaults } from \"./with-defaults\";\nimport { DEFAULTS } from \"./defaults\";\nexport const endpoint = withDefaults(null, DEFAULTS);\n"],"names":["lowercaseKeys","object","Object","keys","reduce","newObj","key","toLowerCase","mergeDeep","defaults","options","result","assign","forEach","isPlainObject","merge","route","method","url","split","headers","mergedOptions","mediaType","previews","length","filter","preview","includes","concat","map","replace","addQueryParameters","parameters","separator","test","names","name","q","encodeURIComponent","join","urlVariableRegex","removeNonChars","variableName","extractUrlVariableNames","matches","match","a","b","omit","keysToOmit","option","obj","encodeReserved","str","part","encodeURI","encodeUnreserved","c","charCodeAt","toString","toUpperCase","encodeValue","operator","value","isDefined","undefined","isKeyOperator","getValues","context","modifier","substring","parseInt","push","Array","isArray","k","tmp","parseUrl","template","expand","bind","operators","_","expression","literal","values","indexOf","charAt","substr","variable","exec","parse","body","urlVariableNames","baseUrl","omittedParameters","remainingParameters","isBinaryRequset","accept","format","previewsFromAcceptHeader","data","request","endpointWithDefaults","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,EAAwB;AAC3BD,IAAAA,QAD2B;AAE3BlG,IAAAA,QAAQ,EAAE+F,YAAY,CAACxB,IAAb,CAAkB,IAAlB,EAAwB2B,QAAxB,CAFiB;AAG3B5F,IAAAA,KAAK,EAAEA,KAAK,CAACiE,IAAN,CAAW,IAAX,EAAiB2B,QAAjB,CAHoB;AAI3BhB,IAAAA;AAJ2B,GAAxB,CAAP;AAMH;;ACZM,MAAMkB,OAAO,GAAG,mBAAhB;;ACEP,MAAMC,SAAS,GAAI,uBAAsBD,OAAQ,IAAGE,+BAAY,EAAG,EAAnE;AAEA;;AACA,AAAO,MAAMJ,QAAQ,GAAG;AACpB1F,EAAAA,MAAM,EAAE,KADY;AAEpB6E,EAAAA,OAAO,EAAE,wBAFW;AAGpB1E,EAAAA,OAAO,EAAE;AACL8E,IAAAA,MAAM,EAAE,gCADH;AAEL,kBAAcY;AAFT,GAHW;AAOpBxF,EAAAA,SAAS,EAAE;AACP6E,IAAAA,MAAM,EAAE,EADD;AAEP5E,IAAAA,QAAQ,EAAE;AAFH;AAPS,CAAjB;;MCHMqF,QAAQ,GAAGJ,YAAY,CAAC,IAAD,EAAOG,QAAP,CAA7B;;;;"}
\ No newline at end of file
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/defaults.js b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/defaults.js
deleted file mode 100644
index 456e586..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/defaults.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import { getUserAgent } from "universal-user-agent";
-import { VERSION } from "./version";
-const userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;
-// DEFAULTS has all properties set that EndpointOptions has, except url.
-// So we use RequestParameters and add method as additional required property.
-export const DEFAULTS = {
- method: "GET",
- baseUrl: "https://api.github.com",
- headers: {
- accept: "application/vnd.github.v3+json",
- "user-agent": userAgent,
- },
- mediaType: {
- format: "",
- previews: [],
- },
-};
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/endpoint-with-defaults.js b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/endpoint-with-defaults.js
deleted file mode 100644
index 5763758..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/endpoint-with-defaults.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import { merge } from "./merge";
-import { parse } from "./parse";
-export function endpointWithDefaults(defaults, route, options) {
- return parse(merge(defaults, route, options));
-}
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/index.js b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/index.js
deleted file mode 100644
index 599917f..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import { withDefaults } from "./with-defaults";
-import { DEFAULTS } from "./defaults";
-export const endpoint = withDefaults(null, DEFAULTS);
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/merge.js b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/merge.js
deleted file mode 100644
index d79ae65..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/merge.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import { lowercaseKeys } from "./util/lowercase-keys";
-import { mergeDeep } from "./util/merge-deep";
-export function merge(defaults, route, options) {
- if (typeof route === "string") {
- let [method, url] = route.split(" ");
- options = Object.assign(url ? { method, url } : { url: method }, options);
- }
- else {
- options = Object.assign({}, route);
- }
- // lowercase header names before merging with defaults to avoid duplicates
- options.headers = lowercaseKeys(options.headers);
- const mergedOptions = mergeDeep(defaults || {}, options);
- // mediaType.previews arrays are merged, instead of overwritten
- if (defaults && defaults.mediaType.previews.length) {
- mergedOptions.mediaType.previews = defaults.mediaType.previews
- .filter((preview) => !mergedOptions.mediaType.previews.includes(preview))
- .concat(mergedOptions.mediaType.previews);
- }
- mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map((preview) => preview.replace(/-preview/, ""));
- return mergedOptions;
-}
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/parse.js b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/parse.js
deleted file mode 100644
index 91197c8..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/parse.js
+++ /dev/null
@@ -1,81 +0,0 @@
-import { addQueryParameters } from "./util/add-query-parameters";
-import { extractUrlVariableNames } from "./util/extract-url-variable-names";
-import { omit } from "./util/omit";
-import { parseUrl } from "./util/url-template";
-export function parse(options) {
- // https://fetch.spec.whatwg.org/#methods
- let method = options.method.toUpperCase();
- // replace :varname with {varname} to make it RFC 6570 compatible
- let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{+$1}");
- let headers = Object.assign({}, options.headers);
- let body;
- let parameters = omit(options, [
- "method",
- "baseUrl",
- "url",
- "headers",
- "request",
- "mediaType",
- ]);
- // extract variable names from URL to calculate remaining variables later
- const urlVariableNames = extractUrlVariableNames(url);
- url = parseUrl(url).expand(parameters);
- if (!/^http/.test(url)) {
- url = options.baseUrl + url;
- }
- const omittedParameters = Object.keys(options)
- .filter((option) => urlVariableNames.includes(option))
- .concat("baseUrl");
- const remainingParameters = omit(parameters, omittedParameters);
- const isBinaryRequset = /application\/octet-stream/i.test(headers.accept);
- if (!isBinaryRequset) {
- if (options.mediaType.format) {
- // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw
- headers.accept = headers.accept
- .split(/,/)
- .map((preview) => preview.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`))
- .join(",");
- }
- if (options.mediaType.previews.length) {
- const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
- headers.accept = previewsFromAcceptHeader
- .concat(options.mediaType.previews)
- .map((preview) => {
- const format = options.mediaType.format
- ? `.${options.mediaType.format}`
- : "+json";
- return `application/vnd.github.${preview}-preview${format}`;
- })
- .join(",");
- }
- }
- // for GET/HEAD requests, set URL query parameters from remaining parameters
- // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters
- if (["GET", "HEAD"].includes(method)) {
- url = addQueryParameters(url, remainingParameters);
- }
- else {
- if ("data" in remainingParameters) {
- body = remainingParameters.data;
- }
- else {
- if (Object.keys(remainingParameters).length) {
- body = remainingParameters;
- }
- else {
- headers["content-length"] = 0;
- }
- }
- }
- // default content-type for JSON if body is set
- if (!headers["content-type"] && typeof body !== "undefined") {
- headers["content-type"] = "application/json; charset=utf-8";
- }
- // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body.
- // fetch does not allow to set `content-length` header, but we can set body to an empty string
- if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
- body = "";
- }
- // Only return body/request keys if present
- return Object.assign({ method, url, headers }, typeof body !== "undefined" ? { body } : null, options.request ? { request: options.request } : null);
-}
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/util/add-query-parameters.js b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/util/add-query-parameters.js
deleted file mode 100644
index d26be31..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/util/add-query-parameters.js
+++ /dev/null
@@ -1,17 +0,0 @@
-export function addQueryParameters(url, parameters) {
- const separator = /\?/.test(url) ? "&" : "?";
- const names = Object.keys(parameters);
- if (names.length === 0) {
- return url;
- }
- return (url +
- separator +
- names
- .map((name) => {
- if (name === "q") {
- return ("q=" + parameters.q.split("+").map(encodeURIComponent).join("+"));
- }
- return `${name}=${encodeURIComponent(parameters[name])}`;
- })
- .join("&"));
-}
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/util/extract-url-variable-names.js b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/util/extract-url-variable-names.js
deleted file mode 100644
index 3e75db2..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/util/extract-url-variable-names.js
+++ /dev/null
@@ -1,11 +0,0 @@
-const urlVariableRegex = /\{[^}]+\}/g;
-function removeNonChars(variableName) {
- return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
-}
-export function extractUrlVariableNames(url) {
- const matches = url.match(urlVariableRegex);
- if (!matches) {
- return [];
- }
- return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
-}
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/util/lowercase-keys.js b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/util/lowercase-keys.js
deleted file mode 100644
index 0780642..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/util/lowercase-keys.js
+++ /dev/null
@@ -1,9 +0,0 @@
-export function lowercaseKeys(object) {
- if (!object) {
- return {};
- }
- return Object.keys(object).reduce((newObj, key) => {
- newObj[key.toLowerCase()] = object[key];
- return newObj;
- }, {});
-}
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/util/merge-deep.js b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/util/merge-deep.js
deleted file mode 100644
index eca9a72..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/util/merge-deep.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import isPlainObject from "is-plain-object";
-export function mergeDeep(defaults, options) {
- const result = Object.assign({}, defaults);
- Object.keys(options).forEach((key) => {
- if (isPlainObject(options[key])) {
- if (!(key in defaults))
- Object.assign(result, { [key]: options[key] });
- else
- result[key] = mergeDeep(defaults[key], options[key]);
- }
- else {
- Object.assign(result, { [key]: options[key] });
- }
- });
- return result;
-}
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/util/omit.js b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/util/omit.js
deleted file mode 100644
index 6245031..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/util/omit.js
+++ /dev/null
@@ -1,8 +0,0 @@
-export function omit(object, keysToOmit) {
- return Object.keys(object)
- .filter((option) => !keysToOmit.includes(option))
- .reduce((obj, key) => {
- obj[key] = object[key];
- return obj;
- }, {});
-}
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/util/url-template.js b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/util/url-template.js
deleted file mode 100644
index 439b3fe..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/util/url-template.js
+++ /dev/null
@@ -1,164 +0,0 @@
-// Based on https://github.com/bramstein/url-template, licensed under BSD
-// TODO: create separate package.
-//
-// Copyright (c) 2012-2014, Bram Stein
-// All rights reserved.
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. The name of the author may not be used to endorse or promote products
-// derived from this software without specific prior written permission.
-// THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
-// EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-/* istanbul ignore file */
-function encodeReserved(str) {
- return str
- .split(/(%[0-9A-Fa-f]{2})/g)
- .map(function (part) {
- if (!/%[0-9A-Fa-f]/.test(part)) {
- part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
- }
- return part;
- })
- .join("");
-}
-function encodeUnreserved(str) {
- return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
- return "%" + c.charCodeAt(0).toString(16).toUpperCase();
- });
-}
-function encodeValue(operator, value, key) {
- value =
- operator === "+" || operator === "#"
- ? encodeReserved(value)
- : encodeUnreserved(value);
- if (key) {
- return encodeUnreserved(key) + "=" + value;
- }
- else {
- return value;
- }
-}
-function isDefined(value) {
- return value !== undefined && value !== null;
-}
-function isKeyOperator(operator) {
- return operator === ";" || operator === "&" || operator === "?";
-}
-function getValues(context, operator, key, modifier) {
- var value = context[key], result = [];
- if (isDefined(value) && value !== "") {
- if (typeof value === "string" ||
- typeof value === "number" ||
- typeof value === "boolean") {
- value = value.toString();
- if (modifier && modifier !== "*") {
- value = value.substring(0, parseInt(modifier, 10));
- }
- result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
- }
- else {
- if (modifier === "*") {
- if (Array.isArray(value)) {
- value.filter(isDefined).forEach(function (value) {
- result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
- });
- }
- else {
- Object.keys(value).forEach(function (k) {
- if (isDefined(value[k])) {
- result.push(encodeValue(operator, value[k], k));
- }
- });
- }
- }
- else {
- const tmp = [];
- if (Array.isArray(value)) {
- value.filter(isDefined).forEach(function (value) {
- tmp.push(encodeValue(operator, value));
- });
- }
- else {
- Object.keys(value).forEach(function (k) {
- if (isDefined(value[k])) {
- tmp.push(encodeUnreserved(k));
- tmp.push(encodeValue(operator, value[k].toString()));
- }
- });
- }
- if (isKeyOperator(operator)) {
- result.push(encodeUnreserved(key) + "=" + tmp.join(","));
- }
- else if (tmp.length !== 0) {
- result.push(tmp.join(","));
- }
- }
- }
- }
- else {
- if (operator === ";") {
- if (isDefined(value)) {
- result.push(encodeUnreserved(key));
- }
- }
- else if (value === "" && (operator === "&" || operator === "?")) {
- result.push(encodeUnreserved(key) + "=");
- }
- else if (value === "") {
- result.push("");
- }
- }
- return result;
-}
-export function parseUrl(template) {
- return {
- expand: expand.bind(null, template),
- };
-}
-function expand(template, context) {
- var operators = ["+", "#", ".", "/", ";", "?", "&"];
- return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) {
- if (expression) {
- let operator = "";
- const values = [];
- if (operators.indexOf(expression.charAt(0)) !== -1) {
- operator = expression.charAt(0);
- expression = expression.substr(1);
- }
- expression.split(/,/g).forEach(function (variable) {
- var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
- values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
- });
- if (operator && operator !== "+") {
- var separator = ",";
- if (operator === "?") {
- separator = "&";
- }
- else if (operator !== "#") {
- separator = operator;
- }
- return (values.length !== 0 ? operator : "") + values.join(separator);
- }
- else {
- return values.join(",");
- }
- }
- else {
- return encodeReserved(literal);
- }
- });
-}
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/version.js b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/version.js
deleted file mode 100644
index 8a0d49c..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/version.js
+++ /dev/null
@@ -1 +0,0 @@
-export const VERSION = "6.0.2";
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/with-defaults.js b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/with-defaults.js
deleted file mode 100644
index 81baf6c..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-src/with-defaults.js
+++ /dev/null
@@ -1,13 +0,0 @@
-import { endpointWithDefaults } from "./endpoint-with-defaults";
-import { merge } from "./merge";
-import { parse } from "./parse";
-export function withDefaults(oldDefaults, newDefaults) {
- const DEFAULTS = merge(oldDefaults, newDefaults);
- const endpoint = endpointWithDefaults.bind(null, DEFAULTS);
- return Object.assign(endpoint, {
- DEFAULTS,
- defaults: withDefaults.bind(null, DEFAULTS),
- merge: merge.bind(null, DEFAULTS),
- parse,
- });
-}
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/defaults.d.ts b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/defaults.d.ts
deleted file mode 100644
index 30fcd20..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/defaults.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { EndpointDefaults } from "@octokit/types";
-export declare const DEFAULTS: EndpointDefaults;
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/endpoint-with-defaults.d.ts b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/endpoint-with-defaults.d.ts
deleted file mode 100644
index ff39e5e..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/endpoint-with-defaults.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { EndpointOptions, RequestParameters, Route } from "@octokit/types";
-import { DEFAULTS } from "./defaults";
-export declare function endpointWithDefaults(defaults: typeof DEFAULTS, route: Route | EndpointOptions, options?: RequestParameters): import("@octokit/types").RequestOptions;
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/index.d.ts b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/index.d.ts
deleted file mode 100644
index 1ede136..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/index.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export declare const endpoint: import("@octokit/types").EndpointInterface<object>;
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/merge.d.ts b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/merge.d.ts
deleted file mode 100644
index b75a15e..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/merge.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { EndpointDefaults, RequestParameters, Route } from "@octokit/types";
-export declare function merge(defaults: EndpointDefaults | null, route?: Route | RequestParameters, options?: RequestParameters): EndpointDefaults;
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/parse.d.ts b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/parse.d.ts
deleted file mode 100644
index fbe2144..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/parse.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { EndpointDefaults, RequestOptions } from "@octokit/types";
-export declare function parse(options: EndpointDefaults): RequestOptions;
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/util/add-query-parameters.d.ts b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/util/add-query-parameters.d.ts
deleted file mode 100644
index 4b192ac..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/util/add-query-parameters.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export declare function addQueryParameters(url: string, parameters: {
- [x: string]: string | undefined;
- q?: string;
-}): string;
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/util/extract-url-variable-names.d.ts b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/util/extract-url-variable-names.d.ts
deleted file mode 100644
index 93586d4..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/util/extract-url-variable-names.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export declare function extractUrlVariableNames(url: string): string[];
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/util/lowercase-keys.d.ts b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/util/lowercase-keys.d.ts
deleted file mode 100644
index 1daf307..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/util/lowercase-keys.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export declare function lowercaseKeys(object?: {
- [key: string]: any;
-}): {
- [key: string]: any;
-};
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/util/merge-deep.d.ts b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/util/merge-deep.d.ts
deleted file mode 100644
index 914411c..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/util/merge-deep.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export declare function mergeDeep(defaults: any, options: any): object;
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/util/omit.d.ts b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/util/omit.d.ts
deleted file mode 100644
index 06927d6..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/util/omit.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export declare function omit(object: {
- [key: string]: any;
-}, keysToOmit: string[]): {
- [key: string]: any;
-};
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/util/url-template.d.ts b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/util/url-template.d.ts
deleted file mode 100644
index 5d967ca..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/util/url-template.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export declare function parseUrl(template: string): {
- expand: (context: object) => string;
-};
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/version.d.ts b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/version.d.ts
deleted file mode 100644
index 8aaf0c6..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/version.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export declare const VERSION = "6.0.2";
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/with-defaults.d.ts b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/with-defaults.d.ts
deleted file mode 100644
index 6f5afd1..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-types/with-defaults.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import { EndpointInterface, RequestParameters, EndpointDefaults } from "@octokit/types";
-export declare function withDefaults(oldDefaults: EndpointDefaults | null, newDefaults: RequestParameters): EndpointInterface;
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-web/index.js b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-web/index.js
deleted file mode 100644
index 87b4369..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-web/index.js
+++ /dev/null
@@ -1,369 +0,0 @@
-import isPlainObject from 'is-plain-object';
-import { getUserAgent } from 'universal-user-agent';
-
-function lowercaseKeys(object) {
- if (!object) {
- return {};
- }
- return Object.keys(object).reduce((newObj, key) => {
- newObj[key.toLowerCase()] = object[key];
- return newObj;
- }, {});
-}
-
-function mergeDeep(defaults, options) {
- const result = Object.assign({}, defaults);
- Object.keys(options).forEach((key) => {
- if (isPlainObject(options[key])) {
- if (!(key in defaults))
- Object.assign(result, { [key]: options[key] });
- else
- result[key] = mergeDeep(defaults[key], options[key]);
- }
- else {
- Object.assign(result, { [key]: options[key] });
- }
- });
- return result;
-}
-
-function merge(defaults, route, options) {
- if (typeof route === "string") {
- let [method, url] = route.split(" ");
- options = Object.assign(url ? { method, url } : { url: method }, options);
- }
- else {
- options = Object.assign({}, route);
- }
- // lowercase header names before merging with defaults to avoid duplicates
- options.headers = lowercaseKeys(options.headers);
- const mergedOptions = mergeDeep(defaults || {}, options);
- // mediaType.previews arrays are merged, instead of overwritten
- if (defaults && defaults.mediaType.previews.length) {
- mergedOptions.mediaType.previews = defaults.mediaType.previews
- .filter((preview) => !mergedOptions.mediaType.previews.includes(preview))
- .concat(mergedOptions.mediaType.previews);
- }
- mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map((preview) => preview.replace(/-preview/, ""));
- return mergedOptions;
-}
-
-function addQueryParameters(url, parameters) {
- const separator = /\?/.test(url) ? "&" : "?";
- const names = Object.keys(parameters);
- if (names.length === 0) {
- return url;
- }
- return (url +
- separator +
- names
- .map((name) => {
- if (name === "q") {
- return ("q=" + parameters.q.split("+").map(encodeURIComponent).join("+"));
- }
- return `${name}=${encodeURIComponent(parameters[name])}`;
- })
- .join("&"));
-}
-
-const urlVariableRegex = /\{[^}]+\}/g;
-function removeNonChars(variableName) {
- return variableName.replace(/^\W+|\W+$/g, "").split(/,/);
-}
-function extractUrlVariableNames(url) {
- const matches = url.match(urlVariableRegex);
- if (!matches) {
- return [];
- }
- return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
-}
-
-function omit(object, keysToOmit) {
- return Object.keys(object)
- .filter((option) => !keysToOmit.includes(option))
- .reduce((obj, key) => {
- obj[key] = object[key];
- return obj;
- }, {});
-}
-
-// Based on https://github.com/bramstein/url-template, licensed under BSD
-// TODO: create separate package.
-//
-// Copyright (c) 2012-2014, Bram Stein
-// All rights reserved.
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. The name of the author may not be used to endorse or promote products
-// derived from this software without specific prior written permission.
-// THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
-// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
-// EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-/* istanbul ignore file */
-function encodeReserved(str) {
- return str
- .split(/(%[0-9A-Fa-f]{2})/g)
- .map(function (part) {
- if (!/%[0-9A-Fa-f]/.test(part)) {
- part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
- }
- return part;
- })
- .join("");
-}
-function encodeUnreserved(str) {
- return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
- return "%" + c.charCodeAt(0).toString(16).toUpperCase();
- });
-}
-function encodeValue(operator, value, key) {
- value =
- operator === "+" || operator === "#"
- ? encodeReserved(value)
- : encodeUnreserved(value);
- if (key) {
- return encodeUnreserved(key) + "=" + value;
- }
- else {
- return value;
- }
-}
-function isDefined(value) {
- return value !== undefined && value !== null;
-}
-function isKeyOperator(operator) {
- return operator === ";" || operator === "&" || operator === "?";
-}
-function getValues(context, operator, key, modifier) {
- var value = context[key], result = [];
- if (isDefined(value) && value !== "") {
- if (typeof value === "string" ||
- typeof value === "number" ||
- typeof value === "boolean") {
- value = value.toString();
- if (modifier && modifier !== "*") {
- value = value.substring(0, parseInt(modifier, 10));
- }
- result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
- }
- else {
- if (modifier === "*") {
- if (Array.isArray(value)) {
- value.filter(isDefined).forEach(function (value) {
- result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
- });
- }
- else {
- Object.keys(value).forEach(function (k) {
- if (isDefined(value[k])) {
- result.push(encodeValue(operator, value[k], k));
- }
- });
- }
- }
- else {
- const tmp = [];
- if (Array.isArray(value)) {
- value.filter(isDefined).forEach(function (value) {
- tmp.push(encodeValue(operator, value));
- });
- }
- else {
- Object.keys(value).forEach(function (k) {
- if (isDefined(value[k])) {
- tmp.push(encodeUnreserved(k));
- tmp.push(encodeValue(operator, value[k].toString()));
- }
- });
- }
- if (isKeyOperator(operator)) {
- result.push(encodeUnreserved(key) + "=" + tmp.join(","));
- }
- else if (tmp.length !== 0) {
- result.push(tmp.join(","));
- }
- }
- }
- }
- else {
- if (operator === ";") {
- if (isDefined(value)) {
- result.push(encodeUnreserved(key));
- }
- }
- else if (value === "" && (operator === "&" || operator === "?")) {
- result.push(encodeUnreserved(key) + "=");
- }
- else if (value === "") {
- result.push("");
- }
- }
- return result;
-}
-function parseUrl(template) {
- return {
- expand: expand.bind(null, template),
- };
-}
-function expand(template, context) {
- var operators = ["+", "#", ".", "/", ";", "?", "&"];
- return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) {
- if (expression) {
- let operator = "";
- const values = [];
- if (operators.indexOf(expression.charAt(0)) !== -1) {
- operator = expression.charAt(0);
- expression = expression.substr(1);
- }
- expression.split(/,/g).forEach(function (variable) {
- var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
- values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
- });
- if (operator && operator !== "+") {
- var separator = ",";
- if (operator === "?") {
- separator = "&";
- }
- else if (operator !== "#") {
- separator = operator;
- }
- return (values.length !== 0 ? operator : "") + values.join(separator);
- }
- else {
- return values.join(",");
- }
- }
- else {
- return encodeReserved(literal);
- }
- });
-}
-
-function parse(options) {
- // https://fetch.spec.whatwg.org/#methods
- let method = options.method.toUpperCase();
- // replace :varname with {varname} to make it RFC 6570 compatible
- let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{+$1}");
- let headers = Object.assign({}, options.headers);
- let body;
- let parameters = omit(options, [
- "method",
- "baseUrl",
- "url",
- "headers",
- "request",
- "mediaType",
- ]);
- // extract variable names from URL to calculate remaining variables later
- const urlVariableNames = extractUrlVariableNames(url);
- url = parseUrl(url).expand(parameters);
- if (!/^http/.test(url)) {
- url = options.baseUrl + url;
- }
- const omittedParameters = Object.keys(options)
- .filter((option) => urlVariableNames.includes(option))
- .concat("baseUrl");
- const remainingParameters = omit(parameters, omittedParameters);
- const isBinaryRequset = /application\/octet-stream/i.test(headers.accept);
- if (!isBinaryRequset) {
- if (options.mediaType.format) {
- // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw
- headers.accept = headers.accept
- .split(/,/)
- .map((preview) => preview.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`))
- .join(",");
- }
- if (options.mediaType.previews.length) {
- const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || [];
- headers.accept = previewsFromAcceptHeader
- .concat(options.mediaType.previews)
- .map((preview) => {
- const format = options.mediaType.format
- ? `.${options.mediaType.format}`
- : "+json";
- return `application/vnd.github.${preview}-preview${format}`;
- })
- .join(",");
- }
- }
- // for GET/HEAD requests, set URL query parameters from remaining parameters
- // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters
- if (["GET", "HEAD"].includes(method)) {
- url = addQueryParameters(url, remainingParameters);
- }
- else {
- if ("data" in remainingParameters) {
- body = remainingParameters.data;
- }
- else {
- if (Object.keys(remainingParameters).length) {
- body = remainingParameters;
- }
- else {
- headers["content-length"] = 0;
- }
- }
- }
- // default content-type for JSON if body is set
- if (!headers["content-type"] && typeof body !== "undefined") {
- headers["content-type"] = "application/json; charset=utf-8";
- }
- // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body.
- // fetch does not allow to set `content-length` header, but we can set body to an empty string
- if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") {
- body = "";
- }
- // Only return body/request keys if present
- return Object.assign({ method, url, headers }, typeof body !== "undefined" ? { body } : null, options.request ? { request: options.request } : null);
-}
-
-function endpointWithDefaults(defaults, route, options) {
- return parse(merge(defaults, route, options));
-}
-
-function withDefaults(oldDefaults, newDefaults) {
- const DEFAULTS = merge(oldDefaults, newDefaults);
- const endpoint = endpointWithDefaults.bind(null, DEFAULTS);
- return Object.assign(endpoint, {
- DEFAULTS,
- defaults: withDefaults.bind(null, DEFAULTS),
- merge: merge.bind(null, DEFAULTS),
- parse,
- });
-}
-
-const VERSION = "6.0.2";
-
-const userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;
-// DEFAULTS has all properties set that EndpointOptions has, except url.
-// So we use RequestParameters and add method as additional required property.
-const DEFAULTS = {
- method: "GET",
- baseUrl: "https://api.github.com",
- headers: {
- accept: "application/vnd.github.v3+json",
- "user-agent": userAgent,
- },
- mediaType: {
- format: "",
- previews: [],
- },
-};
-
-const endpoint = withDefaults(null, DEFAULTS);
-
-export { endpoint };
-//# sourceMappingURL=index.js.map
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-web/index.js.map b/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-web/index.js.map
deleted file mode 100644
index 8f1749b..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/dist-web/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sources":["../dist-src/util/lowercase-keys.js","../dist-src/util/merge-deep.js","../dist-src/merge.js","../dist-src/util/add-query-parameters.js","../dist-src/util/extract-url-variable-names.js","../dist-src/util/omit.js","../dist-src/util/url-template.js","../dist-src/parse.js","../dist-src/endpoint-with-defaults.js","../dist-src/with-defaults.js","../dist-src/version.js","../dist-src/defaults.js","../dist-src/index.js"],"sourcesContent":["export function lowercaseKeys(object) {\n if (!object) {\n return {};\n }\n return Object.keys(object).reduce((newObj, key) => {\n newObj[key.toLowerCase()] = object[key];\n return newObj;\n }, {});\n}\n","import isPlainObject from \"is-plain-object\";\nexport function mergeDeep(defaults, options) {\n const result = Object.assign({}, defaults);\n Object.keys(options).forEach((key) => {\n if (isPlainObject(options[key])) {\n if (!(key in defaults))\n Object.assign(result, { [key]: options[key] });\n else\n result[key] = mergeDeep(defaults[key], options[key]);\n }\n else {\n Object.assign(result, { [key]: options[key] });\n }\n });\n return result;\n}\n","import { lowercaseKeys } from \"./util/lowercase-keys\";\nimport { mergeDeep } from \"./util/merge-deep\";\nexport function merge(defaults, route, options) {\n if (typeof route === \"string\") {\n let [method, url] = route.split(\" \");\n options = Object.assign(url ? { method, url } : { url: method }, options);\n }\n else {\n options = Object.assign({}, route);\n }\n // lowercase header names before merging with defaults to avoid duplicates\n options.headers = lowercaseKeys(options.headers);\n const mergedOptions = mergeDeep(defaults || {}, options);\n // mediaType.previews arrays are merged, instead of overwritten\n if (defaults && defaults.mediaType.previews.length) {\n mergedOptions.mediaType.previews = defaults.mediaType.previews\n .filter((preview) => !mergedOptions.mediaType.previews.includes(preview))\n .concat(mergedOptions.mediaType.previews);\n }\n mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map((preview) => preview.replace(/-preview/, \"\"));\n return mergedOptions;\n}\n","export function addQueryParameters(url, parameters) {\n const separator = /\\?/.test(url) ? \"&\" : \"?\";\n const names = Object.keys(parameters);\n if (names.length === 0) {\n return url;\n }\n return (url +\n separator +\n names\n .map((name) => {\n if (name === \"q\") {\n return (\"q=\" + parameters.q.split(\"+\").map(encodeURIComponent).join(\"+\"));\n }\n return `${name}=${encodeURIComponent(parameters[name])}`;\n })\n .join(\"&\"));\n}\n","const urlVariableRegex = /\\{[^}]+\\}/g;\nfunction removeNonChars(variableName) {\n return variableName.replace(/^\\W+|\\W+$/g, \"\").split(/,/);\n}\nexport function extractUrlVariableNames(url) {\n const matches = url.match(urlVariableRegex);\n if (!matches) {\n return [];\n }\n return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);\n}\n","export function omit(object, keysToOmit) {\n return Object.keys(object)\n .filter((option) => !keysToOmit.includes(option))\n .reduce((obj, key) => {\n obj[key] = object[key];\n return obj;\n }, {});\n}\n","// Based on https://github.com/bramstein/url-template, licensed under BSD\n// TODO: create separate package.\n//\n// Copyright (c) 2012-2014, Bram Stein\n// All rights reserved.\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions\n// are met:\n// 1. Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// 2. Redistributions in binary form must reproduce the above copyright\n// notice, this list of conditions and the following disclaimer in the\n// documentation and/or other materials provided with the distribution.\n// 3. The name of the author may not be used to endorse or promote products\n// derived from this software without specific prior written permission.\n// THIS SOFTWARE IS PROVIDED BY THE AUTHOR \"AS IS\" AND ANY EXPRESS OR IMPLIED\n// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO\n// EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,\n// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\n// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\n// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n/* istanbul ignore file */\nfunction encodeReserved(str) {\n return str\n .split(/(%[0-9A-Fa-f]{2})/g)\n .map(function (part) {\n if (!/%[0-9A-Fa-f]/.test(part)) {\n part = encodeURI(part).replace(/%5B/g, \"[\").replace(/%5D/g, \"]\");\n }\n return part;\n })\n .join(\"\");\n}\nfunction encodeUnreserved(str) {\n return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {\n return \"%\" + c.charCodeAt(0).toString(16).toUpperCase();\n });\n}\nfunction encodeValue(operator, value, key) {\n value =\n operator === \"+\" || operator === \"#\"\n ? encodeReserved(value)\n : encodeUnreserved(value);\n if (key) {\n return encodeUnreserved(key) + \"=\" + value;\n }\n else {\n return value;\n }\n}\nfunction isDefined(value) {\n return value !== undefined && value !== null;\n}\nfunction isKeyOperator(operator) {\n return operator === \";\" || operator === \"&\" || operator === \"?\";\n}\nfunction getValues(context, operator, key, modifier) {\n var value = context[key], result = [];\n if (isDefined(value) && value !== \"\") {\n if (typeof value === \"string\" ||\n typeof value === \"number\" ||\n typeof value === \"boolean\") {\n value = value.toString();\n if (modifier && modifier !== \"*\") {\n value = value.substring(0, parseInt(modifier, 10));\n }\n result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : \"\"));\n }\n else {\n if (modifier === \"*\") {\n if (Array.isArray(value)) {\n value.filter(isDefined).forEach(function (value) {\n result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : \"\"));\n });\n }\n else {\n Object.keys(value).forEach(function (k) {\n if (isDefined(value[k])) {\n result.push(encodeValue(operator, value[k], k));\n }\n });\n }\n }\n else {\n const tmp = [];\n if (Array.isArray(value)) {\n value.filter(isDefined).forEach(function (value) {\n tmp.push(encodeValue(operator, value));\n });\n }\n else {\n Object.keys(value).forEach(function (k) {\n if (isDefined(value[k])) {\n tmp.push(encodeUnreserved(k));\n tmp.push(encodeValue(operator, value[k].toString()));\n }\n });\n }\n if (isKeyOperator(operator)) {\n result.push(encodeUnreserved(key) + \"=\" + tmp.join(\",\"));\n }\n else if (tmp.length !== 0) {\n result.push(tmp.join(\",\"));\n }\n }\n }\n }\n else {\n if (operator === \";\") {\n if (isDefined(value)) {\n result.push(encodeUnreserved(key));\n }\n }\n else if (value === \"\" && (operator === \"&\" || operator === \"?\")) {\n result.push(encodeUnreserved(key) + \"=\");\n }\n else if (value === \"\") {\n result.push(\"\");\n }\n }\n return result;\n}\nexport function parseUrl(template) {\n return {\n expand: expand.bind(null, template),\n };\n}\nfunction expand(template, context) {\n var operators = [\"+\", \"#\", \".\", \"/\", \";\", \"?\", \"&\"];\n return template.replace(/\\{([^\\{\\}]+)\\}|([^\\{\\}]+)/g, function (_, expression, literal) {\n if (expression) {\n let operator = \"\";\n const values = [];\n if (operators.indexOf(expression.charAt(0)) !== -1) {\n operator = expression.charAt(0);\n expression = expression.substr(1);\n }\n expression.split(/,/g).forEach(function (variable) {\n var tmp = /([^:\\*]*)(?::(\\d+)|(\\*))?/.exec(variable);\n values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));\n });\n if (operator && operator !== \"+\") {\n var separator = \",\";\n if (operator === \"?\") {\n separator = \"&\";\n }\n else if (operator !== \"#\") {\n separator = operator;\n }\n return (values.length !== 0 ? operator : \"\") + values.join(separator);\n }\n else {\n return values.join(\",\");\n }\n }\n else {\n return encodeReserved(literal);\n }\n });\n}\n","import { addQueryParameters } from \"./util/add-query-parameters\";\nimport { extractUrlVariableNames } from \"./util/extract-url-variable-names\";\nimport { omit } from \"./util/omit\";\nimport { parseUrl } from \"./util/url-template\";\nexport function parse(options) {\n // https://fetch.spec.whatwg.org/#methods\n let method = options.method.toUpperCase();\n // replace :varname with {varname} to make it RFC 6570 compatible\n let url = (options.url || \"/\").replace(/:([a-z]\\w+)/g, \"{+$1}\");\n let headers = Object.assign({}, options.headers);\n let body;\n let parameters = omit(options, [\n \"method\",\n \"baseUrl\",\n \"url\",\n \"headers\",\n \"request\",\n \"mediaType\",\n ]);\n // extract variable names from URL to calculate remaining variables later\n const urlVariableNames = extractUrlVariableNames(url);\n url = parseUrl(url).expand(parameters);\n if (!/^http/.test(url)) {\n url = options.baseUrl + url;\n }\n const omittedParameters = Object.keys(options)\n .filter((option) => urlVariableNames.includes(option))\n .concat(\"baseUrl\");\n const remainingParameters = omit(parameters, omittedParameters);\n const isBinaryRequset = /application\\/octet-stream/i.test(headers.accept);\n if (!isBinaryRequset) {\n if (options.mediaType.format) {\n // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw\n headers.accept = headers.accept\n .split(/,/)\n .map((preview) => preview.replace(/application\\/vnd(\\.\\w+)(\\.v3)?(\\.\\w+)?(\\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`))\n .join(\",\");\n }\n if (options.mediaType.previews.length) {\n const previewsFromAcceptHeader = headers.accept.match(/[\\w-]+(?=-preview)/g) || [];\n headers.accept = previewsFromAcceptHeader\n .concat(options.mediaType.previews)\n .map((preview) => {\n const format = options.mediaType.format\n ? `.${options.mediaType.format}`\n : \"+json\";\n return `application/vnd.github.${preview}-preview${format}`;\n })\n .join(\",\");\n }\n }\n // for GET/HEAD requests, set URL query parameters from remaining parameters\n // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters\n if ([\"GET\", \"HEAD\"].includes(method)) {\n url = addQueryParameters(url, remainingParameters);\n }\n else {\n if (\"data\" in remainingParameters) {\n body = remainingParameters.data;\n }\n else {\n if (Object.keys(remainingParameters).length) {\n body = remainingParameters;\n }\n else {\n headers[\"content-length\"] = 0;\n }\n }\n }\n // default content-type for JSON if body is set\n if (!headers[\"content-type\"] && typeof body !== \"undefined\") {\n headers[\"content-type\"] = \"application/json; charset=utf-8\";\n }\n // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body.\n // fetch does not allow to set `content-length` header, but we can set body to an empty string\n if ([\"PATCH\", \"PUT\"].includes(method) && typeof body === \"undefined\") {\n body = \"\";\n }\n // Only return body/request keys if present\n return Object.assign({ method, url, headers }, typeof body !== \"undefined\" ? { body } : null, options.request ? { request: options.request } : null);\n}\n","import { merge } from \"./merge\";\nimport { parse } from \"./parse\";\nexport function endpointWithDefaults(defaults, route, options) {\n return parse(merge(defaults, route, options));\n}\n","import { endpointWithDefaults } from \"./endpoint-with-defaults\";\nimport { merge } from \"./merge\";\nimport { parse } from \"./parse\";\nexport function withDefaults(oldDefaults, newDefaults) {\n const DEFAULTS = merge(oldDefaults, newDefaults);\n const endpoint = endpointWithDefaults.bind(null, DEFAULTS);\n return Object.assign(endpoint, {\n DEFAULTS,\n defaults: withDefaults.bind(null, DEFAULTS),\n merge: merge.bind(null, DEFAULTS),\n parse,\n });\n}\n","export const VERSION = \"6.0.2\";\n","import { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nconst userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;\n// DEFAULTS has all properties set that EndpointOptions has, except url.\n// So we use RequestParameters and add method as additional required property.\nexport const DEFAULTS = {\n method: \"GET\",\n baseUrl: \"https://api.github.com\",\n headers: {\n accept: \"application/vnd.github.v3+json\",\n \"user-agent\": userAgent,\n },\n mediaType: {\n format: \"\",\n previews: [],\n },\n};\n","import { withDefaults } from \"./with-defaults\";\nimport { DEFAULTS } from \"./defaults\";\nexport const endpoint = withDefaults(null, DEFAULTS);\n"],"names":[],"mappings":";;;AAAO,SAAS,aAAa,CAAC,MAAM,EAAE;AACtC,IAAI,IAAI,CAAC,MAAM,EAAE;AACjB,QAAQ,OAAO,EAAE,CAAC;AAClB,KAAK;AACL,IAAI,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK;AACvD,QAAQ,MAAM,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AAChD,QAAQ,OAAO,MAAM,CAAC;AACtB,KAAK,EAAE,EAAE,CAAC,CAAC;AACX;;ACPO,SAAS,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE;AAC7C,IAAI,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;AAC/C,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK;AAC1C,QAAQ,IAAI,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE;AACzC,YAAY,IAAI,EAAE,GAAG,IAAI,QAAQ,CAAC;AAClC,gBAAgB,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,G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AE,OAAO,CAAC,CAAC,CAAC;AAClD,CAAC;;ACDM,SAAS,YAAY,CAAC,WAAW,EAAE,WAAW,EAAE;AACvD,IAAI,MAAM,QAAQ,GAAG,KAAK,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AACrD,IAAI,MAAM,QAAQ,GAAG,oBAAoB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC/D,IAAI,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE;AACnC,QAAQ,QAAQ;AAChB,QAAQ,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC;AACnD,QAAQ,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC;AACzC,QAAQ,KAAK;AACb,KAAK,CAAC,CAAC;AACP,CAAC;;ACZM,MAAM,OAAO,GAAG,mBAAmB,CAAC;;ACE3C,MAAM,SAAS,GAAG,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC;AACrE;AACA;AACA,AAAO,MAAM,QAAQ,GAAG;AACxB,IAAI,MAAM,EAAE,KAAK;AACjB,IAAI,OAAO,EAAE,wBAAwB;AACrC,IAAI,OAAO,EAAE;AACb,QAAQ,MAAM,EAAE,gCAAgC;AAChD,QAAQ,YAAY,EAAE,SAAS;AAC/B,KAAK;AACL,IAAI,SAAS,EAAE;AACf,QAAQ,MAAM,EAAE,EAAE;AAClB,QAAQ,QAAQ,EAAE,EAAE;AACpB,KAAK;AACL,CAAC,CAAC;;ACdU,MAAC,QAAQ,GAAG,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC;;;;"}
\ No newline at end of file
diff --git a/node_modules/@octokit/request/node_modules/@octokit/endpoint/package.json b/node_modules/@octokit/request/node_modules/@octokit/endpoint/package.json
deleted file mode 100644
index ca7c780..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/endpoint/package.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "name": "@octokit/endpoint",
- "description": "Turns REST API endpoints into generic request options",
- "version": "6.0.2",
- "license": "MIT",
- "files": [
- "dist-*/",
- "bin/"
- ],
- "pika": true,
- "sideEffects": false,
- "keywords": [
- "octokit",
- "github",
- "api",
- "rest"
- ],
- "homepage": "https://github.com/octokit/endpoint.js#readme",
- "bugs": {
- "url": "https://github.com/octokit/endpoint.js/issues"
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/octokit/endpoint.js.git"
- },
- "dependencies": {
- "@octokit/types": "^4.0.1",
- "is-plain-object": "^3.0.0",
- "universal-user-agent": "^5.0.0"
- },
- "devDependencies": {
- "@pika/pack": "^0.5.0",
- "@pika/plugin-build-node": "^0.9.0",
- "@pika/plugin-build-web": "^0.9.0",
- "@pika/plugin-ts-standard-pkg": "^0.9.0",
- "@types/jest": "^25.1.0",
- "jest": "^26.0.1",
- "prettier": "2.0.5",
- "semantic-release": "^17.0.0",
- "semantic-release-plugin-update-version-in-files": "^1.0.0",
- "ts-jest": "^26.0.0",
- "typescript": "^3.4.5"
- },
- "publishConfig": {
- "access": "public"
- },
- "source": "dist-src/index.js",
- "types": "dist-types/index.d.ts",
- "main": "dist-node/index.js",
- "module": "dist-web/index.js"
-}
diff --git a/node_modules/@octokit/request/node_modules/@octokit/request-error/LICENSE b/node_modules/@octokit/request/node_modules/@octokit/request-error/LICENSE
deleted file mode 100644
index ef2c18e..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/request-error/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License
-
-Copyright (c) 2019 Octokit contributors
-
-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/node_modules/@octokit/request/node_modules/@octokit/request-error/README.md b/node_modules/@octokit/request/node_modules/@octokit/request-error/README.md
deleted file mode 100644
index 315064c..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/request-error/README.md
+++ /dev/null
@@ -1,67 +0,0 @@
-# http-error.js
-
-> Error class for Octokit request errors
-
-[](https://www.npmjs.com/package/@octokit/request-error)
-[](https://github.com/octokit/request-error.js/actions?query=workflow%3ATest)
-
-## Usage
-
-<table>
-<tbody valign=top align=left>
-<tr><th>
-Browsers
-</th><td width=100%>
-Load <code>@octokit/request-error</code> directly from <a href="https://cdn.pika.dev">cdn.pika.dev</a>
-
-```html
-<script type="module">
-import { RequestError } from "https://cdn.pika.dev/@octokit/request-error";
-</script>
-```
-
-</td></tr>
-<tr><th>
-Node
-</th><td>
-
-Install with <code>npm install @octokit/request-error</code>
-
-```js
-const { RequestError } = require("@octokit/request-error");
-// or: import { RequestError } from "@octokit/request-error";
-```
-
-</td></tr>
-</tbody>
-</table>
-
-```js
-const error = new RequestError("Oops", 500, {
- headers: {
- "x-github-request-id": "1:2:3:4",
- }, // response headers
- request: {
- method: "POST",
- url: "https://api.github.com/foo",
- body: {
- bar: "baz",
- },
- headers: {
- authorization: "token secret123",
- },
- },
-});
-
-error.message; // Oops
-error.status; // 500
-error.headers; // { 'x-github-request-id': '1:2:3:4' }
-error.request.method; // POST
-error.request.url; // https://api.github.com/foo
-error.request.body; // { bar: 'baz' }
-error.request.headers; // { authorization: 'token [REDACTED]' }
-```
-
-## LICENSE
-
-[MIT](LICENSE)
diff --git a/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-node/index.js b/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-node/index.js
deleted file mode 100644
index 95b9c57..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-node/index.js
+++ /dev/null
@@ -1,55 +0,0 @@
-'use strict';
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
-
-var deprecation = require('deprecation');
-var once = _interopDefault(require('once'));
-
-const logOnce = once(deprecation => console.warn(deprecation));
-/**
- * Error with extra properties to help with debugging
- */
-
-class RequestError extends Error {
- constructor(message, statusCode, options) {
- super(message); // Maintains proper stack trace (only available on V8)
-
- /* istanbul ignore next */
-
- if (Error.captureStackTrace) {
- Error.captureStackTrace(this, this.constructor);
- }
-
- this.name = "HttpError";
- this.status = statusCode;
- Object.defineProperty(this, "code", {
- get() {
- logOnce(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
- return statusCode;
- }
-
- });
- this.headers = options.headers || {}; // redact request credentials without mutating original request options
-
- const requestCopy = Object.assign({}, options.request);
-
- if (options.request.headers.authorization) {
- requestCopy.headers = Object.assign({}, options.request.headers, {
- authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
- });
- }
-
- requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit
- // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
- .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended
- // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header
- .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
- this.request = requestCopy;
- }
-
-}
-
-exports.RequestError = RequestError;
-//# sourceMappingURL=index.js.map
diff --git a/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-node/index.js.map b/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-node/index.js.map
deleted file mode 100644
index 2562006..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-node/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sources":["../dist-src/index.js"],"sourcesContent":["import { Deprecation } from \"deprecation\";\nimport once from \"once\";\nconst logOnce = once((deprecation) => console.warn(deprecation));\n/**\n * Error with extra properties to help with debugging\n */\nexport class RequestError extends Error {\n constructor(message, statusCode, options) {\n super(message);\n // Maintains proper stack trace (only available on V8)\n /* istanbul ignore next */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n this.name = \"HttpError\";\n this.status = statusCode;\n Object.defineProperty(this, \"code\", {\n get() {\n logOnce(new Deprecation(\"[@octokit/request-error] `error.code` is deprecated, use `error.status`.\"));\n return statusCode;\n },\n });\n this.headers = options.headers || {};\n // redact request credentials without mutating original request options\n const requestCopy = Object.assign({}, options.request);\n if (options.request.headers.authorization) {\n requestCopy.headers = Object.assign({}, options.request.headers, {\n authorization: options.request.headers.authorization.replace(/ .*$/, \" [REDACTED]\"),\n });\n }\n requestCopy.url = requestCopy.url\n // client_id & client_secret can be passed as URL query parameters to increase rate limit\n // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications\n .replace(/\\bclient_secret=\\w+/g, \"client_secret=[REDACTED]\")\n // OAuth tokens can be passed as URL query parameters, although it is not recommended\n // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header\n .replace(/\\baccess_token=\\w+/g, \"access_token=[REDACTED]\");\n this.request = requestCopy;\n }\n}\n"],"names":["logOnce","once","deprecation","console","warn","RequestError","Error","constructor","message","statusCode","options","captureStackTrace","name","status","Object","defineProperty","get","Deprecation","headers","requestCopy","assign","request","authorization","replace","url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c,KAGbD,OAHa,CAGL,sBAHK,EAGmB,0BAHnB;AAKd;AALc,KAMbA,OANa,CAML,qBANK,EAMkB,yBANlB,CAAlB;AAOA,SAAKF,OAAL,GAAeF,WAAf;AACH;;AAhCmC;;;;"}
\ No newline at end of file
diff --git a/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-src/index.js b/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-src/index.js
deleted file mode 100644
index c880b45..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-src/index.js
+++ /dev/null
@@ -1,40 +0,0 @@
-import { Deprecation } from "deprecation";
-import once from "once";
-const logOnce = once((deprecation) => console.warn(deprecation));
-/**
- * Error with extra properties to help with debugging
- */
-export class RequestError extends Error {
- constructor(message, statusCode, options) {
- super(message);
- // Maintains proper stack trace (only available on V8)
- /* istanbul ignore next */
- if (Error.captureStackTrace) {
- Error.captureStackTrace(this, this.constructor);
- }
- this.name = "HttpError";
- this.status = statusCode;
- Object.defineProperty(this, "code", {
- get() {
- logOnce(new Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
- return statusCode;
- },
- });
- this.headers = options.headers || {};
- // redact request credentials without mutating original request options
- const requestCopy = Object.assign({}, options.request);
- if (options.request.headers.authorization) {
- requestCopy.headers = Object.assign({}, options.request.headers, {
- authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]"),
- });
- }
- requestCopy.url = requestCopy.url
- // client_id & client_secret can be passed as URL query parameters to increase rate limit
- // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
- .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]")
- // OAuth tokens can be passed as URL query parameters, although it is not recommended
- // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header
- .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
- this.request = requestCopy;
- }
-}
diff --git a/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-types/index.d.ts b/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-types/index.d.ts
deleted file mode 100644
index baa8a0e..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-types/index.d.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-import { RequestOptions, ResponseHeaders } from "@octokit/types";
-import { RequestErrorOptions } from "./types";
-/**
- * Error with extra properties to help with debugging
- */
-export declare class RequestError extends Error {
- name: "HttpError";
- /**
- * http status code
- */
- status: number;
- /**
- * http status code
- *
- * @deprecated `error.code` is deprecated in favor of `error.status`
- */
- code: number;
- /**
- * error response headers
- */
- headers: ResponseHeaders;
- /**
- * Request options that lead to the error.
- */
- request: RequestOptions;
- constructor(message: string, statusCode: number, options: RequestErrorOptions);
-}
diff --git a/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-types/types.d.ts b/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-types/types.d.ts
deleted file mode 100644
index 865d213..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-types/types.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import { RequestOptions, ResponseHeaders } from "@octokit/types";
-export declare type RequestErrorOptions = {
- headers?: ResponseHeaders;
- request: RequestOptions;
-};
diff --git a/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-web/index.js b/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-web/index.js
deleted file mode 100644
index feec58e..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-web/index.js
+++ /dev/null
@@ -1,44 +0,0 @@
-import { Deprecation } from 'deprecation';
-import once from 'once';
-
-const logOnce = once((deprecation) => console.warn(deprecation));
-/**
- * Error with extra properties to help with debugging
- */
-class RequestError extends Error {
- constructor(message, statusCode, options) {
- super(message);
- // Maintains proper stack trace (only available on V8)
- /* istanbul ignore next */
- if (Error.captureStackTrace) {
- Error.captureStackTrace(this, this.constructor);
- }
- this.name = "HttpError";
- this.status = statusCode;
- Object.defineProperty(this, "code", {
- get() {
- logOnce(new Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
- return statusCode;
- },
- });
- this.headers = options.headers || {};
- // redact request credentials without mutating original request options
- const requestCopy = Object.assign({}, options.request);
- if (options.request.headers.authorization) {
- requestCopy.headers = Object.assign({}, options.request.headers, {
- authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]"),
- });
- }
- requestCopy.url = requestCopy.url
- // client_id & client_secret can be passed as URL query parameters to increase rate limit
- // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
- .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]")
- // OAuth tokens can be passed as URL query parameters, although it is not recommended
- // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header
- .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
- this.request = requestCopy;
- }
-}
-
-export { RequestError };
-//# sourceMappingURL=index.js.map
diff --git a/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-web/index.js.map b/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-web/index.js.map
deleted file mode 100644
index 130740d..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-web/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sources":["../dist-src/index.js"],"sourcesContent":["import { Deprecation } from \"deprecation\";\nimport once from \"once\";\nconst logOnce = once((deprecation) => console.warn(deprecation));\n/**\n * Error with extra properties to help with debugging\n */\nexport class RequestError extends Error {\n constructor(message, statusCode, options) {\n super(message);\n // Maintains proper stack trace (only available on V8)\n /* istanbul ignore next */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n this.name = \"HttpError\";\n this.status = statusCode;\n Object.defineProperty(this, \"code\", {\n get() {\n logOnce(new Deprecation(\"[@octokit/request-error] `error.code` is deprecated, use `error.status`.\"));\n return statusCode;\n },\n });\n this.headers = options.headers || {};\n // redact request credentials without mutating original request options\n const requestCopy = Object.assign({}, options.request);\n if (options.request.headers.authorization) {\n requestCopy.headers = Object.assign({}, options.request.headers, {\n authorization: options.request.headers.authorization.replace(/ .*$/, \" [REDACTED]\"),\n });\n }\n requestCopy.url = requestCopy.url\n // client_id & client_secret can be passed as URL query parameters to increase rate limit\n // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications\n .replace(/\\bclient_secret=\\w+/g, \"client_secret=[REDACTED]\")\n // OAuth tokens can be passed as URL query parameters, although it is not recommended\n // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header\n .replace(/\\baccess_token=\\w+/g, \"access_token=[REDACTED]\");\n this.request = requestCopy;\n }\n}\n"],"names":[],"mappings":";;;AAEA,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;AACjE;AACA;AACA;AACO,MAAM,YAAY,SAAS,KAAK,CAAC;AACxC,IAAI,WAAW,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE;AAC9C,QAAQ,KAAK,CAAC,OAAO,CAAC,CAAC;AACvB;AACA;AACA,QAAQ,IAAI,KAAK,CAAC,iBAAiB,EAAE;AACrC,YAAY,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;AAC5D,SAAS;AACT,QAAQ,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;AAChC,QAAQ,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC;AACjC,QAAQ,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE;AAC5C,YAAY,GAAG,GAAG;AAClB,gBAAgB,OAAO,CAAC,IAAI,WAAW,CAAC,0EAA0E,CAAC,CAAC,CAAC;AACrH,gBAAgB,OAAO,UAAU,CAAC;AAClC,aAAa;AACb,SAAS,CAAC,CAAC;AACX,QAAQ,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;AAC7C;AACA,QAAQ,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;AAC/D,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE;AACnD,YAAY,WAAW,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE;AAC7E,gBAAgB,aAAa,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,MAAM,EAAE,aAAa,CAAC;AACnG,aAAa,CAAC,CAAC;AACf,SAAS;AACT,QAAQ,WAAW,CAAC,GAAG,GAAG,WAAW,CAAC,GAAG;AACzC;AACA;AACA,aAAa,OAAO,CAAC,sBAAsB,EAAE,0BAA0B,CAAC;AACxE;AACA;AACA,aAAa,OAAO,CAAC,qBAAqB,EAAE,yBAAyB,CAAC,CAAC;AACvE,QAAQ,IAAI,CAAC,OAAO,GAAG,WAAW,CAAC;AACnC,KAAK;AACL;;;;"}
\ No newline at end of file
diff --git a/node_modules/@octokit/request/node_modules/@octokit/request-error/package.json b/node_modules/@octokit/request/node_modules/@octokit/request-error/package.json
deleted file mode 100644
index 7559a54..0000000
--- a/node_modules/@octokit/request/node_modules/@octokit/request-error/package.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "name": "@octokit/request-error",
- "description": "Error class for Octokit request errors",
- "version": "2.0.1",
- "license": "MIT",
- "files": [
- "dist-*/",
- "bin/"
- ],
- "pika": true,
- "sideEffects": false,
- "keywords": [
- "octokit",
- "github",
- "api",
- "error"
- ],
- "homepage": "https://github.com/octokit/request-error.js#readme",
- "bugs": {
- "url": "https://github.com/octokit/request-error.js/issues"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/octokit/request-error.js.git"
- },
- "dependencies": {
- "@octokit/types": "^4.0.1",
- "deprecation": "^2.0.0",
- "once": "^1.4.0"
- },
- "devDependencies": {
- "@pika/pack": "^0.5.0",
- "@pika/plugin-build-node": "^0.9.0",
- "@pika/plugin-build-web": "^0.9.0",
- "@pika/plugin-bundle-web": "^0.9.0",
- "@pika/plugin-ts-standard-pkg": "^0.9.0",
- "@types/jest": "^25.1.0",
- "@types/node": "^14.0.4",
- "@types/once": "^1.4.0",
- "jest": "^25.1.0",
- "pika-plugin-unpkg-field": "^1.1.0",
- "prettier": "^2.0.1",
- "semantic-release": "^17.0.0",
- "ts-jest": "^25.1.0",
- "typescript": "^3.4.5"
- },
- "publishConfig": {
- "access": "public"
- },
- "source": "dist-src/index.js",
- "types": "dist-types/index.d.ts",
- "main": "dist-node/index.js",
- "module": "dist-web/index.js"
-}
diff --git a/node_modules/@types/babel__traverse/LICENSE b/node_modules/@types/babel__traverse/LICENSE
index 4b1ad51..9e841e7 100644
--- a/node_modules/@types/babel__traverse/LICENSE
+++ b/node_modules/@types/babel__traverse/LICENSE
@@ -1,21 +1,21 @@
- MIT License
-
- Copyright (c) Microsoft Corporation. All rights reserved.
-
- 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
+ MIT License
+
+ Copyright (c) Microsoft Corporation.
+
+ 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/node_modules/@types/babel__traverse/README.md b/node_modules/@types/babel__traverse/README.md
index f2e1c54..ddd8134 100644
--- a/node_modules/@types/babel__traverse/README.md
+++ b/node_modules/@types/babel__traverse/README.md
@@ -2,15 +2,15 @@
> `npm install --save @types/babel__traverse`
# Summary
-This package contains type definitions for @babel/traverse ( https://github.com/babel/babel/tree/master/packages/babel-traverse ).
+This package contains type definitions for @babel/traverse (https://github.com/babel/babel/tree/main/packages/babel-traverse).
# Details
-Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__traverse
+Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babel__traverse.
-Additional Details
- * Last updated: Tue, 11 Jun 2019 02:00:21 GMT
- * Dependencies: @types/babel__types
+### Additional Details
+ * Last updated: Fri, 25 Sep 2020 23:55:30 GMT
+ * Dependencies: [@types/babel__types](https://npmjs.com/package/@types/babel__types)
* Global values: none
# Credits
-These definitions were written by Troy Gerwien <https://github.com/yortus>, Marvin Hagemeister <https://github.com/marvinhagemeister>, Ryan Petrich <https://github.com/rpetrich>, Melvin Groenhoff <https://github.com/mgroenhoff>.
+These definitions were written by [Troy Gerwien](https://github.com/yortus), [Marvin Hagemeister](https://github.com/marvinhagemeister), [Ryan Petrich](https://github.com/rpetrich), [Melvin Groenhoff](https://github.com/mgroenhoff), [Dean L.](https://github.com/dlgrit), [Ifiok Jr.](https://github.com/ifiokjr), and [ExE Boss](https://github.com/ExE-Boss).
diff --git a/node_modules/@types/babel__traverse/index.d.ts b/node_modules/@types/babel__traverse/index.d.ts
index 0e9ff76..827bae1 100644
--- a/node_modules/@types/babel__traverse/index.d.ts
+++ b/node_modules/@types/babel__traverse/index.d.ts
@@ -1,44 +1,80 @@
// Type definitions for @babel/traverse 7.0
-// Project: https://github.com/babel/babel/tree/master/packages/babel-traverse, https://babeljs.io
+// Project: https://github.com/babel/babel/tree/main/packages/babel-traverse, https://babeljs.io
// Definitions by: Troy Gerwien <https://github.com/yortus>
// Marvin Hagemeister <https://github.com/marvinhagemeister>
// Ryan Petrich <https://github.com/rpetrich>
// Melvin Groenhoff <https://github.com/mgroenhoff>
+// Dean L. <https://github.com/dlgrit>
+// Ifiok Jr. <https://github.com/ifiokjr>
+// ExE Boss <https://github.com/ExE-Boss>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-// TypeScript Version: 2.9
+// Minimum TypeScript Version: 3.4
-import * as t from "@babel/types";
+import * as t from '@babel/types';
+export import Node = t.Node;
-export type Node = t.Node;
+declare const traverse: {
+ <S>(
+ parent: Node | Node[] | null | undefined,
+ opts: TraverseOptions<S>,
+ scope: Scope | undefined,
+ state: S,
+ parentPath?: NodePath,
+ ): void;
+ (
+ parent: Node | Node[] | null | undefined,
+ opts?: TraverseOptions,
+ scope?: Scope,
+ state?: any,
+ parentPath?: NodePath,
+ ): void;
-export default function traverse<S>(
- parent: Node | Node[],
- opts: TraverseOptions<S>,
- scope: Scope | undefined,
- state: S,
- parentPath?: NodePath,
-): void;
-export default function traverse(
- parent: Node | Node[],
- opts: TraverseOptions,
- scope?: Scope,
- state?: any,
- parentPath?: NodePath,
-): void;
+ visitors: typeof visitors;
+ verify: typeof visitors.verify;
+ explode: typeof visitors.explode;
+};
+
+export namespace visitors {
+ /**
+ * `explode()` will take a `Visitor` object with all of the various shorthands
+ * that we support, and validates & normalizes it into a common format, ready
+ * to be used in traversal.
+ *
+ * The various shorthands are:
+ * - `Identifier() { ... }` -> `Identifier: { enter() { ... } }`
+ * - `"Identifier|NumericLiteral": { ... }` -> `Identifier: { ... }, NumericLiteral: { ... }`
+ * - Aliases in `@babel/types`: e.g. `Property: { ... }` -> `ObjectProperty: { ... }, ClassProperty: { ... }`
+ *
+ * Other normalizations are:
+ * - Visitors of virtual types are wrapped, so that they are only visited when their dynamic check passes
+ * - `enter` and `exit` functions are wrapped in arrays, to ease merging of visitors
+ */
+ function explode<S = {}>(
+ visitor: Visitor<S>,
+ ): {
+ [Type in Node['type']]?: VisitNodeObject<S, Extract<Node, { type: Type }>>;
+ };
+ function verify(visitor: Visitor): void;
+ function merge<S = {}>(visitors: Array<Visitor<S>>, states?: S[]): Visitor<unknown>;
+}
+
+export default traverse;
export interface TraverseOptions<S = Node> extends Visitor<S> {
scope?: Scope;
noScope?: boolean;
}
+export type ArrayKeys<T> = { [P in keyof T]: T[P] extends any[] ? P : never }[keyof T];
+
export class Scope {
constructor(path: NodePath, parentScope?: Scope);
path: NodePath;
block: Node;
parentBlock: Node;
parent: Scope;
- hub: Hub;
- bindings: { [name: string]: Binding; };
+ hub: HubInterface;
+ bindings: { [name: string]: Binding };
/** Traverse node with current scope and path. */
traverse<S>(node: Node | Node[], opts: TraverseOptions<S>, state: S): void;
@@ -102,12 +138,7 @@
removeData(key: string): void;
- push(opts: {
- id: t.LVal,
- init?: t.Expression,
- unique?: boolean,
- kind?: "var" | "let" | "const",
- }): void;
+ push(opts: { id: t.LVal; init?: t.Expression; unique?: boolean; kind?: 'var' | 'let' | 'const' }): void;
getProgramParent(): Scope;
@@ -143,11 +174,17 @@
}
export class Binding {
- constructor(opts: { existing: Binding; identifier: t.Identifier; scope: Scope; path: NodePath; kind: "var" | "let" | "const"; });
+ constructor(opts: {
+ existing: Binding;
+ identifier: t.Identifier;
+ scope: Scope;
+ path: NodePath;
+ kind: 'var' | 'let' | 'const';
+ });
identifier: t.Identifier;
scope: Scope;
path: NodePath;
- kind: "var" | "let" | "const" | "module";
+ kind: 'var' | 'let' | 'const' | 'module';
referenced: boolean;
references: number;
referencePaths: NodePath[];
@@ -155,21 +192,29 @@
constantViolations: NodePath[];
}
-export type Visitor<S = {}> = VisitNodeObject<S, Node> & {
- [Type in Node["type"]]?: VisitNode<S, Extract<Node, { type: Type; }>>;
-} & {
- [K in keyof t.Aliases]?: VisitNode<S, t.Aliases[K]>
-};
+export type Visitor<S = {}> = VisitNodeObject<S, Node> &
+ {
+ [Type in Node['type']]?: VisitNode<S, Extract<Node, { type: Type }>>;
+ } &
+ {
+ [K in keyof t.Aliases]?: VisitNode<S, t.Aliases[K]>;
+ };
-export type VisitNode<S, P> = VisitNodeFunction<S, P> | VisitNodeObject<S, P>;
+export type VisitNode<S, P extends Node> = VisitNodeFunction<S, P> | VisitNodeObject<S, P>;
-export type VisitNodeFunction<S, P> = (this: S, path: NodePath<P>, state: S) => void;
+export type VisitNodeFunction<S, P extends Node> = (this: S, path: NodePath<P>, state: S) => void;
-export interface VisitNodeObject<S, P> {
+export interface VisitNodeObject<S, P extends Node> {
enter?: VisitNodeFunction<S, P>;
exit?: VisitNodeFunction<S, P>;
}
+export type NodePaths<T extends Node | readonly Node[]> = T extends readonly Node[]
+ ? { -readonly [K in keyof T]: NodePath<Extract<T[K], Node>> }
+ : T extends Node
+ ? [NodePath<T>]
+ : never;
+
export class NodePath<T = Node> {
constructor(hub: Hub, parent: Node);
parent: Node;
@@ -191,7 +236,7 @@
key: string | number;
node: T;
scope: Scope;
- type: T extends undefined | null ? string | null : string;
+ type: T extends null | undefined ? undefined : T extends Node ? T['type'] : string | undefined;
typeAnnotation: object;
getScope(scope: Scope): Scope;
@@ -212,20 +257,36 @@
// Example: https://github.com/babel/babel/blob/63204ae51e020d84a5b246312f5eeb4d981ab952/packages/babel-traverse/src/path/modification.js#L83
debug(buildMessage: () => string): void;
- // ------------------------- ancestry -------------------------
- /**
- * Call the provided `callback` with the `NodePath`s of all the parents.
- * When the `callback` returns a truthy value, we return that node path.
- */
- findParent(callback: (path: NodePath) => boolean): NodePath;
+ static get<C extends Node, K extends keyof C>(opts: {
+ hub: HubInterface;
+ parentPath: NodePath | null;
+ parent: Node;
+ container: C;
+ listKey?: string;
+ key: K;
+ }): NodePath<C[K]>;
- find(callback: (path: NodePath) => boolean): NodePath;
+ //#region ------------------------- ancestry -------------------------
+ /**
+ * Starting at the parent path of the current `NodePath` and going up the
+ * tree, return the first `NodePath` that causes the provided `callback`
+ * to return a truthy value, or `null` if the `callback` never returns a
+ * truthy value.
+ */
+ findParent(callback: (path: NodePath) => boolean): NodePath | null;
+
+ /**
+ * Starting at current `NodePath` and going up the tree, return the first
+ * `NodePath` that causes the provided `callback` to return a truthy value,
+ * or `null` if the `callback` never returns a truthy value.
+ */
+ find(callback: (path: NodePath) => boolean): NodePath | null;
/** Get the parent function of the current path. */
- getFunctionParent(): NodePath<t.Function>;
+ getFunctionParent(): NodePath<t.Function> | null;
/** Walk up the tree until we hit a parent node path in a list. */
- getStatementParent(): NodePath<t.Statement>;
+ getStatementParent(): NodePath<t.Statement> | null;
/**
* Get the deepest common ancestor and then from it, get the earliest relationship path
@@ -234,12 +295,12 @@
* Earliest is defined as being "before" all the other nodes in terms of list container
* position and visiting key.
*/
- getEarliestCommonAncestorFrom(paths: NodePath[]): NodePath[];
+ getEarliestCommonAncestorFrom(paths: NodePath[]): NodePath;
/** Get the earliest path in the tree where the provided `paths` intersect. */
getDeepestCommonAncestorFrom(
paths: NodePath[],
- filter?: (deepest: Node, i: number, ancestries: NodePath[]) => NodePath
+ filter?: (deepest: Node, i: number, ancestries: NodePath[]) => NodePath,
): NodePath;
/**
@@ -247,11 +308,22 @@
*
* NOTE: The current node path is included in this.
*/
- getAncestry(): NodePath[];
+ getAncestry(): [this, ...NodePath[]];
+
+ /**
+ * A helper to find if `this` path is an ancestor of `maybeDescendant`
+ */
+ isAncestor(maybeDescendant: NodePath): boolean;
+
+ /**
+ * A helper to find if `this` path is a descendant of `maybeAncestor`
+ */
+ isDescendant(maybeAncestor: NodePath): boolean;
inType(...candidateTypes: string[]): boolean;
+ //#endregion
- // ------------------------- inference -------------------------
+ //#region ------------------------- inference -------------------------
/** Infer the type of the current `NodePath`. */
getTypeAnnotation(): t.FlowType;
@@ -262,8 +334,9 @@
baseTypeStrictlyMatches(right: NodePath): boolean;
isGenericType(genericName: string): boolean;
+ //#endregion
- // ------------------------- replacement -------------------------
+ //#region ------------------------- replacement -------------------------
/**
* Replace a node with an array of multiple. This method performs the following steps:
*
@@ -271,7 +344,7 @@
* - Insert the provided nodes after the current node.
* - Remove the current node.
*/
- replaceWithMultiple(nodes: Node[]): void;
+ replaceWithMultiple<Nodes extends readonly Node[]>(nodes: Nodes): NodePaths<Nodes>;
/**
* Parse a string as an expression and replace the current node with the result.
@@ -280,21 +353,22 @@
* transforming ASTs is an antipattern and SHOULD NOT be encouraged. Even if it's
* easier to use, your transforms will be extremely brittle.
*/
- replaceWithSourceString(replacement: any): void;
+ replaceWithSourceString(replacement: any): [NodePath];
/** Replace the current node with another. */
- replaceWith(replacement: Node | NodePath): void;
+ replaceWith<T extends Node>(replacement: T | NodePath<T>): [NodePath<T>];
/**
* This method takes an array of statements nodes and then explodes it
* into expressions. This method retains completion records which is
* extremely important to retain original semantics.
*/
- replaceExpressionWithStatements(nodes: Node[]): Node;
+ replaceExpressionWithStatements<Nodes extends readonly Node[]>(nodes: Nodes): NodePaths<Nodes>;
- replaceInline(nodes: Node | Node[]): void;
+ replaceInline<Nodes extends Node | readonly Node[]>(nodes: Nodes): NodePaths<Nodes>;
+ //#endregion
- // ------------------------- evaluation -------------------------
+ //#region ------------------------- evaluation -------------------------
/**
* Walk the input `node` and statically evaluate if it's truthy.
*
@@ -319,8 +393,9 @@
* t.evaluate(parse("foo + foo")) // { confident: false, value: undefined }
*/
evaluate(): { confident: boolean; value: any };
+ //#endregion
- // ------------------------- introspection -------------------------
+ //#region ------------------------- introspection -------------------------
/**
* Match the current node if it matches the provided `pattern`.
*
@@ -389,8 +464,9 @@
/** Check if the current path will maybe execute before another path */
willIMaybeExecuteBefore(path: NodePath): boolean;
+ //#endregion
- // ------------------------- context -------------------------
+ //#region ------------------------- context -------------------------
call(key: string): boolean;
isBlacklisted(): boolean;
@@ -410,27 +486,44 @@
popContext(): void;
pushContext(context: TraversalContext): void;
+ //#endregion
- // ------------------------- removal -------------------------
+ //#region ------------------------- removal -------------------------
remove(): void;
+ //#endregion
- // ------------------------- modification -------------------------
+ //#region ------------------------- modification -------------------------
/** Insert the provided nodes before the current one. */
- insertBefore(nodes: Node | Node[]): any;
+ insertBefore<Nodes extends Node | readonly Node[]>(nodes: Nodes): NodePaths<Nodes>;
/**
* Insert the provided nodes after the current one. When inserting nodes after an
* expression, ensure that the completion record is correct by pushing the current node.
*/
- insertAfter(nodes: Node | Node[]): any;
+ insertAfter<Nodes extends Node | readonly Node[]>(nodes: Nodes): NodePaths<Nodes>;
/** Update all sibling node paths after `fromIndex` by `incrementBy`. */
updateSiblingKeys(fromIndex: number, incrementBy: number): void;
+ /**
+ * Insert child nodes at the start of the current node.
+ * @param listKey - The key at which the child nodes are stored (usually body).
+ * @param nodes - the nodes to insert.
+ */
+ unshiftContainer<Nodes extends Node | readonly Node[]>(listKey: ArrayKeys<T>, nodes: Nodes): NodePaths<Nodes>;
+
+ /**
+ * Insert child nodes at the end of the current node.
+ * @param listKey - The key at which the child nodes are stored (usually body).
+ * @param nodes - the nodes to insert.
+ */
+ pushContainer<Nodes extends Node | readonly Node[]>(listKey: ArrayKeys<T>, nodes: Nodes): NodePaths<Nodes>;
+
/** Hoist the current node to the highest scope possible and return a UID referencing it. */
hoist(scope: Scope): void;
+ //#endregion
- // ------------------------- family -------------------------
+ //#region ------------------------- family -------------------------
getOpposite(): NodePath;
getCompletionRecords(): NodePath[];
@@ -439,17 +532,22 @@
getAllPrevSiblings(): NodePath[];
getAllNextSiblings(): NodePath[];
- get<K extends keyof T>(key: K, context?: boolean | TraversalContext):
- T[K] extends Array<Node | null | undefined> ? Array<NodePath<T[K][number]>> :
- T[K] extends Node | null | undefined ? NodePath<T[K]> :
- never;
+ get<K extends keyof T>(
+ key: K,
+ context?: boolean | TraversalContext,
+ ): T[K] extends Array<Node | null | undefined>
+ ? Array<NodePath<T[K][number]>>
+ : T[K] extends Node | null | undefined
+ ? NodePath<T[K]>
+ : never;
get(key: string, context?: boolean | TraversalContext): NodePath | NodePath[];
getBindingIdentifiers(duplicates?: boolean): Node[];
getOuterBindingIdentifiers(duplicates?: boolean): Node[];
+ //#endregion
- // ------------------------- comments -------------------------
+ //#region ------------------------- comments -------------------------
/** Share comments amongst siblings. */
shareCommentsWithSiblings(): void;
@@ -457,368 +555,602 @@
/** Give node `comments` of the specified `type`. */
addComments(type: string, comments: any[]): void;
+ //#endregion
- // ------------------------- isXXX -------------------------
- isArrayExpression(opts?: object): this is NodePath<t.ArrayExpression>;
- isAssignmentExpression(opts?: object): this is NodePath<t.AssignmentExpression>;
- isBinaryExpression(opts?: object): this is NodePath<t.BinaryExpression>;
- isDirective(opts?: object): this is NodePath<t.Directive>;
- isDirectiveLiteral(opts?: object): this is NodePath<t.DirectiveLiteral>;
- isBlockStatement(opts?: object): this is NodePath<t.BlockStatement>;
- isBreakStatement(opts?: object): this is NodePath<t.BreakStatement>;
- isCallExpression(opts?: object): this is NodePath<t.CallExpression>;
- isCatchClause(opts?: object): this is NodePath<t.CatchClause>;
- isConditionalExpression(opts?: object): this is NodePath<t.ConditionalExpression>;
- isContinueStatement(opts?: object): this is NodePath<t.ContinueStatement>;
- isDebuggerStatement(opts?: object): this is NodePath<t.DebuggerStatement>;
- isDoWhileStatement(opts?: object): this is NodePath<t.DoWhileStatement>;
- isEmptyStatement(opts?: object): this is NodePath<t.EmptyStatement>;
- isExpressionStatement(opts?: object): this is NodePath<t.ExpressionStatement>;
- isFile(opts?: object): this is NodePath<t.File>;
- isForInStatement(opts?: object): this is NodePath<t.ForInStatement>;
- isForStatement(opts?: object): this is NodePath<t.ForStatement>;
- isFunctionDeclaration(opts?: object): this is NodePath<t.FunctionDeclaration>;
- isFunctionExpression(opts?: object): this is NodePath<t.FunctionExpression>;
- isIdentifier(opts?: object): this is NodePath<t.Identifier>;
- isIfStatement(opts?: object): this is NodePath<t.IfStatement>;
- isLabeledStatement(opts?: object): this is NodePath<t.LabeledStatement>;
- isStringLiteral(opts?: object): this is NodePath<t.StringLiteral>;
- isNumericLiteral(opts?: object): this is NodePath<t.NumericLiteral>;
- isNullLiteral(opts?: object): this is NodePath<t.NullLiteral>;
- isBooleanLiteral(opts?: object): this is NodePath<t.BooleanLiteral>;
- isRegExpLiteral(opts?: object): this is NodePath<t.RegExpLiteral>;
- isLogicalExpression(opts?: object): this is NodePath<t.LogicalExpression>;
- isMemberExpression(opts?: object): this is NodePath<t.MemberExpression>;
- isNewExpression(opts?: object): this is NodePath<t.NewExpression>;
- isProgram(opts?: object): this is NodePath<t.Program>;
- isObjectExpression(opts?: object): this is NodePath<t.ObjectExpression>;
- isObjectMethod(opts?: object): this is NodePath<t.ObjectMethod>;
- isObjectProperty(opts?: object): this is NodePath<t.ObjectProperty>;
- isRestElement(opts?: object): this is NodePath<t.RestElement>;
- isReturnStatement(opts?: object): this is NodePath<t.ReturnStatement>;
- isSequenceExpression(opts?: object): this is NodePath<t.SequenceExpression>;
- isSwitchCase(opts?: object): this is NodePath<t.SwitchCase>;
- isSwitchStatement(opts?: object): this is NodePath<t.SwitchStatement>;
- isThisExpression(opts?: object): this is NodePath<t.ThisExpression>;
- isThrowStatement(opts?: object): this is NodePath<t.ThrowStatement>;
- isTryStatement(opts?: object): this is NodePath<t.TryStatement>;
- isUnaryExpression(opts?: object): this is NodePath<t.UnaryExpression>;
- isUpdateExpression(opts?: object): this is NodePath<t.UpdateExpression>;
- isVariableDeclaration(opts?: object): this is NodePath<t.VariableDeclaration>;
- isVariableDeclarator(opts?: object): this is NodePath<t.VariableDeclarator>;
- isWhileStatement(opts?: object): this is NodePath<t.WhileStatement>;
- isWithStatement(opts?: object): this is NodePath<t.WithStatement>;
- isAssignmentPattern(opts?: object): this is NodePath<t.AssignmentPattern>;
- isArrayPattern(opts?: object): this is NodePath<t.ArrayPattern>;
- isArrowFunctionExpression(opts?: object): this is NodePath<t.ArrowFunctionExpression>;
- isClassBody(opts?: object): this is NodePath<t.ClassBody>;
- isClassDeclaration(opts?: object): this is NodePath<t.ClassDeclaration>;
- isClassExpression(opts?: object): this is NodePath<t.ClassExpression>;
- isExportAllDeclaration(opts?: object): this is NodePath<t.ExportAllDeclaration>;
- isExportDefaultDeclaration(opts?: object): this is NodePath<t.ExportDefaultDeclaration>;
- isExportNamedDeclaration(opts?: object): this is NodePath<t.ExportNamedDeclaration>;
- isExportSpecifier(opts?: object): this is NodePath<t.ExportSpecifier>;
- isForOfStatement(opts?: object): this is NodePath<t.ForOfStatement>;
- isImportDeclaration(opts?: object): this is NodePath<t.ImportDeclaration>;
- isImportDefaultSpecifier(opts?: object): this is NodePath<t.ImportDefaultSpecifier>;
- isImportNamespaceSpecifier(opts?: object): this is NodePath<t.ImportNamespaceSpecifier>;
- isImportSpecifier(opts?: object): this is NodePath<t.ImportSpecifier>;
- isMetaProperty(opts?: object): this is NodePath<t.MetaProperty>;
- isClassMethod(opts?: object): this is NodePath<t.ClassMethod>;
- isObjectPattern(opts?: object): this is NodePath<t.ObjectPattern>;
- isSpreadElement(opts?: object): this is NodePath<t.SpreadElement>;
- isSuper(opts?: object): this is NodePath<t.Super>;
- isTaggedTemplateExpression(opts?: object): this is NodePath<t.TaggedTemplateExpression>;
- isTemplateElement(opts?: object): this is NodePath<t.TemplateElement>;
- isTemplateLiteral(opts?: object): this is NodePath<t.TemplateLiteral>;
- isYieldExpression(opts?: object): this is NodePath<t.YieldExpression>;
- isAnyTypeAnnotation(opts?: object): this is NodePath<t.AnyTypeAnnotation>;
- isArrayTypeAnnotation(opts?: object): this is NodePath<t.ArrayTypeAnnotation>;
- isBooleanTypeAnnotation(opts?: object): this is NodePath<t.BooleanTypeAnnotation>;
- isBooleanLiteralTypeAnnotation(opts?: object): this is NodePath<t.BooleanLiteralTypeAnnotation>;
- isNullLiteralTypeAnnotation(opts?: object): this is NodePath<t.NullLiteralTypeAnnotation>;
- isClassImplements(opts?: object): this is NodePath<t.ClassImplements>;
- isClassProperty(opts?: object): this is NodePath<t.ClassProperty>;
- isDeclareClass(opts?: object): this is NodePath<t.DeclareClass>;
- isDeclareFunction(opts?: object): this is NodePath<t.DeclareFunction>;
- isDeclareInterface(opts?: object): this is NodePath<t.DeclareInterface>;
- isDeclareModule(opts?: object): this is NodePath<t.DeclareModule>;
- isDeclareTypeAlias(opts?: object): this is NodePath<t.DeclareTypeAlias>;
- isDeclareVariable(opts?: object): this is NodePath<t.DeclareVariable>;
- isFunctionTypeAnnotation(opts?: object): this is NodePath<t.FunctionTypeAnnotation>;
- isFunctionTypeParam(opts?: object): this is NodePath<t.FunctionTypeParam>;
- isGenericTypeAnnotation(opts?: object): this is NodePath<t.GenericTypeAnnotation>;
- isInterfaceExtends(opts?: object): this is NodePath<t.InterfaceExtends>;
- isInterfaceDeclaration(opts?: object): this is NodePath<t.InterfaceDeclaration>;
- isIntersectionTypeAnnotation(opts?: object): this is NodePath<t.IntersectionTypeAnnotation>;
- isMixedTypeAnnotation(opts?: object): this is NodePath<t.MixedTypeAnnotation>;
- isNullableTypeAnnotation(opts?: object): this is NodePath<t.NullableTypeAnnotation>;
- isNumberTypeAnnotation(opts?: object): this is NodePath<t.NumberTypeAnnotation>;
- isStringLiteralTypeAnnotation(opts?: object): this is NodePath<t.StringLiteralTypeAnnotation>;
- isStringTypeAnnotation(opts?: object): this is NodePath<t.StringTypeAnnotation>;
- isThisTypeAnnotation(opts?: object): this is NodePath<t.ThisTypeAnnotation>;
- isTupleTypeAnnotation(opts?: object): this is NodePath<t.TupleTypeAnnotation>;
- isTypeofTypeAnnotation(opts?: object): this is NodePath<t.TypeofTypeAnnotation>;
- isTypeAlias(opts?: object): this is NodePath<t.TypeAlias>;
- isTypeAnnotation(opts?: object): this is NodePath<t.TypeAnnotation>;
- isTypeCastExpression(opts?: object): this is NodePath<t.TypeCastExpression>;
- isTypeParameterDeclaration(opts?: object): this is NodePath<t.TypeParameterDeclaration>;
- isTypeParameterInstantiation(opts?: object): this is NodePath<t.TypeParameterInstantiation>;
- isObjectTypeAnnotation(opts?: object): this is NodePath<t.ObjectTypeAnnotation>;
- isObjectTypeCallProperty(opts?: object): this is NodePath<t.ObjectTypeCallProperty>;
- isObjectTypeIndexer(opts?: object): this is NodePath<t.ObjectTypeIndexer>;
- isObjectTypeProperty(opts?: object): this is NodePath<t.ObjectTypeProperty>;
- isQualifiedTypeIdentifier(opts?: object): this is NodePath<t.QualifiedTypeIdentifier>;
- isUnionTypeAnnotation(opts?: object): this is NodePath<t.UnionTypeAnnotation>;
- isVoidTypeAnnotation(opts?: object): this is NodePath<t.VoidTypeAnnotation>;
- isJSXAttribute(opts?: object): this is NodePath<t.JSXAttribute>;
- isJSXClosingElement(opts?: object): this is NodePath<t.JSXClosingElement>;
- isJSXElement(opts?: object): this is NodePath<t.JSXElement>;
- isJSXEmptyExpression(opts?: object): this is NodePath<t.JSXEmptyExpression>;
- isJSXExpressionContainer(opts?: object): this is NodePath<t.JSXExpressionContainer>;
- isJSXIdentifier(opts?: object): this is NodePath<t.JSXIdentifier>;
- isJSXMemberExpression(opts?: object): this is NodePath<t.JSXMemberExpression>;
- isJSXNamespacedName(opts?: object): this is NodePath<t.JSXNamespacedName>;
- isJSXOpeningElement(opts?: object): this is NodePath<t.JSXOpeningElement>;
- isJSXSpreadAttribute(opts?: object): this is NodePath<t.JSXSpreadAttribute>;
- isJSXText(opts?: object): this is NodePath<t.JSXText>;
- isNoop(opts?: object): this is NodePath<t.Noop>;
- isParenthesizedExpression(opts?: object): this is NodePath<t.ParenthesizedExpression>;
- isAwaitExpression(opts?: object): this is NodePath<t.AwaitExpression>;
- isBindExpression(opts?: object): this is NodePath<t.BindExpression>;
- isDecorator(opts?: object): this is NodePath<t.Decorator>;
- isDoExpression(opts?: object): this is NodePath<t.DoExpression>;
- isExportDefaultSpecifier(opts?: object): this is NodePath<t.ExportDefaultSpecifier>;
- isExportNamespaceSpecifier(opts?: object): this is NodePath<t.ExportNamespaceSpecifier>;
- isRestProperty(opts?: object): this is NodePath<t.RestProperty>;
- isSpreadProperty(opts?: object): this is NodePath<t.SpreadProperty>;
- isExpression(opts?: object): this is NodePath<t.Expression>;
- isBinary(opts?: object): this is NodePath<t.Binary>;
- isScopable(opts?: object): this is NodePath<t.Scopable>;
- isBlockParent(opts?: object): this is NodePath<t.BlockParent>;
- isBlock(opts?: object): this is NodePath<t.Block>;
- isStatement(opts?: object): this is NodePath<t.Statement>;
- isTerminatorless(opts?: object): this is NodePath<t.Terminatorless>;
- isCompletionStatement(opts?: object): this is NodePath<t.CompletionStatement>;
- isConditional(opts?: object): this is NodePath<t.Conditional>;
- isLoop(opts?: object): this is NodePath<t.Loop>;
- isWhile(opts?: object): this is NodePath<t.While>;
- isExpressionWrapper(opts?: object): this is NodePath<t.ExpressionWrapper>;
- isFor(opts?: object): this is NodePath<t.For>;
- isForXStatement(opts?: object): this is NodePath<t.ForXStatement>;
- isFunction(opts?: object): this is NodePath<t.Function>;
- isFunctionParent(opts?: object): this is NodePath<t.FunctionParent>;
- isPureish(opts?: object): this is NodePath<t.Pureish>;
- isDeclaration(opts?: object): this is NodePath<t.Declaration>;
- isLVal(opts?: object): this is NodePath<t.LVal>;
- isLiteral(opts?: object): this is NodePath<t.Literal>;
- isImmutable(opts?: object): this is NodePath<t.Immutable>;
- isUserWhitespacable(opts?: object): this is NodePath<t.UserWhitespacable>;
- isMethod(opts?: object): this is NodePath<t.Method>;
- isObjectMember(opts?: object): this is NodePath<t.ObjectMember>;
- isProperty(opts?: object): this is NodePath<t.Property>;
- isUnaryLike(opts?: object): this is NodePath<t.UnaryLike>;
- isPattern(opts?: object): this is NodePath<t.Pattern>;
- isClass(opts?: object): this is NodePath<t.Class>;
- isModuleDeclaration(opts?: object): this is NodePath<t.ModuleDeclaration>;
- isExportDeclaration(opts?: object): this is NodePath<t.ExportDeclaration>;
- isModuleSpecifier(opts?: object): this is NodePath<t.ModuleSpecifier>;
- isFlow(opts?: object): this is NodePath<t.Flow>;
- isFlowBaseAnnotation(opts?: object): this is NodePath<t.FlowBaseAnnotation>;
- isFlowDeclaration(opts?: object): this is NodePath<t.FlowDeclaration>;
- isJSX(opts?: object): this is NodePath<t.JSX>;
- isNumberLiteral(opts?: object): this is NodePath<t.NumericLiteral>;
- isRegexLiteral(opts?: object): this is NodePath<t.RegExpLiteral>;
- isReferencedIdentifier(opts?: object): this is NodePath<t.Identifier | t.JSXIdentifier>;
- isReferencedMemberExpression(opts?: object): this is NodePath<t.MemberExpression>;
- isBindingIdentifier(opts?: object): this is NodePath<t.Identifier>;
- isScope(opts?: object): this is NodePath<t.Scopable>;
- isReferenced(opts?: object): boolean;
- isBlockScoped(opts?: object): this is NodePath<t.FunctionDeclaration | t.ClassDeclaration | t.VariableDeclaration>;
- isVar(opts?: object): this is NodePath<t.VariableDeclaration>;
- isUser(opts?: object): boolean;
- isGenerated(opts?: object): boolean;
- isPure(opts?: object): boolean;
+ //#region ------------------------- isXXX -------------------------
+ isAnyTypeAnnotation(props?: object | null): this is NodePath<t.AnyTypeAnnotation>;
+ isArrayExpression(props?: object | null): this is NodePath<t.ArrayExpression>;
+ isArrayPattern(props?: object | null): this is NodePath<t.ArrayPattern>;
+ isArrayTypeAnnotation(props?: object | null): this is NodePath<t.ArrayTypeAnnotation>;
+ isArrowFunctionExpression(props?: object | null): this is NodePath<t.ArrowFunctionExpression>;
+ isAssignmentExpression(props?: object | null): this is NodePath<t.AssignmentExpression>;
+ isAssignmentPattern(props?: object | null): this is NodePath<t.AssignmentPattern>;
+ isAwaitExpression(props?: object | null): this is NodePath<t.AwaitExpression>;
+ isBigIntLiteral(props?: object | null): this is NodePath<t.BigIntLiteral>;
+ isBinary(props?: object | null): this is NodePath<t.Binary>;
+ isBinaryExpression(props?: object | null): this is NodePath<t.BinaryExpression>;
+ isBindExpression(props?: object | null): this is NodePath<t.BindExpression>;
+ isBlock(props?: object | null): this is NodePath<t.Block>;
+ isBlockParent(props?: object | null): this is NodePath<t.BlockParent>;
+ isBlockStatement(props?: object | null): this is NodePath<t.BlockStatement>;
+ isBooleanLiteral(props?: object | null): this is NodePath<t.BooleanLiteral>;
+ isBooleanLiteralTypeAnnotation(props?: object | null): this is NodePath<t.BooleanLiteralTypeAnnotation>;
+ isBooleanTypeAnnotation(props?: object | null): this is NodePath<t.BooleanTypeAnnotation>;
+ isBreakStatement(props?: object | null): this is NodePath<t.BreakStatement>;
+ isCallExpression(props?: object | null): this is NodePath<t.CallExpression>;
+ isCatchClause(props?: object | null): this is NodePath<t.CatchClause>;
+ isClass(props?: object | null): this is NodePath<t.Class>;
+ isClassBody(props?: object | null): this is NodePath<t.ClassBody>;
+ isClassDeclaration(props?: object | null): this is NodePath<t.ClassDeclaration>;
+ isClassExpression(props?: object | null): this is NodePath<t.ClassExpression>;
+ isClassImplements(props?: object | null): this is NodePath<t.ClassImplements>;
+ isClassMethod(props?: object | null): this is NodePath<t.ClassMethod>;
+ isClassPrivateMethod(props?: object | null): this is NodePath<t.ClassPrivateMethod>;
+ isClassPrivateProperty(props?: object | null): this is NodePath<t.ClassPrivateProperty>;
+ isClassProperty(props?: object | null): this is NodePath<t.ClassProperty>;
+ isCompletionStatement(props?: object | null): this is NodePath<t.CompletionStatement>;
+ isConditional(props?: object | null): this is NodePath<t.Conditional>;
+ isConditionalExpression(props?: object | null): this is NodePath<t.ConditionalExpression>;
+ isContinueStatement(props?: object | null): this is NodePath<t.ContinueStatement>;
+ isDebuggerStatement(props?: object | null): this is NodePath<t.DebuggerStatement>;
+ isDeclaration(props?: object | null): this is NodePath<t.Declaration>;
+ isDeclareClass(props?: object | null): this is NodePath<t.DeclareClass>;
+ isDeclareExportAllDeclaration(props?: object | null): this is NodePath<t.DeclareExportAllDeclaration>;
+ isDeclareExportDeclaration(props?: object | null): this is NodePath<t.DeclareExportDeclaration>;
+ isDeclareFunction(props?: object | null): this is NodePath<t.DeclareFunction>;
+ isDeclareInterface(props?: object | null): this is NodePath<t.DeclareInterface>;
+ isDeclareModule(props?: object | null): this is NodePath<t.DeclareModule>;
+ isDeclareModuleExports(props?: object | null): this is NodePath<t.DeclareModuleExports>;
+ isDeclareOpaqueType(props?: object | null): this is NodePath<t.DeclareOpaqueType>;
+ isDeclareTypeAlias(props?: object | null): this is NodePath<t.DeclareTypeAlias>;
+ isDeclareVariable(props?: object | null): this is NodePath<t.DeclareVariable>;
+ isDeclaredPredicate(props?: object | null): this is NodePath<t.DeclaredPredicate>;
+ isDecorator(props?: object | null): this is NodePath<t.Decorator>;
+ isDirective(props?: object | null): this is NodePath<t.Directive>;
+ isDirectiveLiteral(props?: object | null): this is NodePath<t.DirectiveLiteral>;
+ isDoExpression(props?: object | null): this is NodePath<t.DoExpression>;
+ isDoWhileStatement(props?: object | null): this is NodePath<t.DoWhileStatement>;
+ isEmptyStatement(props?: object | null): this is NodePath<t.EmptyStatement>;
+ isEmptyTypeAnnotation(props?: object | null): this is NodePath<t.EmptyTypeAnnotation>;
+ isExistsTypeAnnotation(props?: object | null): this is NodePath<t.ExistsTypeAnnotation>;
+ isExportAllDeclaration(props?: object | null): this is NodePath<t.ExportAllDeclaration>;
+ isExportDeclaration(props?: object | null): this is NodePath<t.ExportDeclaration>;
+ isExportDefaultDeclaration(props?: object | null): this is NodePath<t.ExportDefaultDeclaration>;
+ isExportDefaultSpecifier(props?: object | null): this is NodePath<t.ExportDefaultSpecifier>;
+ isExportNamedDeclaration(props?: object | null): this is NodePath<t.ExportNamedDeclaration>;
+ isExportNamespaceSpecifier(props?: object | null): this is NodePath<t.ExportNamespaceSpecifier>;
+ isExportSpecifier(props?: object | null): this is NodePath<t.ExportSpecifier>;
+ isExpression(props?: object | null): this is NodePath<t.Expression>;
+ isExpressionStatement(props?: object | null): this is NodePath<t.ExpressionStatement>;
+ isExpressionWrapper(props?: object | null): this is NodePath<t.ExpressionWrapper>;
+ isFile(props?: object | null): this is NodePath<t.File>;
+ isFlow(props?: object | null): this is NodePath<t.Flow>;
+ isFlowBaseAnnotation(props?: object | null): this is NodePath<t.FlowBaseAnnotation>;
+ isFlowDeclaration(props?: object | null): this is NodePath<t.FlowDeclaration>;
+ isFlowPredicate(props?: object | null): this is NodePath<t.FlowPredicate>;
+ isFlowType(props?: object | null): this is NodePath<t.FlowType>;
+ isFor(props?: object | null): this is NodePath<t.For>;
+ isForInStatement(props?: object | null): this is NodePath<t.ForInStatement>;
+ isForOfStatement(props?: object | null): this is NodePath<t.ForOfStatement>;
+ isForStatement(props?: object | null): this is NodePath<t.ForStatement>;
+ isForXStatement(props?: object | null): this is NodePath<t.ForXStatement>;
+ isFunction(props?: object | null): this is NodePath<t.Function>;
+ isFunctionDeclaration(props?: object | null): this is NodePath<t.FunctionDeclaration>;
+ isFunctionExpression(props?: object | null): this is NodePath<t.FunctionExpression>;
+ isFunctionParent(props?: object | null): this is NodePath<t.FunctionParent>;
+ isFunctionTypeAnnotation(props?: object | null): this is NodePath<t.FunctionTypeAnnotation>;
+ isFunctionTypeParam(props?: object | null): this is NodePath<t.FunctionTypeParam>;
+ isGenericTypeAnnotation(props?: object | null): this is NodePath<t.GenericTypeAnnotation>;
+ isIdentifier(props?: object | null): this is NodePath<t.Identifier>;
+ isIfStatement(props?: object | null): this is NodePath<t.IfStatement>;
+ isImmutable(props?: object | null): this is NodePath<t.Immutable>;
+ isImport(props?: object | null): this is NodePath<t.Import>;
+ isImportDeclaration(props?: object | null): this is NodePath<t.ImportDeclaration>;
+ isImportDefaultSpecifier(props?: object | null): this is NodePath<t.ImportDefaultSpecifier>;
+ isImportNamespaceSpecifier(props?: object | null): this is NodePath<t.ImportNamespaceSpecifier>;
+ isImportSpecifier(props?: object | null): this is NodePath<t.ImportSpecifier>;
+ isInferredPredicate(props?: object | null): this is NodePath<t.InferredPredicate>;
+ isInterfaceDeclaration(props?: object | null): this is NodePath<t.InterfaceDeclaration>;
+ isInterfaceExtends(props?: object | null): this is NodePath<t.InterfaceExtends>;
+ isInterfaceTypeAnnotation(props?: object | null): this is NodePath<t.InterfaceTypeAnnotation>;
+ isInterpreterDirective(props?: object | null): this is NodePath<t.InterpreterDirective>;
+ isIntersectionTypeAnnotation(props?: object | null): this is NodePath<t.IntersectionTypeAnnotation>;
+ isJSX(props?: object | null): this is NodePath<t.JSX>;
+ isJSXAttribute(props?: object | null): this is NodePath<t.JSXAttribute>;
+ isJSXClosingElement(props?: object | null): this is NodePath<t.JSXClosingElement>;
+ isJSXClosingFragment(props?: object | null): this is NodePath<t.JSXClosingFragment>;
+ isJSXElement(props?: object | null): this is NodePath<t.JSXElement>;
+ isJSXEmptyExpression(props?: object | null): this is NodePath<t.JSXEmptyExpression>;
+ isJSXExpressionContainer(props?: object | null): this is NodePath<t.JSXExpressionContainer>;
+ isJSXFragment(props?: object | null): this is NodePath<t.JSXFragment>;
+ isJSXIdentifier(props?: object | null): this is NodePath<t.JSXIdentifier>;
+ isJSXMemberExpression(props?: object | null): this is NodePath<t.JSXMemberExpression>;
+ isJSXNamespacedName(props?: object | null): this is NodePath<t.JSXNamespacedName>;
+ isJSXOpeningElement(props?: object | null): this is NodePath<t.JSXOpeningElement>;
+ isJSXOpeningFragment(props?: object | null): this is NodePath<t.JSXOpeningFragment>;
+ isJSXSpreadAttribute(props?: object | null): this is NodePath<t.JSXSpreadAttribute>;
+ isJSXSpreadChild(props?: object | null): this is NodePath<t.JSXSpreadChild>;
+ isJSXText(props?: object | null): this is NodePath<t.JSXText>;
+ isLVal(props?: object | null): this is NodePath<t.LVal>;
+ isLabeledStatement(props?: object | null): this is NodePath<t.LabeledStatement>;
+ isLiteral(props?: object | null): this is NodePath<t.Literal>;
+ isLogicalExpression(props?: object | null): this is NodePath<t.LogicalExpression>;
+ isLoop(props?: object | null): this is NodePath<t.Loop>;
+ isMemberExpression(props?: object | null): this is NodePath<t.MemberExpression>;
+ isMetaProperty(props?: object | null): this is NodePath<t.MetaProperty>;
+ isMethod(props?: object | null): this is NodePath<t.Method>;
+ isMixedTypeAnnotation(props?: object | null): this is NodePath<t.MixedTypeAnnotation>;
+ isModuleDeclaration(props?: object | null): this is NodePath<t.ModuleDeclaration>;
+ isModuleSpecifier(props?: object | null): this is NodePath<t.ModuleSpecifier>;
+ isNewExpression(props?: object | null): this is NodePath<t.NewExpression>;
+ isNoop(props?: object | null): this is NodePath<t.Noop>;
+ isNullLiteral(props?: object | null): this is NodePath<t.NullLiteral>;
+ isNullLiteralTypeAnnotation(props?: object | null): this is NodePath<t.NullLiteralTypeAnnotation>;
+ isNullableTypeAnnotation(props?: object | null): this is NodePath<t.NullableTypeAnnotation>;
- // ------------------------- assertXXX -------------------------
- assertArrayExpression(opts?: object): void;
- assertAssignmentExpression(opts?: object): void;
- assertBinaryExpression(opts?: object): void;
- assertDirective(opts?: object): void;
- assertDirectiveLiteral(opts?: object): void;
- assertBlockStatement(opts?: object): void;
- assertBreakStatement(opts?: object): void;
- assertCallExpression(opts?: object): void;
- assertCatchClause(opts?: object): void;
- assertConditionalExpression(opts?: object): void;
- assertContinueStatement(opts?: object): void;
- assertDebuggerStatement(opts?: object): void;
- assertDoWhileStatement(opts?: object): void;
- assertEmptyStatement(opts?: object): void;
- assertExpressionStatement(opts?: object): void;
- assertFile(opts?: object): void;
- assertForInStatement(opts?: object): void;
- assertForStatement(opts?: object): void;
- assertFunctionDeclaration(opts?: object): void;
- assertFunctionExpression(opts?: object): void;
- assertIdentifier(opts?: object): void;
- assertIfStatement(opts?: object): void;
- assertLabeledStatement(opts?: object): void;
- assertStringLiteral(opts?: object): void;
- assertNumericLiteral(opts?: object): void;
- assertNullLiteral(opts?: object): void;
- assertBooleanLiteral(opts?: object): void;
- assertRegExpLiteral(opts?: object): void;
- assertLogicalExpression(opts?: object): void;
- assertMemberExpression(opts?: object): void;
- assertNewExpression(opts?: object): void;
- assertProgram(opts?: object): void;
- assertObjectExpression(opts?: object): void;
- assertObjectMethod(opts?: object): void;
- assertObjectProperty(opts?: object): void;
- assertRestElement(opts?: object): void;
- assertReturnStatement(opts?: object): void;
- assertSequenceExpression(opts?: object): void;
- assertSwitchCase(opts?: object): void;
- assertSwitchStatement(opts?: object): void;
- assertThisExpression(opts?: object): void;
- assertThrowStatement(opts?: object): void;
- assertTryStatement(opts?: object): void;
- assertUnaryExpression(opts?: object): void;
- assertUpdateExpression(opts?: object): void;
- assertVariableDeclaration(opts?: object): void;
- assertVariableDeclarator(opts?: object): void;
- assertWhileStatement(opts?: object): void;
- assertWithStatement(opts?: object): void;
- assertAssignmentPattern(opts?: object): void;
- assertArrayPattern(opts?: object): void;
- assertArrowFunctionExpression(opts?: object): void;
- assertClassBody(opts?: object): void;
- assertClassDeclaration(opts?: object): void;
- assertClassExpression(opts?: object): void;
- assertExportAllDeclaration(opts?: object): void;
- assertExportDefaultDeclaration(opts?: object): void;
- assertExportNamedDeclaration(opts?: object): void;
- assertExportSpecifier(opts?: object): void;
- assertForOfStatement(opts?: object): void;
- assertImportDeclaration(opts?: object): void;
- assertImportDefaultSpecifier(opts?: object): void;
- assertImportNamespaceSpecifier(opts?: object): void;
- assertImportSpecifier(opts?: object): void;
- assertMetaProperty(opts?: object): void;
- assertClassMethod(opts?: object): void;
- assertObjectPattern(opts?: object): void;
- assertSpreadElement(opts?: object): void;
- assertSuper(opts?: object): void;
- assertTaggedTemplateExpression(opts?: object): void;
- assertTemplateElement(opts?: object): void;
- assertTemplateLiteral(opts?: object): void;
- assertYieldExpression(opts?: object): void;
- assertAnyTypeAnnotation(opts?: object): void;
- assertArrayTypeAnnotation(opts?: object): void;
- assertBooleanTypeAnnotation(opts?: object): void;
- assertBooleanLiteralTypeAnnotation(opts?: object): void;
- assertNullLiteralTypeAnnotation(opts?: object): void;
- assertClassImplements(opts?: object): void;
- assertClassProperty(opts?: object): void;
- assertDeclareClass(opts?: object): void;
- assertDeclareFunction(opts?: object): void;
- assertDeclareInterface(opts?: object): void;
- assertDeclareModule(opts?: object): void;
- assertDeclareTypeAlias(opts?: object): void;
- assertDeclareVariable(opts?: object): void;
- assertExistentialTypeParam(opts?: object): void;
- assertFunctionTypeAnnotation(opts?: object): void;
- assertFunctionTypeParam(opts?: object): void;
- assertGenericTypeAnnotation(opts?: object): void;
- assertInterfaceExtends(opts?: object): void;
- assertInterfaceDeclaration(opts?: object): void;
- assertIntersectionTypeAnnotation(opts?: object): void;
- assertMixedTypeAnnotation(opts?: object): void;
- assertNullableTypeAnnotation(opts?: object): void;
- assertNumericLiteralTypeAnnotation(opts?: object): void;
- assertNumberTypeAnnotation(opts?: object): void;
- assertStringLiteralTypeAnnotation(opts?: object): void;
- assertStringTypeAnnotation(opts?: object): void;
- assertThisTypeAnnotation(opts?: object): void;
- assertTupleTypeAnnotation(opts?: object): void;
- assertTypeofTypeAnnotation(opts?: object): void;
- assertTypeAlias(opts?: object): void;
- assertTypeAnnotation(opts?: object): void;
- assertTypeCastExpression(opts?: object): void;
- assertTypeParameterDeclaration(opts?: object): void;
- assertTypeParameterInstantiation(opts?: object): void;
- assertObjectTypeAnnotation(opts?: object): void;
- assertObjectTypeCallProperty(opts?: object): void;
- assertObjectTypeIndexer(opts?: object): void;
- assertObjectTypeProperty(opts?: object): void;
- assertQualifiedTypeIdentifier(opts?: object): void;
- assertUnionTypeAnnotation(opts?: object): void;
- assertVoidTypeAnnotation(opts?: object): void;
- assertJSXAttribute(opts?: object): void;
- assertJSXClosingElement(opts?: object): void;
- assertJSXElement(opts?: object): void;
- assertJSXEmptyExpression(opts?: object): void;
- assertJSXExpressionContainer(opts?: object): void;
- assertJSXIdentifier(opts?: object): void;
- assertJSXMemberExpression(opts?: object): void;
- assertJSXNamespacedName(opts?: object): void;
- assertJSXOpeningElement(opts?: object): void;
- assertJSXSpreadAttribute(opts?: object): void;
- assertJSXText(opts?: object): void;
- assertNoop(opts?: object): void;
- assertParenthesizedExpression(opts?: object): void;
- assertAwaitExpression(opts?: object): void;
- assertBindExpression(opts?: object): void;
- assertDecorator(opts?: object): void;
- assertDoExpression(opts?: object): void;
- assertExportDefaultSpecifier(opts?: object): void;
- assertExportNamespaceSpecifier(opts?: object): void;
- assertRestProperty(opts?: object): void;
- assertSpreadProperty(opts?: object): void;
- assertExpression(opts?: object): void;
- assertBinary(opts?: object): void;
- assertScopable(opts?: object): void;
- assertBlockParent(opts?: object): void;
- assertBlock(opts?: object): void;
- assertStatement(opts?: object): void;
- assertTerminatorless(opts?: object): void;
- assertCompletionStatement(opts?: object): void;
- assertConditional(opts?: object): void;
- assertLoop(opts?: object): void;
- assertWhile(opts?: object): void;
- assertExpressionWrapper(opts?: object): void;
- assertFor(opts?: object): void;
- assertForXStatement(opts?: object): void;
- assertFunction(opts?: object): void;
- assertFunctionParent(opts?: object): void;
- assertPureish(opts?: object): void;
- assertDeclaration(opts?: object): void;
- assertLVal(opts?: object): void;
- assertLiteral(opts?: object): void;
- assertImmutable(opts?: object): void;
- assertUserWhitespacable(opts?: object): void;
- assertMethod(opts?: object): void;
- assertObjectMember(opts?: object): void;
- assertProperty(opts?: object): void;
- assertUnaryLike(opts?: object): void;
- assertPattern(opts?: object): void;
- assertClass(opts?: object): void;
- assertModuleDeclaration(opts?: object): void;
- assertExportDeclaration(opts?: object): void;
- assertModuleSpecifier(opts?: object): void;
- assertFlow(opts?: object): void;
- assertFlowBaseAnnotation(opts?: object): void;
- assertFlowDeclaration(opts?: object): void;
- assertJSX(opts?: object): void;
- assertNumberLiteral(opts?: object): void;
- assertRegexLiteral(opts?: object): void;
+ /** @deprecated Use `isNumericLiteral` */
+ isNumberLiteral(props?: object | null): this is NodePath<t.NumericLiteral>;
+ isNumberLiteralTypeAnnotation(props?: object | null): this is NodePath<t.NumberLiteralTypeAnnotation>;
+ isNumberTypeAnnotation(props?: object | null): this is NodePath<t.NumberTypeAnnotation>;
+ isNumericLiteral(props?: object | null): this is NodePath<t.NumericLiteral>;
+ isObjectExpression(props?: object | null): this is NodePath<t.ObjectExpression>;
+ isObjectMember(props?: object | null): this is NodePath<t.ObjectMember>;
+ isObjectMethod(props?: object | null): this is NodePath<t.ObjectMethod>;
+ isObjectPattern(props?: object | null): this is NodePath<t.ObjectPattern>;
+ isObjectProperty(props?: object | null): this is NodePath<t.ObjectProperty>;
+ isObjectTypeAnnotation(props?: object | null): this is NodePath<t.ObjectTypeAnnotation>;
+ isObjectTypeCallProperty(props?: object | null): this is NodePath<t.ObjectTypeCallProperty>;
+ isObjectTypeIndexer(props?: object | null): this is NodePath<t.ObjectTypeIndexer>;
+ isObjectTypeInternalSlot(props?: object | null): this is NodePath<t.ObjectTypeInternalSlot>;
+ isObjectTypeProperty(props?: object | null): this is NodePath<t.ObjectTypeProperty>;
+ isObjectTypeSpreadProperty(props?: object | null): this is NodePath<t.ObjectTypeSpreadProperty>;
+ isOpaqueType(props?: object | null): this is NodePath<t.OpaqueType>;
+ isOptionalCallExpression(props?: object | null): this is NodePath<t.OptionalCallExpression>;
+ isOptionalMemberExpression(props?: object | null): this is NodePath<t.OptionalMemberExpression>;
+ isParenthesizedExpression(props?: object | null): this is NodePath<t.ParenthesizedExpression>;
+ isPattern(props?: object | null): this is NodePath<t.Pattern>;
+ isPatternLike(props?: object | null): this is NodePath<t.PatternLike>;
+ isPipelineBareFunction(props?: object | null): this is NodePath<t.PipelineBareFunction>;
+ isPipelinePrimaryTopicReference(props?: object | null): this is NodePath<t.PipelinePrimaryTopicReference>;
+ isPipelineTopicExpression(props?: object | null): this is NodePath<t.PipelineTopicExpression>;
+ isPrivate(props?: object | null): this is NodePath<t.Private>;
+ isPrivateName(props?: object | null): this is NodePath<t.PrivateName>;
+ isProgram(props?: object | null): this is NodePath<t.Program>;
+ isProperty(props?: object | null): this is NodePath<t.Property>;
+ isPureish(props?: object | null): this is NodePath<t.Pureish>;
+ isQualifiedTypeIdentifier(props?: object | null): this is NodePath<t.QualifiedTypeIdentifier>;
+ isRegExpLiteral(props?: object | null): this is NodePath<t.RegExpLiteral>;
+
+ /** @deprecated Use `isRegExpLiteral` */
+ isRegexLiteral(props?: object | null): this is NodePath<t.RegExpLiteral>;
+ isRestElement(props?: object | null): this is NodePath<t.RestElement>;
+
+ /** @deprecated Use `isRestElement` */
+ isRestProperty(props?: object | null): this is NodePath<t.RestElement>;
+ isReturnStatement(props?: object | null): this is NodePath<t.ReturnStatement>;
+ isScopable(props?: object | null): this is NodePath<t.Scopable>;
+ isSequenceExpression(props?: object | null): this is NodePath<t.SequenceExpression>;
+ isSpreadElement(props?: object | null): this is NodePath<t.SpreadElement>;
+
+ /** @deprecated Use `isSpreadElement` */
+ isSpreadProperty(props?: object | null): this is NodePath<t.SpreadElement>;
+ isStatement(props?: object | null): this is NodePath<t.Statement>;
+ isStringLiteral(props?: object | null): this is NodePath<t.StringLiteral>;
+ isStringLiteralTypeAnnotation(props?: object | null): this is NodePath<t.StringLiteralTypeAnnotation>;
+ isStringTypeAnnotation(props?: object | null): this is NodePath<t.StringTypeAnnotation>;
+ isSuper(props?: object | null): this is NodePath<t.Super>;
+ isSwitchCase(props?: object | null): this is NodePath<t.SwitchCase>;
+ isSwitchStatement(props?: object | null): this is NodePath<t.SwitchStatement>;
+ isTSAnyKeyword(props?: object | null): this is NodePath<t.TSAnyKeyword>;
+ isTSArrayType(props?: object | null): this is NodePath<t.TSArrayType>;
+ isTSAsExpression(props?: object | null): this is NodePath<t.TSAsExpression>;
+ isTSBooleanKeyword(props?: object | null): this is NodePath<t.TSBooleanKeyword>;
+ isTSCallSignatureDeclaration(props?: object | null): this is NodePath<t.TSCallSignatureDeclaration>;
+ isTSConditionalType(props?: object | null): this is NodePath<t.TSConditionalType>;
+ isTSConstructSignatureDeclaration(props?: object | null): this is NodePath<t.TSConstructSignatureDeclaration>;
+ isTSConstructorType(props?: object | null): this is NodePath<t.TSConstructorType>;
+ isTSDeclareFunction(props?: object | null): this is NodePath<t.TSDeclareFunction>;
+ isTSDeclareMethod(props?: object | null): this is NodePath<t.TSDeclareMethod>;
+ isTSEntityName(props?: object | null): this is NodePath<t.TSEntityName>;
+ isTSEnumDeclaration(props?: object | null): this is NodePath<t.TSEnumDeclaration>;
+ isTSEnumMember(props?: object | null): this is NodePath<t.TSEnumMember>;
+ isTSExportAssignment(props?: object | null): this is NodePath<t.TSExportAssignment>;
+ isTSExpressionWithTypeArguments(props?: object | null): this is NodePath<t.TSExpressionWithTypeArguments>;
+ isTSExternalModuleReference(props?: object | null): this is NodePath<t.TSExternalModuleReference>;
+ isTSFunctionType(props?: object | null): this is NodePath<t.TSFunctionType>;
+ isTSImportEqualsDeclaration(props?: object | null): this is NodePath<t.TSImportEqualsDeclaration>;
+ isTSImportType(props?: object | null): this is NodePath<t.TSImportType>;
+ isTSIndexSignature(props?: object | null): this is NodePath<t.TSIndexSignature>;
+ isTSIndexedAccessType(props?: object | null): this is NodePath<t.TSIndexedAccessType>;
+ isTSInferType(props?: object | null): this is NodePath<t.TSInferType>;
+ isTSInterfaceBody(props?: object | null): this is NodePath<t.TSInterfaceBody>;
+ isTSInterfaceDeclaration(props?: object | null): this is NodePath<t.TSInterfaceDeclaration>;
+ isTSIntersectionType(props?: object | null): this is NodePath<t.TSIntersectionType>;
+ isTSLiteralType(props?: object | null): this is NodePath<t.TSLiteralType>;
+ isTSMappedType(props?: object | null): this is NodePath<t.TSMappedType>;
+ isTSMethodSignature(props?: object | null): this is NodePath<t.TSMethodSignature>;
+ isTSModuleBlock(props?: object | null): this is NodePath<t.TSModuleBlock>;
+ isTSModuleDeclaration(props?: object | null): this is NodePath<t.TSModuleDeclaration>;
+ isTSNamespaceExportDeclaration(props?: object | null): this is NodePath<t.TSNamespaceExportDeclaration>;
+ isTSNeverKeyword(props?: object | null): this is NodePath<t.TSNeverKeyword>;
+ isTSNonNullExpression(props?: object | null): this is NodePath<t.TSNonNullExpression>;
+ isTSNullKeyword(props?: object | null): this is NodePath<t.TSNullKeyword>;
+ isTSNumberKeyword(props?: object | null): this is NodePath<t.TSNumberKeyword>;
+ isTSObjectKeyword(props?: object | null): this is NodePath<t.TSObjectKeyword>;
+ isTSOptionalType(props?: object | null): this is NodePath<t.TSOptionalType>;
+ isTSParameterProperty(props?: object | null): this is NodePath<t.TSParameterProperty>;
+ isTSParenthesizedType(props?: object | null): this is NodePath<t.TSParenthesizedType>;
+ isTSPropertySignature(props?: object | null): this is NodePath<t.TSPropertySignature>;
+ isTSQualifiedName(props?: object | null): this is NodePath<t.TSQualifiedName>;
+ isTSRestType(props?: object | null): this is NodePath<t.TSRestType>;
+ isTSStringKeyword(props?: object | null): this is NodePath<t.TSStringKeyword>;
+ isTSSymbolKeyword(props?: object | null): this is NodePath<t.TSSymbolKeyword>;
+ isTSThisType(props?: object | null): this is NodePath<t.TSThisType>;
+ isTSTupleType(props?: object | null): this is NodePath<t.TSTupleType>;
+ isTSType(props?: object | null): this is NodePath<t.TSType>;
+ isTSTypeAliasDeclaration(props?: object | null): this is NodePath<t.TSTypeAliasDeclaration>;
+ isTSTypeAnnotation(props?: object | null): this is NodePath<t.TSTypeAnnotation>;
+ isTSTypeAssertion(props?: object | null): this is NodePath<t.TSTypeAssertion>;
+ isTSTypeElement(props?: object | null): this is NodePath<t.TSTypeElement>;
+ isTSTypeLiteral(props?: object | null): this is NodePath<t.TSTypeLiteral>;
+ isTSTypeOperator(props?: object | null): this is NodePath<t.TSTypeOperator>;
+ isTSTypeParameter(props?: object | null): this is NodePath<t.TSTypeParameter>;
+ isTSTypeParameterDeclaration(props?: object | null): this is NodePath<t.TSTypeParameterDeclaration>;
+ isTSTypeParameterInstantiation(props?: object | null): this is NodePath<t.TSTypeParameterInstantiation>;
+ isTSTypePredicate(props?: object | null): this is NodePath<t.TSTypePredicate>;
+ isTSTypeQuery(props?: object | null): this is NodePath<t.TSTypeQuery>;
+ isTSTypeReference(props?: object | null): this is NodePath<t.TSTypeReference>;
+ isTSUndefinedKeyword(props?: object | null): this is NodePath<t.TSUndefinedKeyword>;
+ isTSUnionType(props?: object | null): this is NodePath<t.TSUnionType>;
+ isTSUnknownKeyword(props?: object | null): this is NodePath<t.TSUnknownKeyword>;
+ isTSVoidKeyword(props?: object | null): this is NodePath<t.TSVoidKeyword>;
+ isTaggedTemplateExpression(props?: object | null): this is NodePath<t.TaggedTemplateExpression>;
+ isTemplateElement(props?: object | null): this is NodePath<t.TemplateElement>;
+ isTemplateLiteral(props?: object | null): this is NodePath<t.TemplateLiteral>;
+ isTerminatorless(props?: object | null): this is NodePath<t.Terminatorless>;
+ isThisExpression(props?: object | null): this is NodePath<t.ThisExpression>;
+ isThisTypeAnnotation(props?: object | null): this is NodePath<t.ThisTypeAnnotation>;
+ isThrowStatement(props?: object | null): this is NodePath<t.ThrowStatement>;
+ isTryStatement(props?: object | null): this is NodePath<t.TryStatement>;
+ isTupleTypeAnnotation(props?: object | null): this is NodePath<t.TupleTypeAnnotation>;
+ isTypeAlias(props?: object | null): this is NodePath<t.TypeAlias>;
+ isTypeAnnotation(props?: object | null): this is NodePath<t.TypeAnnotation>;
+ isTypeCastExpression(props?: object | null): this is NodePath<t.TypeCastExpression>;
+ isTypeParameter(props?: object | null): this is NodePath<t.TypeParameter>;
+ isTypeParameterDeclaration(props?: object | null): this is NodePath<t.TypeParameterDeclaration>;
+ isTypeParameterInstantiation(props?: object | null): this is NodePath<t.TypeParameterInstantiation>;
+ isTypeofTypeAnnotation(props?: object | null): this is NodePath<t.TypeofTypeAnnotation>;
+ isUnaryExpression(props?: object | null): this is NodePath<t.UnaryExpression>;
+ isUnaryLike(props?: object | null): this is NodePath<t.UnaryLike>;
+ isUnionTypeAnnotation(props?: object | null): this is NodePath<t.UnionTypeAnnotation>;
+ isUpdateExpression(props?: object | null): this is NodePath<t.UpdateExpression>;
+ isUserWhitespacable(props?: object | null): this is NodePath<t.UserWhitespacable>;
+ isVariableDeclaration(props?: object | null): this is NodePath<t.VariableDeclaration>;
+ isVariableDeclarator(props?: object | null): this is NodePath<t.VariableDeclarator>;
+ isVariance(props?: object | null): this is NodePath<t.Variance>;
+ isVoidTypeAnnotation(props?: object | null): this is NodePath<t.VoidTypeAnnotation>;
+ isWhile(props?: object | null): this is NodePath<t.While>;
+ isWhileStatement(props?: object | null): this is NodePath<t.WhileStatement>;
+ isWithStatement(props?: object | null): this is NodePath<t.WithStatement>;
+ isYieldExpression(props?: object | null): this is NodePath<t.YieldExpression>;
+
+ isBindingIdentifier(props?: object | null): this is NodePath<t.Identifier>;
+ isBlockScoped(
+ props?: object | null,
+ ): this is NodePath<t.FunctionDeclaration | t.ClassDeclaration | t.VariableDeclaration>;
+ isGenerated(props?: object | null): boolean;
+ isPure(props?: object | null): boolean;
+ isReferenced(props?: object | null): boolean;
+ isReferencedIdentifier(props?: object | null): this is NodePath<t.Identifier | t.JSXIdentifier>;
+ isReferencedMemberExpression(props?: object | null): this is NodePath<t.MemberExpression>;
+ isScope(props?: object | null): this is NodePath<t.Scopable>;
+ isUser(props?: object | null): boolean;
+ isVar(props?: object | null): this is NodePath<t.VariableDeclaration>;
+ //#endregion
+
+ //#region ------------------------- assertXXX -------------------------
+ assertAnyTypeAnnotation(props?: object | null): void;
+ assertArrayExpression(props?: object | null): void;
+ assertArrayPattern(props?: object | null): void;
+ assertArrayTypeAnnotation(props?: object | null): void;
+ assertArrowFunctionExpression(props?: object | null): void;
+ assertAssignmentExpression(props?: object | null): void;
+ assertAssignmentPattern(props?: object | null): void;
+ assertAwaitExpression(props?: object | null): void;
+ assertBigIntLiteral(props?: object | null): void;
+ assertBinary(props?: object | null): void;
+ assertBinaryExpression(props?: object | null): void;
+ assertBindExpression(props?: object | null): void;
+ assertBlock(props?: object | null): void;
+ assertBlockParent(props?: object | null): void;
+ assertBlockStatement(props?: object | null): void;
+ assertBooleanLiteral(props?: object | null): void;
+ assertBooleanLiteralTypeAnnotation(props?: object | null): void;
+ assertBooleanTypeAnnotation(props?: object | null): void;
+ assertBreakStatement(props?: object | null): void;
+ assertCallExpression(props?: object | null): void;
+ assertCatchClause(props?: object | null): void;
+ assertClass(props?: object | null): void;
+ assertClassBody(props?: object | null): void;
+ assertClassDeclaration(props?: object | null): void;
+ assertClassExpression(props?: object | null): void;
+ assertClassImplements(props?: object | null): void;
+ assertClassMethod(props?: object | null): void;
+ assertClassPrivateMethod(props?: object | null): void;
+ assertClassPrivateProperty(props?: object | null): void;
+ assertClassProperty(props?: object | null): void;
+ assertCompletionStatement(props?: object | null): void;
+ assertConditional(props?: object | null): void;
+ assertConditionalExpression(props?: object | null): void;
+ assertContinueStatement(props?: object | null): void;
+ assertDebuggerStatement(props?: object | null): void;
+ assertDeclaration(props?: object | null): void;
+ assertDeclareClass(props?: object | null): void;
+ assertDeclareExportAllDeclaration(props?: object | null): void;
+ assertDeclareExportDeclaration(props?: object | null): void;
+ assertDeclareFunction(props?: object | null): void;
+ assertDeclareInterface(props?: object | null): void;
+ assertDeclareModule(props?: object | null): void;
+ assertDeclareModuleExports(props?: object | null): void;
+ assertDeclareOpaqueType(props?: object | null): void;
+ assertDeclareTypeAlias(props?: object | null): void;
+ assertDeclareVariable(props?: object | null): void;
+ assertDeclaredPredicate(props?: object | null): void;
+ assertDecorator(props?: object | null): void;
+ assertDirective(props?: object | null): void;
+ assertDirectiveLiteral(props?: object | null): void;
+ assertDoExpression(props?: object | null): void;
+ assertDoWhileStatement(props?: object | null): void;
+ assertEmptyStatement(props?: object | null): void;
+ assertEmptyTypeAnnotation(props?: object | null): void;
+ assertExistsTypeAnnotation(props?: object | null): void;
+ assertExportAllDeclaration(props?: object | null): void;
+ assertExportDeclaration(props?: object | null): void;
+ assertExportDefaultDeclaration(props?: object | null): void;
+ assertExportDefaultSpecifier(props?: object | null): void;
+ assertExportNamedDeclaration(props?: object | null): void;
+ assertExportNamespaceSpecifier(props?: object | null): void;
+ assertExportSpecifier(props?: object | null): void;
+ assertExpression(props?: object | null): void;
+ assertExpressionStatement(props?: object | null): void;
+ assertExpressionWrapper(props?: object | null): void;
+ assertFile(props?: object | null): void;
+ assertFlow(props?: object | null): void;
+ assertFlowBaseAnnotation(props?: object | null): void;
+ assertFlowDeclaration(props?: object | null): void;
+ assertFlowPredicate(props?: object | null): void;
+ assertFlowType(props?: object | null): void;
+ assertFor(props?: object | null): void;
+ assertForInStatement(props?: object | null): void;
+ assertForOfStatement(props?: object | null): void;
+ assertForStatement(props?: object | null): void;
+ assertForXStatement(props?: object | null): void;
+ assertFunction(props?: object | null): void;
+ assertFunctionDeclaration(props?: object | null): void;
+ assertFunctionExpression(props?: object | null): void;
+ assertFunctionParent(props?: object | null): void;
+ assertFunctionTypeAnnotation(props?: object | null): void;
+ assertFunctionTypeParam(props?: object | null): void;
+ assertGenericTypeAnnotation(props?: object | null): void;
+ assertIdentifier(props?: object | null): void;
+ assertIfStatement(props?: object | null): void;
+ assertImmutable(props?: object | null): void;
+ assertImport(props?: object | null): void;
+ assertImportDeclaration(props?: object | null): void;
+ assertImportDefaultSpecifier(props?: object | null): void;
+ assertImportNamespaceSpecifier(props?: object | null): void;
+ assertImportSpecifier(props?: object | null): void;
+ assertInferredPredicate(props?: object | null): void;
+ assertInterfaceDeclaration(props?: object | null): void;
+ assertInterfaceExtends(props?: object | null): void;
+ assertInterfaceTypeAnnotation(props?: object | null): void;
+ assertInterpreterDirective(props?: object | null): void;
+ assertIntersectionTypeAnnotation(props?: object | null): void;
+ assertJSX(props?: object | null): void;
+ assertJSXAttribute(props?: object | null): void;
+ assertJSXClosingElement(props?: object | null): void;
+ assertJSXClosingFragment(props?: object | null): void;
+ assertJSXElement(props?: object | null): void;
+ assertJSXEmptyExpression(props?: object | null): void;
+ assertJSXExpressionContainer(props?: object | null): void;
+ assertJSXFragment(props?: object | null): void;
+ assertJSXIdentifier(props?: object | null): void;
+ assertJSXMemberExpression(props?: object | null): void;
+ assertJSXNamespacedName(props?: object | null): void;
+ assertJSXOpeningElement(props?: object | null): void;
+ assertJSXOpeningFragment(props?: object | null): void;
+ assertJSXSpreadAttribute(props?: object | null): void;
+ assertJSXSpreadChild(props?: object | null): void;
+ assertJSXText(props?: object | null): void;
+ assertLVal(props?: object | null): void;
+ assertLabeledStatement(props?: object | null): void;
+ assertLiteral(props?: object | null): void;
+ assertLogicalExpression(props?: object | null): void;
+ assertLoop(props?: object | null): void;
+ assertMemberExpression(props?: object | null): void;
+ assertMetaProperty(props?: object | null): void;
+ assertMethod(props?: object | null): void;
+ assertMixedTypeAnnotation(props?: object | null): void;
+ assertModuleDeclaration(props?: object | null): void;
+ assertModuleSpecifier(props?: object | null): void;
+ assertNewExpression(props?: object | null): void;
+ assertNoop(props?: object | null): void;
+ assertNullLiteral(props?: object | null): void;
+ assertNullLiteralTypeAnnotation(props?: object | null): void;
+ assertNullableTypeAnnotation(props?: object | null): void;
+
+ /** @deprecated Use `assertNumericLiteral` */
+ assertNumberLiteral(props?: object | null): void;
+ assertNumberLiteralTypeAnnotation(props?: object | null): void;
+ assertNumberTypeAnnotation(props?: object | null): void;
+ assertNumericLiteral(props?: object | null): void;
+ assertObjectExpression(props?: object | null): void;
+ assertObjectMember(props?: object | null): void;
+ assertObjectMethod(props?: object | null): void;
+ assertObjectPattern(props?: object | null): void;
+ assertObjectProperty(props?: object | null): void;
+ assertObjectTypeAnnotation(props?: object | null): void;
+ assertObjectTypeCallProperty(props?: object | null): void;
+ assertObjectTypeIndexer(props?: object | null): void;
+ assertObjectTypeInternalSlot(props?: object | null): void;
+ assertObjectTypeProperty(props?: object | null): void;
+ assertObjectTypeSpreadProperty(props?: object | null): void;
+ assertOpaqueType(props?: object | null): void;
+ assertOptionalCallExpression(props?: object | null): void;
+ assertOptionalMemberExpression(props?: object | null): void;
+ assertParenthesizedExpression(props?: object | null): void;
+ assertPattern(props?: object | null): void;
+ assertPatternLike(props?: object | null): void;
+ assertPipelineBareFunction(props?: object | null): void;
+ assertPipelinePrimaryTopicReference(props?: object | null): void;
+ assertPipelineTopicExpression(props?: object | null): void;
+ assertPrivate(props?: object | null): void;
+ assertPrivateName(props?: object | null): void;
+ assertProgram(props?: object | null): void;
+ assertProperty(props?: object | null): void;
+ assertPureish(props?: object | null): void;
+ assertQualifiedTypeIdentifier(props?: object | null): void;
+ assertRegExpLiteral(props?: object | null): void;
+
+ /** @deprecated Use `assertRegExpLiteral` */
+ assertRegexLiteral(props?: object | null): void;
+ assertRestElement(props?: object | null): void;
+
+ /** @deprecated Use `assertRestElement` */
+ assertRestProperty(props?: object | null): void;
+ assertReturnStatement(props?: object | null): void;
+ assertScopable(props?: object | null): void;
+ assertSequenceExpression(props?: object | null): void;
+ assertSpreadElement(props?: object | null): void;
+
+ /** @deprecated Use `assertSpreadElement` */
+ assertSpreadProperty(props?: object | null): void;
+ assertStatement(props?: object | null): void;
+ assertStringLiteral(props?: object | null): void;
+ assertStringLiteralTypeAnnotation(props?: object | null): void;
+ assertStringTypeAnnotation(props?: object | null): void;
+ assertSuper(props?: object | null): void;
+ assertSwitchCase(props?: object | null): void;
+ assertSwitchStatement(props?: object | null): void;
+ assertTSAnyKeyword(props?: object | null): void;
+ assertTSArrayType(props?: object | null): void;
+ assertTSAsExpression(props?: object | null): void;
+ assertTSBooleanKeyword(props?: object | null): void;
+ assertTSCallSignatureDeclaration(props?: object | null): void;
+ assertTSConditionalType(props?: object | null): void;
+ assertTSConstructSignatureDeclaration(props?: object | null): void;
+ assertTSConstructorType(props?: object | null): void;
+ assertTSDeclareFunction(props?: object | null): void;
+ assertTSDeclareMethod(props?: object | null): void;
+ assertTSEntityName(props?: object | null): void;
+ assertTSEnumDeclaration(props?: object | null): void;
+ assertTSEnumMember(props?: object | null): void;
+ assertTSExportAssignment(props?: object | null): void;
+ assertTSExpressionWithTypeArguments(props?: object | null): void;
+ assertTSExternalModuleReference(props?: object | null): void;
+ assertTSFunctionType(props?: object | null): void;
+ assertTSImportEqualsDeclaration(props?: object | null): void;
+ assertTSImportType(props?: object | null): void;
+ assertTSIndexSignature(props?: object | null): void;
+ assertTSIndexedAccessType(props?: object | null): void;
+ assertTSInferType(props?: object | null): void;
+ assertTSInterfaceBody(props?: object | null): void;
+ assertTSInterfaceDeclaration(props?: object | null): void;
+ assertTSIntersectionType(props?: object | null): void;
+ assertTSLiteralType(props?: object | null): void;
+ assertTSMappedType(props?: object | null): void;
+ assertTSMethodSignature(props?: object | null): void;
+ assertTSModuleBlock(props?: object | null): void;
+ assertTSModuleDeclaration(props?: object | null): void;
+ assertTSNamespaceExportDeclaration(props?: object | null): void;
+ assertTSNeverKeyword(props?: object | null): void;
+ assertTSNonNullExpression(props?: object | null): void;
+ assertTSNullKeyword(props?: object | null): void;
+ assertTSNumberKeyword(props?: object | null): void;
+ assertTSObjectKeyword(props?: object | null): void;
+ assertTSOptionalType(props?: object | null): void;
+ assertTSParameterProperty(props?: object | null): void;
+ assertTSParenthesizedType(props?: object | null): void;
+ assertTSPropertySignature(props?: object | null): void;
+ assertTSQualifiedName(props?: object | null): void;
+ assertTSRestType(props?: object | null): void;
+ assertTSStringKeyword(props?: object | null): void;
+ assertTSSymbolKeyword(props?: object | null): void;
+ assertTSThisType(props?: object | null): void;
+ assertTSTupleType(props?: object | null): void;
+ assertTSType(props?: object | null): void;
+ assertTSTypeAliasDeclaration(props?: object | null): void;
+ assertTSTypeAnnotation(props?: object | null): void;
+ assertTSTypeAssertion(props?: object | null): void;
+ assertTSTypeElement(props?: object | null): void;
+ assertTSTypeLiteral(props?: object | null): void;
+ assertTSTypeOperator(props?: object | null): void;
+ assertTSTypeParameter(props?: object | null): void;
+ assertTSTypeParameterDeclaration(props?: object | null): void;
+ assertTSTypeParameterInstantiation(props?: object | null): void;
+ assertTSTypePredicate(props?: object | null): void;
+ assertTSTypeQuery(props?: object | null): void;
+ assertTSTypeReference(props?: object | null): void;
+ assertTSUndefinedKeyword(props?: object | null): void;
+ assertTSUnionType(props?: object | null): void;
+ assertTSUnknownKeyword(props?: object | null): void;
+ assertTSVoidKeyword(props?: object | null): void;
+ assertTaggedTemplateExpression(props?: object | null): void;
+ assertTemplateElement(props?: object | null): void;
+ assertTemplateLiteral(props?: object | null): void;
+ assertTerminatorless(props?: object | null): void;
+ assertThisExpression(props?: object | null): void;
+ assertThisTypeAnnotation(props?: object | null): void;
+ assertThrowStatement(props?: object | null): void;
+ assertTryStatement(props?: object | null): void;
+ assertTupleTypeAnnotation(props?: object | null): void;
+ assertTypeAlias(props?: object | null): void;
+ assertTypeAnnotation(props?: object | null): void;
+ assertTypeCastExpression(props?: object | null): void;
+ assertTypeParameter(props?: object | null): void;
+ assertTypeParameterDeclaration(props?: object | null): void;
+ assertTypeParameterInstantiation(props?: object | null): void;
+ assertTypeofTypeAnnotation(props?: object | null): void;
+ assertUnaryExpression(props?: object | null): void;
+ assertUnaryLike(props?: object | null): void;
+ assertUnionTypeAnnotation(props?: object | null): void;
+ assertUpdateExpression(props?: object | null): void;
+ assertUserWhitespacable(props?: object | null): void;
+ assertVariableDeclaration(props?: object | null): void;
+ assertVariableDeclarator(props?: object | null): void;
+ assertVariance(props?: object | null): void;
+ assertVoidTypeAnnotation(props?: object | null): void;
+ assertWhile(props?: object | null): void;
+ assertWhileStatement(props?: object | null): void;
+ assertWithStatement(props?: object | null): void;
+ assertYieldExpression(props?: object | null): void;
+
+ assertBindingIdentifier(props?: object | null): void;
+ assertBlockScoped(props?: object | null): void;
+ assertGenerated(props?: object | null): void;
+ assertPure(props?: object | null): void;
+ assertReferenced(props?: object | null): void;
+ assertReferencedIdentifier(props?: object | null): void;
+ assertReferencedMemberExpression(props?: object | null): void;
+ assertScope(props?: object | null): void;
+ assertUser(props?: object | null): void;
+ assertVar(props?: object | null): void;
+ //#endregion
}
-export class Hub {
- constructor(file: any, options: any);
- file: any;
- options: any;
+export interface HubInterface {
+ getCode(): string | undefined;
+ getScope(): Scope | undefined;
+ addHelper(name: string): any;
+ buildError<E extends Error>(node: Node, msg: string, Error: new (message?: string) => E): E;
+}
+
+export class Hub implements HubInterface {
+ constructor();
+ getCode(): string | undefined;
+ getScope(): Scope | undefined;
+ addHelper(name: string): any;
+ buildError<E extends Error>(node: Node, msg: string, Constructor: new (message?: string) => E): E;
}
export interface TraversalContext {
diff --git a/node_modules/@types/babel__traverse/package.json b/node_modules/@types/babel__traverse/package.json
index ff9b6e1..5a40b28 100644
--- a/node_modules/@types/babel__traverse/package.json
+++ b/node_modules/@types/babel__traverse/package.json
@@ -1,6 +1,6 @@
{
"name": "@types/babel__traverse",
- "version": "7.0.7",
+ "version": "7.0.15",
"description": "TypeScript definitions for @babel/traverse",
"license": "MIT",
"contributors": [
@@ -23,10 +23,25 @@
"name": "Melvin Groenhoff",
"url": "https://github.com/mgroenhoff",
"githubUsername": "mgroenhoff"
+ },
+ {
+ "name": "Dean L.",
+ "url": "https://github.com/dlgrit",
+ "githubUsername": "dlgrit"
+ },
+ {
+ "name": "Ifiok Jr.",
+ "url": "https://github.com/ifiokjr",
+ "githubUsername": "ifiokjr"
+ },
+ {
+ "name": "ExE Boss",
+ "url": "https://github.com/ExE-Boss",
+ "githubUsername": "ExE-Boss"
}
],
"main": "",
- "types": "index",
+ "types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
@@ -36,6 +51,6 @@
"dependencies": {
"@babel/types": "^7.3.0"
},
- "typesPublisherContentHash": "37e6c080b57f5b07ab86b0af01352617892a3cd9fc9db8bd3c69fa0610672457",
- "typeScriptVersion": "2.9"
+ "typesPublisherContentHash": "b641c5a48237d080c85b2821d25a5c49c2677fe8418c25b0b0d1df7b70cbcda9",
+ "typeScriptVersion": "3.4"
}
\ No newline at end of file
diff --git a/node_modules/@types/eslint-visitor-keys/LICENSE b/node_modules/@types/eslint-visitor-keys/LICENSE
deleted file mode 100644
index 2107107..0000000
--- a/node_modules/@types/eslint-visitor-keys/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
- MIT License
-
- Copyright (c) Microsoft Corporation. All rights reserved.
-
- 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/node_modules/@types/eslint-visitor-keys/README.md b/node_modules/@types/eslint-visitor-keys/README.md
deleted file mode 100644
index 46bc834..0000000
--- a/node_modules/@types/eslint-visitor-keys/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# Installation
-> `npm install --save @types/eslint-visitor-keys`
-
-# Summary
-This package contains type definitions for eslint-visitor-keys (https://github.com/eslint/eslint-visitor-keys#readme).
-
-# Details
-Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint-visitor-keys
-
-Additional Details
- * Last updated: Sun, 18 Feb 2018 01:53:11 GMT
- * Dependencies: none
- * Global values: none
-
-# Credits
-These definitions were written by Toru Nagashima <https://github.com/mysticatea>.
diff --git a/node_modules/@types/eslint-visitor-keys/index.d.ts b/node_modules/@types/eslint-visitor-keys/index.d.ts
deleted file mode 100644
index b63c4f8..0000000
--- a/node_modules/@types/eslint-visitor-keys/index.d.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-// Type definitions for eslint-visitor-keys 1.0
-// Project: https://github.com/eslint/eslint-visitor-keys#readme
-// Definitions by: Toru Nagashima <https://github.com/mysticatea>
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-// TypeScript Version: 2.2
-
-export interface VisitorKeys {
- readonly [type: string]: ReadonlyArray<string> | undefined;
-}
-
-export const KEYS: VisitorKeys;
-export function getKeys(node: {}): ReadonlyArray<string>;
-export function unionWith(keys: VisitorKeys): VisitorKeys;
diff --git a/node_modules/@types/eslint-visitor-keys/package.json b/node_modules/@types/eslint-visitor-keys/package.json
deleted file mode 100644
index a004d66..0000000
--- a/node_modules/@types/eslint-visitor-keys/package.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "name": "@types/eslint-visitor-keys",
- "version": "1.0.0",
- "description": "TypeScript definitions for eslint-visitor-keys",
- "license": "MIT",
- "contributors": [
- {
- "name": "Toru Nagashima",
- "url": "https://github.com/mysticatea",
- "githubUsername": "mysticatea"
- }
- ],
- "main": "",
- "repository": {
- "type": "git",
- "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
- },
- "scripts": {},
- "dependencies": {},
- "typesPublisherContentHash": "439a0b912c49f6aedb6456cd8485eddf2444a36dd4ae5767258b663df3dfb6dc",
- "typeScriptVersion": "2.2"
-}
\ No newline at end of file
diff --git a/node_modules/@types/json5/README.md b/node_modules/@types/json5/README.md
new file mode 100644
index 0000000..ea81c5c
--- /dev/null
+++ b/node_modules/@types/json5/README.md
@@ -0,0 +1,18 @@
+# Installation
+> `npm install --save @types/json5`
+
+# Summary
+This package contains type definitions for JSON5 (http://json5.org/).
+
+# Details
+Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/json5
+
+Additional Details
+ * Last updated: Mon, 19 Sep 2016 17:28:59 GMT
+ * File structure: ProperModule
+ * Library Dependencies: none
+ * Module Dependencies: none
+ * Global values: json5
+
+# Credits
+These definitions were written by Jason Swearingen <https://jasonswearingen.github.io>.
diff --git a/node_modules/@types/json5/index.d.ts b/node_modules/@types/json5/index.d.ts
new file mode 100644
index 0000000..76a0352
--- /dev/null
+++ b/node_modules/@types/json5/index.d.ts
@@ -0,0 +1,44 @@
+// Type definitions for JSON5
+// Project: http://json5.org/
+// Definitions by: Jason Swearingen <https://jasonswearingen.github.io>
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+
+//commonjs loader
+
+/**
+ * The following is the exact list of additions to JSON's syntax introduced by JSON5. All of these are optional, and all of these come from ES5.
+
+Objects
+
+Object keys can be unquoted if they're valid identifiers. Yes, even reserved keywords (like default) are valid unquoted keys in ES5 [§11.1.5, §7.6]. (More info)
+
+(TODO: Unicode characters and escape sequences aren’t yet supported in this implementation.)
+
+Objects can have trailing commas.
+
+Arrays
+
+Arrays can have trailing commas.
+Strings
+
+Strings can be single-quoted.
+
+Strings can be split across multiple lines; just prefix each newline with a backslash. [ES5 §7.8.4]
+
+Numbers
+
+Numbers can be hexadecimal (base 16).
+
+Numbers can begin or end with a (leading or trailing) decimal point.
+
+Numbers can include Infinity, -Infinity, NaN, and -NaN.
+
+Numbers can begin with an explicit plus sign.
+
+Comments
+
+Both inline (single-line) and block (multi-line) comments are allowed.
+ */
+declare var json5: JSON;
+export = json5;
diff --git a/node_modules/@types/json5/package.json b/node_modules/@types/json5/package.json
new file mode 100644
index 0000000..ff784d5
--- /dev/null
+++ b/node_modules/@types/json5/package.json
@@ -0,0 +1,16 @@
+{
+ "name": "@types/json5",
+ "version": "0.0.29",
+ "description": "TypeScript definitions for JSON5",
+ "license": "MIT",
+ "author": "Jason Swearingen <https://jasonswearingen.github.io>",
+ "main": "",
+ "repository": {
+ "type": "git",
+ "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
+ },
+ "scripts": {},
+ "dependencies": {},
+ "typings": "index.d.ts",
+ "typesPublisherContentHash": "1ed77f2bfd59d290798abf89db281c36565f4a78d97d4e9caab25319d54c6331"
+}
\ No newline at end of file
diff --git a/node_modules/@types/json5/types-metadata.json b/node_modules/@types/json5/types-metadata.json
new file mode 100644
index 0000000..1c02afe
--- /dev/null
+++ b/node_modules/@types/json5/types-metadata.json
@@ -0,0 +1,25 @@
+{
+ "authors": "Jason Swearingen <https://jasonswearingen.github.io>",
+ "definitionFilename": "index.d.ts",
+ "libraryDependencies": [],
+ "moduleDependencies": [],
+ "libraryMajorVersion": "0",
+ "libraryMinorVersion": "0",
+ "libraryName": "JSON5",
+ "typingsPackageName": "json5",
+ "projectName": "http://json5.org/",
+ "sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
+ "sourceBranch": "types-2.0",
+ "kind": "ProperModule",
+ "globals": [
+ "json5"
+ ],
+ "declaredModules": [
+ "json5"
+ ],
+ "files": [
+ "index.d.ts"
+ ],
+ "hasPackageJson": false,
+ "contentHash": "1ed77f2bfd59d290798abf89db281c36565f4a78d97d4e9caab25319d54c6331"
+}
\ No newline at end of file
diff --git a/node_modules/@types/node/README.md b/node_modules/@types/node/README.md
index 2e47ae2..2a792d6 100644
--- a/node_modules/@types/node/README.md
+++ b/node_modules/@types/node/README.md
@@ -8,7 +8,7 @@
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
### Additional Details
- * Last updated: Tue, 22 Sep 2020 00:22:04 GMT
+ * Last updated: Fri, 09 Oct 2020 06:51:10 GMT
* Dependencies: none
* Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
diff --git a/node_modules/@types/node/assert.d.ts b/node_modules/@types/node/assert.d.ts
index 5feaa34..3706d99 100644
--- a/node_modules/@types/node/assert.d.ts
+++ b/node_modules/@types/node/assert.d.ts
@@ -1,4 +1,4 @@
-declare module "assert" {
+declare module 'assert' {
/** An alias of `assert.ok()`. */
function assert(value: any, message?: string | Error): asserts value;
namespace assert {
@@ -21,7 +21,7 @@
/** The `operator` property on the error instance. */
operator?: string;
/** If provided, the generated stack trace omits frames before this function. */
- stackStartFn?: Function
+ stackStartFn?: Function;
});
}
@@ -43,11 +43,17 @@
stack: object;
}
- type AssertPredicate = RegExp | (new() => object) | ((thrown: any) => boolean) | object | Error;
+ type AssertPredicate = RegExp | (new () => object) | ((thrown: any) => boolean) | object | Error;
function fail(message?: string | Error): never;
/** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
- function fail(actual: any, expected: any, message?: string | Error, operator?: string, stackStartFn?: Function): never;
+ function fail(
+ actual: any,
+ expected: any,
+ message?: string | Error,
+ operator?: string,
+ stackStartFn?: Function,
+ ): never;
function ok(value: any, message?: string | Error): asserts value;
/** @deprecated since v9.9.0 - use strictEqual() instead. */
function equal(actual: any, expected: any, message?: string | Error): void;
@@ -70,14 +76,44 @@
function ifError(value: any): asserts value is null | undefined;
function rejects(block: (() => Promise<any>) | Promise<any>, message?: string | Error): Promise<void>;
- function rejects(block: (() => Promise<any>) | Promise<any>, error: AssertPredicate, message?: string | Error): Promise<void>;
+ function rejects(
+ block: (() => Promise<any>) | Promise<any>,
+ error: AssertPredicate,
+ message?: string | Error,
+ ): Promise<void>;
function doesNotReject(block: (() => Promise<any>) | Promise<any>, message?: string | Error): Promise<void>;
- function doesNotReject(block: (() => Promise<any>) | Promise<any>, error: RegExp | Function, message?: string | Error): Promise<void>;
+ function doesNotReject(
+ block: (() => Promise<any>) | Promise<any>,
+ error: RegExp | Function,
+ message?: string | Error,
+ ): Promise<void>;
function match(value: string, regExp: RegExp, message?: string | Error): void;
function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
- const strict: typeof assert;
+ const strict: Omit<
+ typeof assert,
+ | 'strict'
+ | 'deepEqual'
+ | 'notDeepEqual'
+ | 'equal'
+ | 'notEqual'
+ | 'ok'
+ | 'strictEqual'
+ | 'deepStrictEqual'
+ | 'ifError'
+ > & {
+ (value: any, message?: string | Error): asserts value;
+ strict: typeof strict;
+ deepEqual: typeof deepStrictEqual;
+ notDeepEqual: typeof notDeepStrictEqual;
+ equal: typeof strictEqual;
+ notEqual: typeof notStrictEqual;
+ ok(value: any, message?: string | Error): asserts value;
+ strictEqual<T>(actual: any, expected: T, message?: string | Error): asserts actual is T;
+ deepStrictEqual<T>(actual: any, expected: T, message?: string | Error): asserts actual is T;
+ ifError(value: any): asserts value is null | undefined;
+ };
}
export = assert;
diff --git a/node_modules/@types/node/crypto.d.ts b/node_modules/@types/node/crypto.d.ts
index 258ea7f..17660cf 100644
--- a/node_modules/@types/node/crypto.d.ts
+++ b/node_modules/@types/node/crypto.d.ts
@@ -278,7 +278,7 @@
function createPrivateKey(key: PrivateKeyInput | string | Buffer): KeyObject;
function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject): KeyObject;
- function createSecretKey(key: Buffer): KeyObject;
+ function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject;
function createSign(algorithm: string, options?: stream.WritableOptions): Signer;
@@ -448,7 +448,7 @@
/** @deprecated since v10.0.0 */
const DEFAULT_ENCODING: BufferEncoding;
- type KeyType = 'rsa' | 'dsa' | 'ec' | 'ed25519' | 'x25519';
+ type KeyType = 'rsa' | 'dsa' | 'ec' | 'ed25519' | 'ed448' | 'x25519' | 'x448';
type KeyFormat = 'pem' | 'der';
interface BasePrivateKeyEncodingOptions<T extends KeyFormat> {
@@ -468,12 +468,24 @@
*/
}
+ interface ED448KeyPairKeyObjectOptions {
+ /**
+ * No options.
+ */
+ }
+
interface X25519KeyPairKeyObjectOptions {
/**
* No options.
*/
}
+ interface X448KeyPairKeyObjectOptions {
+ /**
+ * No options.
+ */
+ }
+
interface ECKeyPairKeyObjectOptions {
/**
* Name of the curve to use.
@@ -568,6 +580,16 @@
};
}
+ interface ED448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
+ publicKeyEncoding: {
+ type: 'spki';
+ format: PubF;
+ };
+ privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
+ type: 'pkcs8';
+ };
+ }
+
interface X25519KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
publicKeyEncoding: {
type: 'spki';
@@ -578,6 +600,16 @@
};
}
+ interface X448KeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
+ publicKeyEncoding: {
+ type: 'spki';
+ format: PubF;
+ };
+ privateKeyEncoding: BasePrivateKeyEncodingOptions<PrivF> & {
+ type: 'pkcs8';
+ };
+ }
+
interface KeyPairSyncResult<T1 extends string | Buffer, T2 extends string | Buffer> {
publicKey: T1;
privateKey: T2;
@@ -605,13 +637,25 @@
function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
- function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
+ function generateKeyPairSync(type: 'ed25519', options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
+
+ function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
+ function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
+ function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
+ function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
+ function generateKeyPairSync(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
- function generateKeyPairSync(type: 'x25519', options: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
+ function generateKeyPairSync(type: 'x25519', options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
+
+ function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult<string, string>;
+ function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'pem', 'der'>): KeyPairSyncResult<string, Buffer>;
+ function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'der', 'pem'>): KeyPairSyncResult<Buffer, string>;
+ function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'der', 'der'>): KeyPairSyncResult<Buffer, Buffer>;
+ function generateKeyPairSync(type: 'x448', options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult;
function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
@@ -635,13 +679,25 @@
function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
- function generateKeyPair(type: 'ed25519', options: ED25519KeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
+ function generateKeyPair(type: 'ed25519', options: ED25519KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
+
+ function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
+ function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
+ function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
+ function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
+ function generateKeyPair(type: 'ed448', options: ED448KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
- function generateKeyPair(type: 'x25519', options: X25519KeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
+ function generateKeyPair(type: 'x25519', options: X25519KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
+
+ function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void;
+ function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void;
+ function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void;
+ function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void;
+ function generateKeyPair(type: 'x448', options: X448KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void;
namespace generateKeyPair {
function __promisify__(type: "rsa", options: RSAKeyPairOptions<'pem', 'pem'>): Promise<{ publicKey: string, privateKey: string }>;
@@ -666,13 +722,25 @@
function __promisify__(type: "ed25519", options: ED25519KeyPairOptions<'pem', 'der'>): Promise<{ publicKey: string, privateKey: Buffer }>;
function __promisify__(type: "ed25519", options: ED25519KeyPairOptions<'der', 'pem'>): Promise<{ publicKey: Buffer, privateKey: string }>;
function __promisify__(type: "ed25519", options: ED25519KeyPairOptions<'der', 'der'>): Promise<{ publicKey: Buffer, privateKey: Buffer }>;
- function __promisify__(type: "ed25519", options: ED25519KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
+ function __promisify__(type: "ed25519", options?: ED25519KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
+
+ function __promisify__(type: "ed448", options: ED448KeyPairOptions<'pem', 'pem'>): Promise<{ publicKey: string, privateKey: string }>;
+ function __promisify__(type: "ed448", options: ED448KeyPairOptions<'pem', 'der'>): Promise<{ publicKey: string, privateKey: Buffer }>;
+ function __promisify__(type: "ed448", options: ED448KeyPairOptions<'der', 'pem'>): Promise<{ publicKey: Buffer, privateKey: string }>;
+ function __promisify__(type: "ed448", options: ED448KeyPairOptions<'der', 'der'>): Promise<{ publicKey: Buffer, privateKey: Buffer }>;
+ function __promisify__(type: "ed448", options?: ED448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
function __promisify__(type: "x25519", options: X25519KeyPairOptions<'pem', 'pem'>): Promise<{ publicKey: string, privateKey: string }>;
function __promisify__(type: "x25519", options: X25519KeyPairOptions<'pem', 'der'>): Promise<{ publicKey: string, privateKey: Buffer }>;
function __promisify__(type: "x25519", options: X25519KeyPairOptions<'der', 'pem'>): Promise<{ publicKey: Buffer, privateKey: string }>;
function __promisify__(type: "x25519", options: X25519KeyPairOptions<'der', 'der'>): Promise<{ publicKey: Buffer, privateKey: Buffer }>;
- function __promisify__(type: "x25519", options: X25519KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
+ function __promisify__(type: "x25519", options?: X25519KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
+
+ function __promisify__(type: "x448", options: X448KeyPairOptions<'pem', 'pem'>): Promise<{ publicKey: string, privateKey: string }>;
+ function __promisify__(type: "x448", options: X448KeyPairOptions<'pem', 'der'>): Promise<{ publicKey: string, privateKey: Buffer }>;
+ function __promisify__(type: "x448", options: X448KeyPairOptions<'der', 'pem'>): Promise<{ publicKey: Buffer, privateKey: string }>;
+ function __promisify__(type: "x448", options: X448KeyPairOptions<'der', 'der'>): Promise<{ publicKey: Buffer, privateKey: Buffer }>;
+ function __promisify__(type: "x448", options?: X448KeyPairKeyObjectOptions): Promise<KeyPairKeyObjectResult>;
}
/**
diff --git a/node_modules/@types/node/http.d.ts b/node_modules/@types/node/http.d.ts
index 673196c..0cfb456 100644
--- a/node_modules/@types/node/http.d.ts
+++ b/node_modules/@types/node/http.d.ts
@@ -160,8 +160,8 @@
/**
* @deprecate Use `socket` instead.
*/
- connection: Socket;
- socket: Socket;
+ connection: Socket | null;
+ socket: Socket | null;
constructor();
@@ -205,8 +205,6 @@
// https://github.com/nodejs/node/blob/master/lib/_http_client.js#L77
class ClientRequest extends OutgoingMessage {
- connection: Socket;
- socket: Socket;
aborted: number;
constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
diff --git a/node_modules/@types/node/package.json b/node_modules/@types/node/package.json
index 58a0d64..e15aee1 100644
--- a/node_modules/@types/node/package.json
+++ b/node_modules/@types/node/package.json
@@ -1,6 +1,6 @@
{
"name": "@types/node",
- "version": "14.11.2",
+ "version": "14.11.8",
"description": "TypeScript definitions for Node.js",
"license": "MIT",
"contributors": [
@@ -246,6 +246,6 @@
},
"scripts": {},
"dependencies": {},
- "typesPublisherContentHash": "95c31ecd7dac923f86a6c9be84dca043a8e12b784d38a9fd13883ee95fac1971",
+ "typesPublisherContentHash": "2648fdcf6d0b183d3a081cb17833d47c55084f5245aa4f9a8ea246ed71a45a8b",
"typeScriptVersion": "3.2"
}
\ No newline at end of file
diff --git a/node_modules/@types/node/punycode.d.ts b/node_modules/@types/node/punycode.d.ts
index 75d2811..9089773 100644
--- a/node_modules/@types/node/punycode.d.ts
+++ b/node_modules/@types/node/punycode.d.ts
@@ -1,12 +1,68 @@
declare module "punycode" {
+ /**
+ * @deprecated since v7.0.0
+ * The version of the punycode module bundled in Node.js is being deprecated.
+ * In a future major version of Node.js this module will be removed.
+ * Users currently depending on the punycode module should switch to using
+ * the userland-provided Punycode.js module instead.
+ */
function decode(string: string): string;
+ /**
+ * @deprecated since v7.0.0
+ * The version of the punycode module bundled in Node.js is being deprecated.
+ * In a future major version of Node.js this module will be removed.
+ * Users currently depending on the punycode module should switch to using
+ * the userland-provided Punycode.js module instead.
+ */
function encode(string: string): string;
+ /**
+ * @deprecated since v7.0.0
+ * The version of the punycode module bundled in Node.js is being deprecated.
+ * In a future major version of Node.js this module will be removed.
+ * Users currently depending on the punycode module should switch to using
+ * the userland-provided Punycode.js module instead.
+ */
function toUnicode(domain: string): string;
+ /**
+ * @deprecated since v7.0.0
+ * The version of the punycode module bundled in Node.js is being deprecated.
+ * In a future major version of Node.js this module will be removed.
+ * Users currently depending on the punycode module should switch to using
+ * the userland-provided Punycode.js module instead.
+ */
function toASCII(domain: string): string;
+ /**
+ * @deprecated since v7.0.0
+ * The version of the punycode module bundled in Node.js is being deprecated.
+ * In a future major version of Node.js this module will be removed.
+ * Users currently depending on the punycode module should switch to using
+ * the userland-provided Punycode.js module instead.
+ */
const ucs2: ucs2;
interface ucs2 {
+ /**
+ * @deprecated since v7.0.0
+ * The version of the punycode module bundled in Node.js is being deprecated.
+ * In a future major version of Node.js this module will be removed.
+ * Users currently depending on the punycode module should switch to using
+ * the userland-provided Punycode.js module instead.
+ */
decode(string: string): number[];
+ /**
+ * @deprecated since v7.0.0
+ * The version of the punycode module bundled in Node.js is being deprecated.
+ * In a future major version of Node.js this module will be removed.
+ * Users currently depending on the punycode module should switch to using
+ * the userland-provided Punycode.js module instead.
+ */
encode(codePoints: number[]): string;
}
+ /**
+ * @deprecated since v7.0.0
+ * The version of the punycode module bundled in Node.js is being deprecated.
+ * In a future major version of Node.js this module will be removed.
+ * Users currently depending on the punycode module should switch to using
+ * the userland-provided Punycode.js module instead.
+ */
const version: string;
}
diff --git a/node_modules/@types/node/ts3.4/assert.d.ts b/node_modules/@types/node/ts3.4/assert.d.ts
index 3f01820..68b189c 100644
--- a/node_modules/@types/node/ts3.4/assert.d.ts
+++ b/node_modules/@types/node/ts3.4/assert.d.ts
@@ -1,4 +1,4 @@
-declare module "assert" {
+declare module 'assert' {
function assert(value: any, message?: string | Error): void;
namespace assert {
class AssertionError implements Error {
@@ -11,16 +11,25 @@
code: 'ERR_ASSERTION';
constructor(options?: {
- message?: string; actual?: any; expected?: any;
- operator?: string; stackStartFn?: Function
+ message?: string;
+ actual?: any;
+ expected?: any;
+ operator?: string;
+ stackStartFn?: Function;
});
}
- type AssertPredicate = RegExp | (new() => object) | ((thrown: any) => boolean) | object | Error;
+ type AssertPredicate = RegExp | (new () => object) | ((thrown: any) => boolean) | object | Error;
function fail(message?: string | Error): never;
/** @deprecated since v10.0.0 - use `fail([message])` or other assert functions instead. */
- function fail(actual: any, expected: any, message?: string | Error, operator?: string, stackStartFn?: Function): never;
+ function fail(
+ actual: any,
+ expected: any,
+ message?: string | Error,
+ operator?: string,
+ stackStartFn?: Function,
+ ): never;
function ok(value: any, message?: string | Error): void;
/** @deprecated since v9.9.0 - use `strictEqual()` instead. */
function equal(actual: any, expected: any, message?: string | Error): void;
@@ -43,9 +52,17 @@
function ifError(value: any): void;
function rejects(block: (() => Promise<any>) | Promise<any>, message?: string | Error): Promise<void>;
- function rejects(block: (() => Promise<any>) | Promise<any>, error: AssertPredicate, message?: string | Error): Promise<void>;
+ function rejects(
+ block: (() => Promise<any>) | Promise<any>,
+ error: AssertPredicate,
+ message?: string | Error,
+ ): Promise<void>;
function doesNotReject(block: (() => Promise<any>) | Promise<any>, message?: string | Error): Promise<void>;
- function doesNotReject(block: (() => Promise<any>) | Promise<any>, error: RegExp | Function, message?: string | Error): Promise<void>;
+ function doesNotReject(
+ block: (() => Promise<any>) | Promise<any>,
+ error: RegExp | Function,
+ message?: string | Error,
+ ): Promise<void>;
function match(value: string, regExp: RegExp, message?: string | Error): void;
function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
diff --git a/node_modules/@types/node/wasi.d.ts b/node_modules/@types/node/wasi.d.ts
index ecf3170..fe2b2aa 100644
--- a/node_modules/@types/node/wasi.d.ts
+++ b/node_modules/@types/node/wasi.d.ts
@@ -6,11 +6,13 @@
* WASI command itself.
*/
args?: string[];
+
/**
* An object similar to `process.env` that the WebAssembly
* application will see as its environment.
*/
env?: object;
+
/**
* This object represents the WebAssembly application's
* sandbox directory structure. The string keys of `preopens` are treated as
@@ -27,6 +29,24 @@
* @default false
*/
returnOnExit?: boolean;
+
+ /**
+ * The file descriptor used as standard input in the WebAssembly application.
+ * @default 0
+ */
+ stdin?: number;
+
+ /**
+ * The file descriptor used as standard output in the WebAssembly application.
+ * @default 1
+ */
+ stdout?: number;
+
+ /**
+ * The file descriptor used as standard error in the WebAssembly application.
+ * @default 2
+ */
+ stderr?: number;
}
class WASI {
@@ -40,11 +60,25 @@
*
* `start()` requires that `instance` exports a [`WebAssembly.Memory`][] named
* `memory`. If `instance` does not have a `memory` export an exception is thrown.
+ *
+ * If `start()` is called more than once, an exception is thrown.
*/
start(instance: object): void; // TODO: avoid DOM dependency until WASM moved to own lib.
+
+ /**
+ * Attempt to initialize `instance` as a WASI reactor by invoking its `_initialize()` export, if it is present.
+ * If `instance` contains a `_start()` export, then an exception is thrown.
+ *
+ * `start()` requires that `instance` exports a [`WebAssembly.Memory`][] named
+ * `memory`. If `instance` does not have a `memory` export an exception is thrown.
+ *
+ * If `initialize()` is called more than once, an exception is thrown.
+ */
+ initialize(instance: object): void; // TODO: avoid DOM dependency until WASM moved to own lib.
+
/**
* Is an object that implements the WASI system call API. This object
- * should be passed as the `wasi_unstable` import during the instantiation of a
+ * should be passed as the `wasi_snapshot_preview1` import during the instantiation of a
* [`WebAssembly.Instance`][].
*/
readonly wasiImport: NodeJS.Dict<any>; // TODO: Narrow to DOM types
diff --git a/node_modules/@types/node/worker_threads.d.ts b/node_modules/@types/node/worker_threads.d.ts
index 1aea5d4..b1e59df 100644
--- a/node_modules/@types/node/worker_threads.d.ts
+++ b/node_modules/@types/node/worker_threads.d.ts
@@ -3,9 +3,11 @@
import { EventEmitter } from "events";
import { Readable, Writable } from "stream";
import { URL } from "url";
+ import { FileHandle } from "fs/promises";
const isMainThread: boolean;
const parentPort: null | MessagePort;
+ const resourceLimits: ResourceLimits;
const SHARE_ENV: unique symbol;
const threadId: number;
const workerData: any;
@@ -15,43 +17,53 @@
readonly port2: MessagePort;
}
+ type TransferListItem = ArrayBuffer | MessagePort | FileHandle;
+
class MessagePort extends EventEmitter {
close(): void;
- postMessage(value: any, transferList?: Array<ArrayBuffer | MessagePort>): void;
+ postMessage(value: any, transferList?: TransferListItem[]): void;
ref(): void;
unref(): void;
start(): void;
addListener(event: "close", listener: () => void): this;
addListener(event: "message", listener: (value: any) => void): this;
+ addListener(event: "messageerror", listener: (error: Error) => void): this;
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
emit(event: "close"): boolean;
emit(event: "message", value: any): boolean;
+ emit(event: "messageerror", error: Error): boolean;
emit(event: string | symbol, ...args: any[]): boolean;
on(event: "close", listener: () => void): this;
on(event: "message", listener: (value: any) => void): this;
+ on(event: "messageerror", listener: (error: Error) => void): this;
on(event: string | symbol, listener: (...args: any[]) => void): this;
once(event: "close", listener: () => void): this;
once(event: "message", listener: (value: any) => void): this;
+ once(event: "messageerror", listener: (error: Error) => void): this;
once(event: string | symbol, listener: (...args: any[]) => void): this;
prependListener(event: "close", listener: () => void): this;
prependListener(event: "message", listener: (value: any) => void): this;
+ prependListener(event: "messageerror", listener: (error: Error) => void): this;
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
prependOnceListener(event: "close", listener: () => void): this;
prependOnceListener(event: "message", listener: (value: any) => void): this;
+ prependOnceListener(event: "messageerror", listener: (error: Error) => void): this;
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
removeListener(event: "close", listener: () => void): this;
removeListener(event: "message", listener: (value: any) => void): this;
+ removeListener(event: "messageerror", listener: (error: Error) => void): this;
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
off(event: "close", listener: () => void): this;
off(event: "message", listener: (value: any) => void): this;
+ off(event: "messageerror", listener: (error: Error) => void): this;
off(event: string | symbol, listener: (...args: any[]) => void): this;
}
@@ -74,14 +86,28 @@
/**
* Additional data to send in the first worker message.
*/
- transferList?: Array<ArrayBuffer | MessagePort>;
+ transferList?: TransferListItem[];
trackUnmanagedFds?: boolean;
}
interface ResourceLimits {
+ /**
+ * The maximum size of a heap space for recently created objects.
+ */
maxYoungGenerationSizeMb?: number;
+ /**
+ * The maximum size of the main heap in MB.
+ */
maxOldGenerationSizeMb?: number;
+ /**
+ * The size of a pre-allocated memory range used for generated code.
+ */
codeRangeSizeMb?: number;
+ /**
+ * The default maximum stack size for the thread. Small values may lead to unusable Worker instances.
+ * @default 4
+ */
+ stackSizeMb?: number;
}
class Worker extends EventEmitter {
@@ -98,7 +124,7 @@
*/
constructor(filename: string | URL, options?: WorkerOptions);
- postMessage(value: any, transferList?: Array<ArrayBuffer | MessagePort>): void;
+ postMessage(value: any, transferList?: TransferListItem[]): void;
ref(): void;
unref(): void;
/**
@@ -120,53 +146,73 @@
addListener(event: "error", listener: (err: Error) => void): this;
addListener(event: "exit", listener: (exitCode: number) => void): this;
addListener(event: "message", listener: (value: any) => void): this;
+ addListener(event: "messageerror", listener: (error: Error) => void): this;
addListener(event: "online", listener: () => void): this;
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
emit(event: "error", err: Error): boolean;
emit(event: "exit", exitCode: number): boolean;
emit(event: "message", value: any): boolean;
+ emit(event: "messageerror", error: Error): boolean;
emit(event: "online"): boolean;
emit(event: string | symbol, ...args: any[]): boolean;
on(event: "error", listener: (err: Error) => void): this;
on(event: "exit", listener: (exitCode: number) => void): this;
on(event: "message", listener: (value: any) => void): this;
+ on(event: "messageerror", listener: (error: Error) => void): this;
on(event: "online", listener: () => void): this;
on(event: string | symbol, listener: (...args: any[]) => void): this;
once(event: "error", listener: (err: Error) => void): this;
once(event: "exit", listener: (exitCode: number) => void): this;
once(event: "message", listener: (value: any) => void): this;
+ once(event: "messageerror", listener: (error: Error) => void): this;
once(event: "online", listener: () => void): this;
once(event: string | symbol, listener: (...args: any[]) => void): this;
prependListener(event: "error", listener: (err: Error) => void): this;
prependListener(event: "exit", listener: (exitCode: number) => void): this;
prependListener(event: "message", listener: (value: any) => void): this;
+ prependListener(event: "messageerror", listener: (error: Error) => void): this;
prependListener(event: "online", listener: () => void): this;
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
prependOnceListener(event: "error", listener: (err: Error) => void): this;
prependOnceListener(event: "exit", listener: (exitCode: number) => void): this;
prependOnceListener(event: "message", listener: (value: any) => void): this;
+ prependOnceListener(event: "messageerror", listener: (error: Error) => void): this;
prependOnceListener(event: "online", listener: () => void): this;
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
removeListener(event: "error", listener: (err: Error) => void): this;
removeListener(event: "exit", listener: (exitCode: number) => void): this;
removeListener(event: "message", listener: (value: any) => void): this;
+ removeListener(event: "messageerror", listener: (error: Error) => void): this;
removeListener(event: "online", listener: () => void): this;
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
off(event: "error", listener: (err: Error) => void): this;
off(event: "exit", listener: (exitCode: number) => void): this;
off(event: "message", listener: (value: any) => void): this;
+ off(event: "messageerror", listener: (error: Error) => void): this;
off(event: "online", listener: () => void): this;
off(event: string | symbol, listener: (...args: any[]) => void): this;
}
/**
+ * Mark an object as not transferable.
+ * If `object` occurs in the transfer list of a `port.postMessage()` call, it will be ignored.
+ *
+ * In particular, this makes sense for objects that can be cloned, rather than transferred,
+ * and which are used by other objects on the sending side. For example, Node.js marks
+ * the `ArrayBuffer`s it uses for its Buffer pool with this.
+ *
+ * This operation cannot be undone.
+ */
+ function markAsUntransferable(object: object): void;
+
+ /**
* Transfer a `MessagePort` to a different `vm` Context. The original `port`
* object will be rendered unusable, and the returned `MessagePort` instance will
* take its place.
diff --git a/node_modules/@types/node/zlib.d.ts b/node_modules/@types/node/zlib.d.ts
index a03e900..5ed1a0c 100644
--- a/node_modules/@types/node/zlib.d.ts
+++ b/node_modules/@types/node/zlib.d.ts
@@ -19,6 +19,8 @@
memLevel?: number; // compression only
strategy?: number; // compression only
dictionary?: NodeJS.ArrayBufferView | ArrayBuffer; // deflate/inflate only, empty dictionary by default
+ info?: boolean;
+ maxOutputLength?: number;
}
interface BrotliOptions {
@@ -40,6 +42,7 @@
*/
[key: number]: boolean | number;
};
+ maxOutputLength?: number;
}
interface Zlib {
@@ -111,6 +114,43 @@
function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
function unzipSync(buf: InputType, options?: ZlibOptions): Buffer;
+ namespace brotliCompress {
+ function __promisify__(buffer: InputType, options: BrotliOptions): Promise<Buffer>;
+ function __promisify__(buffer: InputType): Promise<Buffer>;
+ }
+ namespace brotliDecompress {
+ function __promisify__(buffer: InputType, options: BrotliOptions): Promise<Buffer>;
+ function __promisify__(buffer: InputType): Promise<Buffer>;
+ }
+ namespace deflate {
+ function __promisify__(buffer: InputType): Promise<Buffer>;
+ function __promisify__(buffer: InputType, options: ZlibOptions): Promise<Buffer>;
+ }
+ namespace deflateRaw {
+ function __promisify__(buffer: InputType): Promise<Buffer>;
+ function __promisify__(buffer: InputType, options: ZlibOptions): Promise<Buffer>;
+ }
+ namespace gzip {
+ function __promisify__(buffer: InputType): Promise<Buffer>;
+ function __promisify__(buffer: InputType, options: ZlibOptions): Promise<Buffer>;
+ }
+ namespace gunzip {
+ function __promisify__(buffer: InputType): Promise<Buffer>;
+ function __promisify__(buffer: InputType, options: ZlibOptions): Promise<Buffer>;
+ }
+ namespace inflate {
+ function __promisify__(buffer: InputType): Promise<Buffer>;
+ function __promisify__(buffer: InputType, options: ZlibOptions): Promise<Buffer>;
+ }
+ namespace inflateRaw {
+ function __promisify__(buffer: InputType): Promise<Buffer>;
+ function __promisify__(buffer: InputType, options: ZlibOptions): Promise<Buffer>;
+ }
+ namespace unzip {
+ function __promisify__(buffer: InputType): Promise<Buffer>;
+ function __promisify__(buffer: InputType, options: ZlibOptions): Promise<Buffer>;
+ }
+
namespace constants {
const BROTLI_DECODE: number;
const BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: number;
diff --git a/node_modules/@typescript-eslint/eslint-plugin/CHANGELOG.md b/node_modules/@typescript-eslint/eslint-plugin/CHANGELOG.md
index 09fdc41..eb0a0c0 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/CHANGELOG.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/CHANGELOG.md
@@ -3,6 +3,638 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [4.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.2.0...v4.3.0) (2020-09-28)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** added safe getTypeOfPropertyOfType wrapper ([#2567](https://github.com/typescript-eslint/typescript-eslint/issues/2567)) ([7cba2de](https://github.com/typescript-eslint/typescript-eslint/commit/7cba2de138542563d678fbfc738cd1b3ebf01e07))
+* **experimental-utils:** treat RuleTester arrays as readonly ([#2601](https://github.com/typescript-eslint/typescript-eslint/issues/2601)) ([8025777](https://github.com/typescript-eslint/typescript-eslint/commit/80257776b78bd2b2b4389d6bd530b009a75fb520))
+
+
+### Features
+
+* **eslint-plugin:** [no-invalid-void-type] add option to allow `this: void` ([#2481](https://github.com/typescript-eslint/typescript-eslint/issues/2481)) ([ddf5660](https://github.com/typescript-eslint/typescript-eslint/commit/ddf5660846784003cab4b10ae7a5e510b9dd562b))
+
+
+
+
+
+# [4.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.1.1...v4.2.0) (2020-09-21)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [naming-convention] ignore properties inside object patterns ([#2566](https://github.com/typescript-eslint/typescript-eslint/issues/2566)) ([53a3cbc](https://github.com/typescript-eslint/typescript-eslint/commit/53a3cbc6f002e55135efbdf4982a3ad308ac708b))
+* **eslint-plugin:** [prefer-ts-expect-error] support block comments ([#2541](https://github.com/typescript-eslint/typescript-eslint/issues/2541)) ([c6f72fb](https://github.com/typescript-eslint/typescript-eslint/commit/c6f72fbd3ccc19e39954cfe3d36d358ef43b7daa))
+* **scope-manager:** correct analysis of inferred types in conditional types ([#2537](https://github.com/typescript-eslint/typescript-eslint/issues/2537)) ([4f660fd](https://github.com/typescript-eslint/typescript-eslint/commit/4f660fd31acbb88b30719f925dcb2b3022cc2bab))
+
+
+### Features
+
+* **eslint-plugin:** add extension rule `comma-dangle` ([#2416](https://github.com/typescript-eslint/typescript-eslint/issues/2416)) ([f7babcf](https://github.com/typescript-eslint/typescript-eslint/commit/f7babcf4e6da3e5cba8f2c75d57abf8089432d05))
+
+
+
+
+
+## [4.1.1](https://github.com/typescript-eslint/typescript-eslint/compare/v4.1.0...v4.1.1) (2020-09-14)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [naming-convention] allow an array of selectors with types and modifiers ([#2415](https://github.com/typescript-eslint/typescript-eslint/issues/2415)) ([7ca54c3](https://github.com/typescript-eslint/typescript-eslint/commit/7ca54c3e4601ad07db5b882a67965cd67a18c4b3))
+* **eslint-plugin:** [no-implied-eval] handle the `Function` type ([#2435](https://github.com/typescript-eslint/typescript-eslint/issues/2435)) ([e1401dc](https://github.com/typescript-eslint/typescript-eslint/commit/e1401dc5897d01da516802cfb2333cf4bc6d0e93))
+* **eslint-plugin:** [no-unused-vars] better handling for declared modules ([#2553](https://github.com/typescript-eslint/typescript-eslint/issues/2553)) ([02d72d4](https://github.com/typescript-eslint/typescript-eslint/commit/02d72d480be7a8f7ddc66a028338cfb996886f3c)), closes [#2523](https://github.com/typescript-eslint/typescript-eslint/issues/2523)
+* **eslint-plugin:** [no-use-before-define] false positive for function type arguments ([#2554](https://github.com/typescript-eslint/typescript-eslint/issues/2554)) ([189162d](https://github.com/typescript-eslint/typescript-eslint/commit/189162d46ecb116c420232937a7f86df913f4e79)), closes [#2527](https://github.com/typescript-eslint/typescript-eslint/issues/2527)
+* **eslint-plugin:** [prefer-function-type] handle `this` return ([#2437](https://github.com/typescript-eslint/typescript-eslint/issues/2437)) ([7c6fcee](https://github.com/typescript-eslint/typescript-eslint/commit/7c6fcee657dffd041e389e0aeaa4f3e278e92986))
+* **eslint-plugin:** [return-await] don't error for `in-try-catch` if the return is in a `catch` without a `finally` ([#2356](https://github.com/typescript-eslint/typescript-eslint/issues/2356)) ([efdd521](https://github.com/typescript-eslint/typescript-eslint/commit/efdd5213ceaef332cf0b2c26573176f844d22a09))
+
+
+
+
+
+# [4.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.0.1...v4.1.0) (2020-09-07)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [explicit-module-boundary-types] cyclical reference infinite recursion crash ([#2482](https://github.com/typescript-eslint/typescript-eslint/issues/2482)) ([8693653](https://github.com/typescript-eslint/typescript-eslint/commit/86936537bd6f1075cbceeb8d2d4e254d75188409))
+* **eslint-plugin:** [no-unused-vars] correct detection of unused vars in a declared module with `export =` ([#2505](https://github.com/typescript-eslint/typescript-eslint/issues/2505)) ([3d07a99](https://github.com/typescript-eslint/typescript-eslint/commit/3d07a99faa0a5fc1b44acdb43ddbfc90a5105833))
+* **eslint-plugin:** [no-unused-vars] properly handle ambient declaration exports ([#2496](https://github.com/typescript-eslint/typescript-eslint/issues/2496)) ([4d3ce5f](https://github.com/typescript-eslint/typescript-eslint/commit/4d3ce5f696985389bf53a31d62766041c703c70c))
+* **eslint-plugin:** [no-use-before-define] false positive with jsx pragma reference ([#2503](https://github.com/typescript-eslint/typescript-eslint/issues/2503)) ([5afeeab](https://github.com/typescript-eslint/typescript-eslint/commit/5afeeab24ad013142f2431750f24e6085d0a6f3a)), closes [#2502](https://github.com/typescript-eslint/typescript-eslint/issues/2502)
+* **eslint-plugin:** [typedef] false positive for rest parameter with array destructuring ([#2441](https://github.com/typescript-eslint/typescript-eslint/issues/2441)) ([2ada5af](https://github.com/typescript-eslint/typescript-eslint/commit/2ada5aff1ef37bc260d7a0eaafe9ff04f8a08fe4))
+* **eslint-plugin:** handle missing message IDs in eslint v5/v6 ([#2461](https://github.com/typescript-eslint/typescript-eslint/issues/2461)) ([ffdfade](https://github.com/typescript-eslint/typescript-eslint/commit/ffdfade106d602bcc12b074bdfa489e9f661491e))
+* **scope-manager:** add `const` as a global type variable ([#2499](https://github.com/typescript-eslint/typescript-eslint/issues/2499)) ([eb3f6e3](https://github.com/typescript-eslint/typescript-eslint/commit/eb3f6e39391d62ac424baa305a15e61806b2fd65))
+* **scope-manager:** correctly handle inferred types in nested type scopes ([#2497](https://github.com/typescript-eslint/typescript-eslint/issues/2497)) ([95f6bf4](https://github.com/typescript-eslint/typescript-eslint/commit/95f6bf4818cdec48a0583bf82f928c598af22736))
+* **scope-manager:** don't create references for intrinsic JSX elements ([#2504](https://github.com/typescript-eslint/typescript-eslint/issues/2504)) ([cdb9807](https://github.com/typescript-eslint/typescript-eslint/commit/cdb9807a5a368a136856cd03048b68e0f2dfb405))
+* **scope-manager:** support rest function type parameters ([#2491](https://github.com/typescript-eslint/typescript-eslint/issues/2491)) ([9d8b4c4](https://github.com/typescript-eslint/typescript-eslint/commit/9d8b4c479c98623e4198aa07639321929a8a876f)), closes [#2449](https://github.com/typescript-eslint/typescript-eslint/issues/2449)
+* **scope-manager:** support tagged template string generic type parameters ([#2492](https://github.com/typescript-eslint/typescript-eslint/issues/2492)) ([a2686c0](https://github.com/typescript-eslint/typescript-eslint/commit/a2686c04293ab9070c1500a0dab7e205bd1fa9d2))
+* **scope-manager:** support type predicates ([#2493](https://github.com/typescript-eslint/typescript-eslint/issues/2493)) ([a40f54c](https://github.com/typescript-eslint/typescript-eslint/commit/a40f54c39d59096a0d12a492807dcd52fbcdc384)), closes [#2462](https://github.com/typescript-eslint/typescript-eslint/issues/2462)
+* **scope-manager:** treat type imports as both values and types ([#2494](https://github.com/typescript-eslint/typescript-eslint/issues/2494)) ([916e95a](https://github.com/typescript-eslint/typescript-eslint/commit/916e95a505689746dda38a67148c95cc7d207d9f)), closes [#2453](https://github.com/typescript-eslint/typescript-eslint/issues/2453)
+
+
+### Features
+
+* **eslint-plugin:** [no-shadow] add option `ignoreFunctionTypeParameterNameValueShadow` ([#2470](https://github.com/typescript-eslint/typescript-eslint/issues/2470)) ([bfe255f](https://github.com/typescript-eslint/typescript-eslint/commit/bfe255fde0cb5fe5e32c02eb5ba35d27fb23d9ea))
+* **eslint-plugin:** add extension rule `no-loop-func` ([#2490](https://github.com/typescript-eslint/typescript-eslint/issues/2490)) ([36305df](https://github.com/typescript-eslint/typescript-eslint/commit/36305df74b3c26b60364f7ec13390be492b4b2ec))
+* **scope-manager:** add support for JSX scope analysis ([#2498](https://github.com/typescript-eslint/typescript-eslint/issues/2498)) ([f887ab5](https://github.com/typescript-eslint/typescript-eslint/commit/f887ab51f58c1b3571f9a14832864bc0ca59623f)), closes [#2455](https://github.com/typescript-eslint/typescript-eslint/issues/2455) [#2477](https://github.com/typescript-eslint/typescript-eslint/issues/2477)
+
+
+
+
+
+## [4.0.1](https://github.com/typescript-eslint/typescript-eslint/compare/v4.0.0...v4.0.1) (2020-08-31)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** update parser dependency range ([#2445](https://github.com/typescript-eslint/typescript-eslint/issues/2445)) ([2cb6620](https://github.com/typescript-eslint/typescript-eslint/commit/2cb66205de797479d9b2d362652c42fe032e913b)), closes [#2444](https://github.com/typescript-eslint/typescript-eslint/issues/2444)
+
+
+
+
+
+# [4.0.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.10.1...v4.0.0) (2020-08-31)
+
+## [Please see the release notes for v4.0.0](https://github.com/typescript-eslint/typescript-eslint/releases/tag/v4.0.0)
+
+### Bug Fixes
+
+* **eslint-plugin:** [no-shadow] fix false-positive on enum declaration ([#2374](https://github.com/typescript-eslint/typescript-eslint/issues/2374)) ([9de669f](https://github.com/typescript-eslint/typescript-eslint/commit/9de669f339fef62a98f745dc08b833aa5c632e62))
+* **eslint-plugin:** [no-unused-vars] handle TSCallSignature ([#2336](https://github.com/typescript-eslint/typescript-eslint/issues/2336)) ([c70f54f](https://github.com/typescript-eslint/typescript-eslint/commit/c70f54fd3a46a12060ae3aec0faae872c431dd88))
+* correct decorator traversal for AssignmentPattern ([#2375](https://github.com/typescript-eslint/typescript-eslint/issues/2375)) ([d738fa4](https://github.com/typescript-eslint/typescript-eslint/commit/d738fa4eff0a5c4cfc9b30b1c0502f8d1e78d7b6))
+* **scope-manager:** correct analysis of abstract class properties ([#2420](https://github.com/typescript-eslint/typescript-eslint/issues/2420)) ([cd84549](https://github.com/typescript-eslint/typescript-eslint/commit/cd84549beba3cf471d75cfd9ba26f80366842ed5))
+* **typescript-estree:** correct ChainExpression interaction with parentheses and non-nulls ([#2380](https://github.com/typescript-eslint/typescript-eslint/issues/2380)) ([762bc99](https://github.com/typescript-eslint/typescript-eslint/commit/762bc99584ede4d0b8099a743991e957aec86aa8))
+
+
+### Features
+
+* consume new scope analysis package ([#2039](https://github.com/typescript-eslint/typescript-eslint/issues/2039)) ([3be125d](https://github.com/typescript-eslint/typescript-eslint/commit/3be125d9bdbee1984ac6037874edf619213bd3d0))
+* support ESTree optional chaining representation ([#2308](https://github.com/typescript-eslint/typescript-eslint/issues/2308)) ([e9d2ab6](https://github.com/typescript-eslint/typescript-eslint/commit/e9d2ab638b6767700b52797e74b814ea059beaae))
+* **eslint-plugin:** [ban-ts-comment] change default for `ts-expect-error` to `allow-with-description` ([#2351](https://github.com/typescript-eslint/typescript-eslint/issues/2351)) ([a3f163a](https://github.com/typescript-eslint/typescript-eslint/commit/a3f163abc03f0fefc6dca1f205b728a4425209e4)), closes [#2146](https://github.com/typescript-eslint/typescript-eslint/issues/2146)
+* **eslint-plugin:** [no-unnecessary-condition][strict-boolean-expressions] add option to make the rules error on files without `strictNullChecks` turned on ([#2345](https://github.com/typescript-eslint/typescript-eslint/issues/2345)) ([9273441](https://github.com/typescript-eslint/typescript-eslint/commit/9273441f7592b52620e10432cb2dd4dc5c3b4db1))
+* **eslint-plugin:** [typedef] remove all defaults ([#2352](https://github.com/typescript-eslint/typescript-eslint/issues/2352)) ([a9cd6fb](https://github.com/typescript-eslint/typescript-eslint/commit/a9cd6fb893074e4f2ca9ad3497eaddfacb3cfd25))
+* **eslint-plugin:** add `consistent-type-imports` rule ([#2367](https://github.com/typescript-eslint/typescript-eslint/issues/2367)) ([58b1c2d](https://github.com/typescript-eslint/typescript-eslint/commit/58b1c2d463f34895798b9a61340e49ffc3ec4f1a))
+
+
+### BREAKING CHANGES
+
+* - Removed decorators property from several Nodes that could never semantically have them (FunctionDeclaration, TSEnumDeclaration, and TSInterfaceDeclaration)
+- Removed AST_NODE_TYPES.Import. This is a minor breaking change as the node type that used this was removed ages ago.
+* **eslint-plugin:** Default rule options is a breaking change.
+
+
+
+
+
+## [3.10.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.10.0...v3.10.1) (2020-08-25)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [no-unnecessary-condition] correct regression with unary negations ([#2422](https://github.com/typescript-eslint/typescript-eslint/issues/2422)) ([d1f0887](https://github.com/typescript-eslint/typescript-eslint/commit/d1f08879338c825a1a20406fe47c051a287d6519)), closes [#2421](https://github.com/typescript-eslint/typescript-eslint/issues/2421)
+
+
+
+
+
+# [3.10.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.9.1...v3.10.0) (2020-08-24)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [explicit-module-boundary-types] ignore abstract setters ([#2410](https://github.com/typescript-eslint/typescript-eslint/issues/2410)) ([3764248](https://github.com/typescript-eslint/typescript-eslint/commit/3764248084455409f085c5bc4706079405cef618))
+* **eslint-plugin:** [explicit-module-boundary-types] ignore all bodyless setters ([#2413](https://github.com/typescript-eslint/typescript-eslint/issues/2413)) ([a53f8c6](https://github.com/typescript-eslint/typescript-eslint/commit/a53f8c6ff37aa47b3fc1b729e359d81ea079ff75))
+* **eslint-plugin:** [no-unnecessary-condition] better handling for unary negation ([#2382](https://github.com/typescript-eslint/typescript-eslint/issues/2382)) ([32fe2bb](https://github.com/typescript-eslint/typescript-eslint/commit/32fe2bb4fe5524355eef4f3a9bd85c824e9d7f46))
+
+
+### Features
+
+* **eslint-plugin:** add `no-implicit-any-catch` rule ([#2202](https://github.com/typescript-eslint/typescript-eslint/issues/2202)) ([fde89d4](https://github.com/typescript-eslint/typescript-eslint/commit/fde89d4d392ef35cac2bc09f2774bfe397b20100))
+
+
+
+
+
+## [3.9.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.9.0...v3.9.1) (2020-08-17)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [no-unnecessary-condition] fix false positive with nullish coalescing ([#2385](https://github.com/typescript-eslint/typescript-eslint/issues/2385)) ([092c969](https://github.com/typescript-eslint/typescript-eslint/commit/092c96967fd9b58fb2d8d325e1dbc750ccbeb746))
+* **eslint-plugin:** [prefer-includes] don't auto fix when `test` method's argument type doesn't have an 'includes' method ([#2391](https://github.com/typescript-eslint/typescript-eslint/issues/2391)) ([71c4c72](https://github.com/typescript-eslint/typescript-eslint/commit/71c4c729e90e308e0afd70af7db5e9d9ff238527))
+
+
+
+
+
+# [3.9.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.8.0...v3.9.0) (2020-08-10)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [no-throw-literal] support type assertions ([#2354](https://github.com/typescript-eslint/typescript-eslint/issues/2354)) ([470174a](https://github.com/typescript-eslint/typescript-eslint/commit/470174ad51fdb12d82129a896559075513f6c912))
+
+
+### Features
+
+* **eslint-plugin:** [no-unsafe-assignment/return] allow assigning any => unknown ([#2371](https://github.com/typescript-eslint/typescript-eslint/issues/2371)) ([e7528e6](https://github.com/typescript-eslint/typescript-eslint/commit/e7528e686f5fe5cce8504fc15d3cd06b8733712e))
+* **typescript-estree:** support TSv4 labelled tuple members ([#2378](https://github.com/typescript-eslint/typescript-eslint/issues/2378)) ([00d84ff](https://github.com/typescript-eslint/typescript-eslint/commit/00d84ffbcbe9d0ec98bdb2f2ce59959a27ce4dbe))
+
+
+
+
+
+# [3.8.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.7.1...v3.8.0) (2020-08-03)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [no-implied-eval] don't report when `Function` is imported ([#2348](https://github.com/typescript-eslint/typescript-eslint/issues/2348)) ([fa169e7](https://github.com/typescript-eslint/typescript-eslint/commit/fa169e79661821f0e0e64a56d6db9da42c3c8654))
+* **eslint-plugin:** [no-unsafe-assignment] fix typo in message ([#2347](https://github.com/typescript-eslint/typescript-eslint/issues/2347)) ([2027bb1](https://github.com/typescript-eslint/typescript-eslint/commit/2027bb11689b76c297f93ba8a918b35fe68e5b9d))
+
+
+### Features
+
+* **eslint-plugin:** [naming-convention] allow specifying an array of selectors ([#2335](https://github.com/typescript-eslint/typescript-eslint/issues/2335)) ([3ef6bd5](https://github.com/typescript-eslint/typescript-eslint/commit/3ef6bd5cadc225e42ef1330d15919a39f53f2a2b))
+* **eslint-plugin:** add `prefer-enum-initializers` rule ([#2326](https://github.com/typescript-eslint/typescript-eslint/issues/2326)) ([4f38ea3](https://github.com/typescript-eslint/typescript-eslint/commit/4f38ea39c97289db11501d6368d01db8c5787257))
+
+
+
+
+
+## [3.7.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.7.0...v3.7.1) (2020-07-27)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [adjacent-overload-signatures] fix false positive on call signatures and a method named `call` ([#2313](https://github.com/typescript-eslint/typescript-eslint/issues/2313)) ([30fafb0](https://github.com/typescript-eslint/typescript-eslint/commit/30fafb09422b3aca881f4785d89b0536092d4952))
+* **eslint-plugin:** [no-extra-parens] stop reporting on calling generic functions with one argument and type parameters containing parentheses ([#2319](https://github.com/typescript-eslint/typescript-eslint/issues/2319)) ([616a841](https://github.com/typescript-eslint/typescript-eslint/commit/616a841032bec310d9f31f1c987888273df27008))
+
+
+
+
+
+# [3.7.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.6.1...v3.7.0) (2020-07-20)
+
+
+### Features
+
+* **eslint-plugin:** [naming-convention] allow selecting only `const` variables ([#2291](https://github.com/typescript-eslint/typescript-eslint/issues/2291)) ([156d058](https://github.com/typescript-eslint/typescript-eslint/commit/156d058fee835fdf1ed827a5ad4a80d57190cc54))
+* **eslint-plugin:** [no-empty-function] add `decoratedFunctions` option ([#2295](https://github.com/typescript-eslint/typescript-eslint/issues/2295)) ([88f08f4](https://github.com/typescript-eslint/typescript-eslint/commit/88f08f410760f58fdc2de58ecd9dab9610821642))
+
+
+
+
+
+## [3.6.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.6.0...v3.6.1) (2020-07-13)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [no-unnecessary-condition] handle computed member access ([#2288](https://github.com/typescript-eslint/typescript-eslint/issues/2288)) ([3a187ca](https://github.com/typescript-eslint/typescript-eslint/commit/3a187cafb7302a3c05de0e6a236dd142a5e2d741))
+* **eslint-plugin:** [prefer-literal-enum-member] allow negative numbers ([#2277](https://github.com/typescript-eslint/typescript-eslint/issues/2277)) ([00ac9c3](https://github.com/typescript-eslint/typescript-eslint/commit/00ac9c3ccaad27bab08ec3c3a104f612bb593df5))
+* **eslint-plugin:** [space-before-function-paren] incorrect handling of abstract methods ([#2275](https://github.com/typescript-eslint/typescript-eslint/issues/2275)) ([ced6591](https://github.com/typescript-eslint/typescript-eslint/commit/ced65918b16f46c383496a9b4bd43eca8a76baf6)), closes [#2274](https://github.com/typescript-eslint/typescript-eslint/issues/2274)
+* **eslint-plugin:** [switch-exhaustiveness-check] handle special characters in enum keys ([#2207](https://github.com/typescript-eslint/typescript-eslint/issues/2207)) ([98ab010](https://github.com/typescript-eslint/typescript-eslint/commit/98ab010fb7fca884984bb4200fd806ecee8071b6))
+
+
+
+
+
+# [3.6.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.5.0...v3.6.0) (2020-07-06)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [no-namespace] allow namespaces in nested declarations with `allowDeclarations` ([#2238](https://github.com/typescript-eslint/typescript-eslint/issues/2238)) ([c1df669](https://github.com/typescript-eslint/typescript-eslint/commit/c1df6694f7866d3ef7ede0b1c6c9dd6f3955e682))
+* **eslint-plugin:** [space-before-function-paren] handle abstract functions ([#2199](https://github.com/typescript-eslint/typescript-eslint/issues/2199)) ([88a3edf](https://github.com/typescript-eslint/typescript-eslint/commit/88a3edfce8349f871b7b660d2b76508b67c94eda))
+
+
+### Features
+
+* **eslint-plugin:** add rule `prefer-literal-enum-member` ([#1898](https://github.com/typescript-eslint/typescript-eslint/issues/1898)) ([fe2b2ec](https://github.com/typescript-eslint/typescript-eslint/commit/fe2b2ec39ef04ac8b73eef9d29d12fd1b24fa183))
+
+
+
+
+
+# [3.5.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.4.0...v3.5.0) (2020-06-29)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [naming-convention] support unicode in regex ([#2241](https://github.com/typescript-eslint/typescript-eslint/issues/2241)) ([5fdd21a](https://github.com/typescript-eslint/typescript-eslint/commit/5fdd21a1726fb6928098c4152aec55a30df960d4))
+
+
+### Features
+
+* add package scope-manager ([#1939](https://github.com/typescript-eslint/typescript-eslint/issues/1939)) ([682eb7e](https://github.com/typescript-eslint/typescript-eslint/commit/682eb7e009c3f22a542882dfd3602196a60d2a1e))
+
+
+
+
+
+# [3.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.3.0...v3.4.0) (2020-06-22)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [no-base-to-string] handle intersection types ([#2170](https://github.com/typescript-eslint/typescript-eslint/issues/2170)) ([9cca3a9](https://github.com/typescript-eslint/typescript-eslint/commit/9cca3a9584d5d5ef0536219c5a734f4e87efb543))
+* **eslint-plugin:** [unbound-method] handling destructuring ([#2228](https://github.com/typescript-eslint/typescript-eslint/issues/2228)) ([c3753c2](https://github.com/typescript-eslint/typescript-eslint/commit/c3753c21768d355ecdb9e7ae8e0bfdfbbc1d3bbe))
+
+
+### Features
+
+* **eslint-plugin:** [no-unnecessary-boolean-literal-compare] add option to check nullable booleans ([#1983](https://github.com/typescript-eslint/typescript-eslint/issues/1983)) ([c0b3057](https://github.com/typescript-eslint/typescript-eslint/commit/c0b3057b7f7d515891ad2efe32e4ef8c01e0478f))
+* **eslint-plugin:** add extension rule `no-loss-of-precision` ([#2196](https://github.com/typescript-eslint/typescript-eslint/issues/2196)) ([535b0f2](https://github.com/typescript-eslint/typescript-eslint/commit/535b0f2ddd82efa6a2c40307a61c480f4b3cdea3))
+
+
+
+
+
+# [3.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.2.0...v3.3.0) (2020-06-15)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [no-unused-expressions] handle ternary and short-circuit options ([#2194](https://github.com/typescript-eslint/typescript-eslint/issues/2194)) ([ee9f100](https://github.com/typescript-eslint/typescript-eslint/commit/ee9f100a2f9a874c2b361482742686eeaa9bdac7))
+
+
+### Features
+
+* **eslint-plugin:** [naming-convention] better error message and docs for prefix/suffix ([#2195](https://github.com/typescript-eslint/typescript-eslint/issues/2195)) ([a2ffe55](https://github.com/typescript-eslint/typescript-eslint/commit/a2ffe5568df0f7224bfe9141d298e538383d5f09))
+
+
+
+
+
+# [3.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.1.0...v3.2.0) (2020-06-08)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [explicit-module-boundary-types] dont report return type errors on constructor overloads ([#2158](https://github.com/typescript-eslint/typescript-eslint/issues/2158)) ([53232d7](https://github.com/typescript-eslint/typescript-eslint/commit/53232d775ca0b808e2d75d9501f4411a868b2b48))
+* **eslint-plugin:** [explicit-module-boundary-types] handle bodyless arrow functions with explicit return types that return functions ([#2169](https://github.com/typescript-eslint/typescript-eslint/issues/2169)) ([58db655](https://github.com/typescript-eslint/typescript-eslint/commit/58db655133aaae006efe3e3ceee971cf88dc348f))
+* **eslint-plugin:** [explicit-module-boundary-types] handle nested functions and functions expressions in a typed variable declaration ([#2176](https://github.com/typescript-eslint/typescript-eslint/issues/2176)) ([6ff450d](https://github.com/typescript-eslint/typescript-eslint/commit/6ff450da3abec93223a33f6b52484c9ca99b7abe))
+* **eslint-plugin:** [no-extra-non-null-assertion] dont report for assertions not followed by the optional chain ([#2167](https://github.com/typescript-eslint/typescript-eslint/issues/2167)) ([e4c1834](https://github.com/typescript-eslint/typescript-eslint/commit/e4c1834c7c5934332dd1d58c09018453568c4889))
+* **eslint-plugin:** [no-unnecessary-conditionals] Handle comparison of generics and loose comparisons with undefined values ([#2152](https://github.com/typescript-eslint/typescript-eslint/issues/2152)) ([c86e2a2](https://github.com/typescript-eslint/typescript-eslint/commit/c86e2a235372149db9b1700d39c2145e0ce5221a))
+* **eslint-plugin:** [prefer-optional-chain] handling first member expression ([#2156](https://github.com/typescript-eslint/typescript-eslint/issues/2156)) ([de18660](https://github.com/typescript-eslint/typescript-eslint/commit/de18660a8cf8f7033798646d8c5b0938d1accb12))
+* **eslint-plugin:** [return-await] correct handling of ternaries ([#2168](https://github.com/typescript-eslint/typescript-eslint/issues/2168)) ([fe4c0bf](https://github.com/typescript-eslint/typescript-eslint/commit/fe4c0bf8c04f070d6642fbe86c5e5614bc88e8fd))
+
+
+### Features
+
+* **eslint-plugin:** [naming-convention] put identifiers in quotes in error messages ([#2182](https://github.com/typescript-eslint/typescript-eslint/issues/2182)) ([fc61932](https://github.com/typescript-eslint/typescript-eslint/commit/fc619326eedf7ef2efa51444ecdead81a36a204f)), closes [#2178](https://github.com/typescript-eslint/typescript-eslint/issues/2178)
+* **eslint-plugin:** [require-array-sort-compare] add `ignoreStringArrays` option ([#1972](https://github.com/typescript-eslint/typescript-eslint/issues/1972)) ([6dee784](https://github.com/typescript-eslint/typescript-eslint/commit/6dee7840a3af1dfe4c38a128d1c4655bdac625df))
+* **eslint-plugin:** add rule `ban-tslint-comment` ([#2140](https://github.com/typescript-eslint/typescript-eslint/issues/2140)) ([43ee226](https://github.com/typescript-eslint/typescript-eslint/commit/43ee226ffbaaa3e7126081db9476c24b89ec16e9))
+* **eslint-plugin:** add rule `no-confusing-non-null-assertion` ([#1941](https://github.com/typescript-eslint/typescript-eslint/issues/1941)) ([9b51c44](https://github.com/typescript-eslint/typescript-eslint/commit/9b51c44f29d8b3e95a510985544e8ded8a14404d))
+
+
+
+
+
+# [3.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.2...v3.1.0) (2020-06-01)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [explicit-module-boundary-types] don't check returned functions if parent function has return type ([#2084](https://github.com/typescript-eslint/typescript-eslint/issues/2084)) ([d7d4eeb](https://github.com/typescript-eslint/typescript-eslint/commit/d7d4eeb03f2918d5d9e361fdb47c2d42e83bd593))
+* **eslint-plugin:** [no-unnecessary-condition] handle comparison of any, unknown and loose comparisons with nullish values ([#2123](https://github.com/typescript-eslint/typescript-eslint/issues/2123)) ([1ae1d01](https://github.com/typescript-eslint/typescript-eslint/commit/1ae1d01e5603ec7cef8051ed018c3c3c88b29867))
+* **eslint-plugin:** [no-unnecessary-condition] improve optional chain handling ([#2111](https://github.com/typescript-eslint/typescript-eslint/issues/2111)) ([9ee399b](https://github.com/typescript-eslint/typescript-eslint/commit/9ee399b5906e82f346ff89141207a6630786de54))
+* **eslint-plugin:** [no-unnecessary-condition] improve optional chain handling 2 - electric boogaloo ([#2138](https://github.com/typescript-eslint/typescript-eslint/issues/2138)) ([c87cfaf](https://github.com/typescript-eslint/typescript-eslint/commit/c87cfaf6746775bb8ad9eb45b0002f068a822dbe))
+* **eslint-plugin:** [no-unused-expressions] ignore import expressions ([#2130](https://github.com/typescript-eslint/typescript-eslint/issues/2130)) ([e383691](https://github.com/typescript-eslint/typescript-eslint/commit/e3836910efdafd9edf04daed149c9e839c08047e))
+* **eslint-plugin:** [no-var-requires] false negative for TSAsExpression and MemberExpression ([#2139](https://github.com/typescript-eslint/typescript-eslint/issues/2139)) ([df95338](https://github.com/typescript-eslint/typescript-eslint/commit/df953388913b22d45242e65ce231d92a8b8a0080))
+* **experimental-utils:** downlevel type declarations for versions older than 3.8 ([#2133](https://github.com/typescript-eslint/typescript-eslint/issues/2133)) ([7925823](https://github.com/typescript-eslint/typescript-eslint/commit/792582326a8065270b69a0ffcaad5a7b4b103ff3))
+
+
+### Features
+
+* **eslint-plugin:** [ban-ts-comments] add "allow-with-description" option ([#2099](https://github.com/typescript-eslint/typescript-eslint/issues/2099)) ([8a0fd18](https://github.com/typescript-eslint/typescript-eslint/commit/8a0fd1899f544470a35afb3117f4c71aad7e4e42))
+* **eslint-plugin:** [ban-types] allow selective disable of default options with `false` value ([#2137](https://github.com/typescript-eslint/typescript-eslint/issues/2137)) ([1cb8ca4](https://github.com/typescript-eslint/typescript-eslint/commit/1cb8ca483d029935310e6904580df8501837084d))
+* **eslint-plugin:** [explicit-module-boundary-types] improve accuracy and coverage ([#2135](https://github.com/typescript-eslint/typescript-eslint/issues/2135)) ([caaa859](https://github.com/typescript-eslint/typescript-eslint/commit/caaa8599284d02ab3341e282cad35a52d0fb86c7))
+
+
+
+
+
+## [3.0.2](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.1...v3.0.2) (2020-05-27)
+
+**Note:** Version bump only for package @typescript-eslint/eslint-plugin
+
+
+
+
+
+## [3.0.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.0...v3.0.1) (2020-05-25)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [naming-convention] handle no options correctly ([#2095](https://github.com/typescript-eslint/typescript-eslint/issues/2095)) ([fd7d02b](https://github.com/typescript-eslint/typescript-eslint/commit/fd7d02b31ebd995b7fdd857d7c054042aa4f2001))
+* **eslint-plugin:** [no-throw-literal] handle intersection and union types ([#2085](https://github.com/typescript-eslint/typescript-eslint/issues/2085)) ([cae037f](https://github.com/typescript-eslint/typescript-eslint/commit/cae037ff9b20363b970cc600a09505b98bf10a14))
+* **eslint-plugin:** [unbound-method] fix crash due to missing `Intl` ([#2090](https://github.com/typescript-eslint/typescript-eslint/issues/2090)) ([f2fa82c](https://github.com/typescript-eslint/typescript-eslint/commit/f2fa82c532ae858ccfb064268cfcc9df657a54be))
+
+
+
+
+
+# [3.0.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.34.0...v3.0.0) (2020-05-21)
+
+## [Please see the release notes for v3.0.0](https://github.com/typescript-eslint/typescript-eslint/releases/tag/v3.0.0)
+
+### Bug Fixes
+
+* **eslint-plugin:** [dot-notation] fix typo in schema ([#2040](https://github.com/typescript-eslint/typescript-eslint/issues/2040)) ([242328f](https://github.com/typescript-eslint/typescript-eslint/commit/242328fa749ee4c72af93433a9bef95f329ac62f))
+* **eslint-plugin:** correct parser peerDep version ([fe59f69](https://github.com/typescript-eslint/typescript-eslint/commit/fe59f69381a0915a4f5135e2e88637a5eea246ba))
+* **experimental-utils:** add back SourceCode.isSpaceBetweenTokens ([ae82ea4](https://github.com/typescript-eslint/typescript-eslint/commit/ae82ea4a85a4ca332ebe6104e96c59dba30411be))
+* **typescript-estree:** remove now defunct `Import` node type ([f199cbd](https://github.com/typescript-eslint/typescript-eslint/commit/f199cbdbbd892b5ba03bfff66f463f3d9c92ee9b))
+* **typescript-estree:** use `TSEmptyBodyFunctionExpression` for body-less nodes ([#1289](https://github.com/typescript-eslint/typescript-eslint/issues/1289)) ([82e7163](https://github.com/typescript-eslint/typescript-eslint/commit/82e7163214b56ccde93ba97807b161669a50a60b))
+
+
+### Features
+
+* **eslint-plugin:** [ban-types] rework default options ([#848](https://github.com/typescript-eslint/typescript-eslint/issues/848)) ([8e31d5d](https://github.com/typescript-eslint/typescript-eslint/commit/8e31d5dbe9fe5227fdbefcecfd50ce5dd51360c3))
+* **eslint-plugin:** [no-floating-promises] ignore void operator by default ([#2003](https://github.com/typescript-eslint/typescript-eslint/issues/2003)) ([3626a67](https://github.com/typescript-eslint/typescript-eslint/commit/3626a673cf8117cc995245cd86e466e2553e9b0e))
+* **eslint-plugin:** [prefer-nullish-coalescing][prefer-optional-chain] remove unsafe fixers ([52b6085](https://github.com/typescript-eslint/typescript-eslint/commit/52b60852d0ba6bb6abe519c9d3ec1b231793e91d))
+* **experimental-utils:** upgrade eslint types for v7 ([#2023](https://github.com/typescript-eslint/typescript-eslint/issues/2023)) ([06869c9](https://github.com/typescript-eslint/typescript-eslint/commit/06869c9656fa37936126666845aee40aad546ebd))
+* upgrade to ESLint v7 ([#2022](https://github.com/typescript-eslint/typescript-eslint/issues/2022)) ([208de71](https://github.com/typescript-eslint/typescript-eslint/commit/208de71059746bf38e94bd460346ffb2698a3e12))
+* **eslint-plugin:** [no-unnecessary-condition] remove `checkArrayPredicates` and always check it ([#1579](https://github.com/typescript-eslint/typescript-eslint/issues/1579)) ([bfd9b60](https://github.com/typescript-eslint/typescript-eslint/commit/bfd9b606d17d30d5694967a1f01e0e1501ba1022))
+* **eslint-plugin:** [no-unnecessary-condition] remove option `ignoreRHS` ([#1163](https://github.com/typescript-eslint/typescript-eslint/issues/1163)) ([ee8dd8f](https://github.com/typescript-eslint/typescript-eslint/commit/ee8dd8f8a9e6c25ac426ce9bb71c5f012c51f264))
+* **eslint-plugin:** [no-unnecessary-condition] report when non-nullish is compared to `null`/`undefined` ([#1659](https://github.com/typescript-eslint/typescript-eslint/issues/1659)) ([7fa9060](https://github.com/typescript-eslint/typescript-eslint/commit/7fa906073903c5eb70609c25f1a91ada14dcdc71))
+* **eslint-plugin:** [restrict-template-expressions] `allowNumber: true` by default ([#2005](https://github.com/typescript-eslint/typescript-eslint/issues/2005)) ([643ec24](https://github.com/typescript-eslint/typescript-eslint/commit/643ec240bd901295d9e9ea5c43fc20109c33e982))
+* **eslint-plugin:** [restrict-template-expressions] rename `allowNullable` to `allowNullish` ([#2006](https://github.com/typescript-eslint/typescript-eslint/issues/2006)) ([264b017](https://github.com/typescript-eslint/typescript-eslint/commit/264b017c11c2ab132fcbad18b42a9a0fe639386e))
+* **eslint-plugin:** [strict-boolean-expression] rework options ([#1631](https://github.com/typescript-eslint/typescript-eslint/issues/1631)) ([cd14482](https://github.com/typescript-eslint/typescript-eslint/commit/cd1448240dca11762fcb9c10e18bb6541a840485))
+* **eslint-plugin:** delete deprecated rules ([#2002](https://github.com/typescript-eslint/typescript-eslint/issues/2002)) ([da0aec2](https://github.com/typescript-eslint/typescript-eslint/commit/da0aec2cfa27902aae7c438a2fe91343c822e4ae))
+* **eslint-plugin:** eslint-recommended: disable no-func-assign ([#984](https://github.com/typescript-eslint/typescript-eslint/issues/984)) ([ae9b8a9](https://github.com/typescript-eslint/typescript-eslint/commit/ae9b8a9c73c0328287de956466257d8bbfbdb20f))
+* **eslint-plugin:** eslint-recommended: disable no-obj-calls ([#1000](https://github.com/typescript-eslint/typescript-eslint/issues/1000)) ([b9ca14c](https://github.com/typescript-eslint/typescript-eslint/commit/b9ca14c5f5ec28a3fde1a9b2d2f6a4dc74d903e4))
+* **eslint-plugin:** update `eslint-recommended` set ([#1996](https://github.com/typescript-eslint/typescript-eslint/issues/1996)) ([9a96e18](https://github.com/typescript-eslint/typescript-eslint/commit/9a96e18400e0a0d738d159d9d01faf41d3586249))
+* **eslint-plugin:** update recommended sets ([#2001](https://github.com/typescript-eslint/typescript-eslint/issues/2001)) ([0126b4f](https://github.com/typescript-eslint/typescript-eslint/commit/0126b4f56f9197d561e90b09962ccceb4f88bc41))
+* **typescript-estree:** align nodes with estree 2020 ([#1389](https://github.com/typescript-eslint/typescript-eslint/issues/1389)) ([aff5b62](https://github.com/typescript-eslint/typescript-eslint/commit/aff5b62044f9b93f2087a1d261e9be3f8d6fd54d))
+* drop support for node v8 ([#1997](https://github.com/typescript-eslint/typescript-eslint/issues/1997)) ([b6c3b7b](https://github.com/typescript-eslint/typescript-eslint/commit/b6c3b7b84b8d199fa75a46432febd4a364a63217))
+* **typescript-estree:** always return parserServices ([#716](https://github.com/typescript-eslint/typescript-eslint/issues/716)) ([5b23443](https://github.com/typescript-eslint/typescript-eslint/commit/5b23443c48f3f62424db3e742243f3568080b946))
+* **typescript-estree:** handle 3.9's non-null assertion changes ([#2036](https://github.com/typescript-eslint/typescript-eslint/issues/2036)) ([06bec63](https://github.com/typescript-eslint/typescript-eslint/commit/06bec63c56536db070608ab136d2ad57083f0c6a))
+
+
+
+
+
+# [2.34.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.33.0...v2.34.0) (2020-05-18)
+
+
+### Features
+
+* **eslint-plugin:** [no-invalid-void-type] allow union of void and `allowInGenericTypeArguments` ([#1960](https://github.com/typescript-eslint/typescript-eslint/issues/1960)) ([1bc105a](https://github.com/typescript-eslint/typescript-eslint/commit/1bc105a2c6ae3fde9596f0419fed0de699dc57c7))
+* **eslint-plugin:** [restrict-template-expressions] improve error message ([#1926](https://github.com/typescript-eslint/typescript-eslint/issues/1926)) ([1af59ba](https://github.com/typescript-eslint/typescript-eslint/commit/1af59ba8ac0ceabb008d9c61556acf7db0a1d352))
+* **experimental-utils:** add `suggestion` property for rule modules ([#2033](https://github.com/typescript-eslint/typescript-eslint/issues/2033)) ([f42a5b0](https://github.com/typescript-eslint/typescript-eslint/commit/f42a5b09ebfa173f418a99c552b0cbe221567194))
+
+
+
+
+
+# [2.33.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.32.0...v2.33.0) (2020-05-12)
+
+
+### Features
+
+* **eslint-plugin:** add extension rule `lines-between-class-members` ([#1684](https://github.com/typescript-eslint/typescript-eslint/issues/1684)) ([08f93e6](https://github.com/typescript-eslint/typescript-eslint/commit/08f93e69347a8e7f3a7e8a1455bb5d069c2faeef))
+
+
+
+
+
+# [2.32.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.31.0...v2.32.0) (2020-05-11)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [no-base-to-string] support boolean in unions ([#1979](https://github.com/typescript-eslint/typescript-eslint/issues/1979)) ([6987ecc](https://github.com/typescript-eslint/typescript-eslint/commit/6987ecc1dacfb45c0f8ed3e81d08aa708eb96ad1))
+* **eslint-plugin:** [no-type-alias] handle readonly types in aliases ([#1990](https://github.com/typescript-eslint/typescript-eslint/issues/1990)) ([56d9870](https://github.com/typescript-eslint/typescript-eslint/commit/56d987070f83d1b6410b04750b20a761fd793073))
+* **eslint-plugin:** [no-unused-expressions] inherit `messages` from base rule ([#1992](https://github.com/typescript-eslint/typescript-eslint/issues/1992)) ([51ca404](https://github.com/typescript-eslint/typescript-eslint/commit/51ca404af645eed194269ab7f8f67b97bd52e32d))
+
+
+### Features
+
+* bump dependencies and align AST ([#2007](https://github.com/typescript-eslint/typescript-eslint/issues/2007)) ([18668b7](https://github.com/typescript-eslint/typescript-eslint/commit/18668b78fd7d1e5281af7fc26c76e0ca53297f69))
+
+
+
+
+
+# [2.31.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.30.0...v2.31.0) (2020-05-04)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [dot-notation] handle missing declarations ([#1947](https://github.com/typescript-eslint/typescript-eslint/issues/1947)) ([383f931](https://github.com/typescript-eslint/typescript-eslint/commit/383f93182599c00e231a0f0d36575ca0e19369a6))
+* **eslint-plugin:** [method-signature-style] fix overloaded methods to an intersection type ([#1966](https://github.com/typescript-eslint/typescript-eslint/issues/1966)) ([7f3fba3](https://github.com/typescript-eslint/typescript-eslint/commit/7f3fba348d432d7637e1c737df943ee1f9105062))
+* **eslint-plugin:** [return-await] await in a normal function ([#1962](https://github.com/typescript-eslint/typescript-eslint/issues/1962)) ([f82fd7b](https://github.com/typescript-eslint/typescript-eslint/commit/f82fd7bb81f986c4861d0b4e2ecdb0c496d7a602))
+* **eslint-plugin:** [unbound-method] false positives for unary expressions ([#1964](https://github.com/typescript-eslint/typescript-eslint/issues/1964)) ([b35070e](https://github.com/typescript-eslint/typescript-eslint/commit/b35070ec6f84ad5ce606386cdb6eeb91488dfdd7))
+* **eslint-plugin:** no-base-to-string boolean expression detect ([#1969](https://github.com/typescript-eslint/typescript-eslint/issues/1969)) ([f78f13a](https://github.com/typescript-eslint/typescript-eslint/commit/f78f13aedd59d5b5880903d48c779a6c50fd937e))
+
+
+### Features
+
+* **eslint-plugin:** [member-ordering] add decorators support ([#1870](https://github.com/typescript-eslint/typescript-eslint/issues/1870)) ([f7ec192](https://github.com/typescript-eslint/typescript-eslint/commit/f7ec1920607cb8eec8020b08cd7247de0bf19ce1))
+* **eslint-plugin:** [prefer-optional-chain] added option to convert to suggestion fixer ([#1965](https://github.com/typescript-eslint/typescript-eslint/issues/1965)) ([2f0824b](https://github.com/typescript-eslint/typescript-eslint/commit/2f0824b0a41f3043b6242fc1d49faae540abaf22))
+* **eslint-plugin:** new extended rule 'no-invalid-this' ([#1823](https://github.com/typescript-eslint/typescript-eslint/issues/1823)) ([b18bc35](https://github.com/typescript-eslint/typescript-eslint/commit/b18bc357507337b9725f8d9c1b549513075a0da5))
+* **experimental-utils:** expose our RuleTester extension ([#1948](https://github.com/typescript-eslint/typescript-eslint/issues/1948)) ([2dd1638](https://github.com/typescript-eslint/typescript-eslint/commit/2dd1638aaa2658ba99b2341861146b586f489121))
+
+
+
+
+
+# [2.30.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.29.0...v2.30.0) (2020-04-27)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [prefer-string-starts-ends-with] check for negative start index in slice ([#1920](https://github.com/typescript-eslint/typescript-eslint/issues/1920)) ([ed2bd60](https://github.com/typescript-eslint/typescript-eslint/commit/ed2bd6067f74ae33e36a084719bb91efedfba599))
+* **eslint-plugin:** fix no-base-to-string boolean literal check ([#1850](https://github.com/typescript-eslint/typescript-eslint/issues/1850)) ([2f45e99](https://github.com/typescript-eslint/typescript-eslint/commit/2f45e9992a8f12b6233716e77a6159f9cea2c879))
+
+
+### Features
+
+* **eslint-plugin:** add extension rule `dot-notation` ([#1867](https://github.com/typescript-eslint/typescript-eslint/issues/1867)) ([a85c3e1](https://github.com/typescript-eslint/typescript-eslint/commit/a85c3e1515d735b6c245cc658cdaec6deb05d630))
+* **eslint-plugin:** create `no-invalid-void-type` rule ([#1847](https://github.com/typescript-eslint/typescript-eslint/issues/1847)) ([f667ff1](https://github.com/typescript-eslint/typescript-eslint/commit/f667ff1708d4ed28b7ea5beea742889da69a76d9))
+
+
+
+
+
+# [2.29.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.28.0...v2.29.0) (2020-04-20)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [no-base-to-string] soft remove `ignoreTaggedTemplateExpressions` option ([#1916](https://github.com/typescript-eslint/typescript-eslint/issues/1916)) ([369978e](https://github.com/typescript-eslint/typescript-eslint/commit/369978e9685bacb3e3882b0510ff06eaf8df4ca1))
+
+
+### Features
+
+* **eslint-plugin:** [no-floating-promise] add option to ignore IIFEs ([#1799](https://github.com/typescript-eslint/typescript-eslint/issues/1799)) ([cea51bf](https://github.com/typescript-eslint/typescript-eslint/commit/cea51bf130d6d3c2935f5e2dcc468196f2ad9d00))
+* **eslint-plugin:** [restrict-template-expressions] add support for intersection types ([#1803](https://github.com/typescript-eslint/typescript-eslint/issues/1803)) ([cc70e4f](https://github.com/typescript-eslint/typescript-eslint/commit/cc70e4fbadd0b15fd6af913a2e1e2ddd346fa558))
+* **eslint-plugin:** add extension rule `init-declarations` ([#1814](https://github.com/typescript-eslint/typescript-eslint/issues/1814)) ([b01f5e7](https://github.com/typescript-eslint/typescript-eslint/commit/b01f5e778ac28e0797a3734fc58d025bb224f418))
+* **eslint-plugin:** add extension rule `keyword-spacing` ([#1739](https://github.com/typescript-eslint/typescript-eslint/issues/1739)) ([c5106dd](https://github.com/typescript-eslint/typescript-eslint/commit/c5106dd4bf2bc8846cc39aa8bb50c33bec026d4d))
+
+
+
+
+
+# [2.28.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.27.0...v2.28.0) (2020-04-13)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [method-signature-style] handle multiline params ([#1861](https://github.com/typescript-eslint/typescript-eslint/issues/1861)) ([5832a86](https://github.com/typescript-eslint/typescript-eslint/commit/5832a8643bbe174ec02df5966bb333e506e45f5d))
+* **eslint-plugin:** [no-empty-interface] use suggestion fixer for ambient contexts ([#1880](https://github.com/typescript-eslint/typescript-eslint/issues/1880)) ([62b2278](https://github.com/typescript-eslint/typescript-eslint/commit/62b2278aec0011c93eae17bed8b278114d3379a2))
+* **eslint-plugin:** [unbound-method] false positive on property function initializer ([#1890](https://github.com/typescript-eslint/typescript-eslint/issues/1890)) ([f1c3b18](https://github.com/typescript-eslint/typescript-eslint/commit/f1c3b18f7aadc81f7dca7aa32aa1a8fe424e04e7))
+* **eslint-plugin:** [unbound-method] ignore assignments _to_ methods ([#1736](https://github.com/typescript-eslint/typescript-eslint/issues/1736)) ([6b4680b](https://github.com/typescript-eslint/typescript-eslint/commit/6b4680b6e7343d9d98fa1de170f387a36d98b73e))
+* **eslint-plugin:** no-empty-interface autofix ([#1865](https://github.com/typescript-eslint/typescript-eslint/issues/1865)) ([829a2f7](https://github.com/typescript-eslint/typescript-eslint/commit/829a2f728f876d356908e2338c2d6620e58f9943)), closes [#1864](https://github.com/typescript-eslint/typescript-eslint/issues/1864)
+* **eslint-plugin:** use `isTypeArrayTypeOrUnionOfArrayTypes` util for checking if type is array ([#1728](https://github.com/typescript-eslint/typescript-eslint/issues/1728)) ([05030f8](https://github.com/typescript-eslint/typescript-eslint/commit/05030f8d2bd5a50e95053bc61380891da71cc567))
+
+
+### Features
+
+* **eslint-plugin:** [ban-ts-comment] support `ts-expect-error` ([#1706](https://github.com/typescript-eslint/typescript-eslint/issues/1706)) ([469cff3](https://github.com/typescript-eslint/typescript-eslint/commit/469cff332c041f38f60de052769287342455cff1))
+* **eslint-plugin:** [consistent-type-assertions] always allow `const` assertions ([#1713](https://github.com/typescript-eslint/typescript-eslint/issues/1713)) ([af2c00d](https://github.com/typescript-eslint/typescript-eslint/commit/af2c00de62f7e31eaeb88996ebf3f330cc8473b9))
+* **eslint-plugin:** [explicit-function-return-type] add option to allow concise arrows that start with void ([#1732](https://github.com/typescript-eslint/typescript-eslint/issues/1732)) ([2e9c202](https://github.com/typescript-eslint/typescript-eslint/commit/2e9c2028a8a0b226e0f87d4bcc997fa259ca3ebd))
+* **eslint-plugin:** [explicit-module-boundary-types] add optio… ([#1778](https://github.com/typescript-eslint/typescript-eslint/issues/1778)) ([3eee804](https://github.com/typescript-eslint/typescript-eslint/commit/3eee804461d017ea6189cd7f64fcd473623684b4))
+* **eslint-plugin:** [no-base-to-string] add option to ignore tagged templates ([#1763](https://github.com/typescript-eslint/typescript-eslint/issues/1763)) ([f5edb99](https://github.com/typescript-eslint/typescript-eslint/commit/f5edb9938c33f8b68f026eba00db3abe9359ced3))
+* **eslint-plugin:** [restrict-template-expressions] add option `allowAny` ([#1762](https://github.com/typescript-eslint/typescript-eslint/issues/1762)) ([d44c0f9](https://github.com/typescript-eslint/typescript-eslint/commit/d44c0f9bed2404ca00b020b35fd825929e213398))
+* **eslint-plugin:** add rule `prefer-reduce-type-parameter` ([#1707](https://github.com/typescript-eslint/typescript-eslint/issues/1707)) ([c92d240](https://github.com/typescript-eslint/typescript-eslint/commit/c92d240e49113779053eac32038382b282812afc))
+* **eslint-plugin:** add rule `prefer-ts-expect-error` ([#1705](https://github.com/typescript-eslint/typescript-eslint/issues/1705)) ([7021f21](https://github.com/typescript-eslint/typescript-eslint/commit/7021f2151a25db2a8edf17e06cd6f21e90761ec8))
+* **eslint-plugin:** add rule no-unsafe-assignment ([#1694](https://github.com/typescript-eslint/typescript-eslint/issues/1694)) ([a49b860](https://github.com/typescript-eslint/typescript-eslint/commit/a49b860cbbb2c7d718b99f561e2fb6eaadf16f17))
+
+
+
+
+
+# [2.27.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.26.0...v2.27.0) (2020-04-06)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [no-throw-literal] fix crash caused by getBaseTypes ([#1830](https://github.com/typescript-eslint/typescript-eslint/issues/1830)) ([9d53c76](https://github.com/typescript-eslint/typescript-eslint/commit/9d53c761983dd964109b9f13eb9bfe20caf9defb))
+* **eslint-plugin:** [no-unsafe-call] fix incorrect selector ([#1826](https://github.com/typescript-eslint/typescript-eslint/issues/1826)) ([8ec53a3](https://github.com/typescript-eslint/typescript-eslint/commit/8ec53a3579fcb59cdffea0c60fbb755d056f4c8a))
+* **eslint-plugin:** [require-await] handle async generators ([#1782](https://github.com/typescript-eslint/typescript-eslint/issues/1782)) ([9642d9d](https://github.com/typescript-eslint/typescript-eslint/commit/9642d9dce693befac89a4e9d8bf8dd18f4361e2a))
+* **eslint-plugin:** no-explicit-any constructor functions (& mo… ([#1711](https://github.com/typescript-eslint/typescript-eslint/issues/1711)) ([ab8572e](https://github.com/typescript-eslint/typescript-eslint/commit/ab8572e30e14ebda91c8437be5ee35e7dc9add2e))
+
+
+### Features
+
+* **eslint-plugin:** new rule method-signature-style ([#1685](https://github.com/typescript-eslint/typescript-eslint/issues/1685)) ([c49d771](https://github.com/typescript-eslint/typescript-eslint/commit/c49d771ba62f1a21d3c1aec106341daddfcd3c9a))
+* **eslint-plugin:** sort members alphabetically ([#263](https://github.com/typescript-eslint/typescript-eslint/issues/263)) ([485e902](https://github.com/typescript-eslint/typescript-eslint/commit/485e90213a0f8baac0587f7d56925448883fc5bd))
+* **eslint-plugin-internal:** add plugin-test-formatting rule ([#1821](https://github.com/typescript-eslint/typescript-eslint/issues/1821)) ([9b0023a](https://github.com/typescript-eslint/typescript-eslint/commit/9b0023a4996ecdd7dfcb30abd1678091a78f3064))
+
+
+
+
+
+# [2.26.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.25.0...v2.26.0) (2020-03-30)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [no-explicit-any] error with ignoreRestArgs ([#1796](https://github.com/typescript-eslint/typescript-eslint/issues/1796)) ([638d84d](https://github.com/typescript-eslint/typescript-eslint/commit/638d84ddd77d07117b3ec7c5431f3b0e44b1995d))
+* **eslint-plugin:** [no-unsafe-call] allow import expressions ([#1800](https://github.com/typescript-eslint/typescript-eslint/issues/1800)) ([4fa7107](https://github.com/typescript-eslint/typescript-eslint/commit/4fa710754ecc412b65ac3864fe0c7857c254ac1b))
+* **eslint-plugin:** [no-unsafe-return] error with <TS3.7 ([#1815](https://github.com/typescript-eslint/typescript-eslint/issues/1815)) ([f3160b4](https://github.com/typescript-eslint/typescript-eslint/commit/f3160b471f8247e157555b6cf5b40a1f6ccdc233))
+
+
+
+
+
+# [2.25.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.24.0...v2.25.0) (2020-03-23)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [quotes] false positive with backtick in import equals statement ([#1769](https://github.com/typescript-eslint/typescript-eslint/issues/1769)) ([199863d](https://github.com/typescript-eslint/typescript-eslint/commit/199863d35cb36bdb7178b8116d146258506644c7))
+* **eslint-plugin:** fix message of no-base-to-string ([#1755](https://github.com/typescript-eslint/typescript-eslint/issues/1755)) ([6646959](https://github.com/typescript-eslint/typescript-eslint/commit/6646959b255b08afe5175bba6621bad11b9e1d5e))
+
+
+### Features
+
+* **eslint-plugin:** [no-unnec-type-assertion] allow const assertions ([#1741](https://github.com/typescript-eslint/typescript-eslint/issues/1741)) ([f76a1b3](https://github.com/typescript-eslint/typescript-eslint/commit/f76a1b3e63afda9f239e46f4ad5b36c1d7a6e8da))
+* **eslint-plugin:** [no-unnecessary-condition] ignore basic array indexing false positives ([#1534](https://github.com/typescript-eslint/typescript-eslint/issues/1534)) ([2b9603d](https://github.com/typescript-eslint/typescript-eslint/commit/2b9603d868c57556d8cd6087685e798d74cb6f26))
+* **eslint-plugin:** add `class-literal-property-style` rule ([#1582](https://github.com/typescript-eslint/typescript-eslint/issues/1582)) ([b2dbd89](https://github.com/typescript-eslint/typescript-eslint/commit/b2dbd890a5bef81aa6978d68c166457838ee04a1))
+* **experimental-utils:** expose ast utility functions ([#1670](https://github.com/typescript-eslint/typescript-eslint/issues/1670)) ([3eb5d45](https://github.com/typescript-eslint/typescript-eslint/commit/3eb5d4525e95c8ab990f55588b8d830a02ce5a9c))
+
+
+
+
+
+# [2.24.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.23.0...v2.24.0) (2020-03-16)
+
+**Note:** Version bump only for package @typescript-eslint/eslint-plugin
+
+
+
+
+
+# [2.23.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.22.0...v2.23.0) (2020-03-09)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [prefer-readonly-parameter-types] handle recursive types ([#1672](https://github.com/typescript-eslint/typescript-eslint/issues/1672)) ([e5db36f](https://github.com/typescript-eslint/typescript-eslint/commit/e5db36f140b6463965858ad4ed77f71a9a00c5a7)), closes [#1665](https://github.com/typescript-eslint/typescript-eslint/issues/1665)
+* **eslint-plugin:** [type-annotation-spacing] handle constructor types ([#1664](https://github.com/typescript-eslint/typescript-eslint/issues/1664)) ([fbf1640](https://github.com/typescript-eslint/typescript-eslint/commit/fbf1640c5ab67770a1ace5a9bad2bddfa35bd88d)), closes [#1663](https://github.com/typescript-eslint/typescript-eslint/issues/1663)
+* **eslint-plugin:** fix autofixer for computed properties ([#1662](https://github.com/typescript-eslint/typescript-eslint/issues/1662)) ([ba22ea7](https://github.com/typescript-eslint/typescript-eslint/commit/ba22ea7f604b236828ce4dcff75831ec1da01ec1))
+* **eslint-plugin:** fix placeholder in `ban-ts-comment` ([#1703](https://github.com/typescript-eslint/typescript-eslint/issues/1703)) ([144345c](https://github.com/typescript-eslint/typescript-eslint/commit/144345c4774c0664752116ef2cf28f46cf52052f))
+
+
+### Features
+
+* **eslint-plugin:** [no-unsafe-call] support tagged templates ([#1680](https://github.com/typescript-eslint/typescript-eslint/issues/1680)) ([55a58ff](https://github.com/typescript-eslint/typescript-eslint/commit/55a58ff0ae0434970537657ec2cb0bc7ab64c13d))
+* **eslint-plugin:** [no-unsafe-member-access] report any typed… ([#1683](https://github.com/typescript-eslint/typescript-eslint/issues/1683)) ([1543117](https://github.com/typescript-eslint/typescript-eslint/commit/1543117874047726a6bc1b71bd2f68779f266591))
+* **eslint-plugin:** add rule no-unsafe-call ([#1647](https://github.com/typescript-eslint/typescript-eslint/issues/1647)) ([91423e4](https://github.com/typescript-eslint/typescript-eslint/commit/91423e49d19163fae7b03cbc79bb3cd3db8c2c6d))
+* **eslint-plugin:** add rule no-unsafe-member-access ([#1643](https://github.com/typescript-eslint/typescript-eslint/issues/1643)) ([608a750](https://github.com/typescript-eslint/typescript-eslint/commit/608a750d53c39e892fdb982aeea9e4f9c5e2382d))
+* **eslint-plugin:** add rule no-unsafe-return ([#1644](https://github.com/typescript-eslint/typescript-eslint/issues/1644)) ([cfc3ef1](https://github.com/typescript-eslint/typescript-eslint/commit/cfc3ef10941f46cdbc084e99e1d48d6d3a928903))
+
+
+
+
+
# [2.22.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.21.0...v2.22.0) (2020-03-02)
diff --git a/node_modules/@typescript-eslint/eslint-plugin/README.md b/node_modules/@typescript-eslint/eslint-plugin/README.md
index 19ee263..37a27ca 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/README.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/README.md
@@ -1,11 +1,11 @@
<h1 align="center">ESLint Plugin TypeScript</h1>
+<p align="center">An ESLint plugin which provides lint rules for TypeScript codebases.</p>
+
<p align="center">
- <a href="https://dev.azure.com/typescript-eslint/TypeScript%20ESLint/_build/latest?definitionId=1&branchName=master"><img src="https://img.shields.io/azure-devops/build/typescript-eslint/TypeScript%20ESLint/1/master.svg?label=%F0%9F%9A%80%20Azure%20Pipelines&style=flat-square" alt="Azure Pipelines"/></a>
- <a href="https://github.com/typescript-eslint/typescript-eslint/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/typescript-estree.svg?style=flat-square" alt="GitHub license" /></a>
+ <img src="https://github.com/typescript-eslint/typescript-eslint/workflows/CI/badge.svg" alt="CI" />
<a href="https://www.npmjs.com/package/@typescript-eslint/eslint-plugin"><img src="https://img.shields.io/npm/v/@typescript-eslint/eslint-plugin.svg?style=flat-square" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/package/@typescript-eslint/eslint-plugin"><img src="https://img.shields.io/npm/dm/@typescript-eslint/eslint-plugin.svg?style=flat-square" alt="NPM Downloads" /></a>
- <a href="http://commitizen.github.io/cz-cli/"><img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square" alt="Commitizen friendly" /></a>
</p>
## Getting Started
@@ -19,10 +19,18 @@
### Installation
-Make sure you have TypeScript and [`@typescript-eslint/parser`](../parser) installed, then install the plugin:
+Make sure you have TypeScript and [`@typescript-eslint/parser`](../parser) installed:
-```sh
-yarn add -D @typescript-eslint/eslint-plugin
+```bash
+$ yarn add -D typescript @typescript-eslint/parser
+$ npm i --save-dev typescript @typescript-eslint/parser
+```
+
+Then install the plugin:
+
+```bash
+$ yarn add -D @typescript-eslint/eslint-plugin
+$ npm i --save-dev @typescript-eslint/eslint-plugin
```
It is important that you use the same version number for `@typescript-eslint/parser` and `@typescript-eslint/eslint-plugin`.
@@ -55,15 +63,11 @@
### Recommended Configs
-You can also use [`eslint:recommended`](https://eslint.org/docs/rules/) (the set of rules which are recommended for all projects by the ESLint Team) with this plugin. As noted in the root README, not all ESLint core rules are compatible with TypeScript, so you need to add both `eslint:recommended` and `plugin:@typescript-eslint/eslint-recommended` (which will adjust the one from ESLint appropriately for TypeScript) to your config:
+You can also use [`eslint:recommended`](https://eslint.org/docs/rules/) (the set of rules which are recommended for all projects by the ESLint Team) with this plugin:
```json
{
- "extends": [
- "eslint:recommended",
- "plugin:@typescript-eslint/eslint-recommended",
- "plugin:@typescript-eslint/recommended"
- ]
+ "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"]
}
```
@@ -75,7 +79,6 @@
{
"extends": [
"eslint:recommended",
- "plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
]
@@ -97,30 +100,37 @@
| [`@typescript-eslint/adjacent-overload-signatures`](./docs/rules/adjacent-overload-signatures.md) | Require that member overloads be consecutive | :heavy_check_mark: | | |
| [`@typescript-eslint/array-type`](./docs/rules/array-type.md) | Requires using either `T[]` or `Array<T>` for arrays | | :wrench: | |
| [`@typescript-eslint/await-thenable`](./docs/rules/await-thenable.md) | Disallows awaiting a value that is not a Thenable | :heavy_check_mark: | | :thought_balloon: |
-| [`@typescript-eslint/ban-ts-comment`](./docs/rules/ban-ts-comment.md) | Bans `// @ts-<directive>` comments from being used | | | |
+| [`@typescript-eslint/ban-ts-comment`](./docs/rules/ban-ts-comment.md) | Bans `// @ts-<directive>` comments from being used or requires descriptions after directive | :heavy_check_mark: | | |
+| [`@typescript-eslint/ban-tslint-comment`](./docs/rules/ban-tslint-comment.md) | Bans `// tslint:<rule-flag>` comments from being used | | :wrench: | |
| [`@typescript-eslint/ban-types`](./docs/rules/ban-types.md) | Bans specific types from being used | :heavy_check_mark: | :wrench: | |
-| [`@typescript-eslint/consistent-type-assertions`](./docs/rules/consistent-type-assertions.md) | Enforces consistent usage of type assertions | :heavy_check_mark: | | |
+| [`@typescript-eslint/class-literal-property-style`](./docs/rules/class-literal-property-style.md) | Ensures that literals on classes are exposed in a consistent style | | :wrench: | |
+| [`@typescript-eslint/consistent-type-assertions`](./docs/rules/consistent-type-assertions.md) | Enforces consistent usage of type assertions | | | |
| [`@typescript-eslint/consistent-type-definitions`](./docs/rules/consistent-type-definitions.md) | Consistent with type definition either `interface` or `type` | | :wrench: | |
-| [`@typescript-eslint/explicit-function-return-type`](./docs/rules/explicit-function-return-type.md) | Require explicit return types on functions and class methods | :heavy_check_mark: | | |
+| [`@typescript-eslint/consistent-type-imports`](./docs/rules/consistent-type-imports.md) | Enforces consistent usage of type imports | | :wrench: | |
+| [`@typescript-eslint/explicit-function-return-type`](./docs/rules/explicit-function-return-type.md) | Require explicit return types on functions and class methods | | | |
| [`@typescript-eslint/explicit-member-accessibility`](./docs/rules/explicit-member-accessibility.md) | Require explicit accessibility modifiers on class properties and methods | | :wrench: | |
-| [`@typescript-eslint/explicit-module-boundary-types`](./docs/rules/explicit-module-boundary-types.md) | Require explicit return and argument types on exported functions' and classes' public class methods | | | |
-| [`@typescript-eslint/member-delimiter-style`](./docs/rules/member-delimiter-style.md) | Require a specific member delimiter style for interfaces and type literals | :heavy_check_mark: | :wrench: | |
+| [`@typescript-eslint/explicit-module-boundary-types`](./docs/rules/explicit-module-boundary-types.md) | Require explicit return and argument types on exported functions' and classes' public class methods | :heavy_check_mark: | | |
+| [`@typescript-eslint/member-delimiter-style`](./docs/rules/member-delimiter-style.md) | Require a specific member delimiter style for interfaces and type literals | | :wrench: | |
| [`@typescript-eslint/member-ordering`](./docs/rules/member-ordering.md) | Require a consistent member declaration order | | | |
+| [`@typescript-eslint/method-signature-style`](./docs/rules/method-signature-style.md) | Enforces using a particular method signature syntax. | | :wrench: | |
| [`@typescript-eslint/naming-convention`](./docs/rules/naming-convention.md) | Enforces naming conventions for everything across a codebase | | | :thought_balloon: |
| [`@typescript-eslint/no-base-to-string`](./docs/rules/no-base-to-string.md) | Requires that `.toString()` is only called on objects which provide useful information when stringified | | | :thought_balloon: |
+| [`@typescript-eslint/no-confusing-non-null-assertion`](./docs/rules/no-confusing-non-null-assertion.md) | Disallow non-null assertion in locations that may be confusing | | :wrench: | |
| [`@typescript-eslint/no-dynamic-delete`](./docs/rules/no-dynamic-delete.md) | Disallow the delete operator with computed key expressions | | :wrench: | |
| [`@typescript-eslint/no-empty-interface`](./docs/rules/no-empty-interface.md) | Disallow the declaration of empty interfaces | :heavy_check_mark: | :wrench: | |
| [`@typescript-eslint/no-explicit-any`](./docs/rules/no-explicit-any.md) | Disallow usage of the `any` type | :heavy_check_mark: | :wrench: | |
-| [`@typescript-eslint/no-extra-non-null-assertion`](./docs/rules/no-extra-non-null-assertion.md) | Disallow extra non-null assertion | | :wrench: | |
+| [`@typescript-eslint/no-extra-non-null-assertion`](./docs/rules/no-extra-non-null-assertion.md) | Disallow extra non-null assertion | :heavy_check_mark: | :wrench: | |
| [`@typescript-eslint/no-extraneous-class`](./docs/rules/no-extraneous-class.md) | Forbids the use of classes as namespaces | | | |
-| [`@typescript-eslint/no-floating-promises`](./docs/rules/no-floating-promises.md) | Requires Promise-like values to be handled appropriately | | | :thought_balloon: |
+| [`@typescript-eslint/no-floating-promises`](./docs/rules/no-floating-promises.md) | Requires Promise-like values to be handled appropriately | :heavy_check_mark: | | :thought_balloon: |
| [`@typescript-eslint/no-for-in-array`](./docs/rules/no-for-in-array.md) | Disallow iterating over an array with a for-in loop | :heavy_check_mark: | | :thought_balloon: |
-| [`@typescript-eslint/no-implied-eval`](./docs/rules/no-implied-eval.md) | Disallow the use of `eval()`-like methods | | | :thought_balloon: |
+| [`@typescript-eslint/no-implicit-any-catch`](./docs/rules/no-implicit-any-catch.md) | Disallow usage of the implicit `any` type in catch clauses | | :wrench: | |
+| [`@typescript-eslint/no-implied-eval`](./docs/rules/no-implied-eval.md) | Disallow the use of `eval()`-like methods | :heavy_check_mark: | | :thought_balloon: |
| [`@typescript-eslint/no-inferrable-types`](./docs/rules/no-inferrable-types.md) | Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean | :heavy_check_mark: | :wrench: | |
+| [`@typescript-eslint/no-invalid-void-type`](./docs/rules/no-invalid-void-type.md) | Disallows usage of `void` type outside of generic or return types | | | |
| [`@typescript-eslint/no-misused-new`](./docs/rules/no-misused-new.md) | Enforce valid definition of `new` and `constructor` | :heavy_check_mark: | | |
| [`@typescript-eslint/no-misused-promises`](./docs/rules/no-misused-promises.md) | Avoid using promises in places not designed to handle them | :heavy_check_mark: | | :thought_balloon: |
| [`@typescript-eslint/no-namespace`](./docs/rules/no-namespace.md) | Disallow the use of custom TypeScript modules and namespaces | :heavy_check_mark: | | |
-| [`@typescript-eslint/no-non-null-asserted-optional-chain`](./docs/rules/no-non-null-asserted-optional-chain.md) | Disallows using a non-null assertion after an optional chain expression | | | |
+| [`@typescript-eslint/no-non-null-asserted-optional-chain`](./docs/rules/no-non-null-asserted-optional-chain.md) | Disallows using a non-null assertion after an optional chain expression | :heavy_check_mark: | | |
| [`@typescript-eslint/no-non-null-assertion`](./docs/rules/no-non-null-assertion.md) | Disallows non-null assertions using the `!` postfix operator | :heavy_check_mark: | | |
| [`@typescript-eslint/no-parameter-properties`](./docs/rules/no-parameter-properties.md) | Disallow the use of parameter properties in class constructors | | | |
| [`@typescript-eslint/no-require-imports`](./docs/rules/no-require-imports.md) | Disallows invocation of `require()` | | | |
@@ -132,27 +142,34 @@
| [`@typescript-eslint/no-unnecessary-qualifier`](./docs/rules/no-unnecessary-qualifier.md) | Warns when a namespace qualifier is unnecessary | | :wrench: | :thought_balloon: |
| [`@typescript-eslint/no-unnecessary-type-arguments`](./docs/rules/no-unnecessary-type-arguments.md) | Enforces that type arguments will not be used if not required | | :wrench: | :thought_balloon: |
| [`@typescript-eslint/no-unnecessary-type-assertion`](./docs/rules/no-unnecessary-type-assertion.md) | Warns if a type assertion does not change the type of an expression | :heavy_check_mark: | :wrench: | :thought_balloon: |
-| [`@typescript-eslint/no-unused-vars-experimental`](./docs/rules/no-unused-vars-experimental.md) | Disallow unused variables and arguments | | | :thought_balloon: |
+| [`@typescript-eslint/no-unsafe-assignment`](./docs/rules/no-unsafe-assignment.md) | Disallows assigning any to variables and properties | :heavy_check_mark: | | :thought_balloon: |
+| [`@typescript-eslint/no-unsafe-call`](./docs/rules/no-unsafe-call.md) | Disallows calling an any type value | :heavy_check_mark: | | :thought_balloon: |
+| [`@typescript-eslint/no-unsafe-member-access`](./docs/rules/no-unsafe-member-access.md) | Disallows member access on any typed variables | :heavy_check_mark: | | :thought_balloon: |
+| [`@typescript-eslint/no-unsafe-return`](./docs/rules/no-unsafe-return.md) | Disallows returning any from a function | :heavy_check_mark: | | :thought_balloon: |
| [`@typescript-eslint/no-var-requires`](./docs/rules/no-var-requires.md) | Disallows the use of require statements except in import statements | :heavy_check_mark: | | |
-| [`@typescript-eslint/prefer-as-const`](./docs/rules/prefer-as-const.md) | Prefer usage of `as const` over literal type | | :wrench: | |
+| [`@typescript-eslint/prefer-as-const`](./docs/rules/prefer-as-const.md) | Prefer usage of `as const` over literal type | :heavy_check_mark: | :wrench: | |
+| [`@typescript-eslint/prefer-enum-initializers`](./docs/rules/prefer-enum-initializers.md) | Prefer initializing each enums member value | | | |
| [`@typescript-eslint/prefer-for-of`](./docs/rules/prefer-for-of.md) | Prefer a ‘for-of’ loop over a standard ‘for’ loop if the index is only used to access the array being iterated | | | |
| [`@typescript-eslint/prefer-function-type`](./docs/rules/prefer-function-type.md) | Use function types instead of interfaces with call signatures | | :wrench: | |
-| [`@typescript-eslint/prefer-includes`](./docs/rules/prefer-includes.md) | Enforce `includes` method over `indexOf` method | :heavy_check_mark: | :wrench: | :thought_balloon: |
+| [`@typescript-eslint/prefer-includes`](./docs/rules/prefer-includes.md) | Enforce `includes` method over `indexOf` method | | :wrench: | :thought_balloon: |
+| [`@typescript-eslint/prefer-literal-enum-member`](./docs/rules/prefer-literal-enum-member.md) | Require that all enum members be literal values to prevent unintended enum member name shadow issues | | | |
| [`@typescript-eslint/prefer-namespace-keyword`](./docs/rules/prefer-namespace-keyword.md) | Require the use of the `namespace` keyword instead of the `module` keyword to declare custom TypeScript modules | :heavy_check_mark: | :wrench: | |
-| [`@typescript-eslint/prefer-nullish-coalescing`](./docs/rules/prefer-nullish-coalescing.md) | Enforce the usage of the nullish coalescing operator instead of logical chaining | | :wrench: | :thought_balloon: |
-| [`@typescript-eslint/prefer-optional-chain`](./docs/rules/prefer-optional-chain.md) | Prefer using concise optional chain expressions instead of chained logical ands | | :wrench: | |
+| [`@typescript-eslint/prefer-nullish-coalescing`](./docs/rules/prefer-nullish-coalescing.md) | Enforce the usage of the nullish coalescing operator instead of logical chaining | | | :thought_balloon: |
+| [`@typescript-eslint/prefer-optional-chain`](./docs/rules/prefer-optional-chain.md) | Prefer using concise optional chain expressions instead of chained logical ands | | | |
| [`@typescript-eslint/prefer-readonly`](./docs/rules/prefer-readonly.md) | Requires that private members are marked as `readonly` if they're never modified outside of the constructor | | :wrench: | :thought_balloon: |
| [`@typescript-eslint/prefer-readonly-parameter-types`](./docs/rules/prefer-readonly-parameter-types.md) | Requires that function parameters are typed as readonly to prevent accidental mutation of inputs | | | :thought_balloon: |
+| [`@typescript-eslint/prefer-reduce-type-parameter`](./docs/rules/prefer-reduce-type-parameter.md) | Prefer using type parameter when calling `Array#reduce` instead of casting | | :wrench: | :thought_balloon: |
| [`@typescript-eslint/prefer-regexp-exec`](./docs/rules/prefer-regexp-exec.md) | Enforce that `RegExp#exec` is used instead of `String#match` if no global flag is provided | :heavy_check_mark: | | :thought_balloon: |
-| [`@typescript-eslint/prefer-string-starts-ends-with`](./docs/rules/prefer-string-starts-ends-with.md) | Enforce the use of `String#startsWith` and `String#endsWith` instead of other equivalent methods of checking substrings | :heavy_check_mark: | :wrench: | :thought_balloon: |
+| [`@typescript-eslint/prefer-string-starts-ends-with`](./docs/rules/prefer-string-starts-ends-with.md) | Enforce the use of `String#startsWith` and `String#endsWith` instead of other equivalent methods of checking substrings | | :wrench: | :thought_balloon: |
+| [`@typescript-eslint/prefer-ts-expect-error`](./docs/rules/prefer-ts-expect-error.md) | Recommends using `@ts-expect-error` over `@ts-ignore` | | :wrench: | |
| [`@typescript-eslint/promise-function-async`](./docs/rules/promise-function-async.md) | Requires any function or method that returns a Promise to be marked async | | | :thought_balloon: |
| [`@typescript-eslint/require-array-sort-compare`](./docs/rules/require-array-sort-compare.md) | Requires `Array#sort` calls to always provide a `compareFunction` | | | :thought_balloon: |
-| [`@typescript-eslint/restrict-plus-operands`](./docs/rules/restrict-plus-operands.md) | When adding two variables, operands must both be of type number or of type string | | | :thought_balloon: |
-| [`@typescript-eslint/restrict-template-expressions`](./docs/rules/restrict-template-expressions.md) | Enforce template literal expressions to be of string type | | | :thought_balloon: |
+| [`@typescript-eslint/restrict-plus-operands`](./docs/rules/restrict-plus-operands.md) | When adding two variables, operands must both be of type number or of type string | :heavy_check_mark: | | :thought_balloon: |
+| [`@typescript-eslint/restrict-template-expressions`](./docs/rules/restrict-template-expressions.md) | Enforce template literal expressions to be of string type | :heavy_check_mark: | | :thought_balloon: |
| [`@typescript-eslint/strict-boolean-expressions`](./docs/rules/strict-boolean-expressions.md) | Restricts the types allowed in boolean expressions | | | :thought_balloon: |
| [`@typescript-eslint/switch-exhaustiveness-check`](./docs/rules/switch-exhaustiveness-check.md) | Exhaustiveness checking in switch with union type | | | :thought_balloon: |
| [`@typescript-eslint/triple-slash-reference`](./docs/rules/triple-slash-reference.md) | Sets preference level for triple slash directives versus ES6-style import declarations | :heavy_check_mark: | | |
-| [`@typescript-eslint/type-annotation-spacing`](./docs/rules/type-annotation-spacing.md) | Require consistent spacing around type annotations | :heavy_check_mark: | :wrench: | |
+| [`@typescript-eslint/type-annotation-spacing`](./docs/rules/type-annotation-spacing.md) | Require consistent spacing around type annotations | | :wrench: | |
| [`@typescript-eslint/typedef`](./docs/rules/typedef.md) | Requires type annotations to exist | | | |
| [`@typescript-eslint/unbound-method`](./docs/rules/unbound-method.md) | Enforces unbound methods are called with their expected scope | :heavy_check_mark: | | :thought_balloon: |
| [`@typescript-eslint/unified-signatures`](./docs/rules/unified-signatures.md) | Warns for any two overloads that could be unified into one by using a union or an optional/rest parameter | | | |
@@ -168,28 +185,38 @@
**Key**: :heavy_check_mark: = recommended, :wrench: = fixable, :thought_balloon: = requires type information
-| Name | Description | :heavy_check_mark: | :wrench: | :thought_balloon: |
-| ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | ------------------ | -------- | ----------------- |
-| [`@typescript-eslint/brace-style`](./docs/rules/brace-style.md) | Enforce consistent brace style for blocks | | :wrench: | |
-| [`@typescript-eslint/comma-spacing`](./docs/rules/comma-spacing.md) | Enforces consistent spacing before and after commas | | :wrench: | |
-| [`@typescript-eslint/default-param-last`](./docs/rules/default-param-last.md) | Enforce default parameters to be last | | | |
-| [`@typescript-eslint/func-call-spacing`](./docs/rules/func-call-spacing.md) | Require or disallow spacing between function identifiers and their invocations | | :wrench: | |
-| [`@typescript-eslint/indent`](./docs/rules/indent.md) | Enforce consistent indentation | | :wrench: | |
-| [`@typescript-eslint/no-array-constructor`](./docs/rules/no-array-constructor.md) | Disallow generic `Array` constructors | :heavy_check_mark: | :wrench: | |
-| [`@typescript-eslint/no-dupe-class-members`](./docs/rules/no-dupe-class-members.md) | Disallow duplicate class members | | | |
-| [`@typescript-eslint/no-empty-function`](./docs/rules/no-empty-function.md) | Disallow empty functions | :heavy_check_mark: | | |
-| [`@typescript-eslint/no-extra-parens`](./docs/rules/no-extra-parens.md) | Disallow unnecessary parentheses | | :wrench: | |
-| [`@typescript-eslint/no-extra-semi`](./docs/rules/no-extra-semi.md) | Disallow unnecessary semicolons | | :wrench: | |
-| [`@typescript-eslint/no-magic-numbers`](./docs/rules/no-magic-numbers.md) | Disallow magic numbers | | | |
-| [`@typescript-eslint/no-unused-expressions`](./docs/rules/no-unused-expressions.md) | Disallow unused expressions | | | |
-| [`@typescript-eslint/no-unused-vars`](./docs/rules/no-unused-vars.md) | Disallow unused variables | :heavy_check_mark: | | |
-| [`@typescript-eslint/no-use-before-define`](./docs/rules/no-use-before-define.md) | Disallow the use of variables before they are defined | :heavy_check_mark: | | |
-| [`@typescript-eslint/no-useless-constructor`](./docs/rules/no-useless-constructor.md) | Disallow unnecessary constructors | | | |
-| [`@typescript-eslint/quotes`](./docs/rules/quotes.md) | Enforce the consistent use of either backticks, double, or single quotes | | :wrench: | |
-| [`@typescript-eslint/require-await`](./docs/rules/require-await.md) | Disallow async functions which have no `await` expression | :heavy_check_mark: | | :thought_balloon: |
-| [`@typescript-eslint/return-await`](./docs/rules/return-await.md) | Enforces consistent returning of awaited values | | :wrench: | :thought_balloon: |
-| [`@typescript-eslint/semi`](./docs/rules/semi.md) | Require or disallow semicolons instead of ASI | | :wrench: | |
-| [`@typescript-eslint/space-before-function-paren`](./docs/rules/space-before-function-paren.md) | Enforces consistent spacing before function parenthesis | | :wrench: | |
+| Name | Description | :heavy_check_mark: | :wrench: | :thought_balloon: |
+| ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ------------------ | -------- | ----------------- |
+| [`@typescript-eslint/brace-style`](./docs/rules/brace-style.md) | Enforce consistent brace style for blocks | | :wrench: | |
+| [`@typescript-eslint/comma-dangle`](./docs/rules/comma-dangle.md) | Require or disallow trailing comma | | :wrench: | |
+| [`@typescript-eslint/comma-spacing`](./docs/rules/comma-spacing.md) | Enforces consistent spacing before and after commas | | :wrench: | |
+| [`@typescript-eslint/default-param-last`](./docs/rules/default-param-last.md) | Enforce default parameters to be last | | | |
+| [`@typescript-eslint/dot-notation`](./docs/rules/dot-notation.md) | enforce dot notation whenever possible | | :wrench: | :thought_balloon: |
+| [`@typescript-eslint/func-call-spacing`](./docs/rules/func-call-spacing.md) | Require or disallow spacing between function identifiers and their invocations | | :wrench: | |
+| [`@typescript-eslint/indent`](./docs/rules/indent.md) | Enforce consistent indentation | | :wrench: | |
+| [`@typescript-eslint/init-declarations`](./docs/rules/init-declarations.md) | require or disallow initialization in variable declarations | | | |
+| [`@typescript-eslint/keyword-spacing`](./docs/rules/keyword-spacing.md) | Enforce consistent spacing before and after keywords | | :wrench: | |
+| [`@typescript-eslint/lines-between-class-members`](./docs/rules/lines-between-class-members.md) | Require or disallow an empty line between class members | | :wrench: | |
+| [`@typescript-eslint/no-array-constructor`](./docs/rules/no-array-constructor.md) | Disallow generic `Array` constructors | :heavy_check_mark: | :wrench: | |
+| [`@typescript-eslint/no-dupe-class-members`](./docs/rules/no-dupe-class-members.md) | Disallow duplicate class members | | | |
+| [`@typescript-eslint/no-empty-function`](./docs/rules/no-empty-function.md) | Disallow empty functions | :heavy_check_mark: | | |
+| [`@typescript-eslint/no-extra-parens`](./docs/rules/no-extra-parens.md) | Disallow unnecessary parentheses | | :wrench: | |
+| [`@typescript-eslint/no-extra-semi`](./docs/rules/no-extra-semi.md) | Disallow unnecessary semicolons | :heavy_check_mark: | :wrench: | |
+| [`@typescript-eslint/no-invalid-this`](./docs/rules/no-invalid-this.md) | disallow `this` keywords outside of classes or class-like objects | | | |
+| [`@typescript-eslint/no-loop-func`](./docs/rules/no-loop-func.md) | Disallow function declarations that contain unsafe references inside loop statements | | | |
+| [`@typescript-eslint/no-loss-of-precision`](./docs/rules/no-loss-of-precision.md) | Disallow literal numbers that lose precision | | | |
+| [`@typescript-eslint/no-magic-numbers`](./docs/rules/no-magic-numbers.md) | Disallow magic numbers | | | |
+| [`@typescript-eslint/no-redeclare`](./docs/rules/no-redeclare.md) | Disallow variable redeclaration | | | |
+| [`@typescript-eslint/no-shadow`](./docs/rules/no-shadow.md) | Disallow variable declarations from shadowing variables declared in the outer scope | | | |
+| [`@typescript-eslint/no-unused-expressions`](./docs/rules/no-unused-expressions.md) | Disallow unused expressions | | | |
+| [`@typescript-eslint/no-unused-vars`](./docs/rules/no-unused-vars.md) | Disallow unused variables | :heavy_check_mark: | | |
+| [`@typescript-eslint/no-use-before-define`](./docs/rules/no-use-before-define.md) | Disallow the use of variables before they are defined | | | |
+| [`@typescript-eslint/no-useless-constructor`](./docs/rules/no-useless-constructor.md) | Disallow unnecessary constructors | | | |
+| [`@typescript-eslint/quotes`](./docs/rules/quotes.md) | Enforce the consistent use of either backticks, double, or single quotes | | :wrench: | |
+| [`@typescript-eslint/require-await`](./docs/rules/require-await.md) | Disallow async functions which have no `await` expression | :heavy_check_mark: | | :thought_balloon: |
+| [`@typescript-eslint/return-await`](./docs/rules/return-await.md) | Enforces consistent returning of awaited values | | :wrench: | :thought_balloon: |
+| [`@typescript-eslint/semi`](./docs/rules/semi.md) | Require or disallow semicolons instead of ASI | | :wrench: | |
+| [`@typescript-eslint/space-before-function-paren`](./docs/rules/space-before-function-paren.md) | Enforces consistent spacing before function parenthesis | | :wrench: | |
<!-- end extension rule list -->
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js
new file mode 100644
index 0000000..cf3bab7
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js
@@ -0,0 +1,146 @@
+"use strict";
+// THIS CODE WAS AUTOMATICALLY GENERATED
+// DO NOT EDIT THIS CODE BY HAND
+// YOU CAN REGENERATE IT USING yarn generate:configs
+module.exports = {
+ extends: ['./configs/base', './configs/eslint-recommended'],
+ rules: {
+ '@typescript-eslint/adjacent-overload-signatures': 'error',
+ '@typescript-eslint/array-type': 'error',
+ '@typescript-eslint/await-thenable': 'error',
+ '@typescript-eslint/ban-ts-comment': 'error',
+ '@typescript-eslint/ban-tslint-comment': 'error',
+ '@typescript-eslint/ban-types': 'error',
+ 'brace-style': 'off',
+ '@typescript-eslint/brace-style': 'error',
+ '@typescript-eslint/class-literal-property-style': 'error',
+ 'comma-spacing': 'off',
+ '@typescript-eslint/comma-spacing': 'error',
+ '@typescript-eslint/consistent-type-assertions': 'error',
+ '@typescript-eslint/consistent-type-definitions': 'error',
+ '@typescript-eslint/consistent-type-imports': 'error',
+ 'default-param-last': 'off',
+ '@typescript-eslint/default-param-last': 'error',
+ 'dot-notation': 'off',
+ '@typescript-eslint/dot-notation': 'error',
+ '@typescript-eslint/explicit-function-return-type': 'error',
+ '@typescript-eslint/explicit-member-accessibility': 'error',
+ '@typescript-eslint/explicit-module-boundary-types': 'error',
+ 'func-call-spacing': 'off',
+ '@typescript-eslint/func-call-spacing': 'error',
+ indent: 'off',
+ '@typescript-eslint/indent': 'error',
+ 'init-declarations': 'off',
+ '@typescript-eslint/init-declarations': 'error',
+ 'keyword-spacing': 'off',
+ '@typescript-eslint/keyword-spacing': 'error',
+ 'lines-between-class-members': 'off',
+ '@typescript-eslint/lines-between-class-members': 'error',
+ '@typescript-eslint/member-delimiter-style': 'error',
+ '@typescript-eslint/member-ordering': 'error',
+ '@typescript-eslint/method-signature-style': 'error',
+ '@typescript-eslint/naming-convention': 'error',
+ 'no-array-constructor': 'off',
+ '@typescript-eslint/no-array-constructor': 'error',
+ '@typescript-eslint/no-base-to-string': 'error',
+ '@typescript-eslint/no-confusing-non-null-assertion': 'error',
+ 'no-dupe-class-members': 'off',
+ '@typescript-eslint/no-dupe-class-members': 'error',
+ '@typescript-eslint/no-dynamic-delete': 'error',
+ 'no-empty-function': 'off',
+ '@typescript-eslint/no-empty-function': 'error',
+ '@typescript-eslint/no-empty-interface': 'error',
+ '@typescript-eslint/no-explicit-any': 'error',
+ '@typescript-eslint/no-extra-non-null-assertion': 'error',
+ 'no-extra-parens': 'off',
+ '@typescript-eslint/no-extra-parens': 'error',
+ 'no-extra-semi': 'off',
+ '@typescript-eslint/no-extra-semi': 'error',
+ '@typescript-eslint/no-extraneous-class': 'error',
+ '@typescript-eslint/no-floating-promises': 'error',
+ '@typescript-eslint/no-for-in-array': 'error',
+ '@typescript-eslint/no-implicit-any-catch': 'error',
+ '@typescript-eslint/no-implied-eval': 'error',
+ '@typescript-eslint/no-inferrable-types': 'error',
+ 'no-invalid-this': 'off',
+ '@typescript-eslint/no-invalid-this': 'error',
+ '@typescript-eslint/no-invalid-void-type': 'error',
+ 'no-loop-func': 'off',
+ '@typescript-eslint/no-loop-func': 'error',
+ 'no-loss-of-precision': 'off',
+ '@typescript-eslint/no-loss-of-precision': 'error',
+ 'no-magic-numbers': 'off',
+ '@typescript-eslint/no-magic-numbers': 'error',
+ '@typescript-eslint/no-misused-new': 'error',
+ '@typescript-eslint/no-misused-promises': 'error',
+ '@typescript-eslint/no-namespace': 'error',
+ '@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
+ '@typescript-eslint/no-non-null-assertion': 'error',
+ '@typescript-eslint/no-parameter-properties': 'error',
+ 'no-redeclare': 'off',
+ '@typescript-eslint/no-redeclare': 'error',
+ '@typescript-eslint/no-require-imports': 'error',
+ 'no-shadow': 'off',
+ '@typescript-eslint/no-shadow': 'error',
+ '@typescript-eslint/no-this-alias': 'error',
+ '@typescript-eslint/no-throw-literal': 'error',
+ '@typescript-eslint/no-type-alias': 'error',
+ '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
+ '@typescript-eslint/no-unnecessary-condition': 'error',
+ '@typescript-eslint/no-unnecessary-qualifier': 'error',
+ '@typescript-eslint/no-unnecessary-type-arguments': 'error',
+ '@typescript-eslint/no-unnecessary-type-assertion': 'error',
+ '@typescript-eslint/no-unsafe-assignment': 'error',
+ '@typescript-eslint/no-unsafe-call': 'error',
+ '@typescript-eslint/no-unsafe-member-access': 'error',
+ '@typescript-eslint/no-unsafe-return': 'error',
+ 'no-unused-expressions': 'off',
+ '@typescript-eslint/no-unused-expressions': 'error',
+ 'no-unused-vars': 'off',
+ '@typescript-eslint/no-unused-vars': 'error',
+ 'no-use-before-define': 'off',
+ '@typescript-eslint/no-use-before-define': 'error',
+ 'no-useless-constructor': 'off',
+ '@typescript-eslint/no-useless-constructor': 'error',
+ '@typescript-eslint/no-var-requires': 'error',
+ '@typescript-eslint/prefer-as-const': 'error',
+ '@typescript-eslint/prefer-enum-initializers': 'error',
+ '@typescript-eslint/prefer-for-of': 'error',
+ '@typescript-eslint/prefer-function-type': 'error',
+ '@typescript-eslint/prefer-includes': 'error',
+ '@typescript-eslint/prefer-literal-enum-member': 'error',
+ '@typescript-eslint/prefer-namespace-keyword': 'error',
+ '@typescript-eslint/prefer-nullish-coalescing': 'error',
+ '@typescript-eslint/prefer-optional-chain': 'error',
+ '@typescript-eslint/prefer-readonly': 'error',
+ '@typescript-eslint/prefer-readonly-parameter-types': 'error',
+ '@typescript-eslint/prefer-reduce-type-parameter': 'error',
+ '@typescript-eslint/prefer-regexp-exec': 'error',
+ '@typescript-eslint/prefer-string-starts-ends-with': 'error',
+ '@typescript-eslint/prefer-ts-expect-error': 'error',
+ '@typescript-eslint/promise-function-async': 'error',
+ quotes: 'off',
+ '@typescript-eslint/quotes': 'error',
+ '@typescript-eslint/require-array-sort-compare': 'error',
+ 'require-await': 'off',
+ '@typescript-eslint/require-await': 'error',
+ '@typescript-eslint/restrict-plus-operands': 'error',
+ '@typescript-eslint/restrict-template-expressions': 'error',
+ 'no-return-await': 'off',
+ '@typescript-eslint/return-await': 'error',
+ semi: 'off',
+ '@typescript-eslint/semi': 'error',
+ 'space-before-function-paren': 'off',
+ '@typescript-eslint/space-before-function-paren': 'error',
+ '@typescript-eslint/strict-boolean-expressions': 'error',
+ '@typescript-eslint/switch-exhaustiveness-check': 'error',
+ '@typescript-eslint/triple-slash-reference': 'error',
+ '@typescript-eslint/type-annotation-spacing': 'error',
+ '@typescript-eslint/typedef': 'error',
+ '@typescript-eslint/unbound-method': 'error',
+ '@typescript-eslint/unified-signatures': 'error',
+ 'comma-dangle': 'off',
+ '@typescript-eslint/comma-dangle': 'error',
+ },
+};
+//# sourceMappingURL=all.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map
new file mode 100644
index 0000000..35b7760
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-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AAE,OAAO;QACpD,4CAA4C,EAAE,OAAO;QACrD,4BAA4B,EAAE,OAAO;QACrC,mCAAmC,EAAE,OAAO;QAC5C,uCAAuC,EAAE,OAAO;QAChD,cAAc,EAAE,KAAK;QACrB,iCAAiC,EAAE,OAAO;KAC3C;CACF,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.json b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.json
deleted file mode 100644
index ff629e0..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.json
+++ /dev/null
@@ -1,107 +0,0 @@
-{
- "extends": "./configs/base.json",
- "rules": {
- "@typescript-eslint/adjacent-overload-signatures": "error",
- "@typescript-eslint/array-type": "error",
- "@typescript-eslint/await-thenable": "error",
- "@typescript-eslint/ban-ts-comment": "error",
- "@typescript-eslint/ban-types": "error",
- "brace-style": "off",
- "@typescript-eslint/brace-style": "error",
- "comma-spacing": "off",
- "@typescript-eslint/comma-spacing": "error",
- "@typescript-eslint/consistent-type-assertions": "error",
- "@typescript-eslint/consistent-type-definitions": "error",
- "default-param-last": "off",
- "@typescript-eslint/default-param-last": "error",
- "@typescript-eslint/explicit-function-return-type": "error",
- "@typescript-eslint/explicit-member-accessibility": "error",
- "@typescript-eslint/explicit-module-boundary-types": "error",
- "func-call-spacing": "off",
- "@typescript-eslint/func-call-spacing": "error",
- "indent": "off",
- "@typescript-eslint/indent": "error",
- "@typescript-eslint/member-delimiter-style": "error",
- "@typescript-eslint/member-ordering": "error",
- "@typescript-eslint/naming-convention": "error",
- "no-array-constructor": "off",
- "@typescript-eslint/no-array-constructor": "error",
- "@typescript-eslint/no-base-to-string": "error",
- "no-dupe-class-members": "off",
- "@typescript-eslint/no-dupe-class-members": "error",
- "@typescript-eslint/no-dynamic-delete": "error",
- "no-empty-function": "off",
- "@typescript-eslint/no-empty-function": "error",
- "@typescript-eslint/no-empty-interface": "error",
- "@typescript-eslint/no-explicit-any": "error",
- "@typescript-eslint/no-extra-non-null-assertion": "error",
- "no-extra-parens": "off",
- "@typescript-eslint/no-extra-parens": "error",
- "no-extra-semi": "off",
- "@typescript-eslint/no-extra-semi": "error",
- "@typescript-eslint/no-extraneous-class": "error",
- "@typescript-eslint/no-floating-promises": "error",
- "@typescript-eslint/no-for-in-array": "error",
- "@typescript-eslint/no-implied-eval": "error",
- "@typescript-eslint/no-inferrable-types": "error",
- "no-magic-numbers": "off",
- "@typescript-eslint/no-magic-numbers": "error",
- "@typescript-eslint/no-misused-new": "error",
- "@typescript-eslint/no-misused-promises": "error",
- "@typescript-eslint/no-namespace": "error",
- "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
- "@typescript-eslint/no-non-null-assertion": "error",
- "@typescript-eslint/no-parameter-properties": "error",
- "@typescript-eslint/no-require-imports": "error",
- "@typescript-eslint/no-this-alias": "error",
- "@typescript-eslint/no-throw-literal": "error",
- "@typescript-eslint/no-type-alias": "error",
- "@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
- "@typescript-eslint/no-unnecessary-condition": "error",
- "@typescript-eslint/no-unnecessary-qualifier": "error",
- "@typescript-eslint/no-unnecessary-type-arguments": "error",
- "@typescript-eslint/no-unnecessary-type-assertion": "error",
- "no-unused-expressions": "off",
- "@typescript-eslint/no-unused-expressions": "error",
- "no-unused-vars": "off",
- "@typescript-eslint/no-unused-vars": "error",
- "@typescript-eslint/no-unused-vars-experimental": "error",
- "no-use-before-define": "off",
- "@typescript-eslint/no-use-before-define": "error",
- "no-useless-constructor": "off",
- "@typescript-eslint/no-useless-constructor": "error",
- "@typescript-eslint/no-var-requires": "error",
- "@typescript-eslint/prefer-as-const": "error",
- "@typescript-eslint/prefer-for-of": "error",
- "@typescript-eslint/prefer-function-type": "error",
- "@typescript-eslint/prefer-includes": "error",
- "@typescript-eslint/prefer-namespace-keyword": "error",
- "@typescript-eslint/prefer-nullish-coalescing": "error",
- "@typescript-eslint/prefer-optional-chain": "error",
- "@typescript-eslint/prefer-readonly": "error",
- "@typescript-eslint/prefer-readonly-parameter-types": "error",
- "@typescript-eslint/prefer-regexp-exec": "error",
- "@typescript-eslint/prefer-string-starts-ends-with": "error",
- "@typescript-eslint/promise-function-async": "error",
- "quotes": "off",
- "@typescript-eslint/quotes": "error",
- "@typescript-eslint/require-array-sort-compare": "error",
- "require-await": "off",
- "@typescript-eslint/require-await": "error",
- "@typescript-eslint/restrict-plus-operands": "error",
- "@typescript-eslint/restrict-template-expressions": "error",
- "no-return-await": "off",
- "@typescript-eslint/return-await": "error",
- "semi": "off",
- "@typescript-eslint/semi": "error",
- "space-before-function-paren": "off",
- "@typescript-eslint/space-before-function-paren": "error",
- "@typescript-eslint/strict-boolean-expressions": "error",
- "@typescript-eslint/switch-exhaustiveness-check": "error",
- "@typescript-eslint/triple-slash-reference": "error",
- "@typescript-eslint/type-annotation-spacing": "error",
- "@typescript-eslint/typedef": "error",
- "@typescript-eslint/unbound-method": "error",
- "@typescript-eslint/unified-signatures": "error"
- }
-}
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js
new file mode 100644
index 0000000..52d1fe8
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js
@@ -0,0 +1,10 @@
+"use strict";
+// THIS CODE WAS AUTOMATICALLY GENERATED
+// DO NOT EDIT THIS CODE BY HAND
+// YOU CAN REGENERATE IT USING yarn generate:configs
+module.exports = {
+ parser: '@typescript-eslint/parser',
+ parserOptions: { sourceType: 'module' },
+ plugins: ['@typescript-eslint'],
+};
+//# sourceMappingURL=base.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js.map
new file mode 100644
index 0000000..a2f415f
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,oDAAoD;AAEpD,iBAAS;IACP,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE;IACvC,OAAO,EAAE,CAAC,oBAAoB,CAAC;CAChC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.json b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.json
deleted file mode 100644
index e5af602..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "parser": "@typescript-eslint/parser",
- "parserOptions": { "sourceType": "module" },
- "plugins": ["@typescript-eslint"]
-}
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js
index 4395919..f1b5191 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js
@@ -1,36 +1,30 @@
"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-/**
- * This is a compatibility ruleset that disables rules from eslint:recommended
- * which are already handled by TypeScript.
- */
-exports.default = {
+module.exports = {
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
- // Checked by Typescript - ts(2378)
+ 'constructor-super': 'off',
'getter-return': 'off',
- // Checked by Typescript - ts(2300)
- 'no-dupe-args': 'off',
- // Checked by Typescript - ts(1117)
- 'no-dupe-keys': 'off',
- // Checked by Typescript - ts(7027)
- 'no-unreachable': 'off',
- // Checked by Typescript - ts(2367)
- 'valid-typeof': 'off',
- // Checked by Typescript - ts(2588)
'no-const-assign': 'off',
- // Checked by Typescript - ts(2588)
- 'no-new-symbol': 'off',
- // Checked by Typescript - ts(2376)
- 'no-this-before-super': 'off',
- // This is checked by Typescript using the option `strictNullChecks`.
- 'no-undef': 'off',
- // This is already checked by Typescript.
+ 'no-dupe-args': 'off',
'no-dupe-class-members': 'off',
- // This is already checked by Typescript.
+ 'no-dupe-keys': 'off',
+ 'no-func-assign': 'off',
+ 'no-import-assign': 'off',
+ 'no-new-symbol': 'off',
+ 'no-obj-calls': 'off',
'no-redeclare': 'off',
+ 'no-setter-return': 'off',
+ 'no-this-before-super': 'off',
+ 'no-undef': 'off',
+ 'no-unreachable': 'off',
+ 'no-unsafe-negation': 'off',
+ 'no-var': 'error',
+ 'prefer-const': 'error',
+ 'prefer-rest-params': 'error',
+ 'prefer-spread': 'error',
+ 'valid-typeof': 'off',
},
},
],
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js.map
index 21b2ecb..8181881 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js.map
@@ -1 +1 @@
-{"version":3,"file":"eslint-recommended.js","sourceRoot":"","sources":["../../src/configs/eslint-recommended.ts"],"names":[],"mappings":";;AAAA;;;GAGG;AACH,kBAAe;IACb,SAAS,EAAE;QACT;YACE,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;YACxB,KAAK,EAAE;gBACL,mCAAmC;gBACnC,eAAe,EAAE,KAAK;gBACtB,mCAAmC;gBACnC,cAAc,EAAE,KAAK;gBACrB,mCAAmC;gBACnC,cAAc,EAAE,KAAK;gBACrB,mCAAmC;gBACnC,gBAAgB,EAAE,KAAK;gBACvB,mCAAmC;gBACnC,cAAc,EAAE,KAAK;gBACrB,mCAAmC;gBACnC,iBAAiB,EAAE,KAAK;gBACxB,mCAAmC;gBACnC,eAAe,EAAE,KAAK;gBACtB,mCAAmC;gBACnC,sBAAsB,EAAE,KAAK;gBAC7B,qEAAqE;gBACrE,UAAU,EAAE,KAAK;gBACjB,yCAAyC;gBACzC,uBAAuB,EAAE,KAAK;gBAC9B,yCAAyC;gBACzC,cAAc,EAAE,KAAK;aACtB;SACF;KACF;CACF,CAAC"}
\ No newline at end of file
+{"version":3,"file":"eslint-recommended.js","sourceRoot":"","sources":["../../src/configs/eslint-recommended.ts"],"names":[],"mappings":";AAKA,iBAAS;IACP,SAAS,EAAE;QACT;YACE,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;YACxB,KAAK,EAAE;gBACL,mBAAmB,EAAE,KAAK;gBAC1B,eAAe,EAAE,KAAK;gBACtB,iBAAiB,EAAE,KAAK;gBACxB,cAAc,EAAE,KAAK;gBACrB,uBAAuB,EAAE,KAAK;gBAC9B,cAAc,EAAE,KAAK;gBACrB,gBAAgB,EAAE,KAAK;gBACvB,kBAAkB,EAAE,KAAK;gBACzB,eAAe,EAAE,KAAK;gBACtB,cAAc,EAAE,KAAK;gBACrB,cAAc,EAAE,KAAK;gBACrB,kBAAkB,EAAE,KAAK;gBACzB,sBAAsB,EAAE,KAAK;gBAC7B,UAAU,EAAE,KAAK;gBACjB,gBAAgB,EAAE,KAAK;gBACvB,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE,OAAO;gBACjB,cAAc,EAAE,OAAO;gBACvB,oBAAoB,EAAE,OAAO;gBAC7B,eAAe,EAAE,OAAO;gBACxB,cAAc,EAAE,KAAK;aACtB;SACF;KACF;CACF,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-requiring-type-checking.js b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-requiring-type-checking.js
new file mode 100644
index 0000000..cb31319
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-requiring-type-checking.js
@@ -0,0 +1,26 @@
+"use strict";
+// THIS CODE WAS AUTOMATICALLY GENERATED
+// DO NOT EDIT THIS CODE BY HAND
+// YOU CAN REGENERATE IT USING yarn generate:configs
+module.exports = {
+ extends: ['./configs/base', './configs/eslint-recommended'],
+ rules: {
+ '@typescript-eslint/await-thenable': 'error',
+ '@typescript-eslint/no-floating-promises': 'error',
+ '@typescript-eslint/no-for-in-array': 'error',
+ '@typescript-eslint/no-implied-eval': 'error',
+ '@typescript-eslint/no-misused-promises': 'error',
+ '@typescript-eslint/no-unnecessary-type-assertion': 'error',
+ '@typescript-eslint/no-unsafe-assignment': 'error',
+ '@typescript-eslint/no-unsafe-call': 'error',
+ '@typescript-eslint/no-unsafe-member-access': 'error',
+ '@typescript-eslint/no-unsafe-return': 'error',
+ '@typescript-eslint/prefer-regexp-exec': 'error',
+ 'require-await': 'off',
+ '@typescript-eslint/require-await': 'error',
+ '@typescript-eslint/restrict-plus-operands': 'error',
+ '@typescript-eslint/restrict-template-expressions': 'error',
+ '@typescript-eslint/unbound-method': 'error',
+ },
+};
+//# sourceMappingURL=recommended-requiring-type-checking.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-requiring-type-checking.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-requiring-type-checking.js.map
new file mode 100644
index 0000000..ef21991
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-requiring-type-checking.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"recommended-requiring-type-checking.js","sourceRoot":"","sources":["../../src/configs/recommended-requiring-type-checking.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,oDAAoD;AAEpD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE,OAAO;QAC5C,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,oCAAoC,EAAE,OAAO;QAC7C,wCAAwC,EAAE,OAAO;QACjD,kDAAkD,EAAE,OAAO;QAC3D,yCAAyC,EAAE,OAAO;QAClD,mCAAmC,EAAE,OAAO;QAC5C,4CAA4C,EAAE,OAAO;QACrD,qCAAqC,EAAE,OAAO;QAC9C,uCAAuC,EAAE,OAAO;QAChD,eAAe,EAAE,KAAK;QACtB,kCAAkC,EAAE,OAAO;QAC3C,2CAA2C,EAAE,OAAO;QACpD,kDAAkD,EAAE,OAAO;QAC3D,mCAAmC,EAAE,OAAO;KAC7C;CACF,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-requiring-type-checking.json b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-requiring-type-checking.json
deleted file mode 100644
index 2f56a1b..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-requiring-type-checking.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "extends": "./configs/base.json",
- "rules": {
- "@typescript-eslint/await-thenable": "error",
- "@typescript-eslint/no-for-in-array": "error",
- "@typescript-eslint/no-misused-promises": "error",
- "@typescript-eslint/no-unnecessary-type-assertion": "error",
- "@typescript-eslint/prefer-includes": "error",
- "@typescript-eslint/prefer-regexp-exec": "error",
- "@typescript-eslint/prefer-string-starts-ends-with": "error",
- "require-await": "off",
- "@typescript-eslint/require-await": "error",
- "@typescript-eslint/unbound-method": "error",
- "no-var": "error",
- "prefer-const": "error",
- "prefer-rest-params": "error",
- "prefer-spread": "error"
- }
-}
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js
new file mode 100644
index 0000000..e8e5a6f
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js
@@ -0,0 +1,35 @@
+"use strict";
+// THIS CODE WAS AUTOMATICALLY GENERATED
+// DO NOT EDIT THIS CODE BY HAND
+// YOU CAN REGENERATE IT USING yarn generate:configs
+module.exports = {
+ extends: ['./configs/base', './configs/eslint-recommended'],
+ rules: {
+ '@typescript-eslint/adjacent-overload-signatures': 'error',
+ '@typescript-eslint/ban-ts-comment': 'error',
+ '@typescript-eslint/ban-types': 'error',
+ '@typescript-eslint/explicit-module-boundary-types': 'warn',
+ 'no-array-constructor': 'off',
+ '@typescript-eslint/no-array-constructor': 'error',
+ 'no-empty-function': 'off',
+ '@typescript-eslint/no-empty-function': 'error',
+ '@typescript-eslint/no-empty-interface': 'error',
+ '@typescript-eslint/no-explicit-any': 'warn',
+ '@typescript-eslint/no-extra-non-null-assertion': 'error',
+ 'no-extra-semi': 'off',
+ '@typescript-eslint/no-extra-semi': 'error',
+ '@typescript-eslint/no-inferrable-types': 'error',
+ '@typescript-eslint/no-misused-new': 'error',
+ '@typescript-eslint/no-namespace': 'error',
+ '@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
+ '@typescript-eslint/no-non-null-assertion': 'warn',
+ '@typescript-eslint/no-this-alias': 'error',
+ 'no-unused-vars': 'off',
+ '@typescript-eslint/no-unused-vars': 'warn',
+ '@typescript-eslint/no-var-requires': 'error',
+ '@typescript-eslint/prefer-as-const': 'error',
+ '@typescript-eslint/prefer-namespace-keyword': 'error',
+ '@typescript-eslint/triple-slash-reference': 'error',
+ },
+};
+//# sourceMappingURL=recommended.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js.map
new file mode 100644
index 0000000..406ea3f
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"recommended.js","sourceRoot":"","sources":["../../src/configs/recommended.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,oDAAoD;AAEpD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,iDAAiD,EAAE,OAAO;QAC1D,mCAAmC,EAAE,OAAO;QAC5C,8BAA8B,EAAE,OAAO;QACvC,mDAAmD,EAAE,MAAM;QAC3D,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,OAAO;QAClD,mBAAmB,EAAE,KAAK;QAC1B,sCAAsC,EAAE,OAAO;QAC/C,uCAAuC,EAAE,OAAO;QAChD,oCAAoC,EAAE,MAAM;QAC5C,gDAAgD,EAAE,OAAO;QACzD,eAAe,EAAE,KAAK;QACtB,kCAAkC,EAAE,OAAO;QAC3C,wCAAwC,EAAE,OAAO;QACjD,mCAAmC,EAAE,OAAO;QAC5C,iCAAiC,EAAE,OAAO;QAC1C,wDAAwD,EAAE,OAAO;QACjE,0CAA0C,EAAE,MAAM;QAClD,kCAAkC,EAAE,OAAO;QAC3C,gBAAgB,EAAE,KAAK;QACvB,mCAAmC,EAAE,MAAM;QAC3C,oCAAoC,EAAE,OAAO;QAC7C,oCAAoC,EAAE,OAAO;QAC7C,6CAA6C,EAAE,OAAO;QACtD,2CAA2C,EAAE,OAAO;KACrD;CACF,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.json b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.json
deleted file mode 100644
index 2ea1819..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "extends": "./configs/base.json",
- "rules": {
- "@typescript-eslint/adjacent-overload-signatures": "error",
- "@typescript-eslint/ban-ts-ignore": "error",
- "@typescript-eslint/ban-types": "error",
- "camelcase": "off",
- "@typescript-eslint/camelcase": "error",
- "@typescript-eslint/class-name-casing": "error",
- "@typescript-eslint/consistent-type-assertions": "error",
- "@typescript-eslint/explicit-function-return-type": "warn",
- "@typescript-eslint/interface-name-prefix": "error",
- "@typescript-eslint/member-delimiter-style": "error",
- "no-array-constructor": "off",
- "@typescript-eslint/no-array-constructor": "error",
- "no-empty-function": "off",
- "@typescript-eslint/no-empty-function": "error",
- "@typescript-eslint/no-empty-interface": "error",
- "@typescript-eslint/no-explicit-any": "warn",
- "@typescript-eslint/no-inferrable-types": "error",
- "@typescript-eslint/no-misused-new": "error",
- "@typescript-eslint/no-namespace": "error",
- "@typescript-eslint/no-non-null-assertion": "warn",
- "@typescript-eslint/no-this-alias": "error",
- "no-unused-vars": "off",
- "@typescript-eslint/no-unused-vars": "warn",
- "no-use-before-define": "off",
- "@typescript-eslint/no-use-before-define": "error",
- "@typescript-eslint/no-var-requires": "error",
- "@typescript-eslint/prefer-namespace-keyword": "error",
- "@typescript-eslint/triple-slash-reference": "error",
- "@typescript-eslint/type-annotation-spacing": "error",
- "no-var": "error",
- "prefer-const": "error",
- "prefer-rest-params": "error",
- "prefer-spread": "error"
- }
-}
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/index.js b/node_modules/@typescript-eslint/eslint-plugin/dist/index.js
index 12dffdf..37426f2 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/index.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/index.js
@@ -3,19 +3,19 @@
return (mod && mod.__esModule) ? mod : { "default": mod };
};
const rules_1 = __importDefault(require("./rules"));
-const all_json_1 = __importDefault(require("./configs/all.json"));
-const base_json_1 = __importDefault(require("./configs/base.json"));
-const recommended_json_1 = __importDefault(require("./configs/recommended.json"));
-const recommended_requiring_type_checking_json_1 = __importDefault(require("./configs/recommended-requiring-type-checking.json"));
+const all_1 = __importDefault(require("./configs/all"));
+const base_1 = __importDefault(require("./configs/base"));
+const recommended_1 = __importDefault(require("./configs/recommended"));
+const recommended_requiring_type_checking_1 = __importDefault(require("./configs/recommended-requiring-type-checking"));
const eslint_recommended_1 = __importDefault(require("./configs/eslint-recommended"));
module.exports = {
rules: rules_1.default,
configs: {
- all: all_json_1.default,
- base: base_json_1.default,
- recommended: recommended_json_1.default,
+ all: all_1.default,
+ base: base_1.default,
+ recommended: recommended_1.default,
'eslint-recommended': eslint_recommended_1.default,
- 'recommended-requiring-type-checking': recommended_requiring_type_checking_json_1.default,
+ 'recommended-requiring-type-checking': recommended_requiring_type_checking_1.default,
},
};
//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/index.js.map
index 13a4000..2469809 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/index.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,oDAA4B;AAE5B,kEAAqC;AACrC,oEAAuC;AACvC,kFAAqD;AACrD,kIAAkG;AAClG,sFAA6D;AAE7D,iBAAS;IACP,KAAK,EAAL,eAAK;IACL,OAAO,EAAE;QACP,GAAG,EAAH,kBAAG;QACH,IAAI,EAAJ,mBAAI;QACJ,WAAW,EAAX,0BAAW;QACX,oBAAoB,EAAE,4BAAiB;QACvC,qCAAqC,EAAE,kDAAgC;KACxE;CACF,CAAC"}
\ No newline at end of file
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,oDAA4B;AAE5B,wDAAgC;AAChC,0DAAkC;AAClC,wEAAgD;AAChD,wHAA6F;AAC7F,sFAA6D;AAE7D,iBAAS;IACP,KAAK,EAAL,eAAK;IACL,OAAO,EAAE;QACP,GAAG,EAAH,aAAG;QACH,IAAI,EAAJ,cAAI;QACJ,WAAW,EAAX,qBAAW;QACX,oBAAoB,EAAE,4BAAiB;QACvC,qCAAqC,EAAE,6CAAgC;KACxE;CACF,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js
index 06c8fac..6b68714 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -27,14 +39,16 @@
create(context) {
const sourceCode = context.getSourceCode();
/**
- * Gets the name of the member being processed.
+ * Gets the name and attribute of the member being processed.
* @param member the member being processed.
- * @returns the name of the member or null if it's a member not relevant to the rule.
+ * @returns the name and attribute of the member or null if it's a member not relevant to the rule.
*/
- function getMemberName(member) {
+ function getMemberMethod(member) {
+ var _a, _b;
if (!member) {
return null;
}
+ const isStatic = 'static' in member && !!member.static;
switch (member.type) {
case experimental_utils_1.AST_NODE_TYPES.ExportDefaultDeclaration:
case experimental_utils_1.AST_NODE_TYPES.ExportNamedDeclaration: {
@@ -43,26 +57,52 @@
if (!member.declaration) {
return null;
}
- return getMemberName(member.declaration);
+ return getMemberMethod(member.declaration);
}
case experimental_utils_1.AST_NODE_TYPES.TSDeclareFunction:
- case experimental_utils_1.AST_NODE_TYPES.FunctionDeclaration:
- return member.id && member.id.name;
+ case experimental_utils_1.AST_NODE_TYPES.FunctionDeclaration: {
+ const name = (_b = (_a = member.id) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : null;
+ if (name === null) {
+ return null;
+ }
+ return {
+ name,
+ static: isStatic,
+ callSignature: false,
+ };
+ }
case experimental_utils_1.AST_NODE_TYPES.TSMethodSignature:
- return util.getNameFromMember(member, sourceCode);
+ return {
+ name: util.getNameFromMember(member, sourceCode),
+ static: isStatic,
+ callSignature: false,
+ };
case experimental_utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration:
- return 'call';
+ return {
+ name: 'call',
+ static: isStatic,
+ callSignature: true,
+ };
case experimental_utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration:
- return 'new';
+ return {
+ name: 'new',
+ static: isStatic,
+ callSignature: false,
+ };
case experimental_utils_1.AST_NODE_TYPES.MethodDefinition:
- return util.getNameFromMember(member, sourceCode);
+ return {
+ name: util.getNameFromMember(member, sourceCode),
+ static: isStatic,
+ callSignature: false,
+ };
}
return null;
}
function isSameMethod(method1, method2) {
return (!!method2 &&
method1.name === method2.name &&
- method1.static === method2.static);
+ method1.static === method2.static &&
+ method1.callSignature === method2.callSignature);
}
function getMembers(node) {
switch (node.type) {
@@ -85,15 +125,11 @@
let lastMethod = null;
const seenMethods = [];
members.forEach(member => {
- const name = getMemberName(member);
- if (name === null) {
+ const method = getMemberMethod(member);
+ if (method === null) {
lastMethod = null;
return;
}
- const method = {
- name,
- static: 'static' in member && !!member.static,
- };
const index = seenMethods.findIndex(seenMethod => isSameMethod(method, seenMethod));
if (index > -1 && !isSameMethod(method, lastMethod)) {
context.report({
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map
index 0a11771..7371090 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map
@@ -1 +1 @@
-{"version":3,"file":"adjacent-overload-signatures.js","sourceRoot":"","s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F,MAAM,KAAK,GAAG,WAAW,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAC/C,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,CACjC,CAAC;oBACF,IAAI,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE;wBACnD,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,MAAM;4BACZ,SAAS,EAAE,mBAAmB;4BAC9B,IAAI,EAAE;gCACJ,IAAI,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,IAAI;6BACrD;yBACF,CAAC,CAAC;qBACJ;yBAAM,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;wBACvB,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;qBAC1B;oBAED,UAAU,GAAG,MAAM,CAAC;gBACtB,CAAC,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,SAAS,EAAE,2BAA2B;YACtC,OAAO,EAAE,2BAA2B;YACpC,aAAa,EAAE,2BAA2B;YAC1C,aAAa,EAAE,2BAA2B;YAC1C,eAAe,EAAE,2BAA2B;SAC7C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"adjacent-overload-signatures.js","sourceRoot":"","sources":["../../src/rules/adjacent-overload-signatures.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAahC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,8CAA8C;YAC3D,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;SACrB;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE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CAAC,EAAE;oBACvB,MAAM,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;oBACvC,IAAI,MAAM,KAAK,IAAI,EAAE;wBACnB,UAAU,GAAG,IAAI,CAAC;wBAClB,OAAO;qBACR;oBAED,MAAM,KAAK,GAAG,WAAW,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAC/C,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,CACjC,CAAC;oBACF,IAAI,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE;wBACnD,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,MAAM;4BACZ,SAAS,EAAE,mBAAmB;4BAC9B,IAAI,EAAE;gCACJ,IAAI,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,IAAI;6BACrD;yBACF,CAAC,CAAC;qBACJ;yBAAM,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;wBACvB,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;qBAC1B;oBAED,UAAU,GAAG,MAAM,CAAC;gBACtB,CAAC,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,SAAS,EAAE,2BAA2B;YACtC,OAAO,EAAE,2BAA2B;YACpC,aAAa,EAAE,2BAA2B;YAC1C,aAAa,EAAE,2BAA2B;YAC1C,eAAe,EAAE,2BAA2B;SAC7C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js
index 3ab552a..4f4d2d1 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -110,7 +122,7 @@
var _a;
const sourceCode = context.getSourceCode();
const defaultOption = options.default;
- const readonlyOption = (_a = options.readonly, (_a !== null && _a !== void 0 ? _a : defaultOption));
+ const readonlyOption = (_a = options.readonly) !== null && _a !== void 0 ? _a : defaultOption;
const isArraySimpleOption = defaultOption === 'array-simple' && readonlyOption === 'array-simple';
const isArrayOption = defaultOption === 'array' && readonlyOption === 'array';
const isGenericOption = defaultOption === 'generic' && readonlyOption === 'generic';
@@ -206,6 +218,7 @@
});
},
TSTypeReference(node) {
+ var _a;
if (isGenericOption ||
node.typeName.type !== experimental_utils_1.AST_NODE_TYPES.Identifier) {
return;
@@ -218,7 +231,7 @@
return;
}
const readonlyPrefix = isReadonlyArrayType ? 'readonly ' : '';
- const typeParams = node.typeParameters && node.typeParameters.params;
+ const typeParams = (_a = node.typeParameters) === null || _a === void 0 ? void 0 : _a.params;
const messageId = defaultOption === 'array'
? 'errorStringArray'
: 'errorStringArraySimple';
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map
index 02df701..2acd2d2 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map
@@ -1 +1 @@
-{"version":3,"file":"array-type.js","sourceRoot":"","sources":["../../src/rules/array-type.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAI+C;AAC/C,8CAAgC;AAEhC;;;GAGG;AACH,SAAS,YAAY,CAAC,IAAmB;IACvC,QAAQ,IAAI,CAAC,IAAI,EAAE;QACjB,KAAK,mCAAc,CAAC,UAAU,CAAC;QAC/B,KAAK,mCAAc,CAAC,YAAY,CAAC;QACjC,KAAK,mCAAc,CAAC,gBAAgB,CAAC;QACrC,KAAK,mCAAc,CAAC,cAAc,CAAC;QACnC,KAAK,mCAAc,CAAC,eAAe,CAAC;QACpC,KAAK,mCAAc,CAAC,eAAe,CAAC;QACpC,KAAK,mCAAc,CAAC,eAAe,CAAC;QACpC,KAAK,mCAAc,CAAC,eAAe,CAAC;QACpC,KAAK,mCAAc,CAAC,gBAAgB,CAAC;QACrC,KAAK,mCAAc,CAAC,aAAa,CAAC;QAClC,KAAK,mCAAc,CAAC,aAAa,CAAC;QAClC,KAAK,mCAAc,CAAC,WAAW,CAAC;QAChC,KAAK,mCAAc,CAAC,kBAAkB,CAAC;QACvC,KAAK,mCAAc,CAAC,UAAU,CAAC;QAC/B,KAAK,mCAAc,CAAC,eAAe;YACjC,OAAO,IAAI,CAAC;QACd,KAAK,mCAAc,CAAC,eAAe;YACjC,IACE,IAAI,CAAC,QAAQ;gBACb,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU;gBAChD,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,OAAO,EAC9B;gBACA,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;oBACxB,OAAO,IAAI,CAAC;iBACb;gBACD,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,CAA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W,CAAC,IAAI,EAAE,GAAG,cAAc,OAAO,CAAC,CAAC;wBAC3D,CAAC;qBACF,CAAC,CAAC;oBAEH,OAAO;iBACR;gBAED,IACE,UAAU,CAAC,MAAM,KAAK,CAAC;oBACvB,CAAC,aAAa,KAAK,cAAc,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,EAClE;oBACA,OAAO;iBACR;gBAED,MAAM,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;gBAC3B,MAAM,MAAM,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC;gBAE1C,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS;oBACT,IAAI,EAAE;wBACJ,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC;qBAC3B;oBACD,GAAG,CAAC,KAAK;wBACP,OAAO;4BACL,KAAK,CAAC,gBAAgB,CACpB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9B,GAAG,cAAc,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACxC;4BACD,KAAK,CAAC,gBAAgB,CACpB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9B,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CACtB;yBACF,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js
index 3e58858..e00e853 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js
@@ -1,14 +1,25 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const tsutils = __importStar(require("tsutils"));
-const ts = __importStar(require("typescript"));
const util = __importStar(require("../util"));
exports.default = util.createRule({
name: 'await-thenable',
@@ -33,8 +44,8 @@
AwaitExpression(node) {
const originalNode = parserServices.esTreeNodeToTSNodeMap.get(node);
const type = checker.getTypeAtLocation(originalNode.expression);
- if (!tsutils.isTypeFlagSet(type, ts.TypeFlags.Any) &&
- !tsutils.isTypeFlagSet(type, ts.TypeFlags.Unknown) &&
+ if (!util.isTypeAnyType(type) &&
+ !util.isTypeUnknownType(type) &&
!tsutils.isThenableType(checker, originalNode.expression, type)) {
context.report({
messageId: 'await',
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map
index d8df670..b53e8dc 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map
@@ -1 +1 @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,CAAC"}
\ No newline at end of file
+{"version":3,"file":"await-thenable.js","sourceRoot":"","sources":["../../src/rules/await-thenable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,iDAAmC;AAEnC,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,mDAAmD;YAChE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,6DAA6D;SACrE;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,SAAS;KAChB;IACD,cAAc,EAAE,EAAE;IAElB,MAAM,CAAC,OAAO;QACZ,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACvD,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAExD,OAAO;YACL,eAAe,CAAC,IAAI;gBAClB,MAAM,YAAY,GAAG,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBACpE,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;gBAEhE,IACE,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC;oBACzB,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;oBAC7B,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,EAC/D;oBACA,OAAO,CAAC,MAAM,CAAC;wBACb,SAAS,EAAE,OAAO;wBAClB,IAAI;qBACL,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js
index 83f25bc..d2a19b4 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js
@@ -1,57 +1,109 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
+exports.defaultMinimumDescriptionLength = void 0;
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
const util = __importStar(require("../util"));
-const defaultOptions = [
- {
- 'ts-ignore': true,
- 'ts-nocheck': true,
- 'ts-check': false,
- },
-];
+exports.defaultMinimumDescriptionLength = 3;
exports.default = util.createRule({
name: 'ban-ts-comment',
meta: {
type: 'problem',
docs: {
- description: 'Bans `// @ts-<directive>` comments from being used',
+ description: 'Bans `// @ts-<directive>` comments from being used or requires descriptions after directive',
category: 'Best Practices',
- recommended: false,
+ recommended: 'error',
},
messages: {
- tsDirectiveComment: 'Do not use "// @ts-{directive}" because it alters compilation errors.',
+ tsDirectiveComment: 'Do not use "// @ts-{{directive}}" because it alters compilation errors.',
+ tsDirectiveCommentRequiresDescription: 'Include a description after the "// @ts-{{directive}}" directive to explain why the @ts-{{directive}} is necessary. The description must be {{minimumDescriptionLength}} characters or longer.',
},
schema: [
{
type: 'object',
properties: {
+ 'ts-expect-error': {
+ oneOf: [
+ {
+ type: 'boolean',
+ default: true,
+ },
+ {
+ enum: ['allow-with-description'],
+ },
+ ],
+ },
'ts-ignore': {
- type: 'boolean',
- default: true,
+ oneOf: [
+ {
+ type: 'boolean',
+ default: true,
+ },
+ {
+ enum: ['allow-with-description'],
+ },
+ ],
},
'ts-nocheck': {
- type: 'boolean',
- default: true,
+ oneOf: [
+ {
+ type: 'boolean',
+ default: true,
+ },
+ {
+ enum: ['allow-with-description'],
+ },
+ ],
},
'ts-check': {
- type: 'boolean',
- default: false,
+ oneOf: [
+ {
+ type: 'boolean',
+ default: true,
+ },
+ {
+ enum: ['allow-with-description'],
+ },
+ ],
+ },
+ minimumDescriptionLength: {
+ type: 'number',
+ default: exports.defaultMinimumDescriptionLength,
},
},
additionalProperties: false,
},
],
},
- defaultOptions,
+ defaultOptions: [
+ {
+ 'ts-expect-error': 'allow-with-description',
+ 'ts-ignore': true,
+ 'ts-nocheck': true,
+ 'ts-check': false,
+ minimumDescriptionLength: exports.defaultMinimumDescriptionLength,
+ },
+ ],
create(context, [options]) {
- const tsCommentRegExp = /^\/*\s*@ts-(ignore|check|nocheck)/;
+ const tsCommentRegExp = /^\/*\s*@ts-(expect-error|ignore|check|nocheck)(.*)/;
const sourceCode = context.getSourceCode();
return {
Program() {
@@ -61,15 +113,26 @@
if (comment.type !== experimental_utils_1.AST_TOKEN_TYPES.Line) {
return;
}
- const [, directive] = (_a = tsCommentRegExp.exec(comment.value), (_a !== null && _a !== void 0 ? _a : []));
+ const [, directive, description] = (_a = tsCommentRegExp.exec(comment.value)) !== null && _a !== void 0 ? _a : [];
const fullDirective = `ts-${directive}`;
- if (options[fullDirective]) {
+ const option = options[fullDirective];
+ if (option === true) {
context.report({
data: { directive },
node: comment,
messageId: 'tsDirectiveComment',
});
}
+ if (option === 'allow-with-description') {
+ const { minimumDescriptionLength = exports.defaultMinimumDescriptionLength, } = options;
+ if (description.trim().length < minimumDescriptionLength) {
+ context.report({
+ data: { directive, minimumDescriptionLength },
+ node: comment,
+ messageId: 'tsDirectiveCommentRequiresDescription',
+ });
+ }
+ }
});
},
};
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map
index 2766ba5..7d6e421 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map
@@ -1 +1 @@
-{"version":3,"file":"ban-ts-comment.js","sourceRoot":"","sources":["../../src/rules/ban-ts-comment.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAAwE;AACxE,8CAAgC;AAQhC,MAAM,cAAc,GAAc;IAChC;QACE,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,IAAI;QAClB,UAAU,EAAE,KAAK;KAClB;CACF,CAAC;AAIF,kBAAe,IAAI,CAAC,UAAU,CAAwB;IACpD,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,oDAAoD;YACjE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,kBAAkB,EAChB,uEAAuE;SAC1E;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,WAAW,EAAE;wBACX,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,IAAI;qBACd;oBACD,YAAY,EAAE;wBACZ,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,IAAI;qBACd;oBACD,UAAU,EAAE;wBACV,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,KAAK;qBACf;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;KACF;IACD,cAAc;IACd,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,MAAM,eAAe,GAAG,mCAAmC,CAAC;QAC5D,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C,OAAO;YACL,OAAO;gBACL,MAAM,QAAQ,GAAG,UAAU,CAAC,cAAc,EAAE,CAAC;gBAE7C,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;;oBACzB,IAAI,OAAO,CAAC,IAAI,KAAK,oCAAe,CAAC,IAAI,EAAE;wBACzC,OAAO;qBACR;oBAED,MAAM,CAAC,EAAE,SAAS,CAAC,SAAG,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,uCAAI,EAAE,EAAA,CAAC;oBAEhE,MAAM,aAAa,GAAG,MAAM,SAAS,EAAmB,CAAC;oBAEzD,IAAI,OAAO,CAAC,aAAa,CAAC,EAAE;wBAC1B,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,EAAE,SAAS,EAAE;4BACnB,IAAI,EAAE,OAAO;4BACb,SAAS,EAAE,oBAAoB;yBAChC,CAAC,CAAC;qBACJ;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"ban-ts-comment.js","sourceRoot":"","sources":["../../src/rules/ban-ts-comment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,8EAAwE;AACxE,8CAAgC;AAUnB,QAAA,+BAA+B,GAAG,CAAC,CAAC;AAMjD,kBAAe,IAAI,CAAC,UAAU,CAAwB;IACpD,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,6FAA6F;YAC/F,QAAQ,E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U,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C,OAAO;YACL,OAAO;gBACL,MAAM,QAAQ,GAAG,UAAU,CAAC,cAAc,EAAE,CAAC;gBAE7C,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;;oBACzB,IAAI,OAAO,CAAC,IAAI,KAAK,oCAAe,CAAC,IAAI,EAAE;wBACzC,OAAO;qBACR;oBAED,MAAM,CAAC,EAAE,SAAS,EAAE,WAAW,CAAC,SAC9B,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,mCAAI,EAAE,CAAC;oBAE5C,MAAM,aAAa,GAAG,MAAM,SAAS,EAAmB,CAAC;oBAEzD,MAAM,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;oBACtC,IAAI,MAAM,KAAK,IAAI,EAAE;wBACnB,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,EAAE,SAAS,EAAE;4BACnB,IAAI,EAAE,OAAO;4BACb,SAAS,EAAE,oBAAoB;yBAChC,CAAC,CAAC;qBACJ;oBAED,IAAI,MAAM,KAAK,wBAAwB,EAAE;wBACvC,MAAM,EACJ,wBAAwB,GAAG,uCAA+B,GAC3D,GAAG,OAAO,CAAC;wBACZ,IAAI,WAAW,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,wBAAwB,EAAE;4BACxD,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI,EAAE,EAAE,SAAS,EAAE,wBAAwB,EAAE;gCAC7C,IAAI,EAAE,OAAO;gCACb,SAAS,EAAE,uCAAuC;6BACnD,CAAC,CAAC;yBACJ;qBACF;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-ignore.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-ignore.js
deleted file mode 100644
index 8c2e441..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-ignore.js
+++ /dev/null
@@ -1,50 +0,0 @@
-"use strict";
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
- return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
-const util = __importStar(require("../util"));
-exports.default = util.createRule({
- name: 'ban-ts-ignore',
- meta: {
- type: 'problem',
- docs: {
- description: 'Bans “// @ts-ignore” comments from being used',
- category: 'Best Practices',
- recommended: 'error',
- },
- schema: [],
- messages: {
- tsIgnoreComment: 'Do not use "// @ts-ignore" comments because they suppress compilation errors.',
- },
- deprecated: true,
- replacedBy: ['@typescript-eslint/ban-ts-comment'],
- },
- defaultOptions: [],
- create(context) {
- const tsIgnoreRegExp = /^\/*\s*@ts-ignore/;
- const sourceCode = context.getSourceCode();
- return {
- Program() {
- const comments = sourceCode.getAllComments();
- comments.forEach(comment => {
- if (comment.type !== experimental_utils_1.AST_TOKEN_TYPES.Line) {
- return;
- }
- if (tsIgnoreRegExp.test(comment.value)) {
- context.report({
- node: comment,
- messageId: 'tsIgnoreComment',
- });
- }
- });
- },
- };
- },
-});
-//# sourceMappingURL=ban-ts-ignore.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-ignore.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-ignore.js.map
deleted file mode 100644
index 077bc4a..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-ignore.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ban-ts-ignore.js","sourceRoot":"","sources":["../../src/rules/ban-ts-ignore.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAAwE;AACxE,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,+CAA+C;YAC5D,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;SACrB;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,eAAe,EACb,+EAA+E;SAClF;QACD,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE,CAAC,mCAAmC,CAAC;KAClD;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C,OAAO;YACL,OAAO;gBACL,MAAM,QAAQ,GAAG,UAAU,CAAC,cAAc,EAAE,CAAC;gBAE7C,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;oBACzB,IAAI,OAAO,CAAC,IAAI,KAAK,oCAAe,CAAC,IAAI,EAAE;wBACzC,OAAO;qBACR;oBACD,IAAI,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;wBACtC,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,OAAO;4BACb,SAAS,EAAE,iBAAiB;yBAC7B,CAAC,CAAC;qBACJ;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js
new file mode 100644
index 0000000..46cab0d
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js
@@ -0,0 +1,75 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const util = __importStar(require("../util"));
+// tslint regex
+// https://github.com/palantir/tslint/blob/95d9d958833fd9dc0002d18cbe34db20d0fbf437/src/enableDisableRules.ts#L32
+const ENABLE_DISABLE_REGEX = /^\s*tslint:(enable|disable)(?:-(line|next-line))?(:|\s|$)/;
+const toText = (text, type) => type === experimental_utils_1.AST_TOKEN_TYPES.Line
+ ? ['//', text.trim()].join(' ')
+ : ['/*', text.trim(), '*/'].join(' ');
+exports.default = util.createRule({
+ name: 'ban-tslint-comment',
+ meta: {
+ type: 'suggestion',
+ docs: {
+ description: 'Bans `// tslint:<rule-flag>` comments from being used',
+ category: 'Stylistic Issues',
+ recommended: false,
+ },
+ messages: {
+ commentDetected: 'tslint comment detected: "{{ text }}"',
+ },
+ schema: [],
+ fixable: 'code',
+ },
+ defaultOptions: [],
+ create: context => {
+ const sourceCode = context.getSourceCode();
+ return {
+ Program() {
+ const comments = sourceCode.getAllComments();
+ comments.forEach(c => {
+ if (ENABLE_DISABLE_REGEX.test(c.value)) {
+ context.report({
+ data: { text: toText(c.value, c.type) },
+ node: c,
+ messageId: 'commentDetected',
+ fix(fixer) {
+ const rangeStart = sourceCode.getIndexFromLoc({
+ column: c.loc.start.column > 0 ? c.loc.start.column - 1 : 0,
+ line: c.loc.start.line,
+ });
+ const rangeEnd = sourceCode.getIndexFromLoc({
+ column: c.loc.end.column,
+ line: c.loc.end.line,
+ });
+ return fixer.removeRange([rangeStart, rangeEnd + 1]);
+ },
+ });
+ }
+ });
+ },
+ };
+ },
+});
+//# sourceMappingURL=ban-tslint-comment.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js.map
new file mode 100644
index 0000000..301958f
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"ban-tslint-comment.js","sourceRoot":"","sources":["../../src/rules/ban-tslint-comment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAAwE;AACxE,8CAAgC;AAEhC,eAAe;AACf,iHAAiH;AACjH,MAAM,oBAAoB,GAAG,2DAA2D,CAAC;AAEzF,MAAM,MAAM,GAAG,CACb,IAAY,EACZ,IAAkD,EAC1C,EAAE,CACV,IAAI,KAAK,oCAAe,CAAC,IAAI;IAC3B,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;IAC/B,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE1C,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,uDAAuD;YACpE,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,eAAe,EAAE,uCAAuC;SACzD;QACD,MAAM,EAAE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ACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js
index f0cba4b..eb9fc2d 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js
@@ -1,12 +1,26 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
+exports.TYPE_KEYWORDS = void 0;
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
const util = __importStar(require("../util"));
function removeSpaces(str) {
return str.replace(/ /g, '');
@@ -26,12 +40,6 @@
}
return '';
}
-/*
- Defaults for this rule should be treated as an "all or nothing"
- merge, so we need special handling here.
-
- See: https://github.com/typescript-eslint/typescript-eslint/issues/686
- */
const defaultTypes = {
String: {
message: 'Use string instead',
@@ -45,14 +53,52 @@
message: 'Use number instead',
fixWith: 'number',
},
- Object: {
- message: 'Use Record<string, any> instead',
- fixWith: 'Record<string, any>',
- },
Symbol: {
message: 'Use symbol instead',
fixWith: 'symbol',
},
+ Function: {
+ message: [
+ 'The `Function` type accepts any function-like value.',
+ 'It provides no type safety when calling the function, which can be a common source of bugs.',
+ 'It also accepts things like class declarations, which will throw at runtime as they will not be called with `new`.',
+ 'If you are expecting the function to accept certain arguments, you should explicitly define the function shape.',
+ ].join('\n'),
+ },
+ // object typing
+ Object: {
+ message: [
+ 'The `Object` type actually means "any non-nullish value", so it is marginally better than `unknown`.',
+ '- If you want a type meaning "any object", you probably want `Record<string, unknown>` instead.',
+ '- If you want a type meaning "any value", you probably want `unknown` instead.',
+ ].join('\n'),
+ },
+ '{}': {
+ message: [
+ '`{}` actually means "any non-nullish value".',
+ '- If you want a type meaning "any object", you probably want `Record<string, unknown>` instead.',
+ '- If you want a type meaning "any value", you probably want `unknown` instead.',
+ ].join('\n'),
+ },
+ object: {
+ message: [
+ 'The `object` type is currently hard to use ([see this issue](https://github.com/microsoft/TypeScript/issues/21732)).',
+ 'Consider using `Record<string, unknown>` instead, as it allows you to more easily inspect and use the keys.',
+ ].join('\n'),
+ },
+};
+exports.TYPE_KEYWORDS = {
+ bigint: experimental_utils_1.AST_NODE_TYPES.TSBigIntKeyword,
+ boolean: experimental_utils_1.AST_NODE_TYPES.TSBooleanKeyword,
+ never: experimental_utils_1.AST_NODE_TYPES.TSNeverKeyword,
+ null: experimental_utils_1.AST_NODE_TYPES.TSNullKeyword,
+ number: experimental_utils_1.AST_NODE_TYPES.TSNumberKeyword,
+ object: experimental_utils_1.AST_NODE_TYPES.TSObjectKeyword,
+ string: experimental_utils_1.AST_NODE_TYPES.TSStringKeyword,
+ symbol: experimental_utils_1.AST_NODE_TYPES.TSSymbolKeyword,
+ undefined: experimental_utils_1.AST_NODE_TYPES.TSUndefinedKeyword,
+ unknown: experimental_utils_1.AST_NODE_TYPES.TSUnknownKeyword,
+ void: experimental_utils_1.AST_NODE_TYPES.TSVoidKeyword,
};
exports.default = util.createRule({
name: 'ban-types',
@@ -65,7 +111,7 @@
},
fixable: 'code',
messages: {
- bannedTypeMessage: "Don't use '{{name}}' as a type.{{customMessage}}",
+ bannedTypeMessage: "Don't use `{{name}}` as a type.{{customMessage}}",
},
schema: [
{
@@ -76,6 +122,7 @@
additionalProperties: {
oneOf: [
{ type: 'null' },
+ { type: 'boolean' },
{ type: 'string' },
{
type: 'object',
@@ -99,37 +146,36 @@
defaultOptions: [{}],
create(context, [options]) {
var _a, _b;
- const extendDefaults = (_a = options.extendDefaults, (_a !== null && _a !== void 0 ? _a : true));
- const customTypes = (_b = options.types, (_b !== null && _b !== void 0 ? _b : {}));
- const types = Object.assign(Object.assign({}, (extendDefaults ? defaultTypes : {})), customTypes);
+ const extendDefaults = (_a = options.extendDefaults) !== null && _a !== void 0 ? _a : true;
+ const customTypes = (_b = options.types) !== null && _b !== void 0 ? _b : {};
+ const types = Object.assign({}, extendDefaults ? defaultTypes : {}, customTypes);
const bannedTypes = new Map(Object.entries(types).map(([type, data]) => [removeSpaces(type), data]));
function checkBannedTypes(typeNode, name = stringifyTypeName(typeNode, context.getSourceCode())) {
const bannedType = bannedTypes.get(name);
- if (bannedType !== undefined) {
- const customMessage = getCustomMessage(bannedType);
- const fixWith = bannedType && typeof bannedType === 'object' && bannedType.fixWith;
- context.report({
- node: typeNode,
- messageId: 'bannedTypeMessage',
- data: {
- name,
- customMessage,
- },
- fix: fixWith
- ? (fixer) => fixer.replaceText(typeNode, fixWith)
- : null,
- });
+ if (bannedType === undefined || bannedType === false) {
+ return;
}
+ const customMessage = getCustomMessage(bannedType);
+ const fixWith = bannedType && typeof bannedType === 'object' && bannedType.fixWith;
+ context.report({
+ node: typeNode,
+ messageId: 'bannedTypeMessage',
+ data: {
+ name,
+ customMessage,
+ },
+ fix: fixWith
+ ? (fixer) => fixer.replaceText(typeNode, fixWith)
+ : null,
+ });
}
- return Object.assign(Object.assign(Object.assign({}, (bannedTypes.has('null') && {
- TSNullKeyword(node) {
- checkBannedTypes(node, 'null');
- },
- })), (bannedTypes.has('undefined') && {
- TSUndefinedKeyword(node) {
- checkBannedTypes(node, 'undefined');
- },
- })), { TSTypeLiteral(node) {
+ const keywordSelectors = util.objectReduceKey(exports.TYPE_KEYWORDS, (acc, keyword) => {
+ if (bannedTypes.has(keyword)) {
+ acc[exports.TYPE_KEYWORDS[keyword]] = (node) => checkBannedTypes(node, keyword);
+ }
+ return acc;
+ }, {});
+ return Object.assign(Object.assign({}, keywordSelectors), { TSTypeLiteral(node) {
if (node.members.length) {
return;
}
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js.map
index 686410e..3f3eb61 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js.map
@@ -1 +1 @@
-{"version":3,"file":"ban-types.js","sourceRoot":"","sources":["../../src/rules/ban-types.ts"],"names":[],"mappings":";;;;;;;;;AACA,8CAAgC;AAoBhC,SAAS,YAAY,CAAC,GAAW;IAC/B,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAC/B,CAAC;AAED,SAAS,iBAAiB,CACxB,IAI+B,EAC/B,UAA+B;IAE/B,OAAO,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,gBAAgB,CACvB,UAAkE;IAElE,IAAI,UAAU,KAAK,IAAI,EAAE;QACvB,OAAO,EAAE,CAAC;KACX;IAED,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;QAClC,OAAO,IAAI,UAAU,EAAE,CAAC;KACzB;IAED,IAAI,UAAU,CAAC,OAAO,EAAE;QACtB,OAAO,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;KACjC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC;AAED;;;;;GAKG;AACH,MAAM,YAAY,GAAG;IACnB,MAAM,EAAE;QACN,OAAO,EAAE,oBAAo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a,CAAC,IAAI;gBAChB,gBAAgB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YACjC,CAAC;SACF,CAAC,GAEC,CAAC,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI;YAClC,kBAAkB,CAAC,IAAI;gBACrB,gBAAgB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;YACtC,CAAC;SACF,CAAC,KAEF,aAAa,CAAC,IAAI;gBAChB,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;oBACvB,OAAO;iBACR;gBAED,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACzB,CAAC;YACD,eAAe,CAAC,EAAE,QAAQ,EAAE;gBAC1B,gBAAgB,CAAC,QAAQ,CAAC,CAAC;YAC7B,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"ban-types.js","sourceRoot":"","sources":["../../src/rules/ban-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,8EAI+C;AAC/C,8CAAgC;AAqBhC,SAAS,YAAY,CAAC,GAAW;IAC/B,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAC/B,CAAC;AAED,SAAS,iBAAiB,CACxB,IAAmB,EACnB,UAA+B;IAE/B,OAAO,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,gBAAgB,CACvB,UAAkE;IAElE,IAAI,UAAU,KAAK,IAAI,EAAE;QACvB,OAAO,EAAE,CAAC;KACX;IAED,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;QAClC,OAAO,IAAI,UAAU,EAAE,CAAC;KACzB;IAED,IAAI,UAAU,CAAC,OAAO,EAAE;QACtB,OAAO,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;KACjC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,MAAM,YAAY,GAAU;IAC1B,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CAAC,EACD,EAAE,CACH,CAAC;QAEF,uCACK,gBAAgB,KAEnB,aAAa,CAAC,IAAI;gBAChB,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;oBACvB,OAAO;iBACR;gBAED,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACzB,CAAC;YACD,eAAe,CAAC,EAAE,QAAQ,EAAE;gBAC1B,gBAAgB,CAAC,QAAQ,CAAC,CAAC;YAC7B,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/camelcase.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/camelcase.js
deleted file mode 100644
index 9a31bc0..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/camelcase.js
+++ /dev/null
@@ -1,144 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
- return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
-const camelcase_1 = __importDefault(require("eslint/lib/rules/camelcase"));
-const util = __importStar(require("../util"));
-const schema = util.deepMerge(Array.isArray(camelcase_1.default.meta.schema)
- ? camelcase_1.default.meta.schema[0]
- : camelcase_1.default.meta.schema, {
- properties: {
- genericType: {
- enum: ['always', 'never'],
- },
- },
-});
-exports.default = util.createRule({
- name: 'camelcase',
- meta: {
- type: 'suggestion',
- docs: {
- description: 'Enforce camelCase naming convention',
- category: 'Stylistic Issues',
- recommended: 'error',
- extendsBaseRule: true,
- },
- deprecated: true,
- replacedBy: ['naming-convention'],
- schema: [schema],
- messages: camelcase_1.default.meta.messages,
- },
- defaultOptions: [
- {
- allow: ['^UNSAFE_'],
- ignoreDestructuring: false,
- properties: 'never',
- genericType: 'never',
- },
- ],
- create(context, [options]) {
- var _a, _b;
- const rules = camelcase_1.default.create(context);
- const TS_PROPERTY_TYPES = [
- experimental_utils_1.AST_NODE_TYPES.TSPropertySignature,
- experimental_utils_1.AST_NODE_TYPES.ClassProperty,
- experimental_utils_1.AST_NODE_TYPES.TSParameterProperty,
- experimental_utils_1.AST_NODE_TYPES.TSAbstractClassProperty,
- ];
- const genericType = options.genericType;
- const properties = options.properties;
- const allow = (_b = (_a = options.allow) === null || _a === void 0 ? void 0 : _a.map(entry => ({
- name: entry,
- regex: new RegExp(entry),
- })), (_b !== null && _b !== void 0 ? _b : []));
- /**
- * Checks if a string contains an underscore and isn't all upper-case
- * @param name The string to check.
- */
- function isUnderscored(name) {
- // if there's an underscore, it might be A_CONSTANT, which is okay
- return name.includes('_') && name !== name.toUpperCase();
- }
- /**
- * Checks if a string match the ignore list
- * @param name The string to check.
- * @returns if the string is ignored
- * @private
- */
- function isAllowed(name) {
- return (allow.findIndex(entry => name === entry.name || entry.regex.test(name)) !== -1);
- }
- /**
- * Checks if the the node is a valid TypeScript property type.
- * @param node the node to be validated.
- * @returns true if the node is a TypeScript property type.
- * @private
- */
- function isTSPropertyType(node) {
- if (TS_PROPERTY_TYPES.includes(node.type)) {
- return true;
- }
- if (node.type === experimental_utils_1.AST_NODE_TYPES.AssignmentPattern) {
- return (node.parent !== undefined &&
- TS_PROPERTY_TYPES.includes(node.parent.type));
- }
- return false;
- }
- function report(node) {
- context.report({
- node,
- messageId: 'notCamelCase',
- data: { name: node.name },
- });
- }
- return {
- Identifier(node) {
- /*
- * Leading and trailing underscores are commonly used to flag
- * private/protected identifiers, strip them
- */
- const name = node.name.replace(/^_+|_+$/g, '');
- // First, we ignore the node if it match the ignore list
- if (isAllowed(name)) {
- return;
- }
- // Check TypeScript specific nodes
- const parent = node.parent;
- if (parent && isTSPropertyType(parent)) {
- if (properties === 'always' && isUnderscored(name)) {
- report(node);
- }
- return;
- }
- if (parent && parent.type === experimental_utils_1.AST_NODE_TYPES.TSTypeParameter) {
- if (genericType === 'always' && isUnderscored(name)) {
- report(node);
- }
- return;
- }
- if (parent && parent.type === experimental_utils_1.AST_NODE_TYPES.OptionalMemberExpression) {
- // Report underscored object names
- if (properties === 'always' &&
- parent.object.type === experimental_utils_1.AST_NODE_TYPES.Identifier &&
- parent.object.name === node.name &&
- isUnderscored(name)) {
- report(node);
- }
- return;
- }
- // Let the base rule deal with the rest
- rules.Identifier(node);
- },
- };
- },
-});
-//# sourceMappingURL=camelcase.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/camelcase.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/camelcase.js.map
deleted file mode 100644
index 73957ec..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/camelcase.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"camelcase.js","sourceRoot":"","sources":["../../src/rules/camelcase.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8EAG+C;AAC/C,2EAAkD;AAClD,8CAAgC;AAKhC,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAC3B,KAAK,CAAC,OAAO,CAAC,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;IACjC,CAAC,CAAC,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IACzB,CAAC,CAAC,mBAAQ,CAAC,IAAI,CAAC,MAAM,EACxB;IACE,UAAU,EAAE;QACV,WAAW,EAAE;YACX,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;SAC1B;KACF;CACF,CACF,CAAC;AAEF,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,kBAAkB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KAAK,QAAQ,IAAI,aAAa,CAAC,IAAI,CAAC,EAAE;wBACnD,MAAM,CAAC,IAAI,CAAC,CAAC;qBACd;oBAED,OAAO;iBACR;gBAED,IAAI,MAAM,IAAI,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,wBAAwB,EAAE;oBACrE,kCAAkC;oBAClC,IACE,UAAU,KAAK,QAAQ;wBACvB,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU;wBAChD,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI;wBAChC,aAAa,CAAC,IAAI,CAAC,EACnB;wBACA,MAAM,CAAC,IAAI,CAAC,CAAC;qBACd;oBAED,OAAO;iBACR;gBAED,uCAAuC;gBACvC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;YACzB,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js
new file mode 100644
index 0000000..2d6e062
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js
@@ -0,0 +1,114 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const util = __importStar(require("../util"));
+const printNodeModifiers = (node, final) => {
+ var _a;
+ return `${(_a = node.accessibility) !== null && _a !== void 0 ? _a : ''}${node.static ? ' static' : ''} ${final} `.trimLeft();
+};
+const isSupportedLiteral = (node) => {
+ if (node.type === experimental_utils_1.AST_NODE_TYPES.Literal) {
+ return true;
+ }
+ if (node.type === experimental_utils_1.AST_NODE_TYPES.TaggedTemplateExpression ||
+ node.type === experimental_utils_1.AST_NODE_TYPES.TemplateLiteral) {
+ return ('quasi' in node ? node.quasi.quasis : node.quasis).length === 1;
+ }
+ return false;
+};
+exports.default = util.createRule({
+ name: 'class-literal-property-style',
+ meta: {
+ type: 'problem',
+ docs: {
+ description: 'Ensures that literals on classes are exposed in a consistent style',
+ category: 'Best Practices',
+ recommended: false,
+ },
+ fixable: 'code',
+ messages: {
+ preferFieldStyle: 'Literals should be exposed using readonly fields.',
+ preferGetterStyle: 'Literals should be exposed using getters.',
+ },
+ schema: [{ enum: ['fields', 'getters'] }],
+ },
+ defaultOptions: ['fields'],
+ create(context, [style]) {
+ if (style === 'fields') {
+ return {
+ MethodDefinition(node) {
+ if (node.kind !== 'get' ||
+ !node.value.body ||
+ !node.value.body.body.length) {
+ return;
+ }
+ const [statement] = node.value.body.body;
+ if (statement.type !== experimental_utils_1.AST_NODE_TYPES.ReturnStatement) {
+ return;
+ }
+ const { argument } = statement;
+ if (!argument || !isSupportedLiteral(argument)) {
+ return;
+ }
+ context.report({
+ node: node.key,
+ messageId: 'preferFieldStyle',
+ fix(fixer) {
+ const sourceCode = context.getSourceCode();
+ const name = sourceCode.getText(node.key);
+ let text = '';
+ text += printNodeModifiers(node, 'readonly');
+ text += node.computed ? `[${name}]` : name;
+ text += ` = ${sourceCode.getText(argument)};`;
+ return fixer.replaceText(node, text);
+ },
+ });
+ },
+ };
+ }
+ return {
+ ClassProperty(node) {
+ if (!node.readonly || node.declare) {
+ return;
+ }
+ const { value } = node;
+ if (!value || !isSupportedLiteral(value)) {
+ return;
+ }
+ context.report({
+ node: node.key,
+ messageId: 'preferGetterStyle',
+ fix(fixer) {
+ const sourceCode = context.getSourceCode();
+ const name = sourceCode.getText(node.key);
+ let text = '';
+ text += printNodeModifiers(node, 'get');
+ text += node.computed ? `[${name}]` : name;
+ text += `() { return ${sourceCode.getText(value)}; }`;
+ return fixer.replaceText(node, text);
+ },
+ });
+ },
+ };
+ },
+});
+//# sourceMappingURL=class-literal-property-style.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js.map
new file mode 100644
index 0000000..99fba14
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"class-literal-property-style.js","sourceRoot":"","sources":["../../src/rules/class-literal-property-style.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAUhC,MAAM,kBAAkB,GAAG,CACzB,IAAuB,EACvB,KAAyB,EACjB,EAAE;;IACV,OAAA,GAAG,MAAA,IAAI,CAAC,aAAa,mCAAI,EAAE,GACzB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAC5B,IAAI,KAAK,GAAG,CAAC,QAAQ,EAAE,CAAA;CAAA,CAAC;AAE1B,MAAM,kBAAkB,GAAG,CACzB,IAAmB,EACiB,EAAE;IACtC,IAAI,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,OAAO,EAAE;QACxC,OAAO,IAAI,CAAC;KACb;IAED,IACE,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,wBAAwB;QACrD,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,eAAe,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,GAAG,EAAE,CAAC;wBAEd,IAAI,IAAI,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;wBACxC,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;wBAC3C,IAAI,IAAI,eAAe,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;wBAEtD,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;oBACvC,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-name-casing.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-name-casing.js
deleted file mode 100644
index 2103564..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-name-casing.js
+++ /dev/null
@@ -1,112 +0,0 @@
-"use strict";
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
- return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
-const util = __importStar(require("../util"));
-exports.default = util.createRule({
- name: 'class-name-casing',
- meta: {
- type: 'suggestion',
- docs: {
- description: 'Require PascalCased class and interface names',
- category: 'Best Practices',
- recommended: 'error',
- },
- deprecated: true,
- replacedBy: ['naming-convention'],
- messages: {
- notPascalCased: "{{friendlyName}} '{{name}}' must be PascalCased.",
- },
- schema: [
- {
- type: 'object',
- properties: {
- allowUnderscorePrefix: {
- type: 'boolean',
- default: false,
- },
- },
- additionalProperties: false,
- },
- ],
- },
- defaultOptions: [{ allowUnderscorePrefix: false }],
- create(context, [options]) {
- const UNDERSCORE = '_';
- /**
- * Determine if the string is Upper cased
- * @param str
- */
- function isUpperCase(str) {
- return str === str.toUpperCase();
- }
- /**
- * Determine if the identifier name is PascalCased
- * @param name The identifier name
- */
- function isPascalCase(name) {
- const startIndex = options.allowUnderscorePrefix && name.startsWith(UNDERSCORE) ? 1 : 0;
- return (isUpperCase(name.charAt(startIndex)) &&
- !name.includes(UNDERSCORE, startIndex));
- }
- /**
- * Report a class declaration as invalid
- * @param decl The declaration
- * @param id The name of the declaration
- */
- function report(decl, id) {
- let friendlyName;
- switch (decl.type) {
- case experimental_utils_1.AST_NODE_TYPES.ClassDeclaration:
- case experimental_utils_1.AST_NODE_TYPES.ClassExpression:
- friendlyName = decl.abstract ? 'Abstract class' : 'Class';
- break;
- case experimental_utils_1.AST_NODE_TYPES.TSInterfaceDeclaration:
- friendlyName = 'Interface';
- break;
- }
- context.report({
- node: id,
- messageId: 'notPascalCased',
- data: {
- friendlyName,
- name: id.name,
- },
- });
- }
- return {
- 'ClassDeclaration, TSInterfaceDeclaration, ClassExpression'(node) {
- // class expressions (i.e. export default class {}) are OK
- if (node.id && !isPascalCase(node.id.name)) {
- report(node, node.id);
- }
- },
- "VariableDeclarator[init.type='ClassExpression']"(node) {
- if (node.id.type === experimental_utils_1.AST_NODE_TYPES.ArrayPattern ||
- node.id.type === experimental_utils_1.AST_NODE_TYPES.ObjectPattern) {
- // TODO - handle the BindingPattern case maybe?
- /*
- // this example makes me barf, but it's valid code
- var { bar } = class {
- static bar() { return 2 }
- }
- */
- }
- else {
- const id = node.id;
- const nodeInit = node.init;
- if (id && !nodeInit.id && !isPascalCase(id.name)) {
- report(nodeInit, id);
- }
- }
- },
- };
- },
-});
-//# sourceMappingURL=class-name-casing.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-name-casing.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-name-casing.js.map
deleted file mode 100644
index cd520f2..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-name-casing.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"class-name-casing.js","sourceRoot":"","sources":["../../src/rules/class-name-casing.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAShC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,+CAA+C;YAC5D,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;SACrB;QACD,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE,CAAC,mBAAmB,CAAC;QACjC,QAAQ,EAAE;YACR,cAAc,EAAE,kDAAkD;SACnE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,qBAAqB,EAAE;wBACrB,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,KAAK;qBACf;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;KACF;IACD,cAAc,EAAE,CAAC,EAAE,qBAAqB,EAAE,KAAK,EAAE,CAAC;IAClD,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,MAAM,UAAU,GAAG,GAAG,CAAC;QAEvB;;;WAGG;QACH,SAAS,WAAW,CAAC,GAAW;YAC9B,OAAO,GAAG,KAAK,GAAG,CAAC,WAAW,EAAE,CAAC;QACnC,CAAC;QAED;;;WAGG;QACH,SAAS,YAAY,CAAC,IAAY;YAChC,MAAM,UAAU,GACd,OAAO,CAAC,qBAAqB,IAAI,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAEvE,OAAO,CACL,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;gBACpC,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,UA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AAE,CAAC,IAAI,CAAC,EAAE;wBAChD,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;qBACtB;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js
new file mode 100644
index 0000000..5083584
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js
@@ -0,0 +1,177 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const util = __importStar(require("../util"));
+const comma_dangle_1 = __importDefault(require("eslint/lib/rules/comma-dangle"));
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const OPTION_VALUE_SCHEME = [
+ 'always-multiline',
+ 'always',
+ 'never',
+ 'only-multiline',
+];
+const DEFAULT_OPTION_VALUE = 'never';
+function normalizeOptions(options) {
+ var _a, _b, _c;
+ if (typeof options === 'string') {
+ return {
+ enums: options,
+ generics: options,
+ tuples: options,
+ };
+ }
+ return {
+ enums: (_a = options.enums) !== null && _a !== void 0 ? _a : DEFAULT_OPTION_VALUE,
+ generics: (_b = options.generics) !== null && _b !== void 0 ? _b : DEFAULT_OPTION_VALUE,
+ tuples: (_c = options.tuples) !== null && _c !== void 0 ? _c : DEFAULT_OPTION_VALUE,
+ };
+}
+exports.default = util.createRule({
+ name: 'comma-dangle',
+ meta: {
+ type: 'layout',
+ docs: {
+ description: 'Require or disallow trailing comma',
+ category: 'Stylistic Issues',
+ recommended: false,
+ extendsBaseRule: true,
+ },
+ schema: {
+ definitions: {
+ value: {
+ enum: OPTION_VALUE_SCHEME,
+ },
+ valueWithIgnore: {
+ enum: [...OPTION_VALUE_SCHEME, 'ignore'],
+ },
+ },
+ type: 'array',
+ items: [
+ {
+ oneOf: [
+ {
+ $ref: '#/definitions/value',
+ },
+ {
+ type: 'object',
+ properties: {
+ arrays: { $ref: '#/definitions/valueWithIgnore' },
+ objects: { $ref: '#/definitions/valueWithIgnore' },
+ imports: { $ref: '#/definitions/valueWithIgnore' },
+ exports: { $ref: '#/definitions/valueWithIgnore' },
+ functions: { $ref: '#/definitions/valueWithIgnore' },
+ enums: { $ref: '#/definitions/valueWithIgnore' },
+ generics: { $ref: '#/definitions/valueWithIgnore' },
+ tuples: { $ref: '#/definitions/valueWithIgnore' },
+ },
+ additionalProperties: false,
+ },
+ ],
+ },
+ ],
+ },
+ fixable: 'code',
+ messages: comma_dangle_1.default.meta.messages,
+ },
+ defaultOptions: ['never'],
+ create(context, [options]) {
+ const rules = comma_dangle_1.default.create(context);
+ const sourceCode = context.getSourceCode();
+ const normalizedOptions = normalizeOptions(options);
+ const predicate = {
+ always: forceComma,
+ 'always-multiline': forceCommaIfMultiline,
+ 'only-multiline': allowCommaIfMultiline,
+ never: forbidComma,
+ ignore: () => { },
+ };
+ function last(nodes) {
+ var _a;
+ return (_a = nodes[nodes.length - 1]) !== null && _a !== void 0 ? _a : null;
+ }
+ function getLastItem(node) {
+ switch (node.type) {
+ case experimental_utils_1.AST_NODE_TYPES.TSEnumDeclaration:
+ return last(node.members);
+ case experimental_utils_1.AST_NODE_TYPES.TSTypeParameterDeclaration:
+ return last(node.params);
+ case experimental_utils_1.AST_NODE_TYPES.TSTupleType:
+ return last(node.elementTypes);
+ default:
+ return null;
+ }
+ }
+ function getTrailingToken(node) {
+ const last = getLastItem(node);
+ const trailing = last && sourceCode.getTokenAfter(last);
+ return trailing;
+ }
+ function isMultiline(node) {
+ const last = getLastItem(node);
+ const lastToken = sourceCode.getLastToken(node);
+ return (last === null || last === void 0 ? void 0 : last.loc.end.line) !== (lastToken === null || lastToken === void 0 ? void 0 : lastToken.loc.end.line);
+ }
+ function forbidComma(node) {
+ const last = getLastItem(node);
+ const trailing = getTrailingToken(node);
+ if (last && trailing && util.isCommaToken(trailing)) {
+ context.report({
+ node,
+ messageId: 'unexpected',
+ fix(fixer) {
+ return fixer.remove(trailing);
+ },
+ });
+ }
+ }
+ function forceComma(node) {
+ const last = getLastItem(node);
+ const trailing = getTrailingToken(node);
+ if (last && trailing && !util.isCommaToken(trailing)) {
+ context.report({
+ node,
+ messageId: 'missing',
+ fix(fixer) {
+ return fixer.insertTextAfter(last, ',');
+ },
+ });
+ }
+ }
+ function allowCommaIfMultiline(node) {
+ if (!isMultiline(node)) {
+ forbidComma(node);
+ }
+ }
+ function forceCommaIfMultiline(node) {
+ if (isMultiline(node)) {
+ forceComma(node);
+ }
+ else {
+ forbidComma(node);
+ }
+ }
+ return Object.assign(Object.assign({}, rules), { TSEnumDeclaration: predicate[normalizedOptions.enums], TSTypeParameterDeclaration: predicate[normalizedOptions.generics], TSTupleType: predicate[normalizedOptions.tuples] });
+ },
+});
+//# sourceMappingURL=comma-dangle.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js.map
new file mode 100644
index 0000000..d9f1400
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"comma-dangle.js","sourceRoot":"","sources":["../../src/rules/comma-dangle.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAgC;AAChC,iFAAqD;AACrD,8EAG+C;AAU/C,MAAM,mBAAmB,GAAG;IAC1B,kBAAkB;IAClB,QAAQ;IACR,OAAO;IACP,gBAAgB;CACjB,CAAC;AAEF,MAAM,oBAAoB,GAAG,OAAO,CAAC;AAErC,SAAS,gBAAgB,CAAC,OAAe;;IACvC,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,OAAO;YACL,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,OAAO;YACjB,MAAM,EAAE,OAAO;SAChB,CAAC;KACH;IACD,OAAO;QACL,KAAK,QAAE,OAAO,CAAC,KAAK,mCAAI,oBAAoB;QAC5C,QAAQ,QAAE,OAAO,CAAC,QAAQ,mCAAI,oBAAoB;QAClD,MAAM,QAAE,OAAO,CAAC,MAAM,mCAAI,oBAAoB;KAC/C,CAAC;AACJ,CAAC;AAED,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE;YACJ,WAAW,EAAE,oCAAoC;YACjD,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,MAAM,EAAE;YACN,WAAW,EAAE;gBACX,KAAK,EAAE;oBACL,IAAI,EAAE,mBAAmB;iBAC1B;gBACD,eAAe,EAAE;oBACf,IAAI,EAAE,CAAC,GAAG,mBAAmB,EAAE,QAAQ,CAAC;iBACzC;aACF;YACD,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL;oBACE,KAAK,EAAE;wBACL;4BACE,IAAI,EAAE,qBAAqB;yBAC5B;wBACD;4BACE,IAAI,EAAE,Q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ChC,CAAC;iBACF,CAAC,CAAC;aACJ;QACH,CAAC;QAED,SAAS,UAAU,CAAC,IAAmB;YACrC,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;YAC/B,MAAM,QAAQ,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACxC,IAAI,IAAI,IAAI,QAAQ,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE;gBACpD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,SAAS;oBACpB,GAAG,CAAC,KAAK;wBACP,OAAO,KAAK,CAAC,eAAe,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;oBAC1C,CAAC;iBACF,CAAC,CAAC;aACJ;QACH,CAAC;QAED,SAAS,qBAAqB,CAAC,IAAmB;YAChD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;gBACtB,WAAW,CAAC,IAAI,CAAC,CAAC;aACnB;QACH,CAAC;QAED,SAAS,qBAAqB,CAAC,IAAmB;YAChD,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE;gBACrB,UAAU,CAAC,IAAI,CAAC,CAAC;aAClB;iBAAM;gBACL,WAAW,CAAC,IAAI,CAAC,CAAC;aACnB;QACH,CAAC;QAED,uCACK,KAAK,KACR,iBAAiB,EAAE,SAAS,CAAC,iBAAiB,CAAC,KAAK,CAAC,EACrD,0BAA0B,EAAE,SAAS,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EACjE,WAAW,EAAE,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAChD;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js
index 59a10e2..6e2c440 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js
@@ -1,7 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
-const eslint_utils_1 = require("eslint-utils");
const util_1 = require("../util");
exports.default = util_1.createRule({
name: 'comma-spacing',
@@ -55,7 +54,7 @@
let token;
if (element === null) {
token = sourceCode.getTokenAfter(previousToken);
- if (token && eslint_utils_1.isCommaToken(token)) {
+ if (token && util_1.isCommaToken(token)) {
ignoredTokens.add(token);
}
}
@@ -72,7 +71,7 @@
function addTypeParametersTrailingCommaToIgnoreList(node) {
const param = node.params[node.params.length - 1];
const afterToken = sourceCode.getTokenAfter(param);
- if (afterToken && eslint_utils_1.isCommaToken(afterToken)) {
+ if (afterToken && util_1.isCommaToken(afterToken)) {
ignoredTokens.add(afterToken);
}
}
@@ -85,7 +84,7 @@
function validateCommaSpacing(commaToken, prevToken, nextToken) {
if (prevToken &&
util_1.isTokenOnSameLine(prevToken, commaToken) &&
- spaceBefore !== sourceCode.isSpaceBetween(prevToken, commaToken)) {
+ spaceBefore !== sourceCode.isSpaceBetweenTokens(prevToken, commaToken)) {
context.report({
node: commaToken,
data: {
@@ -97,7 +96,7 @@
: fixer.replaceTextRange([prevToken.range[1], commaToken.range[0]], ''),
});
}
- if (nextToken && eslint_utils_1.isClosingParenToken(nextToken)) {
+ if (nextToken && util_1.isClosingParenToken(nextToken)) {
return;
}
if (!spaceAfter && nextToken && nextToken.type === experimental_utils_1.AST_TOKEN_TYPES.Line) {
@@ -105,7 +104,7 @@
}
if (nextToken &&
util_1.isTokenOnSameLine(commaToken, nextToken) &&
- spaceAfter !== sourceCode.isSpaceBetween(commaToken, nextToken)) {
+ spaceAfter !== sourceCode.isSpaceBetweenTokens(commaToken, nextToken)) {
context.report({
node: commaToken,
data: {
@@ -124,14 +123,14 @@
ArrayPattern: addNullElementsToIgnoreList,
'Program:exit'() {
tokensAndComments.forEach((token, i) => {
- if (!eslint_utils_1.isCommaToken(token)) {
+ if (!util_1.isCommaToken(token)) {
return;
}
const prevToken = tokensAndComments[i - 1];
const nextToken = tokensAndComments[i + 1];
- validateCommaSpacing(token, eslint_utils_1.isCommaToken(prevToken) || ignoredTokens.has(token)
+ validateCommaSpacing(token, util_1.isCommaToken(prevToken) || ignoredTokens.has(token)
? null
- : prevToken, eslint_utils_1.isCommaToken(nextToken) || ignoredTokens.has(token)
+ : prevToken, util_1.isCommaToken(nextToken) || ignoredTokens.has(token)
? null
: nextToken);
});
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js.map
index 82702c1..9ddd17a 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js.map
@@ -1 +1 @@
-{"version":3,"file":"comma-spacing.js","sourceRoot":"","sources":["../../src/rules/comma-spacing.ts"],"names":[],"mappings":";;AAAA,8EAG+C;AAC/C,+CAAiE;AACjE,kCAAwD;AAUxD,kBAAe,iBAAU,CAAsB;IAC7C,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,qDAAqD;YAClE,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,YAAY;QACrB,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,KAAK;qBACf;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,IAAI;qBACd;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,uCAAuC;YACnD,OAAO,EA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R,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,UAAU,EAAE,GAAG,CAAC;wBACxC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CACpB,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzC,EAAE,CACH;iBACR,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,0BAA0B,EAAE,0CAA0C;YACtE,eAAe,EAAE,2BAA2B;YAC5C,YAAY,EAAE,2BAA2B;YAEzC,cAAc;gBACZ,iBAAiB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;oBACrC,IAAI,CAAC,2BAAY,CAAC,KAAK,CAAC,EAAE;wBACxB,OAAO;qBACR;oBAED,MAAM,SAAS,GAAG,iBAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;oBAC3C,MAAM,SAAS,GAAG,iBAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;oBAE3C,oBAAoB,CAClB,KAAK,EACL,2BAAY,CAAC,SAAS,CAAC,IAAI,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC;wBACjD,CAAC,CAAC,IAAI;wBACN,CAAC,CAAC,SAAS,EACb,2BAAY,CAAC,SAAS,CAAC,IAAI,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC;wBACjD,CAAC,CAAC,IAAI;wBACN,CAAC,CAAC,SAAS,CACd,CAAC;gBACJ,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"comma-spacing.js","sourceRoot":"","sources":["../../src/rules/comma-spacing.ts"],"names":[],"mappings":";;AAAA,8EAG+C;AAC/C,kCAKiB;AAUjB,kBAAe,iBAAU,CAAsB;IAC7C,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ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ACb,mBAAY,CAAC,SAAS,CAAC,IAAI,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC;wBACjD,CAAC,CAAC,IAAI;wBACN,CAAC,CAAC,SAAS,CACd,CAAC;gBACJ,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js
index 7f517a1..00e292a 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -16,7 +28,7 @@
docs: {
category: 'Best Practices',
description: 'Enforces consistent usage of type assertions',
- recommended: 'error',
+ recommended: false,
},
messages: {
as: "Use 'as {{cast}}' instead of '<{{cast}}>'.",
@@ -62,7 +74,18 @@
],
create(context, [options]) {
const sourceCode = context.getSourceCode();
+ function isConst(node) {
+ if (node.type !== experimental_utils_1.AST_NODE_TYPES.TSTypeReference) {
+ return false;
+ }
+ return (node.typeName.type === experimental_utils_1.AST_NODE_TYPES.Identifier &&
+ node.typeName.name === 'const');
+ }
function reportIncorrectAssertionType(node) {
+ // If this node is `as const`, then don't report an error.
+ if (isConst(node.typeAnnotation)) {
+ return;
+ }
const messageId = options.assertionStyle;
context.report({
node,
@@ -80,8 +103,7 @@
case experimental_utils_1.AST_NODE_TYPES.TSTypeReference:
return (
// Ignore `as const` and `<const>`
- (node.typeName.type === experimental_utils_1.AST_NODE_TYPES.Identifier &&
- node.typeName.name !== 'const') ||
+ !isConst(node) ||
// Allow qualified names which have dots between identifiers, `Foo.Bar`
node.typeName.type === experimental_utils_1.AST_NODE_TYPES.TSQualifiedName);
default:
@@ -98,7 +120,6 @@
node.parent &&
(node.parent.type === experimental_utils_1.AST_NODE_TYPES.NewExpression ||
node.parent.type === experimental_utils_1.AST_NODE_TYPES.CallExpression ||
- node.parent.type === experimental_utils_1.AST_NODE_TYPES.OptionalCallExpression ||
node.parent.type === experimental_utils_1.AST_NODE_TYPES.ThrowStatement ||
node.parent.type === experimental_utils_1.AST_NODE_TYPES.AssignmentPattern)) {
return;
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map
index b30cb14..41dd8b1 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map
@@ -1 +1 @@
-{"version":3,"file":"consistent-type-assertions.js","sourceRoot":"","sources":["../../src/rules/consistent-type-assertions.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8CAAgC;AAChC,8EAG+C;AAmB/C,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE;QACJ,IAAI,EA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BAC9B,IAAI,CAAC,UAAU,CAAC,IAAI,KAAK,mCAAc,CAAC,gBAAgB,EACxD;gBACA,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,+BAA+B;iBAC3C,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,eAAe,CAAC,IAAI;gBAClB,IAAI,OAAO,CAAC,cAAc,KAAK,eAAe,EAAE;oBAC9C,4BAA4B,CAAC,IAAI,CAAC,CAAC;oBACnC,OAAO;iBACR;gBAED,eAAe,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;YACD,cAAc,CAAC,IAAI;gBACjB,IAAI,OAAO,CAAC,cAAc,KAAK,IAAI,EAAE;oBACnC,4BAA4B,CAAC,IAAI,CAAC,CAAC;oBACnC,OAAO;iBACR;gBAED,eAAe,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"consistent-type-assertions.js","sourceRoot":"","sources":["../../src/rules/consistent-type-assertions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8CAAgC;AAChC,8EAG+C;AAkB/C,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,8CAA8C;YAC3D,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,EAAE,EAAE,4CAA4C;YAChD,eAAe,EAAE,4CAA4C;YAC7D,KAAK,EAAE,iCAAiC;YACxC,6BAA6B,EAAE,qCAAqC;SACrE;QACD,MAAM,EAAE;YACN;gBACE,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACV,cAAc,EAAE;gCACd,IAAI,EAAE,CAAC,OAAO,CAAC;6BACh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AAe,CAAC,IAAI;gBAClB,IAAI,OAAO,CAAC,cAAc,KAAK,eAAe,EAAE;oBAC9C,4BAA4B,CAAC,IAAI,CAAC,CAAC;oBACnC,OAAO;iBACR;gBAED,eAAe,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;YACD,cAAc,CAAC,IAAI;gBACjB,IAAI,OAAO,CAAC,cAAc,KAAK,IAAI,EAAE;oBACnC,4BAA4B,CAAC,IAAI,CAAC,CAAC;oBACnC,OAAO;iBACR;gBAED,eAAe,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js
index 2789140..cd0de69 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -20,8 +32,8 @@
recommended: false,
},
messages: {
- interfaceOverType: 'Use an `interface` instead of a `type`',
- typeOverInterface: 'Use a `type` instead of an `interface`',
+ interfaceOverType: 'Use an `interface` instead of a `type`.',
+ typeOverInterface: 'Use a `type` instead of an `interface`.',
},
schema: [
{
@@ -41,7 +53,7 @@
messageId: 'interfaceOverType',
fix(fixer) {
var _a;
- const typeNode = (_a = node.typeParameters, (_a !== null && _a !== void 0 ? _a : node.id));
+ const typeNode = (_a = node.typeParameters) !== null && _a !== void 0 ? _a : node.id;
const fixes = [];
const firstToken = sourceCode.getFirstToken(node);
if (firstToken) {
@@ -66,7 +78,7 @@
messageId: 'typeOverInterface',
fix(fixer) {
var _a;
- const typeNode = (_a = node.typeParameters, (_a !== null && _a !== void 0 ? _a : node.id));
+ const typeNode = (_a = node.typeParameters) !== null && _a !== void 0 ? _a : node.id;
const fixes = [];
const firstToken = sourceCode.getFirstToken(node);
if (firstToken) {
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js.map
index 593e029..a9d96cb 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js.map
@@ -1 +1 @@
-{"version":3,"file":"consistent-type-definitions.js","sourceRoot":"","sources":["../../src/rules/consistent-type-definitions.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAI+C;AAC/C,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,8DAA8D;YAChE,QAAQ,EAAE,kBAAkB;YAC5B,oCAAoC;YACpC,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,iBAAiB,EAAE,wCAAwC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file":"consistent-type-definitions.js","sourceRoot":"","sources":["../../src/rules/consistent-type-definitions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAI+C;AAC/C,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,8DAA8D;YAChE,QAAQ,EAAE,kBAAkB;YAC5B,oCAAoC;YACpC,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,iBAAiB,EAAE,yCAAyC;YAC5D,iBAAiB,EAAE,yCAAyC;SAC7D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,CAAC,WAAW,EAAE,MAAM,CAAC;aAC5B;SACF;QACD,OAAO,EAAE,MAAM;KAChB;IACD,cAAc,EAAE,CAAC,WAAW,CAAC;IAC7B,MAAM,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;QACtB,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C,OAAO;YACL,6DAA6D,CAC3D,IAAqC;gBAErC,IAAI,MAAM,KAAK,WAAW,EAAE;oBAC1B,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,IAAI,CAAC,EAAE;wBACb,SAAS,EAAE,mBAAmB;wBAC9B,GAAG,CAAC,KAAK;;4BACP,MAAM,QAAQ,SAAG,IAAI,CAAC,cAAc,mCAAI,IAAI,CAAC,EAAE,CAAC;4BAChD,MAAM,KAAK,GAAuB,EAAE,CAAC;4BAErC,MAAM,UAAU,GAAG,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;4BAClD,IAAI,UAAU,EAAE;gCACd,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC,CAAC;gCACvD,KAAK,CAAC,IAAI,CACR,KAAK,CAAC,gBAAgB,C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OAAO,CAAC,QAAQ,CAAC,EAAE;oCAC9B,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;oCACpD,KAAK,CAAC,IAAI,CACR,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,cAAc,EAAE,CAAC,CACzD,CAAC;gCACJ,CAAC,CAAC,CAAC;6BACJ;4BAED,OAAO,KAAK,CAAC;wBACf,CAAC;qBACF,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js
new file mode 100644
index 0000000..c61196c
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js
@@ -0,0 +1,392 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const util = __importStar(require("../util"));
+function isImportToken(token) {
+ return token.type === experimental_utils_1.AST_TOKEN_TYPES.Keyword && token.value === 'import';
+}
+function isTypeToken(token) {
+ return token.type === experimental_utils_1.AST_TOKEN_TYPES.Identifier && token.value === 'type';
+}
+exports.default = util.createRule({
+ name: 'consistent-type-imports',
+ meta: {
+ type: 'suggestion',
+ docs: {
+ description: 'Enforces consistent usage of type imports',
+ category: 'Stylistic Issues',
+ recommended: false,
+ },
+ messages: {
+ typeOverValue: 'All imports in the declaration are only used as types. Use `import type`',
+ someImportsAreOnlyTypes: 'Imports {{typeImports}} are only used as types',
+ aImportIsOnlyTypes: 'Import {{typeImports}} is only used as types',
+ valueOverType: 'Use an `import` instead of an `import type`.',
+ noImportTypeAnnotations: '`import()` type annotations are forbidden.',
+ },
+ schema: [
+ {
+ type: 'object',
+ properties: {
+ prefer: {
+ enum: ['type-imports', 'no-type-imports'],
+ },
+ disallowTypeAnnotations: {
+ type: 'boolean',
+ },
+ },
+ additionalProperties: false,
+ },
+ ],
+ fixable: 'code',
+ },
+ defaultOptions: [
+ {
+ prefer: 'type-imports',
+ disallowTypeAnnotations: true,
+ },
+ ],
+ create(context, [option]) {
+ var _a;
+ const prefer = (_a = option.prefer) !== null && _a !== void 0 ? _a : 'type-imports';
+ const disallowTypeAnnotations = option.disallowTypeAnnotations !== false;
+ const sourceCode = context.getSourceCode();
+ const sourceImportsMap = {};
+ return Object.assign(Object.assign({}, (prefer === 'type-imports'
+ ? {
+ // prefer type imports
+ ImportDeclaration(node) {
+ var _a;
+ const source = node.source.value;
+ const sourceImports = (_a = sourceImportsMap[source]) !== null && _a !== void 0 ? _a : (sourceImportsMap[source] = {
+ source,
+ reportValueImports: [],
+ typeOnlyNamedImport: null,
+ });
+ if (node.importKind === 'type') {
+ if (!sourceImports.typeOnlyNamedImport &&
+ node.specifiers.every(specifier => specifier.type === experimental_utils_1.AST_NODE_TYPES.ImportSpecifier)) {
+ sourceImports.typeOnlyNamedImport = node;
+ }
+ return;
+ }
+ // if importKind === 'value'
+ const typeSpecifiers = [];
+ const valueSpecifiers = [];
+ const unusedSpecifiers = [];
+ for (const specifier of node.specifiers) {
+ const [variable] = context.getDeclaredVariables(specifier);
+ if (variable.references.length === 0) {
+ unusedSpecifiers.push(specifier);
+ }
+ else {
+ const onlyHasTypeReferences = variable.references.every(ref => {
+ if (ref.isValueReference) {
+ // `type T = typeof foo` will create a value reference because "foo" must be a value type
+ // however this value reference is safe to use with type-only imports
+ let parent = ref.identifier.parent;
+ while (parent) {
+ if (parent.type === experimental_utils_1.AST_NODE_TYPES.TSTypeQuery) {
+ return true;
+ }
+ // TSTypeQuery must have a TSESTree.EntityName as its child, so we can filter here and break early
+ if (parent.type !== experimental_utils_1.AST_NODE_TYPES.TSQualifiedName) {
+ break;
+ }
+ parent = parent.parent;
+ }
+ return false;
+ }
+ return ref.isTypeReference;
+ });
+ if (onlyHasTypeReferences) {
+ typeSpecifiers.push(specifier);
+ }
+ else {
+ valueSpecifiers.push(specifier);
+ }
+ }
+ }
+ if (typeSpecifiers.length) {
+ sourceImports.reportValueImports.push({
+ node,
+ typeSpecifiers,
+ valueSpecifiers,
+ unusedSpecifiers,
+ });
+ }
+ },
+ 'Program:exit'() {
+ for (const sourceImports of Object.values(sourceImportsMap)) {
+ if (sourceImports.reportValueImports.length === 0) {
+ continue;
+ }
+ for (const report of sourceImports.reportValueImports) {
+ if (report.valueSpecifiers.length === 0 &&
+ report.unusedSpecifiers.length === 0) {
+ // import is all type-only, convert the entire import to `import type`
+ context.report({
+ node: report.node,
+ messageId: 'typeOverValue',
+ *fix(fixer) {
+ yield* fixToTypeImport(fixer, report, sourceImports);
+ },
+ });
+ }
+ else {
+ // we have a mixed type/value import, so we need to split them out into multiple exports
+ const typeImportNames = report.typeSpecifiers.map(specifier => `"${specifier.local.name}"`);
+ context.report({
+ node: report.node,
+ messageId: typeImportNames.length === 1
+ ? 'aImportIsOnlyTypes'
+ : 'someImportsAreOnlyTypes',
+ data: {
+ typeImports: typeImportNames.length === 1
+ ? typeImportNames[0]
+ : [
+ typeImportNames.slice(0, -1).join(', '),
+ typeImportNames.slice(-1)[0],
+ ].join(' and '),
+ },
+ *fix(fixer) {
+ yield* fixToTypeImport(fixer, report, sourceImports);
+ },
+ });
+ }
+ }
+ }
+ },
+ }
+ : {
+ // prefer no type imports
+ 'ImportDeclaration[importKind = "type"]'(node) {
+ context.report({
+ node,
+ messageId: 'valueOverType',
+ fix(fixer) {
+ return fixToValueImport(fixer, node);
+ },
+ });
+ },
+ })), (disallowTypeAnnotations
+ ? {
+ // disallow `import()` type
+ TSImportType(node) {
+ context.report({
+ node,
+ messageId: 'noImportTypeAnnotations',
+ });
+ },
+ }
+ : {}));
+ function* fixToTypeImport(fixer, report, sourceImports) {
+ const { node } = report;
+ const defaultSpecifier = node.specifiers[0].type === experimental_utils_1.AST_NODE_TYPES.ImportDefaultSpecifier
+ ? node.specifiers[0]
+ : null;
+ const namespaceSpecifier = node.specifiers[0].type === experimental_utils_1.AST_NODE_TYPES.ImportNamespaceSpecifier
+ ? node.specifiers[0]
+ : null;
+ const namedSpecifiers = node.specifiers.filter((specifier) => specifier.type === experimental_utils_1.AST_NODE_TYPES.ImportSpecifier);
+ if (namespaceSpecifier) {
+ // e.g.
+ // import * as types from 'foo'
+ yield* fixToTypeImportByInsertType(fixer, node, false);
+ return;
+ }
+ else if (defaultSpecifier) {
+ if (report.typeSpecifiers.includes(defaultSpecifier) &&
+ namedSpecifiers.length === 0) {
+ // e.g.
+ // import Type from 'foo'
+ yield* fixToTypeImportByInsertType(fixer, node, true);
+ return;
+ }
+ }
+ else {
+ if (namedSpecifiers.every(specifier => report.typeSpecifiers.includes(specifier))) {
+ // e.g.
+ // import {Type1, Type2} from 'foo'
+ yield* fixToTypeImportByInsertType(fixer, node, false);
+ return;
+ }
+ }
+ const typeNamedSpecifiers = namedSpecifiers.filter(specifier => report.typeSpecifiers.includes(specifier));
+ const fixesNamedSpecifiers = getFixesNamedSpecifiers(typeNamedSpecifiers, namedSpecifiers);
+ const afterFixes = [];
+ if (typeNamedSpecifiers.length) {
+ if (sourceImports.typeOnlyNamedImport) {
+ const closingBraceToken = util.nullThrows(sourceCode.getFirstTokenBetween(sourceCode.getFirstToken(sourceImports.typeOnlyNamedImport), sourceImports.typeOnlyNamedImport.source, util.isClosingBraceToken), util.NullThrowsReasons.MissingToken('}', sourceImports.typeOnlyNamedImport.type));
+ let insertText = fixesNamedSpecifiers.typeNamedSpecifiersText;
+ const before = sourceCode.getTokenBefore(closingBraceToken);
+ if (!util.isCommaToken(before) && !util.isOpeningBraceToken(before)) {
+ insertText = ',' + insertText;
+ }
+ // import type { Already, Type1, Type2 } from 'foo'
+ // ^^^^^^^^^^^^^ insert
+ const insertTypeNamedSpecifiers = fixer.insertTextBefore(closingBraceToken, insertText);
+ if (sourceImports.typeOnlyNamedImport.range[1] <= node.range[0]) {
+ yield insertTypeNamedSpecifiers;
+ }
+ else {
+ afterFixes.push(insertTypeNamedSpecifiers);
+ }
+ }
+ else {
+ yield fixer.insertTextBefore(node, `import type {${fixesNamedSpecifiers.typeNamedSpecifiersText}} from ${sourceCode.getText(node.source)};\n`);
+ }
+ }
+ if (defaultSpecifier &&
+ report.typeSpecifiers.includes(defaultSpecifier)) {
+ if (typeNamedSpecifiers.length === namedSpecifiers.length) {
+ const importToken = util.nullThrows(sourceCode.getFirstToken(node, isImportToken), util.NullThrowsReasons.MissingToken('import', node.type));
+ // import type Type from 'foo'
+ // ^^^^ insert
+ yield fixer.insertTextAfter(importToken, ' type');
+ }
+ else {
+ yield fixer.insertTextBefore(node, `import type ${sourceCode.getText(defaultSpecifier)} from ${sourceCode.getText(node.source)};\n`);
+ // import Type , {...} from 'foo'
+ // ^^^^^^ remove
+ yield fixer.remove(defaultSpecifier);
+ yield fixer.remove(sourceCode.getTokenAfter(defaultSpecifier));
+ }
+ }
+ yield* fixesNamedSpecifiers.removeTypeNamedSpecifiers;
+ yield* afterFixes;
+ /**
+ * Returns information for fixing named specifiers.
+ */
+ function getFixesNamedSpecifiers(typeNamedSpecifiers, allNamedSpecifiers) {
+ const typeNamedSpecifiersTexts = [];
+ const removeTypeNamedSpecifiers = [];
+ if (typeNamedSpecifiers.length === allNamedSpecifiers.length) {
+ // e.g.
+ // import Foo, {Type1, Type2} from 'foo'
+ // import DefType, {Type1, Type2} from 'foo'
+ const openingBraceToken = util.nullThrows(sourceCode.getTokenBefore(typeNamedSpecifiers[0], util.isOpeningBraceToken), util.NullThrowsReasons.MissingToken('{', node.type));
+ const commaToken = util.nullThrows(sourceCode.getTokenBefore(openingBraceToken, util.isCommaToken), util.NullThrowsReasons.MissingToken(',', node.type));
+ const closingBraceToken = util.nullThrows(sourceCode.getFirstTokenBetween(openingBraceToken, node.source, util.isClosingBraceToken), util.NullThrowsReasons.MissingToken('}', node.type));
+ // import DefType, {...} from 'foo'
+ // ^^^^^^^ remove
+ removeTypeNamedSpecifiers.push(fixer.removeRange([
+ commaToken.range[0],
+ closingBraceToken.range[1],
+ ]));
+ typeNamedSpecifiersTexts.push(sourceCode.text.slice(openingBraceToken.range[1], closingBraceToken.range[0]));
+ }
+ else {
+ const typeNamedSpecifierGroups = [];
+ let group = [];
+ for (const namedSpecifier of allNamedSpecifiers) {
+ if (typeNamedSpecifiers.includes(namedSpecifier)) {
+ group.push(namedSpecifier);
+ }
+ else if (group.length) {
+ typeNamedSpecifierGroups.push(group);
+ group = [];
+ }
+ }
+ if (group.length) {
+ typeNamedSpecifierGroups.push(group);
+ }
+ for (const namedSpecifiers of typeNamedSpecifierGroups) {
+ const { removeRange, textRange } = getNamedSpecifierRanges(namedSpecifiers, allNamedSpecifiers);
+ removeTypeNamedSpecifiers.push(fixer.removeRange(removeRange));
+ typeNamedSpecifiersTexts.push(sourceCode.text.slice(...textRange));
+ }
+ }
+ return {
+ typeNamedSpecifiersText: typeNamedSpecifiersTexts.join(','),
+ removeTypeNamedSpecifiers,
+ };
+ }
+ /**
+ * Returns ranges for fixing named specifier.
+ */
+ function getNamedSpecifierRanges(namedSpecifierGroup, allNamedSpecifiers) {
+ const first = namedSpecifierGroup[0];
+ const last = namedSpecifierGroup[namedSpecifierGroup.length - 1];
+ const removeRange = [first.range[0], last.range[1]];
+ const textRange = [...removeRange];
+ const before = sourceCode.getTokenBefore(first);
+ textRange[0] = before.range[1];
+ if (util.isCommaToken(before)) {
+ removeRange[0] = before.range[0];
+ }
+ else {
+ removeRange[0] = before.range[1];
+ }
+ const isFirst = allNamedSpecifiers[0] === first;
+ const isLast = allNamedSpecifiers[allNamedSpecifiers.length - 1] === last;
+ const after = sourceCode.getTokenAfter(last);
+ textRange[1] = after.range[0];
+ if (isFirst || isLast) {
+ if (util.isCommaToken(after)) {
+ removeRange[1] = after.range[1];
+ }
+ }
+ return {
+ textRange,
+ removeRange,
+ };
+ }
+ }
+ function* fixToTypeImportByInsertType(fixer, node, isDefaultImport) {
+ // import type Foo from 'foo'
+ // ^^^^^ insert
+ const importToken = util.nullThrows(sourceCode.getFirstToken(node, isImportToken), util.NullThrowsReasons.MissingToken('import', node.type));
+ yield fixer.insertTextAfter(importToken, ' type');
+ if (isDefaultImport) {
+ // Has default import
+ const openingBraceToken = sourceCode.getFirstTokenBetween(importToken, node.source, util.isOpeningBraceToken);
+ if (openingBraceToken) {
+ // Only braces. e.g. import Foo, {} from 'foo'
+ const commaToken = util.nullThrows(sourceCode.getTokenBefore(openingBraceToken, util.isCommaToken), util.NullThrowsReasons.MissingToken(',', node.type));
+ const closingBraceToken = util.nullThrows(sourceCode.getFirstTokenBetween(openingBraceToken, node.source, util.isClosingBraceToken), util.NullThrowsReasons.MissingToken('}', node.type));
+ // import type Foo, {} from 'foo'
+ // ^^ remove
+ yield fixer.removeRange([
+ commaToken.range[0],
+ closingBraceToken.range[1],
+ ]);
+ const specifiersText = sourceCode.text.slice(commaToken.range[1], closingBraceToken.range[1]);
+ if (node.specifiers.length > 1) {
+ // import type Foo from 'foo'
+ // import type {...} from 'foo' // <- insert
+ yield fixer.insertTextAfter(node, `\nimport type${specifiersText} from ${sourceCode.getText(node.source)};`);
+ }
+ }
+ }
+ }
+ function fixToValueImport(fixer, node) {
+ var _a, _b;
+ // import type Foo from 'foo'
+ // ^^^^ remove
+ const importToken = util.nullThrows(sourceCode.getFirstToken(node, isImportToken), util.NullThrowsReasons.MissingToken('import', node.type));
+ const typeToken = util.nullThrows(sourceCode.getFirstTokenBetween(importToken, (_b = (_a = node.specifiers[0]) === null || _a === void 0 ? void 0 : _a.local) !== null && _b !== void 0 ? _b : node.source, isTypeToken), util.NullThrowsReasons.MissingToken('type', node.type));
+ return fixer.remove(typeToken);
+ }
+ },
+});
+//# sourceMappingURL=consistent-type-imports.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map
new file mode 100644
index 0000000..ce74bfd
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"consistent-type-imports.js","sourceRoot":"","sources":["../../src/rules/consistent-type-imports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAK+C;AAC/C,8CAAgC;AAwBhC,SAAS,aAAa,CACpB,KAAwC;IAExC,OAAO,KAAK,CAAC,IAAI,KAAK,oCAAe,CAAC,OAAO,IAAI,KAAK,CAAC,KAAK,KAAK,QAAQ,CAAC;AAC5E,CAAC;AAED,SAAS,WAAW,CAClB,KAAwC;IAExC,OAAO,KAAK,CAAC,IAAI,KAAK,oCAAe,CAAC,UAAU,IAAI,KAAK,CAAC,KAAK,KAAK,MAAM,CAAC;AAC7E,CAAC;AAOD,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,2CAA2C;YACxD,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,aAAa,EACX,0EAA0E;YAC5E,uBAAu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C,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,EAC7C,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,CACzD,CAAC;YACF,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAC/B,UAAU,CAAC,oBAAoB,CAC7B,WAAW,cACX,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,0CAAE,KAAK,mCAAI,IAAI,CAAC,MAAM,EACxC,WAAW,CACZ,EACD,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CACvD,CAAC;YACF,OAAO,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACjC,CAAC;IACH,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js
new file mode 100644
index 0000000..a4a89d0
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js
@@ -0,0 +1,90 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const ts = __importStar(require("typescript"));
+const dot_notation_1 = __importDefault(require("eslint/lib/rules/dot-notation"));
+const util_1 = require("../util");
+exports.default = util_1.createRule({
+ name: 'dot-notation',
+ meta: {
+ type: 'suggestion',
+ docs: {
+ description: 'enforce dot notation whenever possible',
+ category: 'Best Practices',
+ recommended: false,
+ extendsBaseRule: true,
+ requiresTypeChecking: true,
+ },
+ schema: [
+ {
+ type: 'object',
+ properties: {
+ allowKeywords: {
+ type: 'boolean',
+ default: true,
+ },
+ allowPattern: {
+ type: 'string',
+ default: '',
+ },
+ allowPrivateClassPropertyAccess: {
+ type: 'boolean',
+ default: false,
+ },
+ },
+ additionalProperties: false,
+ },
+ ],
+ fixable: dot_notation_1.default.meta.fixable,
+ messages: dot_notation_1.default.meta.messages,
+ },
+ defaultOptions: [
+ {
+ allowPrivateClassPropertyAccess: false,
+ allowKeywords: true,
+ allowPattern: '',
+ },
+ ],
+ create(context, [options]) {
+ const rules = dot_notation_1.default.create(context);
+ const allowPrivateClassPropertyAccess = options.allowPrivateClassPropertyAccess;
+ const parserServices = util_1.getParserServices(context);
+ const typeChecker = parserServices.program.getTypeChecker();
+ return {
+ MemberExpression(node) {
+ var _a, _b, _c;
+ if (allowPrivateClassPropertyAccess && node.computed) {
+ // for perf reasons - only fetch the symbol if we have to
+ const objectSymbol = typeChecker.getSymbolAtLocation(parserServices.esTreeNodeToTSNodeMap.get(node.property));
+ if (((_c = (_b = (_a = objectSymbol === null || objectSymbol === void 0 ? void 0 : objectSymbol.getDeclarations()) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.modifiers) === null || _c === void 0 ? void 0 : _c[0].kind) ===
+ ts.SyntaxKind.PrivateKeyword) {
+ return;
+ }
+ }
+ rules.MemberExpression(node);
+ },
+ };
+ },
+});
+//# sourceMappingURL=dot-notation.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map
new file mode 100644
index 0000000..297244e
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"dot-notation.js","sourceRoot":"","sources":["../../src/rules/dot-notation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,+CAAiC;AACjC,iFAAqD;AACrD,kCAKiB;AAKjB,kBAAe,iBAAU,CAAsB;IAC7C,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,aAAa,EAAE;wBACb,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,IAAI;qBACd;oBACD,YAAY,EAAE;wBACZ,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;qBACZ;oBACD,+BAA+B,EAAE;wBAC/B,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,KAAK;qBACf;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,OAAO,EAAE,sBAAQ,CAAC,IAAI,CAAC,OAAO;QAC9B,QAAQ,EAAE,sBAAQ,CAAC,IAAI,CAAC,QAAQ;KACjC;IACD,cAAc,EAAE;QACd;YACE,+BAA+B,EAAE,KAAK;YACtC,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,EAAE;SACjB;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,MAAM,KAAK,GAAG,sBAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACvC,MAAM,+BAA+B,GACnC,OAAO,CAAC,+BAA+B,CAAC;QAE1C,MAAM,cAAc,GAAG,wBAAiB,CAAC,OAAO,CAAC,CAAC;QAClD,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAE5D,OAAO;YACL,gBAAgB,CAAC,IAA+B;;gBAC9C,IAAI,+BAA+B,IAAI,IAAI,CAAC,QAAQ,EAAE;oBACpD,yDAAyD;oBACzD,MAAM,YAAY,GAAG,WAAW,CAAC,mBAAmB,CAClD,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CACxD,CAAC;oBACF,IACE,mBAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,eAAe,4CAAK,CAAC,2CAAG,SAAS,0CAAG,CAAC,EAAE,IAAI;wBACzD,EAAE,CAAC,UAAU,CAAC,cAAc,EAC5B;wBACA,OAAO;qBACR;iBACF;gBACD,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;YAC/B,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js
index 4bac6cc..5f39168 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js
@@ -1,12 +1,25 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
const util = __importStar(require("../util"));
const explicitReturnTypeUtils_1 = require("../util/explicitReturnTypeUtils");
exports.default = util.createRule({
@@ -16,7 +29,7 @@
docs: {
description: 'Require explicit return types on functions and class methods',
category: 'Stylistic Issues',
- recommended: 'warn',
+ recommended: false,
},
messages: {
missingReturnType: 'Missing return type on function.',
@@ -37,6 +50,9 @@
allowDirectConstAssertionInArrowFunctions: {
type: 'boolean',
},
+ allowConciseArrowFunctionExpressionsStartingWithVoid: {
+ type: 'boolean',
+ },
},
additionalProperties: false,
},
@@ -48,12 +64,20 @@
allowTypedFunctionExpressions: true,
allowHigherOrderFunctions: true,
allowDirectConstAssertionInArrowFunctions: true,
+ allowConciseArrowFunctionExpressionsStartingWithVoid: false,
},
],
create(context, [options]) {
const sourceCode = context.getSourceCode();
return {
'ArrowFunctionExpression, FunctionExpression'(node) {
+ if (options.allowConciseArrowFunctionExpressionsStartingWithVoid &&
+ node.type === experimental_utils_1.AST_NODE_TYPES.ArrowFunctionExpression &&
+ node.expression &&
+ node.body.type === experimental_utils_1.AST_NODE_TYPES.UnaryExpression &&
+ node.body.operator === 'void') {
+ return;
+ }
explicitReturnTypeUtils_1.checkFunctionExpressionReturnType(node, options, sourceCode, loc => context.report({
node,
loc,
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map
index 2cca7b6..6384a05 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map
@@ -1 +1 @@
-{"version":3,"file":"explicit-function-return-type.js","sourceRoot":"","sources":["../../src/rules/explicit-function-return-type.ts"],"names":[],"mappings":";;;;;;;;;AACA,8CAAgC;AAChC,6EAGyC;AAYzC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,8DAA8D;YAChE,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,MAAM;SACpB;QACD,QAAQ,EAAE;YACR,iBAAiB,EAAE,kCAAkC;SACtD;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,gBAAgB,EAAE;wBAChB,IAAI,EAAE,SAAS;qBAChB;oBACD,6BAA6B,EAAE;wBAC7B,IAAI,EAAE,SAAS;qBAChB;oBACD,yBAAyB,EAAE;wBACzB,IAAI,EAAE,SAAS;qBAChB;oBACD,yCAAyC,EAAE;wBACzC,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,gBAAgB,EAAE,KAAK;YACvB,6BAA6B,EAAE,IAAI;YACnC,yBAAyB,EAAE,IAAI;YAC/B,yCAAyC,EAAE,IAAI;SAChD;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C,OAAO;YACL,6CAA6C,CAC3C,IAAoE;gBAEpE,2DAAiC,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,EAAE,CACjE,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,GAAG;oBACH,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CACH,CAAC;YACJ,CAAC;YACD,mBAAmB,CAAC,IAAI;gBACtB,iDAAuB,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,EAAE,CACvD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,GAAG;oBACH,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CACH,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"explicit-function-return-type.js","sourceRoot":"","sources":["../../src/rules/explicit-function-return-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAChC,6EAGyC;AAazC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,8DAA8D;YAChE,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,iBAAiB,EAAE,kCAAkC;SACtD;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,gBAAgB,EAAE;wBAChB,IAAI,EAAE,SAAS;qBAChB;oBACD,6BAA6B,EAAE;wBAC7B,IAAI,EAAE,SAAS;qBAChB;oBACD,yBAAyB,EAAE;wBACzB,IAAI,EAAE,SAAS;qBAChB;oBACD,yCAAyC,EAAE;wBACzC,IAAI,EAAE,SAAS;qBAChB;oBACD,oDAAoD,EAAE;wBACpD,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,gBAAgB,EAAE,KAAK;YACvB,6BAA6B,EAAE,IAAI;YACnC,yBAAyB,EAAE,IAAI;YAC/B,yCAAyC,EAAE,IAAI;YAC/C,oDAAoD,EAAE,KAAK;SAC5D;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C,OAAO;YACL,6CAA6C,CAC3C,IAAoE;gBAEpE,IACE,OAAO,CAAC,oDAAoD;oBAC5D,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,uBAAuB;oBACpD,IAAI,CAAC,UAAU;oBACf,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,eAAe;oBACjD,IAAI,CAAC,IAAI,CAAC,QAAQ,KAAK,MAAM,EAC7B;oBACA,OAAO;iBACR;gBAED,2DAAiC,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,EAAE,CACjE,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,GAAG;oBACH,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CACH,CAAC;YACJ,CAAC;YACD,mBAAmB,CAAC,IAAI;gBACtB,iDAAuB,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,EAAE,CACvD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,GAAG;oBACH,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CACH,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js
index 3e48adb..d6d7063 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -56,14 +68,14 @@
create(context, [option]) {
var _a, _b, _c, _d, _e, _f, _g, _h;
const sourceCode = context.getSourceCode();
- const baseCheck = (_a = option.accessibility, (_a !== null && _a !== void 0 ? _a : 'explicit'));
- const overrides = (_b = option.overrides, (_b !== null && _b !== void 0 ? _b : {}));
- const ctorCheck = (_c = overrides.constructors, (_c !== null && _c !== void 0 ? _c : baseCheck));
- const accessorCheck = (_d = overrides.accessors, (_d !== null && _d !== void 0 ? _d : baseCheck));
- const methodCheck = (_e = overrides.methods, (_e !== null && _e !== void 0 ? _e : baseCheck));
- const propCheck = (_f = overrides.properties, (_f !== null && _f !== void 0 ? _f : baseCheck));
- const paramPropCheck = (_g = overrides.parameterProperties, (_g !== null && _g !== void 0 ? _g : baseCheck));
- const ignoredMethodNames = new Set((_h = option.ignoredMethodNames, (_h !== null && _h !== void 0 ? _h : [])));
+ const baseCheck = (_a = option.accessibility) !== null && _a !== void 0 ? _a : 'explicit';
+ const overrides = (_b = option.overrides) !== null && _b !== void 0 ? _b : {};
+ const ctorCheck = (_c = overrides.constructors) !== null && _c !== void 0 ? _c : baseCheck;
+ const accessorCheck = (_d = overrides.accessors) !== null && _d !== void 0 ? _d : baseCheck;
+ const methodCheck = (_e = overrides.methods) !== null && _e !== void 0 ? _e : baseCheck;
+ const propCheck = (_f = overrides.properties) !== null && _f !== void 0 ? _f : baseCheck;
+ const paramPropCheck = (_g = overrides.parameterProperties) !== null && _g !== void 0 ? _g : baseCheck;
+ const ignoredMethodNames = new Set((_h = option.ignoredMethodNames) !== null && _h !== void 0 ? _h : []);
/**
* Generates the report for rule violations
*/
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js.map
index feac814..ba2416f 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js.map
@@ -1 +1 @@
-{"version":3,"file":"explicit-member-accessibility.js","sourceRoot":"","sources":["../../src/rules/explicit-member-accessibility.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAK+C;AAC/C,8CAAgC;AAuBhC,MAAM,kBAAkB,GAAG,EAAE,IAAI,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;AAEtE,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,0EAA0E;YAC5E,QAAQ,EAAE,kBAAkB;YAC5B,oCAAoC;YACpC,WAAW,EAAE,KAAK;SACnB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,oBAAoB,EAClB,sDAAsD;YACxD,2BAA2B,EACzB,qDAAqD;SACxD;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,aAAa,EAAE,kBAAkB;oBACjC,SAAS,EAA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AgC;SACnD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"explicit-member-accessibility.js","sourceRoot":"","sources":["../../src/rules/explicit-member-accessibility.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAK+C;AAC/C,8CAAgC;AAuBhC,MAAM,kBAAkB,GAAG,EAAE,IAAI,EAAE,CAAC,UAAU,EAAE,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;AAEtE,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,0EAA0E;YAC5E,QAAQ,EAAE,kBAAkB;YAC5B,oCAAoC;YACpC,WAAW,EAAE,KAAK;SACnB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,oBAAoB,EAClB,sDAAsD;YACxD,2BAA2B,EACzB,qDAAqD;SACxD;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,aAAa,EAAE,kBAAkB;oBACjC,SAAS,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACV,SAAS,EAAE,kBAAkB;4BAC7B,YAAY,EAAE,kBAAkB;4BAChC,OAAO,EAAE,kBAAkB;4BAC3B,UAAU,EAAE,kBAAkB;4BAC9B,mBAAmB,EAAE,kBAAkB;yBACxC;wBAED,oBAAoB,EAAE,KAAK;qBAC5B;oBACD,kBAAkB,EAAE;wBAClB,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;KACF;IACD,cAAc,EAAE,CAAC,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC;IAC/C,MAAM,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;;QACtB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CAAC,UAAU;gBAC/C,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI;gBACrB,CAAC,CAAC,qDAAqD;oBACpD,IAAI,CAAC,SAAS,CAAC,IAA4B,CAAC,IAAI,CAAC;YAExD,QAAQ,cAAc,EAAE;gBACtB,KAAK,UAAU,CAAC,CAAC;oBACf,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;wBACvB,WAAW,CAAC,sBAAsB,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;qBAC/D;oBACD,MAAM;iBACP;gBACD,KAAK,WAAW,CAAC,CAAC;oBAChB,IAAI,IAAI,CAAC,aAAa,KAAK,QAAQ,IAAI,IAAI,CAAC,QAAQ,EAAE;wBACpD,WAAW,CACT,6BAA6B,EAC7B,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,mCAAmC,CAAC,IAAI,CAAC,CAC1C,CAAC;qBACH;oBACD,MAAM;iBACP;aACF;QACH,CAAC;QAED,OAAO;YACL,mBAAmB,EAAE,2CAA2C;YAChE,aAAa,EAAE,kCAAkC;YACjD,gBAAgB,EAAE,gCAAgC;SACnD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js
index 2b982e0..61858dc 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -17,20 +29,20 @@
docs: {
description: "Require explicit return and argument types on exported functions' and classes' public class methods",
category: 'Stylistic Issues',
- recommended: false,
+ recommended: 'warn',
},
messages: {
missingReturnType: 'Missing return type on function.',
missingArgType: "Argument '{{name}}' should be typed.",
+ missingArgTypeUnnamed: '{{type}} argument should be typed.',
+ anyTypedArg: "Argument '{{name}}' should be typed with a non-any type.",
+ anyTypedArgUnnamed: '{{type}} argument should be typed with a non-any type.',
},
schema: [
{
type: 'object',
properties: {
- allowTypedFunctionExpressions: {
- type: 'boolean',
- },
- allowHigherOrderFunctions: {
+ allowArgumentsExplicitlyTypedAsAny: {
type: 'boolean',
},
allowDirectConstAssertionInArrowFunctions: {
@@ -42,6 +54,16 @@
type: 'string',
},
},
+ allowHigherOrderFunctions: {
+ type: 'boolean',
+ },
+ allowTypedFunctionExpressions: {
+ type: 'boolean',
+ },
+ // DEPRECATED - To be removed in next major
+ shouldTrackReferences: {
+ type: 'boolean',
+ },
},
additionalProperties: false,
},
@@ -49,57 +71,124 @@
},
defaultOptions: [
{
- allowTypedFunctionExpressions: true,
- allowHigherOrderFunctions: true,
+ allowArgumentsExplicitlyTypedAsAny: false,
allowDirectConstAssertionInArrowFunctions: true,
allowedNames: [],
+ allowHigherOrderFunctions: true,
+ allowTypedFunctionExpressions: true,
},
],
create(context, [options]) {
const sourceCode = context.getSourceCode();
- function isUnexported(node) {
- let isReturnedValue = false;
- while (node) {
- if (node.type === experimental_utils_1.AST_NODE_TYPES.ExportDefaultDeclaration ||
- node.type === experimental_utils_1.AST_NODE_TYPES.ExportNamedDeclaration ||
- node.type === experimental_utils_1.AST_NODE_TYPES.ExportSpecifier) {
- return false;
+ // tracks all of the functions we've already checked
+ const checkedFunctions = new Set();
+ // tracks functions that were found whilst traversing
+ const foundFunctions = [];
+ // all nodes visited, avoids infinite recursion for cyclic references
+ // (such as class member referring to itself)
+ const alreadyVisited = new Set();
+ /*
+ # How the rule works:
+
+ As the rule traverses the AST, it immediately checks every single function that it finds is exported.
+ "exported" means that it is either directly exported, or that its name is exported.
+
+ It also collects a list of every single function it finds on the way, but does not check them.
+ After it's finished traversing the AST, it then iterates through the list of found functions, and checks to see if
+ any of them are part of a higher-order function
+ */
+ return {
+ ExportDefaultDeclaration(node) {
+ checkNode(node.declaration);
+ },
+ 'ExportNamedDeclaration:not([source])'(node) {
+ if (node.declaration) {
+ checkNode(node.declaration);
}
- if (node.type === experimental_utils_1.AST_NODE_TYPES.JSXExpressionContainer) {
- return true;
+ else {
+ for (const specifier of node.specifiers) {
+ followReference(specifier.local);
+ }
}
- if (node.type === experimental_utils_1.AST_NODE_TYPES.ReturnStatement) {
- isReturnedValue = true;
+ },
+ TSExportAssignment(node) {
+ checkNode(node.expression);
+ },
+ 'ArrowFunctionExpression, FunctionDeclaration, FunctionExpression'(node) {
+ foundFunctions.push(node);
+ },
+ 'Program:exit'() {
+ for (const func of foundFunctions) {
+ if (isExportedHigherOrderFunction(func)) {
+ checkNode(func);
+ }
}
- if (node.type === experimental_utils_1.AST_NODE_TYPES.ArrowFunctionExpression ||
- node.type === experimental_utils_1.AST_NODE_TYPES.FunctionDeclaration ||
- node.type === experimental_utils_1.AST_NODE_TYPES.FunctionExpression) {
- isReturnedValue = false;
+ },
+ };
+ function checkParameters(node) {
+ function checkParameter(param) {
+ function report(namedMessageId, unnamedMessageId) {
+ if (param.type === experimental_utils_1.AST_NODE_TYPES.Identifier) {
+ context.report({
+ node: param,
+ messageId: namedMessageId,
+ data: { name: param.name },
+ });
+ }
+ else if (param.type === experimental_utils_1.AST_NODE_TYPES.ArrayPattern) {
+ context.report({
+ node: param,
+ messageId: unnamedMessageId,
+ data: { type: 'Array pattern' },
+ });
+ }
+ else if (param.type === experimental_utils_1.AST_NODE_TYPES.ObjectPattern) {
+ context.report({
+ node: param,
+ messageId: unnamedMessageId,
+ data: { type: 'Object pattern' },
+ });
+ }
+ else if (param.type === experimental_utils_1.AST_NODE_TYPES.RestElement) {
+ if (param.argument.type === experimental_utils_1.AST_NODE_TYPES.Identifier) {
+ context.report({
+ node: param,
+ messageId: namedMessageId,
+ data: { name: param.argument.name },
+ });
+ }
+ else {
+ context.report({
+ node: param,
+ messageId: unnamedMessageId,
+ data: { type: 'Rest' },
+ });
+ }
+ }
}
- if (node.type === experimental_utils_1.AST_NODE_TYPES.BlockStatement && !isReturnedValue) {
- return true;
+ switch (param.type) {
+ case experimental_utils_1.AST_NODE_TYPES.ArrayPattern:
+ case experimental_utils_1.AST_NODE_TYPES.Identifier:
+ case experimental_utils_1.AST_NODE_TYPES.ObjectPattern:
+ case experimental_utils_1.AST_NODE_TYPES.RestElement:
+ if (!param.typeAnnotation) {
+ report('missingArgType', 'missingArgTypeUnnamed');
+ }
+ else if (options.allowArgumentsExplicitlyTypedAsAny !== true &&
+ param.typeAnnotation.typeAnnotation.type ===
+ experimental_utils_1.AST_NODE_TYPES.TSAnyKeyword) {
+ report('anyTypedArg', 'anyTypedArgUnnamed');
+ }
+ return;
+ case experimental_utils_1.AST_NODE_TYPES.TSParameterProperty:
+ return checkParameter(param.parameter);
+ case experimental_utils_1.AST_NODE_TYPES.AssignmentPattern: // ignored as it has a type via its assignment
+ return;
}
- node = node.parent;
}
- return true;
- }
- function isArgumentUntyped(node) {
- return (!node.typeAnnotation ||
- node.typeAnnotation.typeAnnotation.type === experimental_utils_1.AST_NODE_TYPES.TSAnyKeyword);
- }
- /**
- * Checks if a function declaration/expression has a return type.
- */
- function checkArguments(node) {
- const paramIdentifiers = node.params.filter(util.isIdentifier);
- const untypedArgs = paramIdentifiers.filter(isArgumentUntyped);
- untypedArgs.forEach(untypedArg => context.report({
- node,
- messageId: 'missingArgType',
- data: {
- name: untypedArg.name,
- },
- }));
+ for (const arg of node.params) {
+ checkParameter(arg);
+ }
}
/**
* Checks if a function name is allowed and should not be checked.
@@ -128,38 +217,196 @@
}
return false;
}
- return {
- 'ArrowFunctionExpression, FunctionExpression'(node) {
- var _a;
- if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.MethodDefinition &&
- node.parent.accessibility === 'private') {
- // don't check private methods as they aren't part of the public signature
- return;
+ function isExportedHigherOrderFunction(node) {
+ var _a;
+ let current = node.parent;
+ while (current) {
+ if (current.type === experimental_utils_1.AST_NODE_TYPES.ReturnStatement) {
+ // the parent of a return will always be a block statement, so we can skip over it
+ current = (_a = current.parent) === null || _a === void 0 ? void 0 : _a.parent;
+ continue;
}
- if (isAllowedName(node.parent) ||
- isUnexported(node) ||
- explicitReturnTypeUtils_1.isTypedFunctionExpression(node, options)) {
- return;
+ if (!util.isFunction(current) ||
+ !explicitReturnTypeUtils_1.doesImmediatelyReturnFunctionExpression(current)) {
+ return false;
}
- explicitReturnTypeUtils_1.checkFunctionExpressionReturnType(node, options, sourceCode, loc => context.report({
+ if (checkedFunctions.has(current)) {
+ return true;
+ }
+ current = current.parent;
+ }
+ return false;
+ }
+ function followReference(node) {
+ const scope = context.getScope();
+ const variable = scope.set.get(node.name);
+ /* istanbul ignore if */ if (!variable) {
+ return;
+ }
+ // check all of the definitions
+ for (const definition of variable.defs) {
+ // cases we don't care about in this rule
+ if (definition.type === 'ImplicitGlobalVariable' ||
+ definition.type === 'ImportBinding' ||
+ // eslint-disable-next-line @typescript-eslint/internal/prefer-ast-types-enum
+ definition.type === 'CatchClause' ||
+ definition.type === 'Parameter') {
+ continue;
+ }
+ checkNode(definition.node);
+ }
+ // follow references to find writes to the variable
+ for (const reference of variable.references) {
+ if (
+ // we don't want to check the initialization ref, as this is handled by the declaration check
+ !reference.init &&
+ reference.writeExpr) {
+ checkNode(reference.writeExpr);
+ }
+ }
+ }
+ function checkNode(node) {
+ if (node == null || alreadyVisited.has(node)) {
+ return;
+ }
+ alreadyVisited.add(node);
+ switch (node.type) {
+ case experimental_utils_1.AST_NODE_TYPES.ArrowFunctionExpression:
+ case experimental_utils_1.AST_NODE_TYPES.FunctionExpression:
+ return checkFunctionExpression(node);
+ case experimental_utils_1.AST_NODE_TYPES.ArrayExpression:
+ for (const element of node.elements) {
+ checkNode(element);
+ }
+ return;
+ case experimental_utils_1.AST_NODE_TYPES.ClassProperty:
+ case experimental_utils_1.AST_NODE_TYPES.TSAbstractClassProperty:
+ if (node.accessibility === 'private') {
+ return;
+ }
+ return checkNode(node.value);
+ case experimental_utils_1.AST_NODE_TYPES.ClassDeclaration:
+ case experimental_utils_1.AST_NODE_TYPES.ClassExpression:
+ for (const element of node.body.body) {
+ checkNode(element);
+ }
+ return;
+ case experimental_utils_1.AST_NODE_TYPES.FunctionDeclaration:
+ return checkFunction(node);
+ case experimental_utils_1.AST_NODE_TYPES.MethodDefinition:
+ case experimental_utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition:
+ if (node.accessibility === 'private') {
+ return;
+ }
+ return checkNode(node.value);
+ case experimental_utils_1.AST_NODE_TYPES.Identifier:
+ return followReference(node);
+ case experimental_utils_1.AST_NODE_TYPES.ObjectExpression:
+ for (const property of node.properties) {
+ checkNode(property);
+ }
+ return;
+ case experimental_utils_1.AST_NODE_TYPES.Property:
+ return checkNode(node.value);
+ case experimental_utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression:
+ return checkEmptyBodyFunctionExpression(node);
+ case experimental_utils_1.AST_NODE_TYPES.VariableDeclaration:
+ for (const declaration of node.declarations) {
+ checkNode(declaration);
+ }
+ return;
+ case experimental_utils_1.AST_NODE_TYPES.VariableDeclarator:
+ return checkNode(node.init);
+ }
+ }
+ /**
+ * Check whether any ancestor of the provided function has a valid return type.
+ * This function assumes that the function either:
+ * - belongs to an exported function chain validated by isExportedHigherOrderFunction
+ * - is directly exported itself
+ */
+ function ancestorHasReturnType(node) {
+ let ancestor = node.parent;
+ // if the ancestor is not a return, then this function was not returned at all, so we can exit early
+ const isReturnStatement = (ancestor === null || ancestor === void 0 ? void 0 : ancestor.type) === experimental_utils_1.AST_NODE_TYPES.ReturnStatement;
+ const isBodylessArrow = (ancestor === null || ancestor === void 0 ? void 0 : ancestor.type) === experimental_utils_1.AST_NODE_TYPES.ArrowFunctionExpression &&
+ ancestor.body.type !== experimental_utils_1.AST_NODE_TYPES.BlockStatement;
+ if (!isReturnStatement && !isBodylessArrow) {
+ return false;
+ }
+ while (ancestor) {
+ switch (ancestor.type) {
+ case experimental_utils_1.AST_NODE_TYPES.ArrowFunctionExpression:
+ case experimental_utils_1.AST_NODE_TYPES.FunctionExpression:
+ case experimental_utils_1.AST_NODE_TYPES.FunctionDeclaration:
+ if (ancestor.returnType) {
+ return true;
+ }
+ // assume
+ break;
+ // const x: Foo = () => {};
+ // Assume that a typed variable types the function expression
+ case experimental_utils_1.AST_NODE_TYPES.VariableDeclarator:
+ if (ancestor.id.typeAnnotation) {
+ return true;
+ }
+ break;
+ }
+ ancestor = ancestor.parent;
+ }
+ return false;
+ }
+ function checkEmptyBodyFunctionExpression(node) {
+ var _a, _b, _c;
+ const isConstructor = ((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.MethodDefinition &&
+ node.parent.kind === 'constructor';
+ const isSetAccessor = (((_b = node.parent) === null || _b === void 0 ? void 0 : _b.type) === experimental_utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition ||
+ ((_c = node.parent) === null || _c === void 0 ? void 0 : _c.type) === experimental_utils_1.AST_NODE_TYPES.MethodDefinition) &&
+ node.parent.kind === 'set';
+ if (!isConstructor && !isSetAccessor && !node.returnType) {
+ context.report({
+ node,
+ messageId: 'missingReturnType',
+ });
+ }
+ checkParameters(node);
+ }
+ function checkFunctionExpression(node) {
+ if (checkedFunctions.has(node)) {
+ return;
+ }
+ checkedFunctions.add(node);
+ if (isAllowedName(node.parent) ||
+ explicitReturnTypeUtils_1.isTypedFunctionExpression(node, options) ||
+ ancestorHasReturnType(node)) {
+ return;
+ }
+ explicitReturnTypeUtils_1.checkFunctionExpressionReturnType(node, options, sourceCode, loc => {
+ context.report({
node,
loc,
messageId: 'missingReturnType',
- }));
- checkArguments(node);
- },
- FunctionDeclaration(node) {
- if (isAllowedName(node.parent) || isUnexported(node)) {
- return;
- }
- explicitReturnTypeUtils_1.checkFunctionReturnType(node, options, sourceCode, loc => context.report({
+ });
+ });
+ checkParameters(node);
+ }
+ function checkFunction(node) {
+ if (checkedFunctions.has(node)) {
+ return;
+ }
+ checkedFunctions.add(node);
+ if (isAllowedName(node.parent) || ancestorHasReturnType(node)) {
+ return;
+ }
+ explicitReturnTypeUtils_1.checkFunctionReturnType(node, options, sourceCode, loc => {
+ context.report({
node,
loc,
messageId: 'missingReturnType',
- }));
- checkArguments(node);
- },
- };
+ });
+ });
+ checkParameters(node);
+ }
},
});
//# sourceMappingURL=explicit-module-boundary-types.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map
index 5f6e0d5..564b792 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map
@@ -1 +1 @@
-{"version":3,"file":"explicit-module-boundary-types.js","sourceRoot":"","sources":["../../src/rules/explicit-module-boundary-types.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAChC,6EAIyC;AAYzC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,I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AI,MAAK,mCAAc,CAAC,gBAAgB;oBACrD,IAAI,CAAC,MAAM,CAAC,aAAa,KAAK,SAAS,EACvC;oBACA,0EAA0E;oBAC1E,OAAO;iBACR;gBAED,IACE,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;oBAC1B,YAAY,CAAC,IAAI,CAAC;oBAClB,mDAAyB,CAAC,IAAI,EAAE,OAAO,CAAC,EACxC;oBACA,OAAO;iBACR;gBAED,2DAAiC,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,EAAE,CACjE,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,GAAG;oBACH,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CACH,CAAC;gBAEF,cAAc,CAAC,IAAI,CAAC,CAAC;YACvB,CAAC;YACD,mBAAmB,CAAC,IAAI;gBACtB,IAAI,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE;oBACpD,OAAO;iBACR;gBAED,iDAAuB,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,EAAE,CACvD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,GAAG;oBACH,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CACH,CAAC;gBAEF,cAAc,CAAC,IAAI,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"explicit-module-boundary-types.js","sourceRoot":"","sources":["../../src/rules/explicit-module-boundary-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAChC,6EAOyC;AAmBzC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,gCAAgC;IACtC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,qGAAqG;YACvG,QA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Ae,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC;IACH,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js
index 02c709f..ab51dee 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js
@@ -1,13 +1,24 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
-const eslint_utils_1 = require("eslint-utils");
const util = __importStar(require("../util"));
exports.default = util.createRule({
name: 'func-call-spacing',
@@ -54,7 +65,8 @@
],
},
messages: {
- unexpected: 'Unexpected space or newline between function name and paren.',
+ unexpectedWhitespace: 'Unexpected whitespace between function name and paren.',
+ unexpectedNewline: 'Unexpected newline between function name and paren.',
missing: 'Missing space between function name and paren.',
},
},
@@ -70,10 +82,10 @@
*/
function checkSpacing(node) {
var _a;
- const isOptionalCall = util.isOptionalOptionalChain(node);
+ const isOptionalCall = util.isOptionalCallExpression(node);
const closingParenToken = sourceCode.getLastToken(node);
- const lastCalleeTokenWithoutPossibleParens = sourceCode.getLastToken((_a = node.typeParameters, (_a !== null && _a !== void 0 ? _a : node.callee)));
- const openingParenToken = sourceCode.getFirstTokenBetween(lastCalleeTokenWithoutPossibleParens, closingParenToken, eslint_utils_1.isOpeningParenToken);
+ const lastCalleeTokenWithoutPossibleParens = sourceCode.getLastToken((_a = node.typeParameters) !== null && _a !== void 0 ? _a : node.callee);
+ const openingParenToken = sourceCode.getFirstTokenBetween(lastCalleeTokenWithoutPossibleParens, closingParenToken, util.isOpeningParenToken);
if (!openingParenToken || openingParenToken.range[1] >= node.range[1]) {
// new expression with no parens...
return;
@@ -89,7 +101,7 @@
return context.report({
node,
loc: lastCalleeToken.loc.start,
- messageId: 'unexpected',
+ messageId: 'unexpectedWhitespace',
fix(fixer) {
/*
* Only autofix if there is no newline
@@ -117,7 +129,7 @@
context.report({
node,
loc: lastCalleeToken.loc.start,
- messageId: 'unexpected',
+ messageId: 'unexpectedWhitespace',
});
}
}
@@ -136,7 +148,7 @@
context.report({
node,
loc: lastCalleeToken.loc.start,
- messageId: 'unexpected',
+ messageId: 'unexpectedNewline',
fix(fixer) {
return fixer.replaceTextRange([lastCalleeToken.range[1], openingParenToken.range[0]], ' ');
},
@@ -146,7 +158,6 @@
}
return {
CallExpression: checkSpacing,
- OptionalCallExpression: checkSpacing,
NewExpression: checkSpacing,
};
},
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js.map
index e03cb08..a677e9d 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js.map
@@ -1 +1 @@
-{"version":3,"file":"func-call-spacing.js","sourceRoot":"","sources":["../../src/rules/func-call-spacing.ts"],"names":[],"mappings":";;;;;;;;;AACA,+CAAmD;AAC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":3,"file":"func-call-spacing.js","sourceRoot":"","sources":["../../src/rules/func-call-spacing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,8CAAgC;AAahC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE;YACJ,WAAW,EACT,gFAAgF;YAClF,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,YAAY;QACrB,MAAM,EAAE;YACN,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACL;4BACE,IAAI,EAAE,CAAC,OAAO,CAAC;yBAChB;qBACF;oBACD,QAAQ,EAAE,CAAC;oBACX,QAAQ,EAAE,CAAC;iBACZ;gBACD;oBACE,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACL;4BACE,IAAI,EAAE,CAAC,QAAQ,CAAC;yBACjB;wBACD;4BACE,IAAI,EAAE,QAAQ;4BACd,UAAU,EAAE;gCACV,aAAa,EAAE;oCACb,IAAI,EAAE,SAAS;iCAChB;6BACF;4BACD,oBAAoB,EAAE,KAAK;yBAC5B;qBACF;oBACD,QAAQ,EAAE,CAAC;oBACX,QAAQ,EAAE,CAAC;iBACZ;aACF;SACF;QAED,QAAQ,EAAE;YACR,oBAAoB,EAClB,wDAAwD;YAC1D,iBAAiB,EAAE,qDAAqD;YACxE,OAAO,EAAE,gDAAgD;SAC1D;KACF;IACD,cAAc,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC;IAC7B,MAAM,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;QAC9B,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAC3C,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC;QAElC;;;;;WAKG;QACH,SAA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AC;QAED,OAAO;YACL,cAAc,EAAE,YAAY;YAC5B,aAAa,EAAE,YAAY;SAC5B,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/generic-type-naming.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/generic-type-naming.js
deleted file mode 100644
index c7da0b0..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/generic-type-naming.js
+++ /dev/null
@@ -1,55 +0,0 @@
-"use strict";
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
- return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-const util = __importStar(require("../util"));
-exports.default = util.createRule({
- name: 'generic-type-naming',
- meta: {
- type: 'suggestion',
- docs: {
- description: 'Enforces naming of generic type variables',
- category: 'Stylistic Issues',
- // too opinionated to be recommended
- recommended: false,
- },
- deprecated: true,
- replacedBy: ['naming-convention'],
- messages: {
- paramNotMatchRule: 'Type parameter {{name}} does not match rule {{rule}}.',
- },
- schema: [
- {
- type: 'string',
- },
- ],
- },
- defaultOptions: [
- // Matches: T , TA , TAbc , TA1Bca , T1 , T2
- '^T([A-Z0-9][a-zA-Z0-9]*){0,1}$',
- ],
- create(context, [rule]) {
- const regex = new RegExp(rule);
- return {
- TSTypeParameter(node) {
- const name = node.name.name;
- if (name && !regex.test(name)) {
- context.report({
- node,
- messageId: 'paramNotMatchRule',
- data: {
- name,
- rule,
- },
- });
- }
- },
- };
- },
-});
-//# sourceMappingURL=generic-type-naming.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/generic-type-naming.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/generic-type-naming.js.map
deleted file mode 100644
index 3dc33ca..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/generic-type-naming.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"generic-type-naming.js","sourceRoot":"","sources":["../../src/rules/generic-type-naming.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8CAAgC;AAKhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,2CAA2C;YACxD,QAAQ,EAAE,kBAAkB;YAC5B,oCAAoC;YACpC,WAAW,EAAE,KAAK;SACnB;QACD,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE,CAAC,mBAAmB,CAAC;QACjC,QAAQ,EAAE;YACR,iBAAiB,EACf,uDAAuD;SAC1D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;aACf;SACF;KACF;IACD,cAAc,EAAE;QACd,4CAA4C;QAC5C,gCAAgC;KACjC;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC;QACpB,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,IAAK,CAAC,CAAC;QAEhC,OAAO;YACL,eAAe,CAAC,IAAI;gBAClB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;gBAE5B,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;oBAC7B,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,mBAAmB;wBAC9B,IAAI,EAAE;4BACJ,IAAI;4BACJ,IAAI;yBACL;qBACF,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/BinarySearchTree.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/BinarySearchTree.js
index f9d4b5f..9ae7106 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/BinarySearchTree.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/BinarySearchTree.js
@@ -5,6 +5,7 @@
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
+exports.BinarySearchTree = void 0;
const functional_red_black_tree_1 = __importDefault(require("functional-red-black-tree"));
/**
* A mutable balanced binary search tree that stores (key, value) pairs. The keys are numeric, and must be unique.
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/BinarySearchTree.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/BinarySearchTree.js.map
index 1101ca4..6f0c20e 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/BinarySearchTree.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/BinarySearchTree.js.map
@@ -1 +1 @@
-{"version":3,"file":"BinarySearchTree.js","sourceRoot":"","sources":["../../../src/rules/indent-new-do-not-use/BinarySearchTree.ts"],"names":[],"mappings":";AAAA,6DAA6D;AAC7D,kGAAkG;;;;;AAGlG,0FAAmD;AASnD;;;;GAIG;AACH,MAAa,gBAAgB;IAA7B;QACU,WAAM,GAAG,mCAAU,EAAa,CAAC;IAwC3C,CAAC;IAtCC;;OAEG;IACI,MAAM,CAAC,GAAW,EAAE,KAAgB;QACzC,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAEvC,IAAI,QAAQ,CAAC,KAAK,EAAE;YAClB,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;SACtC;aAAM;YACL,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;SAC9C;IACH,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,GAAW;QACvB,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;QAErC,OAAO,EAAE,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC;IACtD,CAAC;IAED;;OAEG;IACI,WAAW,CAAC,KAAa,EAAE,GAAW;QAC3C,+DAA+D;QAC/D,IAAI,KAAK,KAAK,GAAG,EAAE;YACjB,OAAO;SACR;QACD,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QAEvC,OAAO,QAAQ,CAAC,KAAK,IAAI,QAAQ,CAAC,GAAG,GAAG,GAAG,EAAE;YAC3C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;YAC/C,QAAQ,CAAC,IAAI,EAAE,CAAC;SACjB;IACH,CAAC;CACF;AAzCD,4CAyCC"}
\ No newline at end of file
+{"version":3,"file":"BinarySearchTree.js","sourceRoot":"","sources":["../../../src/rules/indent-new-do-not-use/BinarySearchTree.ts"],"names":[],"mappings":";AAAA,6DAA6D;AAC7D,kGAAkG;;;;;;AAGlG,0FAAmD;AASnD;;;;GAIG;AACH,MAAa,gBAAgB;IAA7B;QACU,WAAM,GAAG,mCAAU,EAAa,CAAC;IAwC3C,CAAC;IAtCC;;OAEG;IACI,MAAM,CAAC,GAAW,EAAE,KAAgB;QACzC,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAEvC,IAAI,QAAQ,CAAC,KAAK,EAAE;YAClB,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;SACtC;aAAM;YACL,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;SAC9C;IACH,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,GAAW;QACvB,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;QAErC,OAAO,EAAE,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC;IACtD,CAAC;IAED;;OAEG;IACI,WAAW,CAAC,KAAa,EAAE,GAAW;QAC3C,+DAA+D;QAC/D,IAAI,KAAK,KAAK,GAAG,EAAE;YACjB,OAAO;SACR;QACD,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QAEvC,OAAO,QAAQ,CAAC,KAAK,IAAI,QAAQ,CAAC,GAAG,GAAG,GAAG,EAAE;YAC3C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;YAC/C,QAAQ,CAAC,IAAI,EAAE,CAAC;SACjB;IACH,CAAC;CACF;AAzCD,4CAyCC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/OffsetStorage.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/OffsetStorage.js
index 7a2fdf1..a48651d 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/OffsetStorage.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/OffsetStorage.js
@@ -2,6 +2,7 @@
// The following code is adapted from the the code in eslint.
// License: https://github.com/eslint/eslint/blob/48700fc8408f394887cdedd071b22b757700fdcb/LICENSE
Object.defineProperty(exports, "__esModule", { value: true });
+exports.OffsetStorage = void 0;
const BinarySearchTree_1 = require("./BinarySearchTree");
/**
* A class to store information on desired offsets of tokens from each other
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/OffsetStorage.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/OffsetStorage.js.map
index 74d053e..dc3aa66 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/OffsetStorage.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/OffsetStorage.js.map
@@ -1 +1 @@
-{"version":3,"file":"OffsetStorage.js","sourceRoot":"","sources":["../../../src/rules/indent-new-do-not-use/OffsetStorage.ts"],"names":[],"mappings":";AAAA,6DAA6D;AAC7D,kGAAkG;;AAGlG,yDAI4B;AAG5B;;GAEG;AACH,MAAa,aAAa;IAQxB;;;;OAIG;IACH,YAAY,SAAoB,EAAE,UAAkB,EAAE,UAAkB;QACtE,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAE7B,IAAI,CAAC,IAAI,GAAG,IAAI,mCAAgB,EAAE,CAAC;QACnC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QAE7D,IAAI,CAAC,iBAAiB,GAAG,IAAI,OAAO,EAAE,CAAC;QACvC,IAAI,CAAC,kBAAkB,GAAG,IAAI,OAAO,EAAE,CAAC;QACxC,IAAI,CAAC,aAAa,GAAG,IAAI,OAAO,EAAE,CAAC;IACrC,CAAC;IAEO,mBAAmB,CAAC,KAAqB;QAC/C,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAChD,CAAC;IAED;;;;;;OAMG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,CAAC,KAAK,CAAC,MAAM,CAClE,CACJ,CAAC;aACH;iBAAM;gBACL,MAAM,UAAU,GAAG,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;gBACnD,MAAM,MAAM,GACV,UAAU,CAAC,IAAI;oBACf,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI;oBACvD,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;oBAC7B,CAAC,UAAU,CAAC,KAAK;oBACf,CAAC,CAAC,CAAC;oBACH,CAAC,CAAC,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;gBAE1C,IAAI,CAAC,kBAAkB,CAAC,GAAG,CACzB,KAAK,EACL,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;oBAC7D,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CACjC,CAAC;aACH;SACF;QAED,OAAO,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,KAAK,CAAE,CAAC;IAC7C,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,KAAqB;QAC/B,IAAI,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE;YAC5C,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SAC/B;IACH,CAAC;IAQD,kBAAkB,CAAC,KAAqB;QACtC,OAAO,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC;IAC9C,CAAC;CACF;AA1QD,sCA0QC"}
\ No newline at end of file
+{"version":3,"file":"OffsetStorage.js","sourceRoot":"","sources":["../../../src/rules/indent-new-do-not-use/OffsetStorage.ts"],"names":[],"mappings":";AAAA,6DAA6D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GAAG,IAAI,CAAC,UAAU,CAAC;gBAE1C,IAAI,CAAC,kBAAkB,CAAC,GAAG,CACzB,KAAK,EACL,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;oBAC7D,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CACjC,CAAC;aACH;SACF;QAED,OAAO,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,KAAK,CAAE,CAAC;IAC7C,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,KAAqB;QAC/B,IAAI,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE;YAC5C,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SAC/B;IACH,CAAC;IAUD,kBAAkB,CAAC,KAAqB;QACtC,OAAO,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC;IAC9C,CAAC;CACF;AA5QD,sCA4QC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/TokenInfo.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/TokenInfo.js
index 7fb64dd..5da8a48 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/TokenInfo.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/TokenInfo.js
@@ -2,6 +2,7 @@
// The following code is adapted from the the code in eslint.
// License: https://github.com/eslint/eslint/blob/48700fc8408f394887cdedd071b22b757700fdcb/LICENSE
Object.defineProperty(exports, "__esModule", { value: true });
+exports.TokenInfo = void 0;
/**
* A helper class to get token-based info related to indentation
*/
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/TokenInfo.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/TokenInfo.js.map
index 2c96727..7bc04ad 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/TokenInfo.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/TokenInfo.js.map
@@ -1 +1 @@
-{"version":3,"file":"TokenInfo.js","sourceRoot":"","sources":["../../../src/rules/indent-new-do-not-use/TokenInfo.ts"],"names":[],"mappings":";AAAA,6DAA6D;AAC7D,kGAAkG;;AAKlG;;GAEG;AACH,MAAa,SAAS;IAIpB,YAAY,UAA+B;QACzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,uBAAuB,GAAG,UAAU,CAAC,iBAAiB,CAAC,MAAM,CAChE,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;YACb,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;gBAClC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;aACtC;YACD,IACE,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC;gBAC5B,UAAU,CAAC,IAAI;qBACZ,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;qBAC5D,IAAI,EAAE,EACT;gBACA,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;aACpC;YACD,OAAO,GAAG,CAAC;QACb,CAAC,EACD,IAAI,GAAG,EAAE,CACV,CAAC;IACJ,CAAC;IAED;;;OAGG;IACI,mBAAmB,CACxB,KAAqC;QAErC,OAAO,IAAI,CAAC,uBAAuB,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAE,CAAC;IACjE,CAAC;IAED;;;OAGG;IACI,kBAAkB,CAAC,KAAqB;QAC7C,OAAO,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC;IACnD,CAAC;IAED;;;;OAIG;IACI,cAAc,CAAC,KAAqB;QACzC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAC/B,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,EACvC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CACf,CAAC;IACJ,CAAC;CACF;AAtDD,8BAsDC"}
\ No newline at end of file
+{"version":3,"file":"TokenInfo.js","sourceRoot":"","sources":["../../../src/rules/indent-new-do-not-use/TokenInfo.ts"],"names":[],"mappings":";AAAA,6DAA6D;AAC7D,kGAAkG;;;AAKlG;;GAEG;AACH,MAAa,SAAS;IAIpB,YAAY,UAA+B;QACzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,uBAAuB,GAAG,UAAU,CAAC,iBAAiB,CAAC,MAAM,CAChE,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;YACb,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;gBAClC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;aACtC;YACD,IACE,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC;gBAC5B,UAAU,CAAC,IAAI;qBACZ,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;qBAC5D,IAAI,EAAE,EACT;gBACA,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;aACpC;YACD,OAAO,GAAG,CAAC;QACb,CAAC,EACD,IAAI,GAAG,EAAE,CACV,CAAC;IACJ,CAAC;IAED;;;OAGG;IACI,mBAAmB,CACxB,KAAqC;QAErC,OAAO,IAAI,CAAC,uBAAuB,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAE,CAAC;IACjE,CAAC;IAED;;;OAGG;IACI,kBAAkB,CAAC,KAAqB;QAC7C,OAAO,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC;IACnD,CAAC;IAED;;;;OAIG;IACI,cAAc,CAAC,KAAqB;QACzC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAC/B,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,EACvC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CACf,CAAC;IACJ,CAAC;CACF;AAtDD,8BAsDC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/index.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/index.js
index 536a9f8..c43a8a3 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/index.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/index.js
@@ -4,7 +4,6 @@
//------------------------------------------------------------------------------
Object.defineProperty(exports, "__esModule", { value: true });
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
-const eslint_utils_1 = require("eslint-utils");
const OffsetStorage_1 = require("./OffsetStorage");
const TokenInfo_1 = require("./TokenInfo");
const util_1 = require("../../util");
@@ -425,6 +424,7 @@
* @returns True if the node is the outer IIFE
*/
function isOuterIIFE(node) {
+ var _a;
/*
* Verify that the node is an IIFE
*/
@@ -438,7 +438,7 @@
* A "legal ancestor" is an expression or statement that causes the function to get executed immediately.
* For example, `!(function(){})()` is an outer IIFE even though it is preceded by a ! operator.
*/
- let statement = node.parent && node.parent.parent;
+ let statement = (_a = node.parent) === null || _a === void 0 ? void 0 : _a.parent;
while (statement &&
((statement.type === experimental_utils_1.AST_NODE_TYPES.UnaryExpression &&
['!', '~', '+', '-'].includes(statement.operator)) ||
@@ -480,7 +480,7 @@
*/
function getFirstToken(element) {
let token = sourceCode.getTokenBefore(element);
- while (eslint_utils_1.isOpeningParenToken(token) && token !== startToken) {
+ while (util_1.isOpeningParenToken(token) && token !== startToken) {
token = sourceCode.getTokenBefore(token);
}
return sourceCode.getTokenAfter(token);
@@ -530,11 +530,11 @@
*/
function addBlocklessNodeIndent(node) {
if (node.type !== experimental_utils_1.AST_NODE_TYPES.BlockStatement) {
- const lastParentToken = sourceCode.getTokenBefore(node, eslint_utils_1.isNotOpeningParenToken);
+ const lastParentToken = sourceCode.getTokenBefore(node, util_1.isNotOpeningParenToken);
let firstBodyToken = sourceCode.getFirstToken(node);
let lastBodyToken = sourceCode.getLastToken(node);
- while (eslint_utils_1.isOpeningParenToken(sourceCode.getTokenBefore(firstBodyToken)) &&
- eslint_utils_1.isClosingParenToken(sourceCode.getTokenAfter(lastBodyToken))) {
+ while (util_1.isOpeningParenToken(sourceCode.getTokenBefore(firstBodyToken)) &&
+ util_1.isClosingParenToken(sourceCode.getTokenAfter(lastBodyToken))) {
firstBodyToken = sourceCode.getTokenBefore(firstBodyToken);
lastBodyToken = sourceCode.getTokenAfter(lastBodyToken);
}
@@ -548,7 +548,7 @@
const lastToken = sourceCode.getLastToken(node);
if (lastToken &&
node.type !== experimental_utils_1.AST_NODE_TYPES.EmptyStatement &&
- eslint_utils_1.isSemicolonToken(lastToken)) {
+ util_1.isSemicolonToken(lastToken)) {
offsets.setDesiredOffset(lastToken, lastParentToken, 0);
}
}
@@ -558,7 +558,7 @@
*/
function addFunctionCallIndent(node) {
const openingParen = node.arguments.length
- ? sourceCode.getFirstTokenBetween(node.callee, node.arguments[0], eslint_utils_1.isOpeningParenToken)
+ ? sourceCode.getFirstTokenBetween(node.callee, node.arguments[0], util_1.isOpeningParenToken)
: sourceCode.getLastToken(node, 1);
const closingParen = sourceCode.getLastToken(node);
parameterParens.add(openingParen);
@@ -575,10 +575,10 @@
const parenPairs = [];
tokens.forEach(nextToken => {
// Accumulate a list of parenthesis pairs
- if (eslint_utils_1.isOpeningParenToken(nextToken)) {
+ if (util_1.isOpeningParenToken(nextToken)) {
parenStack.push(nextToken);
}
- else if (eslint_utils_1.isClosingParenToken(nextToken)) {
+ else if (util_1.isClosingParenToken(nextToken)) {
parenPairs.unshift({ left: parenStack.pop(), right: nextToken });
}
});
@@ -656,14 +656,14 @@
'ArrayExpression, ArrayPattern'(node) {
var _a;
const openingBracket = sourceCode.getFirstToken(node);
- const closingBracket = sourceCode.getTokenAfter((_a = node.elements[node.elements.length - 1], (_a !== null && _a !== void 0 ? _a : openingBracket)), eslint_utils_1.isClosingBracketToken);
+ const closingBracket = sourceCode.getTokenAfter((_a = node.elements[node.elements.length - 1]) !== null && _a !== void 0 ? _a : openingBracket, util_1.isClosingBracketToken);
addElementListIndent(node.elements, openingBracket, closingBracket, options.ArrayExpression);
},
ArrowFunctionExpression(node) {
const firstToken = sourceCode.getFirstToken(node);
- if (eslint_utils_1.isOpeningParenToken(firstToken)) {
+ if (util_1.isOpeningParenToken(firstToken)) {
const openingParen = firstToken;
- const closingParen = sourceCode.getTokenBefore(node.body, eslint_utils_1.isClosingParenToken);
+ const closingParen = sourceCode.getTokenBefore(node.body, util_1.isClosingParenToken);
parameterParens.add(openingParen);
parameterParens.add(closingParen);
addElementListIndent(node.params, openingParen, closingParen, options.FunctionExpression.parameters);
@@ -717,7 +717,7 @@
CallExpression: addFunctionCallIndent,
'ClassDeclaration[superClass], ClassExpression[superClass]'(node) {
const classToken = sourceCode.getFirstToken(node);
- const extendsToken = sourceCode.getTokenBefore(node.superClass, eslint_utils_1.isNotOpeningParenToken);
+ const extendsToken = sourceCode.getTokenBefore(node.superClass, util_1.isNotOpeningParenToken);
offsets.setDesiredOffsets([extendsToken.range[0], node.body.range[0]], classToken, 1);
},
ConditionalExpression(node) {
@@ -771,7 +771,7 @@
},
ExportNamedDeclaration(node) {
if (node.declaration === null) {
- const closingCurly = sourceCode.getLastToken(node, eslint_utils_1.isClosingBraceToken);
+ const closingCurly = sourceCode.getLastToken(node, util_1.isClosingBraceToken);
// Indent the specifiers in `export {foo, bar, baz}`
addElementListIndent(node.specifiers, sourceCode.getFirstToken(node, { skip: 1 }), closingCurly, 1);
if (node.source) {
@@ -809,8 +809,8 @@
},
ImportDeclaration(node) {
if (node.specifiers.some(specifier => specifier.type === experimental_utils_1.AST_NODE_TYPES.ImportSpecifier)) {
- const openingCurly = sourceCode.getFirstToken(node, eslint_utils_1.isOpeningBraceToken);
- const closingCurly = sourceCode.getLastToken(node, eslint_utils_1.isClosingBraceToken);
+ const openingCurly = sourceCode.getFirstToken(node, util_1.isOpeningBraceToken);
+ const closingCurly = sourceCode.getLastToken(node, util_1.isClosingBraceToken);
addElementListIndent(node.specifiers.filter(specifier => specifier.type === experimental_utils_1.AST_NODE_TYPES.ImportSpecifier), openingCurly, closingCurly, options.ImportDeclaration);
}
const fromToken = sourceCode.getLastToken(node, token => token.type === experimental_utils_1.AST_TOKEN_TYPES.Identifier && token.value === 'from');
@@ -826,9 +826,9 @@
'MemberExpression, JSXMemberExpression, MetaProperty'(node) {
const object = node.type === experimental_utils_1.AST_NODE_TYPES.MetaProperty ? node.meta : node.object;
const isComputed = 'computed' in node && node.computed;
- const firstNonObjectToken = sourceCode.getFirstTokenBetween(object, node.property, eslint_utils_1.isNotClosingParenToken);
+ const firstNonObjectToken = sourceCode.getFirstTokenBetween(object, node.property, util_1.isNotClosingParenToken);
const secondNonObjectToken = sourceCode.getTokenAfter(firstNonObjectToken);
- const objectParenCount = sourceCode.getTokensBetween(object, node.property, { filter: eslint_utils_1.isClosingParenToken }).length;
+ const objectParenCount = sourceCode.getTokensBetween(object, node.property, { filter: util_1.isClosingParenToken }).length;
const firstObjectToken = objectParenCount
? sourceCode.getTokenBefore(object, { skip: objectParenCount - 1 })
: sourceCode.getFirstToken(object);
@@ -874,8 +874,8 @@
NewExpression(node) {
// Only indent the arguments if the NewExpression has parens (e.g. `new Foo(bar)` or `new Foo()`, but not `new Foo`
if (node.arguments.length > 0 ||
- (eslint_utils_1.isClosingParenToken(sourceCode.getLastToken(node)) &&
- eslint_utils_1.isOpeningParenToken(sourceCode.getLastToken(node, 1)))) {
+ (util_1.isClosingParenToken(sourceCode.getLastToken(node)) &&
+ util_1.isOpeningParenToken(sourceCode.getLastToken(node, 1)))) {
addFunctionCallIndent(node);
}
},
@@ -883,24 +883,24 @@
const openingCurly = sourceCode.getFirstToken(node);
const closingCurly = sourceCode.getTokenAfter(node.properties.length
? node.properties[node.properties.length - 1]
- : openingCurly, eslint_utils_1.isClosingBraceToken);
+ : openingCurly, util_1.isClosingBraceToken);
addElementListIndent(node.properties, openingCurly, closingCurly, options.ObjectExpression);
},
Property(node) {
if (!node.shorthand && !node.method && node.kind === 'init') {
- const colon = sourceCode.getFirstTokenBetween(node.key, node.value, eslint_utils_1.isColonToken);
+ const colon = sourceCode.getFirstTokenBetween(node.key, node.value, util_1.isColonToken);
offsets.ignoreToken(sourceCode.getTokenAfter(colon));
}
},
SwitchStatement(node) {
- const openingCurly = sourceCode.getTokenAfter(node.discriminant, eslint_utils_1.isOpeningBraceToken);
+ const openingCurly = sourceCode.getTokenAfter(node.discriminant, util_1.isOpeningBraceToken);
const closingCurly = sourceCode.getLastToken(node);
offsets.setDesiredOffsets([openingCurly.range[1], closingCurly.range[0]], openingCurly, options.SwitchCase);
if (node.cases.length) {
sourceCode
.getTokensBetween(node.cases[node.cases.length - 1], closingCurly, {
includeComments: true,
- filter: eslint_utils_1.isCommentToken,
+ filter: util_1.isCommentToken,
})
.forEach(token => offsets.ignoreToken(token));
}
@@ -966,13 +966,13 @@
else {
offsets.setDesiredOffsets(node.range, firstToken, variableIndent);
}
- if (eslint_utils_1.isSemicolonToken(lastToken)) {
+ if (util_1.isSemicolonToken(lastToken)) {
offsets.ignoreToken(lastToken);
}
},
VariableDeclarator(node) {
if (node.init) {
- const equalOperator = sourceCode.getTokenBefore(node.init, eslint_utils_1.isNotOpeningParenToken);
+ const equalOperator = sourceCode.getTokenBefore(node.init, util_1.isNotOpeningParenToken);
const tokenAfterOperator = sourceCode.getTokenAfter(equalOperator);
offsets.ignoreToken(equalOperator);
offsets.ignoreToken(tokenAfterOperator);
@@ -1117,7 +1117,7 @@
if (validateTokenIndent(firstTokenOfLine, offsets.getDesiredIndent(firstTokenOfLine))) {
return;
}
- if (eslint_utils_1.isCommentToken(firstTokenOfLine)) {
+ if (util_1.isCommentToken(firstTokenOfLine)) {
const tokenBefore = precedingTokens.get(firstTokenOfLine);
const tokenAfter = tokenBefore
? sourceCode.getTokenAfter(tokenBefore)
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/index.js.map
index c26f167..5556626 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/index.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent-new-do-not-use/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/indent-new-do-not-use/index.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,eAAe;AACf,gFAAgF;;AAEhF,8EAK+C;AAC/C,+CAWsB;AAEtB,mDAAgD;AAChD,2CAAwC;AACxC,qC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,CAAC,CAAC;wBAEpE,2GAA2G;wBAC3G,IACE,CAAC,kBAAkB;4BACjB,mBAAmB,CACjB,gBAAgB,EAChB,OAAO,CAAC,gBAAgB,CAAC,WAAW,CAAC,CACtC,CAAC;4BACJ,CAAC,iBAAiB;gCAChB,mBAAmB,CACjB,gBAAgB,EAChB,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,CACrC,CAAC,EACJ;4BACA,OAAO;yBACR;qBACF;oBAED,uCAAuC;oBACvC,MAAM,CAAC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC,CAAC;gBACvE,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/indent-new-do-not-use/index.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,eAAe;AACf,gFAAgF;;AAEhF,8EAK+C;AAG/C,mDAAgD;AAChD,2CAAwC;AACxC,qCAcoB;AAEpB,MAAM,sBAAsB,GAAG,2BAA2B,CAAC;AAC3D,MAAM,gBAAgB,GAAG,OAAO,CAAC;AAEjC,gFAAgF;AAChF,kBAAkB;AAClB,gFAAgF;AAEhF,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC;IAC1B,mCAAc,CAAC,oBAAoB;IACnC,mCAAc,CAAC,iBAAiB;IAChC,mCAAc,CAAC,eAAe;IAC9B,mCAAc,CAAC,YAAY;IAC3B,mCAAc,CAAC,uBAAuB;IACtC,mCAAc,CAAC,eAAe;IAC9B,mCAAc,CAAC,cAAc;IAC7B,mCAAc,CAAC,gBAAgB;IAC/B,mCAAc,CAAC,cAAc;IAC7B,mCAAc,CAAC,cAAc;IAC7B,mCAAc,CAAC,WAAW;IAC1B,mCAAc,CAAC,SAAS;IACxB,mCAAc,CAAC,gBAAgB;IAC/B,mCAAc,CAAC,eAAe;IAC9B,mCAAc,CAAC,qBAAqB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KAAK,UAAU,EAAE;wBAClD,qGAAqG;wBACrG,OAAO;qBACR;oBAED,2EAA2E;oBAC3E,IACE,mBAAmB,CACjB,gBAAgB,EAChB,OAAO,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAC3C,EACD;wBACA,OAAO;qBACR;oBAED,IAAI,qBAAc,CAAC,gBAAgB,CAAC,EAAE;wBACpC,MAAM,WAAW,GAAG,eAAe,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;wBAC1D,MAAM,UAAU,GAAG,WAAW;4BAC5B,CAAC,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAE;4BACxC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;wBAE7B,MAAM,kBAAkB,GACtB,WAAW;4BACX,CAAC,oBAAoB,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;wBACvD,MAAM,iBAAiB,GACrB,UAAU,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;wBAEpE,2GAA2G;wBAC3G,IACE,CAAC,kBAAkB;4BACjB,mBAAmB,CACjB,gBAAgB,EAChB,OAAO,CAAC,gBAAgB,CAAC,WAAW,CAAC,CACtC,CAAC;4BACJ,CAAC,iBAAiB;gCAChB,mBAAmB,CACjB,gBAAgB,EAChB,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,CACrC,CAAC,EACJ;4BACA,OAAO;yBACR;qBACF;oBAED,uCAAuC;oBACvC,MAAM,CAAC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC,CAAC;gBACvE,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js
index abb3c23..bdb0d7a 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js
@@ -5,16 +5,29 @@
* This is done intentionally based on the internal implementation of the base indent rule.
*/
/* eslint-disable @typescript-eslint/no-explicit-any */
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+var _a;
Object.defineProperty(exports, "__esModule", { value: true });
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
const indent_1 = __importDefault(require("eslint/lib/rules/indent"));
@@ -98,7 +111,9 @@
},
fixable: 'whitespace',
schema: indent_1.default.meta.schema,
- messages: indent_1.default.meta.messages,
+ messages: (_a = indent_1.default.meta.messages) !== null && _a !== void 0 ? _a : {
+ wrongIndentation: 'Expected indentation of {{expected}} but found {{actual}}.',
+ },
},
defaultOptions: [
// typescript docs and playground use 4 space indent
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js.map
index d4c35b4..9ec4bd5 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js.map
@@ -1 +1 @@
-{"version":3,"file":"indent.js","sourceRoot":"","sources":["../../src/rules/indent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,uDAAuD;;;;;;;;;;;;AAEvD,8EAG+C;AAC/C,qEAA+C;AAC/C,8CAAgC;AAKhC,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC;IAC1B,qDAAqD;IACrD,mCAAc,CAAC,aAAa;IAE5B,cAAc;IACd,mCAAc,CAAC,iBAAiB;IAChC,mCAAc,CAAC,YAAY;IAC3B,mCAAc,CAAC,gBAAgB;IAC/B,mCAAc,CAAC,cAAc;IAC7B,mCAAc,CAAC,eAAe;IAC9B,mCAAc,CAAC,eAAe;IAC9B,mCAAc,CAAC,eAAe;IAC9B,mCAAc,CAAC,kBAAkB;IACjC,mCAAc,CAAC,gBAAgB;IAC/B,mCAAc,CAAC,aAAa;IAC5B,mCAAc,CAAC,aAAa;IAE5B,uCAAuC;IACvC,mCAAc,CAAC,uBAAuB;IACtC,mCAAc,CAAC,0BAA0B;IACzC,mCAAc,CAAC,WAAW;IAC1B,mCAAc,CAAC,cAAc;IAC7B,mCAAc,CAAC,0BAA0B;IACzC,mCAAc,CAAC,iBAAiB;IAChC,mCAAc,CAAC,iBAAiB;IAChC,mCAAc,CAAC,+BAA+B;IAC9C,mCAAc,CAAC,iBAAiB;IAChC,mCAAc,CAAC,6BAA6B;IAC5C,mCAAc,CAAC,iBAAiB;IAChC,mCAAc,CAAC,YAAY;IAC3B,mCAAc,CAAC,kBAAkB;IACjC,mCAAc,CAAC,yBAAyB;IACxC,mCAAc,CAAC,cAAc;IAC7B,mCAAc,CAAC,YAAY;IAC3B,mCAAc,CAAC,mBAAmB;IAClC,mCAAc,CAAC,gBAAgB;IAC/B,mCAAc,CAAC,WAAW;IA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IACL,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js
index 4a9a552..314f327 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js
@@ -7,25 +7,29 @@
const array_type_1 = __importDefault(require("./array-type"));
const await_thenable_1 = __importDefault(require("./await-thenable"));
const ban_ts_comment_1 = __importDefault(require("./ban-ts-comment"));
-const ban_ts_ignore_1 = __importDefault(require("./ban-ts-ignore"));
+const ban_tslint_comment_1 = __importDefault(require("./ban-tslint-comment"));
const ban_types_1 = __importDefault(require("./ban-types"));
const brace_style_1 = __importDefault(require("./brace-style"));
-const camelcase_1 = __importDefault(require("./camelcase"));
-const class_name_casing_1 = __importDefault(require("./class-name-casing"));
+const class_literal_property_style_1 = __importDefault(require("./class-literal-property-style"));
+const comma_dangle_1 = __importDefault(require("./comma-dangle"));
const comma_spacing_1 = __importDefault(require("./comma-spacing"));
+const no_confusing_non_null_assertion_1 = __importDefault(require("./no-confusing-non-null-assertion"));
const consistent_type_assertions_1 = __importDefault(require("./consistent-type-assertions"));
const consistent_type_definitions_1 = __importDefault(require("./consistent-type-definitions"));
+const consistent_type_imports_1 = __importDefault(require("./consistent-type-imports"));
const default_param_last_1 = __importDefault(require("./default-param-last"));
+const dot_notation_1 = __importDefault(require("./dot-notation"));
const explicit_function_return_type_1 = __importDefault(require("./explicit-function-return-type"));
const explicit_member_accessibility_1 = __importDefault(require("./explicit-member-accessibility"));
const explicit_module_boundary_types_1 = __importDefault(require("./explicit-module-boundary-types"));
const func_call_spacing_1 = __importDefault(require("./func-call-spacing"));
-const generic_type_naming_1 = __importDefault(require("./generic-type-naming"));
const indent_1 = __importDefault(require("./indent"));
-const interface_name_prefix_1 = __importDefault(require("./interface-name-prefix"));
+const init_declarations_1 = __importDefault(require("./init-declarations"));
+const keyword_spacing_1 = __importDefault(require("./keyword-spacing"));
+const lines_between_class_members_1 = __importDefault(require("./lines-between-class-members"));
const member_delimiter_style_1 = __importDefault(require("./member-delimiter-style"));
-const member_naming_1 = __importDefault(require("./member-naming"));
const member_ordering_1 = __importDefault(require("./member-ordering"));
+const method_signature_style_1 = __importDefault(require("./method-signature-style"));
const naming_convention_1 = __importDefault(require("./naming-convention"));
const no_array_constructor_1 = __importDefault(require("./no-array-constructor"));
const no_base_to_string_1 = __importDefault(require("./no-base-to-string"));
@@ -34,14 +38,20 @@
const no_empty_function_1 = __importDefault(require("./no-empty-function"));
const no_empty_interface_1 = __importDefault(require("./no-empty-interface"));
const no_explicit_any_1 = __importDefault(require("./no-explicit-any"));
+const no_implicit_any_catch_1 = __importDefault(require("./no-implicit-any-catch"));
const no_extraneous_class_1 = __importDefault(require("./no-extraneous-class"));
const no_extra_non_null_assertion_1 = __importDefault(require("./no-extra-non-null-assertion"));
const no_extra_parens_1 = __importDefault(require("./no-extra-parens"));
const no_extra_semi_1 = __importDefault(require("./no-extra-semi"));
const no_floating_promises_1 = __importDefault(require("./no-floating-promises"));
const no_for_in_array_1 = __importDefault(require("./no-for-in-array"));
+const prefer_literal_enum_member_1 = __importDefault(require("./prefer-literal-enum-member"));
const no_implied_eval_1 = __importDefault(require("./no-implied-eval"));
const no_inferrable_types_1 = __importDefault(require("./no-inferrable-types"));
+const no_invalid_this_1 = __importDefault(require("./no-invalid-this"));
+const no_invalid_void_type_1 = __importDefault(require("./no-invalid-void-type"));
+const no_loss_of_precision_1 = __importDefault(require("./no-loss-of-precision"));
+const no_loop_func_1 = __importDefault(require("./no-loop-func"));
const no_magic_numbers_1 = __importDefault(require("./no-magic-numbers"));
const no_misused_new_1 = __importDefault(require("./no-misused-new"));
const no_misused_promises_1 = __importDefault(require("./no-misused-promises"));
@@ -49,7 +59,9 @@
const no_non_null_asserted_optional_chain_1 = __importDefault(require("./no-non-null-asserted-optional-chain"));
const no_non_null_assertion_1 = __importDefault(require("./no-non-null-assertion"));
const no_parameter_properties_1 = __importDefault(require("./no-parameter-properties"));
+const no_redeclare_1 = __importDefault(require("./no-redeclare"));
const no_require_imports_1 = __importDefault(require("./no-require-imports"));
+const no_shadow_1 = __importDefault(require("./no-shadow"));
const no_this_alias_1 = __importDefault(require("./no-this-alias"));
const no_throw_literal_1 = __importDefault(require("./no-throw-literal"));
const no_type_alias_1 = __importDefault(require("./no-type-alias"));
@@ -58,7 +70,10 @@
const no_unnecessary_qualifier_1 = __importDefault(require("./no-unnecessary-qualifier"));
const no_unnecessary_type_arguments_1 = __importDefault(require("./no-unnecessary-type-arguments"));
const no_unnecessary_type_assertion_1 = __importDefault(require("./no-unnecessary-type-assertion"));
-const no_untyped_public_signature_1 = __importDefault(require("./no-untyped-public-signature"));
+const no_unsafe_assignment_1 = __importDefault(require("./no-unsafe-assignment"));
+const no_unsafe_call_1 = __importDefault(require("./no-unsafe-call"));
+const no_unsafe_member_access_1 = __importDefault(require("./no-unsafe-member-access"));
+const no_unsafe_return_1 = __importDefault(require("./no-unsafe-return"));
const no_unused_expressions_1 = __importDefault(require("./no-unused-expressions"));
const no_unused_vars_1 = __importDefault(require("./no-unused-vars"));
const no_unused_vars_experimental_1 = __importDefault(require("./no-unused-vars-experimental"));
@@ -66,6 +81,7 @@
const no_useless_constructor_1 = __importDefault(require("./no-useless-constructor"));
const no_var_requires_1 = __importDefault(require("./no-var-requires"));
const prefer_as_const_1 = __importDefault(require("./prefer-as-const"));
+const prefer_enum_initializers_1 = __importDefault(require("./prefer-enum-initializers"));
const prefer_for_of_1 = __importDefault(require("./prefer-for-of"));
const prefer_function_type_1 = __importDefault(require("./prefer-function-type"));
const prefer_includes_1 = __importDefault(require("./prefer-includes"));
@@ -74,8 +90,10 @@
const prefer_optional_chain_1 = __importDefault(require("./prefer-optional-chain"));
const prefer_readonly_1 = __importDefault(require("./prefer-readonly"));
const prefer_readonly_parameter_types_1 = __importDefault(require("./prefer-readonly-parameter-types"));
+const prefer_reduce_type_parameter_1 = __importDefault(require("./prefer-reduce-type-parameter"));
const prefer_regexp_exec_1 = __importDefault(require("./prefer-regexp-exec"));
const prefer_string_starts_ends_with_1 = __importDefault(require("./prefer-string-starts-ends-with"));
+const prefer_ts_expect_error_1 = __importDefault(require("./prefer-ts-expect-error"));
const promise_function_async_1 = __importDefault(require("./promise-function-async"));
const quotes_1 = __importDefault(require("./quotes"));
const require_array_sort_compare_1 = __importDefault(require("./require-array-sort-compare"));
@@ -97,28 +115,31 @@
'array-type': array_type_1.default,
'await-thenable': await_thenable_1.default,
'ban-ts-comment': ban_ts_comment_1.default,
- 'ban-ts-ignore': ban_ts_ignore_1.default,
+ 'ban-tslint-comment': ban_tslint_comment_1.default,
'ban-types': ban_types_1.default,
- 'no-base-to-string': no_base_to_string_1.default,
'brace-style': brace_style_1.default,
- camelcase: camelcase_1.default,
- 'class-name-casing': class_name_casing_1.default,
+ 'class-literal-property-style': class_literal_property_style_1.default,
+ 'comma-dangle': comma_dangle_1.default,
'comma-spacing': comma_spacing_1.default,
'consistent-type-assertions': consistent_type_assertions_1.default,
'consistent-type-definitions': consistent_type_definitions_1.default,
+ 'consistent-type-imports': consistent_type_imports_1.default,
'default-param-last': default_param_last_1.default,
+ 'dot-notation': dot_notation_1.default,
'explicit-function-return-type': explicit_function_return_type_1.default,
'explicit-member-accessibility': explicit_member_accessibility_1.default,
'explicit-module-boundary-types': explicit_module_boundary_types_1.default,
'func-call-spacing': func_call_spacing_1.default,
- 'generic-type-naming': generic_type_naming_1.default,
- indent: indent_1.default,
- 'interface-name-prefix': interface_name_prefix_1.default,
+ 'init-declarations': init_declarations_1.default,
+ 'keyword-spacing': keyword_spacing_1.default,
+ 'lines-between-class-members': lines_between_class_members_1.default,
'member-delimiter-style': member_delimiter_style_1.default,
- 'member-naming': member_naming_1.default,
'member-ordering': member_ordering_1.default,
+ 'method-signature-style': method_signature_style_1.default,
'naming-convention': naming_convention_1.default,
'no-array-constructor': no_array_constructor_1.default,
+ 'no-base-to-string': no_base_to_string_1.default,
+ 'no-confusing-non-null-assertion': no_confusing_non_null_assertion_1.default,
'no-dupe-class-members': no_dupe_class_members_1.default,
'no-dynamic-delete': no_dynamic_delete_1.default,
'no-empty-function': no_empty_function_1.default,
@@ -130,8 +151,13 @@
'no-extraneous-class': no_extraneous_class_1.default,
'no-floating-promises': no_floating_promises_1.default,
'no-for-in-array': no_for_in_array_1.default,
+ 'no-implicit-any-catch': no_implicit_any_catch_1.default,
'no-implied-eval': no_implied_eval_1.default,
'no-inferrable-types': no_inferrable_types_1.default,
+ 'no-invalid-this': no_invalid_this_1.default,
+ 'no-invalid-void-type': no_invalid_void_type_1.default,
+ 'no-loop-func': no_loop_func_1.default,
+ 'no-loss-of-precision': no_loss_of_precision_1.default,
'no-magic-numbers': no_magic_numbers_1.default,
'no-misused-new': no_misused_new_1.default,
'no-misused-promises': no_misused_promises_1.default,
@@ -139,7 +165,9 @@
'no-non-null-asserted-optional-chain': no_non_null_asserted_optional_chain_1.default,
'no-non-null-assertion': no_non_null_assertion_1.default,
'no-parameter-properties': no_parameter_properties_1.default,
+ 'no-redeclare': no_redeclare_1.default,
'no-require-imports': no_require_imports_1.default,
+ 'no-shadow': no_shadow_1.default,
'no-this-alias': no_this_alias_1.default,
'no-throw-literal': no_throw_literal_1.default,
'no-type-alias': no_type_alias_1.default,
@@ -148,7 +176,10 @@
'no-unnecessary-qualifier': no_unnecessary_qualifier_1.default,
'no-unnecessary-type-arguments': no_unnecessary_type_arguments_1.default,
'no-unnecessary-type-assertion': no_unnecessary_type_assertion_1.default,
- 'no-untyped-public-signature': no_untyped_public_signature_1.default,
+ 'no-unsafe-assignment': no_unsafe_assignment_1.default,
+ 'no-unsafe-call': no_unsafe_call_1.default,
+ 'no-unsafe-member-access': no_unsafe_member_access_1.default,
+ 'no-unsafe-return': no_unsafe_return_1.default,
'no-unused-expressions': no_unused_expressions_1.default,
'no-unused-vars-experimental': no_unused_vars_experimental_1.default,
'no-unused-vars': no_unused_vars_1.default,
@@ -156,31 +187,36 @@
'no-useless-constructor': no_useless_constructor_1.default,
'no-var-requires': no_var_requires_1.default,
'prefer-as-const': prefer_as_const_1.default,
+ 'prefer-enum-initializers': prefer_enum_initializers_1.default,
'prefer-for-of': prefer_for_of_1.default,
'prefer-function-type': prefer_function_type_1.default,
'prefer-includes': prefer_includes_1.default,
+ 'prefer-literal-enum-member': prefer_literal_enum_member_1.default,
'prefer-namespace-keyword': prefer_namespace_keyword_1.default,
'prefer-nullish-coalescing': prefer_nullish_coalescing_1.default,
'prefer-optional-chain': prefer_optional_chain_1.default,
'prefer-readonly-parameter-types': prefer_readonly_parameter_types_1.default,
'prefer-readonly': prefer_readonly_1.default,
+ 'prefer-reduce-type-parameter': prefer_reduce_type_parameter_1.default,
'prefer-regexp-exec': prefer_regexp_exec_1.default,
'prefer-string-starts-ends-with': prefer_string_starts_ends_with_1.default,
+ 'prefer-ts-expect-error': prefer_ts_expect_error_1.default,
'promise-function-async': promise_function_async_1.default,
- quotes: quotes_1.default,
'require-array-sort-compare': require_array_sort_compare_1.default,
'require-await': require_await_1.default,
'restrict-plus-operands': restrict_plus_operands_1.default,
'restrict-template-expressions': restrict_template_expressions_1.default,
'return-await': return_await_1.default,
- semi: semi_1.default,
'space-before-function-paren': space_before_function_paren_1.default,
'strict-boolean-expressions': strict_boolean_expressions_1.default,
'switch-exhaustiveness-check': switch_exhaustiveness_check_1.default,
'triple-slash-reference': triple_slash_reference_1.default,
'type-annotation-spacing': type_annotation_spacing_1.default,
- typedef: typedef_1.default,
'unbound-method': unbound_method_1.default,
'unified-signatures': unified_signatures_1.default,
+ indent: indent_1.default,
+ quotes: quotes_1.default,
+ semi: semi_1.default,
+ typedef: typedef_1.default,
};
//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map
index 531d336..ca13740 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;AAAA,kGAAwE;AACxE,8DAAqC;AACrC,sEAA6C;AAC7C,sEAA4C;AAC5C,oEAA0C;AAC1C,4DAAmC;AACnC,gEAAuC;AACvC,4DAAoC;AACpC,4EAAkD;AAClD,oEAA2C;AAC3C,8FAAoE;AACpE,gGAAsE;AACtE,8EAAoD;AACpD,oGAAyE;AACzE,oGAA0E;AAC1E,sGAA2E;AAC3E,4EAAkD;AAClD,gFAAsD;AACtD,sDAA8B;AAC9B,oFAA0D;AAC1D,sFAA4D;AAC5D,oEAA2C;AAC3C,wEAA+C;AAC/C,4EAAmD;AACnD,kFAAwD;AACxD,4EAAiD;AACjD,oFAAyD;AACzD,4EAAkD;AAClD,4EAAkD;AAClD,8EAAoD;AACpD,wEAA8C;AAC9C,gFAAsD;AACtD,gGAAoE;AACpE,wEAA8C;AAC9C,oEAA0C;AAC1C,kFAAwD;AACxD,wEAA6C;AAC7C,wEAA8C;AAC9C,gFAAsD;AACtD,0EAAgD;AAChD,sEAA4C;AAC5C,gFAAsD;AACtD,kEAAyC;AACzC,gHAAmF;AACnF,oFAAyD;AACzD,wFAA8D;AAC9D,8EAAoD;AACpD,oEAA0C;AAC1C,0EAAgD;AAChD,oEAA0C;AAC1C,sHAA0F;AAC1F,0FAAgE;AAChE,0FAAgE;AAChE,oGAAyE;AACzE,oGAAyE;AACzE,gGAAqE;AACrE,oFAA0D;AAC1D,sEAA4C;AAC5C,gGAAqE;AACrE,kFAAuD;AACvD,sFAA4D;AAC5D,wEAA8C;AAC9C,wEAA8C;AAC9C,oEAA0C;AAC1C,kFAAwD;AACxD,wEAA+C;AAC/C,0FAAgE;AAChE,4FAAkE;AAClE,oFAA0D;AAC1D,wEAA+C;AAC/C,wGAA6E;AAC7E,8EAAoD;AAC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B,EAAE,gCAAoB;IAC9C,+BAA+B,EAAE,uCAA2B;IAC5D,cAAc,EAAE,sBAAW;IAC3B,IAAI,EAAE,cAAI;IACV,6BAA6B,EAAE,qCAAwB;IACvD,4BAA4B,EAAE,oCAAwB;IACtD,6BAA6B,EAAE,qCAAyB;IACxD,wBAAwB,EAAE,gCAAoB;IAC9C,yBAAyB,EAAE,iCAAqB;IAChD,OAAO,EAAE,iBAAO;IAChB,gBAAgB,EAAE,wBAAa;IAC/B,oBAAoB,EAAE,4BAAiB;CACxC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;AAAA,kGAAwE;AACxE,8DAAqC;AACrC,sEAA6C;AAC7C,sEAA4C;AAC5C,8EAAoD;AACpD,4DAAmC;AACnC,gEAAuC;AACvC,kGAAuE;AACvE,kEAAyC;AACzC,oEAA2C;AAC3C,wGAAsF;AACtF,8FAAoE;AACpE,gGAAsE;AACtE,wFAA8D;AAC9D,8EAAoD;AACpD,kEAAyC;AACzC,oGAAyE;AACzE,oGAA0E;AAC1E,sGAA2E;AAC3E,4EAAkD;AAClD,sDAA8B;AAC9B,4EAAmD;AACnD,wEAA+C;AAC/C,gGAAqE;AACrE,sFAA4D;AAC5D,wEAA+C;AAC/C,sFAA4D;AAC5D,4EAAmD;AACnD,kFAAwD;AACxD,4EAAiD;AACjD,oFAAyD;AACzD,4EAAkD;AAClD,4EAAkD;AAClD,8EAAoD;AACpD,wEAA8C;AAC9C,oFAAyD;AACzD,gFAAsD;AACtD,gGAAoE;AACpE,wEAA8C;AAC9C,oEAA0C;AAC1C,kFAAwD;AACxD,wEAA6C;AAC7C,8FAAmE;AACnE,wEAA8C;AAC9C,gFAAsD;AACtD,wEAA8C;AAC9C,kFAAuD;AACvD,kFAAuD;AACvD,kEAAwC;AACxC,0EAAgD;AAChD,sEAA4C;AAC5C,gFAAsD;AACtD,kEAAyC;AACzC,gHAAmF;AACnF,oFAA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AgB,EAAE,wBAAa;IAC/B,oBAAoB,EAAE,4BAAiB;IACvC,MAAM,EAAE,gBAAM;IACd,MAAM,EAAE,gBAAM;IACd,IAAI,EAAE,cAAI;IACV,OAAO,EAAE,iBAAO;CACjB,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js
new file mode 100644
index 0000000..9b4b331
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js
@@ -0,0 +1,47 @@
+"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+var _a;
+Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const init_declarations_1 = __importDefault(require("eslint/lib/rules/init-declarations"));
+const util_1 = require("../util");
+exports.default = util_1.createRule({
+ name: 'init-declarations',
+ meta: {
+ type: 'suggestion',
+ docs: {
+ description: 'require or disallow initialization in variable declarations',
+ category: 'Variables',
+ recommended: false,
+ extendsBaseRule: true,
+ },
+ schema: init_declarations_1.default.meta.schema,
+ messages: (_a = init_declarations_1.default.meta.messages) !== null && _a !== void 0 ? _a : {
+ initialized: "Variable '{{idName}}' should be initialized on declaration.",
+ notInitialized: "Variable '{{idName}}' should not be initialized on declaration.",
+ },
+ },
+ defaultOptions: ['always'],
+ create(context) {
+ const rules = init_declarations_1.default.create(context);
+ const mode = context.options[0] || 'always';
+ return {
+ 'VariableDeclaration:exit'(node) {
+ var _a, _b, _c;
+ if (mode === 'always') {
+ if (node.declare) {
+ return;
+ }
+ if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.TSModuleBlock &&
+ ((_b = node.parent.parent) === null || _b === void 0 ? void 0 : _b.type) === experimental_utils_1.AST_NODE_TYPES.TSModuleDeclaration && ((_c = node.parent.parent) === null || _c === void 0 ? void 0 : _c.declare)) {
+ return;
+ }
+ }
+ rules['VariableDeclaration:exit'](node);
+ },
+ };
+ },
+});
+//# sourceMappingURL=init-declarations.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js.map
new file mode 100644
index 0000000..99bf077
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"init-declarations.js","sourceRoot":"","sources":["../../src/rules/init-declarations.ts"],"names":[],"mappings":";;;;;;AAAA,8EAG+C;AAC/C,2FAA0D;AAC1D,kCAIiB;AAKjB,kBAAe,iBAAU,CAAsB;IAC7C,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,6DAA6D;YAC/D,QAAQ,EAAE,WAAW;YACrB,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,MAAM,EAAE,2BAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,QAAQ,QAAE,2BAAQ,CAAC,IAAI,CAAC,QAAQ,mCAAI;YAClC,WAAW,EACT,6DAA6D;YAC/D,cAAc,EACZ,iEAAiE;SACpE;KACF;IACD,cAAc,EAAE,CAAC,QAAQ,CAAC;IAC1B,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,2BAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACvC,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC;QAE5C,OAAO;YACL,0BAA0B,CAAC,IAAkC;;gBAC3D,IAAI,IAAI,KAAK,QAAQ,EAAE;oBACrB,IAAI,IAAI,CAAC,OAAO,EAAE;wBAChB,OAAO;qBACR;oBACD,IACE,OAAA,IAAI,CAAC,MAAM,0CAAE,IAAI,MAAK,mCAAc,CAAC,aAAa;wBAClD,OAAA,IAAI,CAAC,MAAM,CAAC,MAAM,0CAAE,IAAI,MAAK,mCAAc,CAAC,mBAAmB,WAC/D,IAAI,CAAC,MAAM,CAAC,MAAM,0CAAE,OAAO,CAAA,EAC3B;wBACA,OAAO;qBACR;iBACF;gBAED,KAAK,CAAC,0BAA0B,CAAC,CAAC,IAAI,CAAC,CAAC;YAC1C,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/interface-name-prefix.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/interface-name-prefix.js
deleted file mode 100644
index 17ca3f4..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/interface-name-prefix.js
+++ /dev/null
@@ -1,132 +0,0 @@
-"use strict";
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
- return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-const util = __importStar(require("../util"));
-/**
- * Parses a given value as options.
- */
-function parseOptions([options]) {
- if (options === 'always') {
- return { prefixWithI: 'always', allowUnderscorePrefix: false };
- }
- if (options !== 'never' && options.prefixWithI === 'always') {
- return {
- prefixWithI: 'always',
- allowUnderscorePrefix: !!options.allowUnderscorePrefix,
- };
- }
- return { prefixWithI: 'never' };
-}
-exports.parseOptions = parseOptions;
-exports.default = util.createRule({
- name: 'interface-name-prefix',
- meta: {
- type: 'suggestion',
- docs: {
- description: 'Require that interface names should or should not prefixed with `I`',
- category: 'Stylistic Issues',
- // this will always be recommended as there's no reason to use this convention
- // https://github.com/typescript-eslint/typescript-eslint/issues/374
- recommended: 'error',
- },
- deprecated: true,
- replacedBy: ['naming-convention'],
- messages: {
- noPrefix: 'Interface name must not be prefixed with "I".',
- alwaysPrefix: 'Interface name must be prefixed with "I".',
- },
- schema: [
- {
- oneOf: [
- {
- enum: [
- // Deprecated, equivalent to: { prefixWithI: 'never' }
- 'never',
- // Deprecated, equivalent to: { prefixWithI: 'always', allowUnderscorePrefix: false }
- 'always',
- ],
- },
- {
- type: 'object',
- properties: {
- prefixWithI: {
- type: 'string',
- enum: ['never'],
- },
- },
- additionalProperties: false,
- },
- {
- type: 'object',
- properties: {
- prefixWithI: {
- type: 'string',
- enum: ['always'],
- },
- allowUnderscorePrefix: {
- type: 'boolean',
- },
- },
- required: ['prefixWithI'],
- additionalProperties: false,
- },
- ],
- },
- ],
- },
- defaultOptions: [{ prefixWithI: 'never' }],
- create(context, [options]) {
- const parsedOptions = parseOptions([options]);
- /**
- * Checks if a string is prefixed with "I".
- * @param name The string to check
- */
- function isPrefixedWithI(name) {
- return /^I[A-Z]/.test(name);
- }
- /**
- * Checks if a string is prefixed with "I" or "_I".
- * @param name The string to check
- */
- function isPrefixedWithIOrUnderscoreI(name) {
- return /^_?I[A-Z]/.test(name);
- }
- return {
- TSInterfaceDeclaration(node) {
- if (parsedOptions.prefixWithI === 'never') {
- if (isPrefixedWithIOrUnderscoreI(node.id.name)) {
- context.report({
- node: node.id,
- messageId: 'noPrefix',
- });
- }
- }
- else {
- if (parsedOptions.allowUnderscorePrefix) {
- if (!isPrefixedWithIOrUnderscoreI(node.id.name)) {
- context.report({
- node: node.id,
- messageId: 'alwaysPrefix',
- });
- }
- }
- else {
- if (!isPrefixedWithI(node.id.name)) {
- context.report({
- node: node.id,
- messageId: 'alwaysPrefix',
- });
- }
- }
- }
- },
- };
- },
-});
-//# sourceMappingURL=interface-name-prefix.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/interface-name-prefix.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/interface-name-prefix.js.map
deleted file mode 100644
index a015464..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/interface-name-prefix.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"interface-name-prefix.js","sourceRoot":"","sources":["../../src/rules/interface-name-prefix.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8CAAgC;AAuBhC;;GAEG;AACH,SAAgB,YAAY,CAAC,CAAC,OAAO,CAAU;IAC7C,IAAI,OAAO,KAAK,QAAQ,EAAE;QACxB,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,qBAAqB,EAAE,KAAK,EAAE,CAAC;KAChE;IACD,IAAI,OAAO,KAAK,OAAO,IAAI,OAAO,CAAC,WAAW,KAAK,QAAQ,EAAE;QAC3D,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB;SACvD,CAAC;KACH;IACD,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;AAClC,CAAC;AAXD,oCAWC;AAED,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,qEAAqE;YACvE,QAAQ,EAAE,kBAAkB;YAC5B,8EAA8E;YAC9E,oEAAoE;YACpE,WAAW,EAAE,OAAO;SACrB;QACD,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE,CAAC,mBAAmB,CAAC;QACjC,QAAQ,EAAE;YACR,QAAQ,EAAE,+CAA+C;YACzD,YAAY,EAAE,2CAA2C;SAC1D;QACD,MAAM,EAAE;YACN;gBACE,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE;4BACJ,sDAAsD;4BACtD,OAAO;4BACP,qFAAqF;4BACrF,QAAQ;yBACT;qBACF;oBACD;wBACE,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACV,WAAW,EAAE;gCACX,IAAI,EAAE,QAAQ;gCACd,IAAI,EAAE,CAAC,OAAO,CAAC;6BAChB;yBACF;wBACD,oBAAoB,EA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;yBAAM;wBACL,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;4BAClC,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI,EAAE,IAAI,CAAC,EAAE;gCACb,SAAS,EAAE,cAAc;6BAC1B,CAAC,CAAC;yBACJ;qBACF;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js
new file mode 100644
index 0000000..a0d9871
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js
@@ -0,0 +1,67 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+var _a;
+Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const keyword_spacing_1 = __importDefault(require("eslint/lib/rules/keyword-spacing"));
+const util = __importStar(require("../util"));
+exports.default = util.createRule({
+ name: 'keyword-spacing',
+ meta: {
+ type: 'layout',
+ docs: {
+ description: 'Enforce consistent spacing before and after keywords',
+ category: 'Stylistic Issues',
+ recommended: false,
+ extendsBaseRule: true,
+ },
+ fixable: 'whitespace',
+ schema: keyword_spacing_1.default.meta.schema,
+ messages: (_a = keyword_spacing_1.default.meta.messages) !== null && _a !== void 0 ? _a : {
+ expectedBefore: 'Expected space(s) before "{{value}}".',
+ expectedAfter: 'Expected space(s) after "{{value}}".',
+ unexpectedBefore: 'Unexpected space(s) before "{{value}}".',
+ unexpectedAfter: 'Unexpected space(s) after "{{value}}".',
+ },
+ },
+ defaultOptions: [{}],
+ create(context) {
+ const sourceCode = context.getSourceCode();
+ const baseRules = keyword_spacing_1.default.create(context);
+ return Object.assign(Object.assign({}, baseRules), { TSAsExpression(node) {
+ const asToken = util.nullThrows(sourceCode.getTokenAfter(node.expression, token => token.value === 'as'), util.NullThrowsReasons.MissingToken('as', node.type));
+ const oldTokenType = asToken.type;
+ // as is a contextual keyword, so it's always reported as an Identifier
+ // the rule looks for keyword tokens, so we temporarily override it
+ // we mutate it at the token level because the rule calls sourceCode.getFirstToken,
+ // so mutating a copy would not change the underlying copy returned by that method
+ asToken.type = experimental_utils_1.AST_TOKEN_TYPES.Keyword;
+ // use this selector just because it is just a call to `checkSpacingAroundFirstToken`
+ baseRules.DebuggerStatement(asToken);
+ // make sure to reset the type afterward so we don't permanently mutate the AST
+ asToken.type = oldTokenType;
+ } });
+ },
+});
+//# sourceMappingURL=keyword-spacing.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js.map
new file mode 100644
index 0000000..181f8ee
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"keyword-spacing.js","sourceRoot":"","sources":["../../src/rules/keyword-spacing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAA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B,CAAC,CAAC;gBAE9C,+EAA+E;gBAC/E,OAAO,CAAC,IAAI,GAAG,YAAY,CAAC;YAC9B,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js
new file mode 100644
index 0000000..7d55e43
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js
@@ -0,0 +1,79 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+var _a;
+Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const lines_between_class_members_1 = __importDefault(require("eslint/lib/rules/lines-between-class-members"));
+const util = __importStar(require("../util"));
+const schema = util.deepMerge(Object.assign({}, lines_between_class_members_1.default.meta.schema), {
+ 1: {
+ exceptAfterOverload: {
+ type: 'booleean',
+ default: true,
+ },
+ },
+});
+exports.default = util.createRule({
+ name: 'lines-between-class-members',
+ meta: {
+ type: 'layout',
+ docs: {
+ description: 'Require or disallow an empty line between class members',
+ category: 'Stylistic Issues',
+ recommended: false,
+ extendsBaseRule: true,
+ },
+ fixable: 'whitespace',
+ schema,
+ messages: (_a = lines_between_class_members_1.default.meta.messages) !== null && _a !== void 0 ? _a : {
+ never: 'Unexpected blank line between class members.',
+ always: 'Expected blank line between class members.',
+ },
+ },
+ defaultOptions: [
+ 'always',
+ {
+ exceptAfterOverload: true,
+ exceptAfterSingleLine: false,
+ },
+ ],
+ create(context, options) {
+ var _a;
+ const rules = lines_between_class_members_1.default.create(context);
+ const exceptAfterOverload = ((_a = options[1]) === null || _a === void 0 ? void 0 : _a.exceptAfterOverload) && options[0] === 'always';
+ function isOverload(node) {
+ return (node.type === experimental_utils_1.AST_NODE_TYPES.MethodDefinition &&
+ node.value.type === experimental_utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression);
+ }
+ return {
+ ClassBody(node) {
+ const body = exceptAfterOverload
+ ? node.body.filter(node => !isOverload(node))
+ : node.body;
+ rules.ClassBody(Object.assign(Object.assign({}, node), { body }));
+ },
+ };
+ },
+});
+//# sourceMappingURL=lines-between-class-members.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js.map
new file mode 100644
index 0000000..f8300c0
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"lines-between-class-members.js","sourceRoot":"","sources":["../../src/rules/lines-between-class-members.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,+GAAoE;AACpE,8CAAgC;AAKhC,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,mBACtB,qCAAQ,CAAC,IAAI,CAAC,MAAM,GACzB;IACE,CAAC,EAAE;QACD,mBAAmB,EAAE;YACnB,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,IAAI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ACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js
index c9de8f9..2faac1c 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -39,7 +51,7 @@
docs: {
description: 'Require a specific member delimiter style for interfaces and type literals',
category: 'Stylistic Issues',
- recommended: 'error',
+ recommended: false,
},
fixable: 'code',
messages: {
@@ -82,7 +94,7 @@
const sourceCode = context.getSourceCode();
// use the base options as the defaults for the cases
const baseOptions = options;
- const overrides = (_a = baseOptions.overrides, (_a !== null && _a !== void 0 ? _a : {}));
+ const overrides = (_a = baseOptions.overrides) !== null && _a !== void 0 ? _a : {};
const interfaceOptions = util.deepMerge(baseOptions, overrides.interface);
const typeLiteralOptions = util.deepMerge(baseOptions, overrides.typeLiteral);
/**
@@ -184,7 +196,7 @@
: typeLiteralOptions;
const opts = isSingleLine ? typeOpts.singleline : typeOpts.multiline;
members.forEach((member, index) => {
- checkLastToken(member, (opts !== null && opts !== void 0 ? opts : {}), index === members.length - 1);
+ checkLastToken(member, opts !== null && opts !== void 0 ? opts : {}, index === members.length - 1);
});
}
return {
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js.map
index 1b06390..f48cf7b 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js.map
@@ -1 +1 @@
-{"version":3,"file":"member-delimiter-style.js","sourceRoot":"","sources":["../../src/rules/member-delimiter-style.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AA2BhC,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,SAAS,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;gBAC9C,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aACjC;YACD,oBAAoB,EAAE,KAAK;SAC5B;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,0EAA0E;gBAC1E,SAAS,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE;gBACtC,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aACjC;YACD,oBAAoB,EAAE,KAAK;SAC5B;KACF;IACD,oBAAoB,EAAE,KAAK;CAC5B,CAAC;AAEF,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,wBAAwB;IAC9B,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AC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;YAE1E,MAAM,QAAQ,GACZ,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,eAAe;gBAC1C,CAAC,CAAC,gBAAgB;gBAClB,CAAC,CAAC,kBAAkB,CAAC;YACzB,MAAM,IAAI,GAAG,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC;YAErE,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;gBAChC,cAAc,CAAC,MAAM,GAAE,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,GAAE,KAAK,KAAK,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YACnE,CAAC,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,eAAe,EAAE,yBAAyB;YAC1C,aAAa,EAAE,yBAAyB;SACzC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"member-delimiter-style.js","sourceRoot":"","sources":["../../src/rules/member-delimiter-style.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AA2BhC,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,SAAS,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;gBAC9C,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aACjC;YACD,oBAAoB,EAAE,KAAK;SAC5B;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,0EAA0E;gBAC1E,SAAS,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE;gBACtC,WAAW,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CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC;YAE/D,MAAM,OAAO,GACX,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;YAE1E,MAAM,QAAQ,GACZ,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,eAAe;gBAC1C,CAAC,CAAC,gBAAgB;gBAClB,CAAC,CAAC,kBAAkB,CAAC;YACzB,MAAM,IAAI,GAAG,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC;YAErE,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;gBAChC,cAAc,CAAC,MAAM,EAAE,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,EAAE,KAAK,KAAK,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YACnE,CAAC,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,eAAe,EAAE,yBAAyB;YAC1C,aAAa,EAAE,yBAAyB;SACzC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-naming.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-naming.js
deleted file mode 100644
index 6b31f7f..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-naming.js
+++ /dev/null
@@ -1,107 +0,0 @@
-"use strict";
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
- return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
-const util = __importStar(require("../util"));
-exports.default = util.createRule({
- name: 'member-naming',
- meta: {
- type: 'suggestion',
- docs: {
- description: 'Enforces naming conventions for class members by visibility',
- category: 'Stylistic Issues',
- recommended: false,
- },
- deprecated: true,
- replacedBy: ['naming-convention'],
- messages: {
- incorrectName: '{{accessibility}} property {{name}} should match {{convention}}.',
- },
- schema: [
- {
- type: 'object',
- properties: {
- public: {
- type: 'string',
- minLength: 1,
- format: 'regex',
- },
- protected: {
- type: 'string',
- minLength: 1,
- format: 'regex',
- },
- private: {
- type: 'string',
- minLength: 1,
- format: 'regex',
- },
- },
- additionalProperties: false,
- minProperties: 1,
- },
- ],
- },
- defaultOptions: [{}],
- create(context, [config]) {
- const sourceCode = context.getSourceCode();
- const conventions = Object.keys(config).reduce((acc, accessibility) => {
- acc[accessibility] = new RegExp(config[accessibility]);
- return acc;
- }, {});
- function getParameterNode(node) {
- if (node.parameter.type === experimental_utils_1.AST_NODE_TYPES.AssignmentPattern) {
- return node.parameter.left;
- }
- if (node.parameter.type === experimental_utils_1.AST_NODE_TYPES.Identifier) {
- return node.parameter;
- }
- return null;
- }
- function validateParameterName(node) {
- const parameterNode = getParameterNode(node);
- if (!parameterNode) {
- return;
- }
- validate(parameterNode, parameterNode.name, node.accessibility);
- }
- function validateName(node) {
- if (node.type === experimental_utils_1.AST_NODE_TYPES.MethodDefinition &&
- node.kind === 'constructor') {
- return;
- }
- validate(node.key, util.getNameFromMember(node, sourceCode), node.accessibility);
- }
- /**
- * Check that the name matches the convention for its accessibility.
- * @param {ASTNode} node the named node to evaluate.
- * @param {string} name
- * @param {Modifiers} accessibility
- * @returns {void}
- * @private
- */
- function validate(node, name, accessibility = 'public') {
- const convention = conventions[accessibility];
- if (!convention || convention.test(name)) {
- return;
- }
- context.report({
- node,
- messageId: 'incorrectName',
- data: { accessibility, name, convention },
- });
- }
- return {
- TSParameterProperty: validateParameterName,
- MethodDefinition: validateName,
- ClassProperty: validateName,
- };
- },
-});
-//# sourceMappingURL=member-naming.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-naming.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-naming.js.map
deleted file mode 100644
index 8d39643..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-naming.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"member-naming.js","sourceRoot":"","sources":["../../src/rules/member-naming.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAWhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,6DAA6D;YAC/D,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,KAAK;SACnB;QACD,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE,CAAC,mBAAmB,CAAC;QACjC,QAAQ,EAAE;YACR,aAAa,EACX,kEAAkE;SACrE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,CAAC;wBACZ,MAAM,EAAE,OAAO;qBAChB;oBACD,SAAS,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,CAAC;wBACZ,MAAM,EAAE,OAAO;qBAChB;oBACD,OAAO,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,CAAC;wBACZ,MAAM,EAAE,OAAO;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;gBAC3B,aAAa,EAAE,CAAC;aACjB;SACF;KACF;IACD,cAAc,EAAE,CAAC,EAAE,CAAC;IACpB,MAAM,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;QACtB,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CA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AAa,CAAC,CAAC;YAC9C,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBACxC,OAAO;aACR;YAED,OAAO,CAAC,MAAM,CAAC;gBACb,IAAI;gBACJ,SAAS,EAAE,eAAe;gBAC1B,IAAI,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,EAAE;aAC1C,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,mBAAmB,EAAE,qBAAqB;YAC1C,gBAAgB,EAAE,YAAY;YAC9B,aAAa,EAAE,YAAY;SAC5B,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js
index 8eb1f94..2dbbe7d 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js
@@ -1,20 +1,120 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
+exports.defaultOrder = void 0;
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
const util = __importStar(require("../util"));
-const allMemberTypes = ['field', 'method', 'constructor'].reduce((all, type) => {
+const neverConfig = {
+ type: 'string',
+ enum: ['never'],
+};
+const arrayConfig = (memberTypes) => ({
+ type: 'array',
+ items: {
+ enum: memberTypes,
+ },
+});
+const objectConfig = (memberTypes) => ({
+ type: 'object',
+ properties: {
+ memberTypes: {
+ oneOf: [arrayConfig(memberTypes), neverConfig],
+ },
+ order: {
+ type: 'string',
+ enum: ['alphabetically', 'as-written'],
+ },
+ },
+ additionalProperties: false,
+});
+exports.defaultOrder = [
+ // Index signature
+ 'signature',
+ // Fields
+ 'public-static-field',
+ 'protected-static-field',
+ 'private-static-field',
+ 'public-decorated-field',
+ 'protected-decorated-field',
+ 'private-decorated-field',
+ 'public-instance-field',
+ 'protected-instance-field',
+ 'private-instance-field',
+ 'public-abstract-field',
+ 'protected-abstract-field',
+ 'private-abstract-field',
+ 'public-field',
+ 'protected-field',
+ 'private-field',
+ 'static-field',
+ 'instance-field',
+ 'abstract-field',
+ 'decorated-field',
+ 'field',
+ // Constructors
+ 'public-constructor',
+ 'protected-constructor',
+ 'private-constructor',
+ 'constructor',
+ // Methods
+ 'public-static-method',
+ 'protected-static-method',
+ 'private-static-method',
+ 'public-decorated-method',
+ 'protected-decorated-method',
+ 'private-decorated-method',
+ 'public-instance-method',
+ 'protected-instance-method',
+ 'private-instance-method',
+ 'public-abstract-method',
+ 'protected-abstract-method',
+ 'private-abstract-method',
+ 'public-method',
+ 'protected-method',
+ 'private-method',
+ 'static-method',
+ 'instance-method',
+ 'abstract-method',
+ 'decorated-method',
+ 'method',
+];
+const allMemberTypes = ['signature', 'field', 'method', 'constructor'].reduce((all, type) => {
all.push(type);
['public', 'protected', 'private'].forEach(accessibility => {
- all.push(`${accessibility}-${type}`); // e.g. `public-field`
- if (type !== 'constructor') {
- // There is no `static-constructor` or `instance-constructor or `abstract-constructor`
+ if (type !== 'signature') {
+ all.push(`${accessibility}-${type}`); // e.g. `public-field`
+ }
+ // Only class instance fields and methods can have decorators attached to them
+ if (type === 'field' || type === 'method') {
+ const decoratedMemberType = `${accessibility}-decorated-${type}`;
+ const decoratedMemberTypeNoAccessibility = `decorated-${type}`;
+ if (!all.includes(decoratedMemberType)) {
+ all.push(decoratedMemberType);
+ }
+ if (!all.includes(decoratedMemberTypeNoAccessibility)) {
+ all.push(decoratedMemberTypeNoAccessibility);
+ }
+ }
+ if (type !== 'constructor' && type !== 'signature') {
+ // There is no `static-constructor` or `instance-constructor` or `abstract-constructor`
['static', 'instance', 'abstract'].forEach(scope => {
if (!all.includes(`${scope}-${type}`)) {
all.push(`${scope}-${type}`);
@@ -25,7 +125,152 @@
});
return all;
}, []);
-allMemberTypes.unshift('signature');
+const functionExpressions = [
+ experimental_utils_1.AST_NODE_TYPES.FunctionExpression,
+ experimental_utils_1.AST_NODE_TYPES.ArrowFunctionExpression,
+];
+/**
+ * Gets the node type.
+ *
+ * @param node the node to be evaluated.
+ */
+function getNodeType(node) {
+ // TODO: add missing TSCallSignatureDeclaration
+ switch (node.type) {
+ case experimental_utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition:
+ case experimental_utils_1.AST_NODE_TYPES.MethodDefinition:
+ return node.kind;
+ case experimental_utils_1.AST_NODE_TYPES.TSMethodSignature:
+ return 'method';
+ case experimental_utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration:
+ return 'constructor';
+ case experimental_utils_1.AST_NODE_TYPES.TSAbstractClassProperty:
+ case experimental_utils_1.AST_NODE_TYPES.ClassProperty:
+ return node.value && functionExpressions.includes(node.value.type)
+ ? 'method'
+ : 'field';
+ case experimental_utils_1.AST_NODE_TYPES.TSPropertySignature:
+ return 'field';
+ case experimental_utils_1.AST_NODE_TYPES.TSIndexSignature:
+ return 'signature';
+ default:
+ return null;
+ }
+}
+/**
+ * Gets the member name based on the member type.
+ *
+ * @param node the node to be evaluated.
+ * @param sourceCode
+ */
+function getMemberName(node, sourceCode) {
+ switch (node.type) {
+ case experimental_utils_1.AST_NODE_TYPES.TSPropertySignature:
+ case experimental_utils_1.AST_NODE_TYPES.TSMethodSignature:
+ case experimental_utils_1.AST_NODE_TYPES.TSAbstractClassProperty:
+ case experimental_utils_1.AST_NODE_TYPES.ClassProperty:
+ return util.getNameFromMember(node, sourceCode);
+ case experimental_utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition:
+ case experimental_utils_1.AST_NODE_TYPES.MethodDefinition:
+ return node.kind === 'constructor'
+ ? 'constructor'
+ : util.getNameFromMember(node, sourceCode);
+ case experimental_utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration:
+ return 'new';
+ case experimental_utils_1.AST_NODE_TYPES.TSIndexSignature:
+ return util.getNameFromIndexSignature(node);
+ default:
+ return null;
+ }
+}
+/**
+ * Gets the calculated rank using the provided method definition.
+ * The algorithm is as follows:
+ * - Get the rank based on the accessibility-scope-type name, e.g. public-instance-field
+ * - If there is no order for accessibility-scope-type, then strip out the accessibility.
+ * - If there is no order for scope-type, then strip out the scope.
+ * - If there is no order for type, then return -1
+ * @param memberGroups the valid names to be validated.
+ * @param orderConfig the current order to be validated.
+ *
+ * @return Index of the matching member type in the order configuration.
+ */
+function getRankOrder(memberGroups, orderConfig) {
+ let rank = -1;
+ const stack = memberGroups.slice(); // Get a copy of the member groups
+ while (stack.length > 0 && rank === -1) {
+ rank = orderConfig.indexOf(stack.shift());
+ }
+ return rank;
+}
+/**
+ * Gets the rank of the node given the order.
+ * @param node the node to be evaluated.
+ * @param orderConfig the current order to be validated.
+ * @param supportsModifiers a flag indicating whether the type supports modifiers (scope or accessibility) or not.
+ */
+function getRank(node, orderConfig, supportsModifiers) {
+ const type = getNodeType(node);
+ if (type === null) {
+ // shouldn't happen but just in case, put it on the end
+ return orderConfig.length - 1;
+ }
+ const abstract = node.type === experimental_utils_1.AST_NODE_TYPES.TSAbstractClassProperty ||
+ node.type === experimental_utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition;
+ const scope = 'static' in node && node.static
+ ? 'static'
+ : abstract
+ ? 'abstract'
+ : 'instance';
+ const accessibility = 'accessibility' in node && node.accessibility
+ ? node.accessibility
+ : 'public';
+ // Collect all existing member groups (e.g. 'public-instance-field', 'instance-field', 'public-field', 'constructor' etc.)
+ const memberGroups = [];
+ if (supportsModifiers) {
+ const decorated = 'decorators' in node && node.decorators.length > 0;
+ if (decorated && (type === 'field' || type === 'method')) {
+ memberGroups.push(`${accessibility}-decorated-${type}`);
+ memberGroups.push(`decorated-${type}`);
+ }
+ if (type !== 'constructor') {
+ // Constructors have no scope
+ memberGroups.push(`${accessibility}-${scope}-${type}`);
+ memberGroups.push(`${scope}-${type}`);
+ }
+ memberGroups.push(`${accessibility}-${type}`);
+ }
+ memberGroups.push(type);
+ return getRankOrder(memberGroups, orderConfig);
+}
+/**
+ * Gets the lowest possible rank higher than target.
+ * e.g. given the following order:
+ * ...
+ * public-static-method
+ * protected-static-method
+ * private-static-method
+ * public-instance-method
+ * protected-instance-method
+ * private-instance-method
+ * ...
+ * and considering that a public-instance-method has already been declared, so ranks contains
+ * public-instance-method, then the lowest possible rank for public-static-method is
+ * public-instance-method.
+ * @param ranks the existing ranks in the object.
+ * @param target the target rank.
+ * @param order the current order to be validated.
+ * @returns the name of the lowest possible rank without dashes (-).
+ */
+function getLowestRank(ranks, target, order) {
+ let lowest = ranks[ranks.length - 1];
+ ranks.forEach(rank => {
+ if (rank > target) {
+ lowest = Math.min(lowest, rank);
+ }
+ });
+ return order[lowest].replace(/-/g, ' ');
+}
exports.default = util.createRule({
name: 'member-ordering',
meta: {
@@ -36,7 +281,8 @@
recommended: false,
},
messages: {
- incorrectOrder: 'Member {{name}} should be declared before all {{rank}} definitions.',
+ incorrectOrder: 'Member "{{member}}" should be declared before member "{{beforeMember}}".',
+ incorrectGroupOrder: 'Member {{name}} should be declared before all {{rank}} definitions.',
},
schema: [
{
@@ -44,67 +290,37 @@
properties: {
default: {
oneOf: [
- {
- enum: ['never'],
- },
- {
- type: 'array',
- items: {
- enum: allMemberTypes,
- },
- },
+ neverConfig,
+ arrayConfig(allMemberTypes),
+ objectConfig(allMemberTypes),
],
},
classes: {
oneOf: [
- {
- enum: ['never'],
- },
- {
- type: 'array',
- items: {
- enum: allMemberTypes,
- },
- },
+ neverConfig,
+ arrayConfig(allMemberTypes),
+ objectConfig(allMemberTypes),
],
},
classExpressions: {
oneOf: [
- {
- enum: ['never'],
- },
- {
- type: 'array',
- items: {
- enum: allMemberTypes,
- },
- },
+ neverConfig,
+ arrayConfig(allMemberTypes),
+ objectConfig(allMemberTypes),
],
},
interfaces: {
oneOf: [
- {
- enum: ['never'],
- },
- {
- type: 'array',
- items: {
- enum: ['signature', 'field', 'method', 'constructor'],
- },
- },
+ neverConfig,
+ arrayConfig(['signature', 'field', 'method', 'constructor']),
+ objectConfig(['signature', 'field', 'method', 'constructor']),
],
},
typeLiterals: {
oneOf: [
- {
- enum: ['never'],
- },
- {
- type: 'array',
- items: {
- enum: ['signature', 'field', 'method', 'constructor'],
- },
- },
+ neverConfig,
+ arrayConfig(['signature', 'field', 'method', 'constructor']),
+ objectConfig(['signature', 'field', 'method', 'constructor']),
],
},
},
@@ -114,230 +330,137 @@
},
defaultOptions: [
{
- default: [
- 'signature',
- 'public-static-field',
- 'protected-static-field',
- 'private-static-field',
- 'public-instance-field',
- 'protected-instance-field',
- 'private-instance-field',
- 'public-abstract-field',
- 'protected-abstract-field',
- 'private-abstract-field',
- 'public-field',
- 'protected-field',
- 'private-field',
- 'static-field',
- 'instance-field',
- 'abstract-field',
- 'field',
- 'constructor',
- 'public-static-method',
- 'protected-static-method',
- 'private-static-method',
- 'public-instance-method',
- 'protected-instance-method',
- 'private-instance-method',
- 'public-abstract-method',
- 'protected-abstract-method',
- 'private-abstract-method',
- 'public-method',
- 'protected-method',
- 'private-method',
- 'static-method',
- 'instance-method',
- 'abstract-method',
- 'method',
- ],
+ default: exports.defaultOrder,
},
],
create(context, [options]) {
- const sourceCode = context.getSourceCode();
- const functionExpressions = [
- experimental_utils_1.AST_NODE_TYPES.FunctionExpression,
- experimental_utils_1.AST_NODE_TYPES.ArrowFunctionExpression,
- ];
/**
- * Gets the node type.
- * @param node the node to be evaluated.
- */
- function getNodeType(node) {
- // TODO: add missing TSCallSignatureDeclaration
- switch (node.type) {
- case experimental_utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition:
- case experimental_utils_1.AST_NODE_TYPES.MethodDefinition:
- return node.kind;
- case experimental_utils_1.AST_NODE_TYPES.TSMethodSignature:
- return 'method';
- case experimental_utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration:
- return 'constructor';
- case experimental_utils_1.AST_NODE_TYPES.TSAbstractClassProperty:
- case experimental_utils_1.AST_NODE_TYPES.ClassProperty:
- return node.value && functionExpressions.includes(node.value.type)
- ? 'method'
- : 'field';
- case experimental_utils_1.AST_NODE_TYPES.TSPropertySignature:
- return 'field';
- case experimental_utils_1.AST_NODE_TYPES.TSIndexSignature:
- return 'signature';
- default:
- return null;
- }
- }
- /**
- * Gets the member name based on the member type.
- * @param node the node to be evaluated.
- */
- function getMemberName(node) {
- switch (node.type) {
- case experimental_utils_1.AST_NODE_TYPES.TSPropertySignature:
- case experimental_utils_1.AST_NODE_TYPES.TSMethodSignature:
- case experimental_utils_1.AST_NODE_TYPES.TSAbstractClassProperty:
- case experimental_utils_1.AST_NODE_TYPES.ClassProperty:
- return util.getNameFromMember(node, sourceCode);
- case experimental_utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition:
- case experimental_utils_1.AST_NODE_TYPES.MethodDefinition:
- return node.kind === 'constructor'
- ? 'constructor'
- : util.getNameFromMember(node, sourceCode);
- case experimental_utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration:
- return 'new';
- case experimental_utils_1.AST_NODE_TYPES.TSIndexSignature:
- return util.getNameFromIndexSignature(node);
- default:
- return null;
- }
- }
- /**
- * Gets the calculated rank using the provided method definition.
- * The algorithm is as follows:
- * - Get the rank based on the accessibility-scope-type name, e.g. public-instance-field
- * - If there is no order for accessibility-scope-type, then strip out the accessibility.
- * - If there is no order for scope-type, then strip out the scope.
- * - If there is no order for type, then return -1
- * @param memberTypes the valid names to be validated.
- * @param order the current order to be validated.
+ * Checks if the member groups are correctly sorted.
*
- * @return Index of the matching member type in the order configuration.
+ * @param members Members to be validated.
+ * @param groupOrder Group order to be validated.
+ * @param supportsModifiers A flag indicating whether the type supports modifiers (scope or accessibility) or not.
+ *
+ * @return Array of member groups or null if one of the groups is not correctly sorted.
*/
- function getRankOrder(memberTypes, order) {
- let rank = -1;
- const stack = memberTypes.slice(); // Get a copy of the member types
- while (stack.length > 0 && rank === -1) {
- rank = order.indexOf(stack.shift());
- }
- return rank;
- }
- /**
- * Gets the rank of the node given the order.
- * @param node the node to be evaluated.
- * @param order the current order to be validated.
- * @param supportsModifiers a flag indicating whether the type supports modifiers (scope or accessibility) or not.
- */
- function getRank(node, order, supportsModifiers) {
- const type = getNodeType(node);
- if (type === null) {
- // shouldn't happen but just in case, put it on the end
- return order.length - 1;
- }
- const abstract = node.type === experimental_utils_1.AST_NODE_TYPES.TSAbstractClassProperty ||
- node.type === experimental_utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition;
- const scope = 'static' in node && node.static
- ? 'static'
- : abstract
- ? 'abstract'
- : 'instance';
- const accessibility = 'accessibility' in node && node.accessibility
- ? node.accessibility
- : 'public';
- const memberTypes = [];
- if (supportsModifiers) {
- if (type !== 'constructor') {
- // Constructors have no scope
- memberTypes.push(`${accessibility}-${scope}-${type}`);
- memberTypes.push(`${scope}-${type}`);
+ function checkGroupSort(members, groupOrder, supportsModifiers) {
+ const previousRanks = [];
+ const memberGroups = [];
+ let isCorrectlySorted = true;
+ // Find first member which isn't correctly sorted
+ members.forEach(member => {
+ const rank = getRank(member, groupOrder, supportsModifiers);
+ const name = getMemberName(member, context.getSourceCode());
+ const rankLastMember = previousRanks[previousRanks.length - 1];
+ if (rank === -1) {
+ return;
}
- memberTypes.push(`${accessibility}-${type}`);
- }
- memberTypes.push(type);
- return getRankOrder(memberTypes, order);
- }
- /**
- * Gets the lowest possible rank higher than target.
- * e.g. given the following order:
- * ...
- * public-static-method
- * protected-static-method
- * private-static-method
- * public-instance-method
- * protected-instance-method
- * private-instance-method
- * ...
- * and considering that a public-instance-method has already been declared, so ranks contains
- * public-instance-method, then the lowest possible rank for public-static-method is
- * public-instance-method.
- * @param ranks the existing ranks in the object.
- * @param target the target rank.
- * @param order the current order to be validated.
- * @returns the name of the lowest possible rank without dashes (-).
- */
- function getLowestRank(ranks, target, order) {
- let lowest = ranks[ranks.length - 1];
- ranks.forEach(rank => {
- if (rank > target) {
- lowest = Math.min(lowest, rank);
+ // Works for 1st item because x < undefined === false for any x (typeof string)
+ if (rank < rankLastMember) {
+ context.report({
+ node: member,
+ messageId: 'incorrectGroupOrder',
+ data: {
+ name,
+ rank: getLowestRank(previousRanks, rank, groupOrder),
+ },
+ });
+ isCorrectlySorted = false;
+ }
+ else if (rank === rankLastMember) {
+ // Same member group --> Push to existing member group array
+ memberGroups[memberGroups.length - 1].push(member);
+ }
+ else {
+ // New member group --> Create new member group array
+ previousRanks.push(rank);
+ memberGroups.push([member]);
}
});
- return order[lowest].replace(/-/g, ' ');
+ return isCorrectlySorted ? memberGroups : null;
+ }
+ /**
+ * Checks if the members are alphabetically sorted.
+ *
+ * @param members Members to be validated.
+ *
+ * @return True if all members are correctly sorted.
+ */
+ function checkAlphaSort(members) {
+ let previousName = '';
+ let isCorrectlySorted = true;
+ // Find first member which isn't correctly sorted
+ members.forEach(member => {
+ const name = getMemberName(member, context.getSourceCode());
+ // Note: Not all members have names
+ if (name) {
+ if (name < previousName) {
+ context.report({
+ node: member,
+ messageId: 'incorrectOrder',
+ data: {
+ member: name,
+ beforeMember: previousName,
+ },
+ });
+ isCorrectlySorted = false;
+ }
+ previousName = name;
+ }
+ });
+ return isCorrectlySorted;
}
/**
* Validates if all members are correctly sorted.
*
* @param members Members to be validated.
- * @param order Current order to be validated.
+ * @param orderConfig Order config to be validated.
* @param supportsModifiers A flag indicating whether the type supports modifiers (scope or accessibility) or not.
*/
- function validateMembersOrder(members, order, supportsModifiers) {
- if (members && order !== 'never') {
- const previousRanks = [];
- // Find first member which isn't correctly sorted
- members.forEach(member => {
- const rank = getRank(member, order, supportsModifiers);
- if (rank !== -1) {
- if (rank < previousRanks[previousRanks.length - 1]) {
- context.report({
- node: member,
- messageId: 'incorrectOrder',
- data: {
- name: getMemberName(member),
- rank: getLowestRank(previousRanks, rank, order),
- },
- });
- }
- else {
- previousRanks.push(rank);
- }
- }
- });
+ function validateMembersOrder(members, orderConfig, supportsModifiers) {
+ if (orderConfig === 'never') {
+ return;
+ }
+ // Standardize config
+ let order = null;
+ let memberTypes;
+ if (Array.isArray(orderConfig)) {
+ memberTypes = orderConfig;
+ }
+ else {
+ order = orderConfig.order;
+ memberTypes = orderConfig.memberTypes;
+ }
+ // Check order
+ if (Array.isArray(memberTypes)) {
+ const grouped = checkGroupSort(members, memberTypes, supportsModifiers);
+ if (grouped === null) {
+ return;
+ }
+ if (order === 'alphabetically') {
+ grouped.some(groupMember => !checkAlphaSort(groupMember));
+ }
+ }
+ else if (order === 'alphabetically') {
+ checkAlphaSort(members);
}
}
return {
ClassDeclaration(node) {
var _a;
- validateMembersOrder(node.body.body, (_a = options.classes, (_a !== null && _a !== void 0 ? _a : options.default)), true);
+ validateMembersOrder(node.body.body, (_a = options.classes) !== null && _a !== void 0 ? _a : options.default, true);
},
ClassExpression(node) {
var _a;
- validateMembersOrder(node.body.body, (_a = options.classExpressions, (_a !== null && _a !== void 0 ? _a : options.default)), true);
+ validateMembersOrder(node.body.body, (_a = options.classExpressions) !== null && _a !== void 0 ? _a : options.default, true);
},
TSInterfaceDeclaration(node) {
var _a;
- validateMembersOrder(node.body.body, (_a = options.interfaces, (_a !== null && _a !== void 0 ? _a : options.default)), false);
+ validateMembersOrder(node.body.body, (_a = options.interfaces) !== null && _a !== void 0 ? _a : options.default, false);
},
TSTypeLiteral(node) {
var _a;
- validateMembersOrder(node.members, (_a = options.typeLiterals, (_a !== null && _a !== void 0 ? _a : options.default)), false);
+ validateMembersOrder(node.members, (_a = options.typeLiterals) !== null && _a !== void 0 ? _a : options.default, false);
},
};
},
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map
index 27863fd..912eb4b 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map
@@ -1 +1 @@
-{"version":3,"file":"member-ordering.js","sourceRoot":"","sources":["../../src/rules/member-ordering.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAchC,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,MAAM,CAC9D,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;IACZ,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEf,CAAC,QAAQ,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE;QACzD,GAAG,CAAC,IAAI,CAAC,GAAG,aAAa,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,sBAAsB;QAE5D,IAAI,IAAI,KAAK,aAAa,EAAE;YAC1B,sFAAsF;YACtF,CAAC,QAAQ,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBACjD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,KAAK,IAAI,IAAI,EAAE,CAAC,EAAE;oBACrC,GAAG,CAAC,IAAI,CAAC,GAAG,KAAK,IAAI,IAAI,EAAE,CAAC,CAAC;iBAC9B;gBAED,GAAG,CAAC,IAAI,CAAC,GAAG,aAAa,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC,CAA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CAAC,MAAM,GAAG,CAAC,CAAC,EAAE;4BAClD,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI,EAAE,MAAM;gCACZ,SAAS,EAAE,gBAAgB;gCAC3B,IAAI,EAAE;oCACJ,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC;oCAC3B,IAAI,EAAE,aAAa,CAAC,aAAa,EAAE,IAAI,EAAE,KAAK,CAAC;iCAChD;6BACF,CAAC,CAAC;yBACJ;6BAAM;4BACL,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;yBAC1B;qBACF;gBACH,CAAC,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,gBAAgB,CAAC,IAAI;;gBACnB,oBAAoB,CAClB,IAAI,CAAC,IAAI,CAAC,IAAI,QACd,OAAO,CAAC,OAAO,uCAAI,OAAO,CAAC,OAAQ,IACnC,IAAI,CACL,CAAC;YACJ,CAAC;YACD,eAAe,CAAC,IAAI;;gBAClB,oBAAoB,CAClB,IAAI,CAAC,IAAI,CAAC,IAAI,QACd,OAAO,CAAC,gBAAgB,uCAAI,OAAO,CAAC,OAAQ,IAC5C,IAAI,CACL,CAAC;YACJ,CAAC;YACD,sBAAsB,CAAC,IAAI;;gBACzB,oBAAoB,CAClB,IAAI,CAAC,IAAI,CAAC,IAAI,QACd,OAAO,CAAC,UAAU,uCAAI,OAAO,CAAC,OAAQ,IACtC,KAAK,CACN,CAAC;YACJ,CAAC;YACD,aAAa,CAAC,IAAI;;gBAChB,oBAAoB,CAClB,IAAI,CAAC,OAAO,QACZ,OAAO,CAAC,YAAY,uCAAI,OAAO,CAAC,OAAQ,IACxC,KAAK,CACN,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"member-ordering.js","sourceRoot":"","sources":["../../src/rules/member-ordering.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,8EAK+C;AAC/C,8CAAgC;AAsBhC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,EACtC,KAAK,CACN,CAAC;YACJ,CAAC;YACD,aAAa,CAAC,IAAI;;gBAChB,oBAAoB,CAClB,IAAI,CAAC,OAAO,QACZ,OAAO,CAAC,YAAY,mCAAI,OAAO,CAAC,OAAQ,EACxC,KAAK,CACN,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js
new file mode 100644
index 0000000..f73a017
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js
@@ -0,0 +1,162 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const util = __importStar(require("../util"));
+exports.default = util.createRule({
+ name: 'method-signature-style',
+ meta: {
+ type: 'suggestion',
+ docs: {
+ description: 'Enforces using a particular method signature syntax.',
+ category: 'Best Practices',
+ recommended: false,
+ },
+ fixable: 'code',
+ messages: {
+ errorMethod: 'Shorthand method signature is forbidden. Use a function property instead.',
+ errorProperty: 'Function property signature is forbidden. Use a method shorthand instead.',
+ },
+ schema: [
+ {
+ enum: ['property', 'method'],
+ },
+ ],
+ },
+ defaultOptions: ['property'],
+ create(context, [mode]) {
+ const sourceCode = context.getSourceCode();
+ function getMethodKey(node) {
+ let key = sourceCode.getText(node.key);
+ if (node.computed) {
+ key = `[${key}]`;
+ }
+ if (node.optional) {
+ key = `${key}?`;
+ }
+ if (node.readonly) {
+ key = `readonly ${key}`;
+ }
+ return key;
+ }
+ function getMethodParams(node) {
+ let params = '()';
+ if (node.params.length > 0) {
+ const openingParen = util.nullThrows(sourceCode.getTokenBefore(node.params[0], util.isOpeningParenToken), 'Missing opening paren before first parameter');
+ const closingParen = util.nullThrows(sourceCode.getTokenAfter(node.params[node.params.length - 1], util.isClosingParenToken), 'Missing closing paren after last parameter');
+ params = sourceCode.text.substring(openingParen.range[0], closingParen.range[1]);
+ }
+ if (node.typeParameters != null) {
+ const typeParams = sourceCode.getText(node.typeParameters);
+ params = `${typeParams}${params}`;
+ }
+ return params;
+ }
+ function getMethodReturnType(node) {
+ return sourceCode.getText(node.returnType.typeAnnotation);
+ }
+ function getDelimiter(node) {
+ const lastToken = sourceCode.getLastToken(node);
+ if (lastToken &&
+ (util.isSemicolonToken(lastToken) || util.isCommaToken(lastToken))) {
+ return lastToken.value;
+ }
+ return '';
+ }
+ return {
+ TSMethodSignature(methodNode) {
+ var _a;
+ if (mode === 'method') {
+ return;
+ }
+ const duplicatedKeyMethodNodes = ((_a = methodNode.parent) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.TSInterfaceBody
+ ? methodNode.parent.body.filter((element) => element.type === experimental_utils_1.AST_NODE_TYPES.TSMethodSignature &&
+ element !== methodNode &&
+ getMethodKey(element) === getMethodKey(methodNode))
+ : [];
+ if (duplicatedKeyMethodNodes.length > 0) {
+ context.report({
+ node: methodNode,
+ messageId: 'errorMethod',
+ *fix(fixer) {
+ const methodNodes = [
+ methodNode,
+ ...duplicatedKeyMethodNodes,
+ ].sort((a, b) => (a.range[0] < b.range[0] ? -1 : 1));
+ const typeString = methodNodes.reduce((str, node, idx, nodes) => {
+ const params = getMethodParams(node);
+ const returnType = getMethodReturnType(node);
+ return `${str}(${params} => ${returnType})${idx !== nodes.length - 1 ? ' & ' : ''}`;
+ }, '');
+ const key = getMethodKey(methodNode);
+ const delimiter = getDelimiter(methodNode);
+ yield fixer.replaceText(methodNode, `${key}: ${typeString}${delimiter}`);
+ for (const node of duplicatedKeyMethodNodes) {
+ const lastToken = sourceCode.getLastToken(node);
+ if (lastToken) {
+ const nextToken = sourceCode.getTokenAfter(lastToken);
+ if (nextToken) {
+ yield fixer.remove(node);
+ yield fixer.replaceTextRange([lastToken.range[1], nextToken.range[0]], '');
+ }
+ }
+ }
+ },
+ });
+ return;
+ }
+ context.report({
+ node: methodNode,
+ messageId: 'errorMethod',
+ fix: fixer => {
+ const key = getMethodKey(methodNode);
+ const params = getMethodParams(methodNode);
+ const returnType = getMethodReturnType(methodNode);
+ const delimiter = getDelimiter(methodNode);
+ return fixer.replaceText(methodNode, `${key}: ${params} => ${returnType}${delimiter}`);
+ },
+ });
+ },
+ TSPropertySignature(propertyNode) {
+ var _a;
+ const typeNode = (_a = propertyNode.typeAnnotation) === null || _a === void 0 ? void 0 : _a.typeAnnotation;
+ if ((typeNode === null || typeNode === void 0 ? void 0 : typeNode.type) !== experimental_utils_1.AST_NODE_TYPES.TSFunctionType) {
+ return;
+ }
+ if (mode === 'property') {
+ return;
+ }
+ context.report({
+ node: propertyNode,
+ messageId: 'errorProperty',
+ fix: fixer => {
+ const key = getMethodKey(propertyNode);
+ const params = getMethodParams(typeNode);
+ const returnType = getMethodReturnType(typeNode);
+ const delimiter = getDelimiter(propertyNode);
+ return fixer.replaceText(propertyNode, `${key}${params}: ${returnType}${delimiter}`);
+ },
+ });
+ },
+ };
+ },
+});
+//# sourceMappingURL=method-signature-style.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js.map
new file mode 100644
index 0000000..e7081d2
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"method-signature-style.js","sourceRoot":"","sources":["../../src/rules/method-signature-style.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAKhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,sDAAsD;YACnE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;SACnB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,WAAW,EACT,2EAA2E;YAC7E,aAAa,EACX,2EAA2E;SAC9E;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;aAC7B;SACF;KACF;IACD,cAAc,EAAE,CAAC,UAAU,CAAC;IAE5B,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC;QACpB,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C,SAAS,YAAY,CACnB,IAA+D;YAE/D,IAAI,GAAG,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACvC,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC;aAClB;YACD,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;aACjB;YACD,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,GAAG,GAAG,YAAY,GAAG,EAAE,CAAC;aACzB;YACD,OAAO,GAAG,CAAC;QACb,CAAC;QAED,SAAS,eAAe,CACtB,I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ACV,GAAG,GAAG,KAAK,MAAM,OAAO,UAAU,GAAG,SAAS,EAAE,CACjD,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;YACD,mBAAmB,CAAC,YAAY;;gBAC9B,MAAM,QAAQ,SAAG,YAAY,CAAC,cAAc,0CAAE,cAAc,CAAC;gBAC7D,IAAI,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,MAAK,mCAAc,CAAC,cAAc,EAAE;oBACpD,OAAO;iBACR;gBAED,IAAI,IAAI,KAAK,UAAU,EAAE;oBACvB,OAAO;iBACR;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,YAAY;oBAClB,SAAS,EAAE,eAAe;oBAC1B,GAAG,EAAE,KAAK,CAAC,EAAE;wBACX,MAAM,GAAG,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;wBACvC,MAAM,MAAM,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;wBACzC,MAAM,UAAU,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;wBACjD,MAAM,SAAS,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;wBAC7C,OAAO,KAAK,CAAC,WAAW,CACtB,YAAY,EACZ,GAAG,GAAG,GAAG,MAAM,KAAK,UAAU,GAAG,SAAS,EAAE,CAC7C,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js
index 7f2e651..e709fd7 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js
@@ -1,12 +1,25 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
+exports.selectorTypeToMessageString = void 0;
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
const util = __importStar(require("../util"));
// #region Options Type Config
@@ -16,7 +29,6 @@
PredefinedFormats[PredefinedFormats["strictCamelCase"] = 2] = "strictCamelCase";
PredefinedFormats[PredefinedFormats["PascalCase"] = 4] = "PascalCase";
PredefinedFormats[PredefinedFormats["StrictPascalCase"] = 8] = "StrictPascalCase";
- // eslint-disable-next-line @typescript-eslint/camelcase
PredefinedFormats[PredefinedFormats["snake_case"] = 16] = "snake_case";
PredefinedFormats[PredefinedFormats["UPPER_CASE"] = 32] = "UPPER_CASE";
})(PredefinedFormats || (PredefinedFormats = {}));
@@ -55,12 +67,13 @@
})(MetaSelectors || (MetaSelectors = {}));
var Modifiers;
(function (Modifiers) {
- Modifiers[Modifiers["readonly"] = 1] = "readonly";
- Modifiers[Modifiers["static"] = 2] = "static";
- Modifiers[Modifiers["public"] = 4] = "public";
- Modifiers[Modifiers["protected"] = 8] = "protected";
- Modifiers[Modifiers["private"] = 16] = "private";
- Modifiers[Modifiers["abstract"] = 32] = "abstract";
+ Modifiers[Modifiers["const"] = 1] = "const";
+ Modifiers[Modifiers["readonly"] = 2] = "readonly";
+ Modifiers[Modifiers["static"] = 4] = "static";
+ Modifiers[Modifiers["public"] = 8] = "public";
+ Modifiers[Modifiers["protected"] = 16] = "protected";
+ Modifiers[Modifiers["private"] = 32] = "private";
+ Modifiers[Modifiers["abstract"] = 64] = "abstract";
})(Modifiers || (Modifiers = {}));
var TypeModifiers;
(function (TypeModifiers) {
@@ -159,13 +172,59 @@
},
];
}
+function selectorsSchema() {
+ return {
+ type: 'object',
+ properties: Object.assign(Object.assign({}, FORMAT_OPTIONS_PROPERTIES), {
+ filter: {
+ oneOf: [
+ {
+ type: 'string',
+ minLength: 1,
+ },
+ MATCH_REGEX_SCHEMA,
+ ],
+ },
+ selector: {
+ type: 'array',
+ items: {
+ type: 'string',
+ enum: [
+ ...util.getEnumNames(MetaSelectors),
+ ...util.getEnumNames(Selectors),
+ ],
+ },
+ additionalItems: false,
+ },
+ modifiers: {
+ type: 'array',
+ items: {
+ type: 'string',
+ enum: util.getEnumNames(Modifiers),
+ },
+ additionalItems: false,
+ },
+ types: {
+ type: 'array',
+ items: {
+ type: 'string',
+ enum: util.getEnumNames(TypeModifiers),
+ },
+ additionalItems: false,
+ },
+ }),
+ required: ['selector', 'format'],
+ additionalProperties: false,
+ };
+}
const SCHEMA = {
type: 'array',
items: {
oneOf: [
+ selectorsSchema(),
...selectorSchema('default', false, util.getEnumNames(Modifiers)),
...selectorSchema('variableLike', false),
- ...selectorSchema('variable', true),
+ ...selectorSchema('variable', true, ['const']),
...selectorSchema('function', false),
...selectorSchema('parameter', true),
...selectorSchema('memberLike', false, [
@@ -248,17 +307,19 @@
},
type: 'suggestion',
messages: {
- unexpectedUnderscore: '{{type}} name {{name}} must not have a {{position}} underscore.',
- missingUnderscore: '{{type}} name {{name}} must have a {{position}} underscore',
- missingAffix: '{{type}} name {{name}} must have one of the following {{position}}es: {{affixes}}',
- satisfyCustom: '{{type}} name {{name}} must {{regexMatch}} the RegExp: {{regex}}',
- doesNotMatchFormat: '{{type}} name {{name}} must match one of the following formats: {{formats}}',
+ unexpectedUnderscore: '{{type}} name `{{name}}` must not have a {{position}} underscore.',
+ missingUnderscore: '{{type}} name `{{name}}` must have a {{position}} underscore.',
+ missingAffix: '{{type}} name `{{name}}` must have one of the following {{position}}es: {{affixes}}',
+ satisfyCustom: '{{type}} name `{{name}}` must {{regexMatch}} the RegExp: {{regex}}',
+ doesNotMatchFormat: '{{type}} name `{{name}}` must match one of the following formats: {{formats}}',
+ doesNotMatchFormatTrimmed: '{{type}} name `{{name}}` trimmed as `{{processedName}}` must match one of the following formats: {{formats}}',
},
schema: SCHEMA,
},
defaultOptions: defaultCamelCaseAllTheThingsConfig,
create(contextWithoutDefaults) {
- const context = contextWithoutDefaults.options
+ const context = contextWithoutDefaults.options &&
+ contextWithoutDefaults.options.length > 0
? contextWithoutDefaults
: // only apply the defaults when the user provides no config
Object.setPrototypeOf({
@@ -301,8 +362,15 @@
}
const identifiers = [];
getIdentifiersFromPattern(node.id, identifiers);
+ const modifiers = new Set();
+ const parent = node.parent;
+ if (parent &&
+ parent.type === experimental_utils_1.AST_NODE_TYPES.VariableDeclaration &&
+ parent.kind === 'const') {
+ modifiers.add(Modifiers.const);
+ }
identifiers.forEach(i => {
- validator(i);
+ validator(i, modifiers);
});
},
// #endregion
@@ -348,7 +416,7 @@
},
// #endregion parameterProperty
// #region property
- 'Property[computed = false][kind = "init"][value.type != "ArrowFunctionExpression"][value.type != "FunctionExpression"][value.type != "TSEmptyBodyFunctionExpression"]'(node) {
+ ':not(ObjectPattern) > Property[computed = false][kind = "init"][value.type != "ArrowFunctionExpression"][value.type != "FunctionExpression"][value.type != "TSEmptyBodyFunctionExpression"]'(node) {
const modifiers = new Set([Modifiers.public]);
handleMember(validators.property, node, modifiers);
},
@@ -502,12 +570,13 @@
}
}
function parseOptions(context) {
- const normalizedOptions = context.options.map(opt => normalizeOption(opt));
- const parsedOptions = util.getEnumNames(Selectors).reduce((acc, k) => {
+ const normalizedOptions = context.options
+ .map(opt => normalizeOption(opt))
+ .reduce((acc, val) => acc.concat(val), []);
+ return util.getEnumNames(Selectors).reduce((acc, k) => {
acc[k] = createValidator(k, context, normalizedOptions);
return acc;
}, {});
- return parsedOptions;
}
function createValidator(type, context, allConfigs) {
// make sure the "highest priority" configs are checked first
@@ -589,18 +658,19 @@
}
};
// centralizes the logic for formatting the report data
- function formatReportData({ affixes, formats, originalName, position, custom, }) {
- var _a, _b, _c, _d, _e, _f;
+ function formatReportData({ affixes, formats, originalName, processedName, position, custom, }) {
+ var _a;
return {
type: selectorTypeToMessageString(type),
name: originalName,
+ processedName,
position,
- affixes: (_a = affixes) === null || _a === void 0 ? void 0 : _a.join(', '),
- formats: (_b = formats) === null || _b === void 0 ? void 0 : _b.map(f => PredefinedFormats[f]).join(', '),
- regex: (_d = (_c = custom) === null || _c === void 0 ? void 0 : _c.regex) === null || _d === void 0 ? void 0 : _d.toString(),
- regexMatch: ((_e = custom) === null || _e === void 0 ? void 0 : _e.match) === true
+ affixes: affixes === null || affixes === void 0 ? void 0 : affixes.join(', '),
+ formats: formats === null || formats === void 0 ? void 0 : formats.map(f => PredefinedFormats[f]).join(', '),
+ regex: (_a = custom === null || custom === void 0 ? void 0 : custom.regex) === null || _a === void 0 ? void 0 : _a.toString(),
+ regexMatch: (custom === null || custom === void 0 ? void 0 : custom.match) === true
? 'match'
- : ((_f = custom) === null || _f === void 0 ? void 0 : _f.match) === false
+ : (custom === null || custom === void 0 ? void 0 : custom.match) === false
? 'not match'
: null,
};
@@ -721,9 +791,12 @@
}
context.report({
node,
- messageId: 'doesNotMatchFormat',
+ messageId: originalName === name
+ ? 'doesNotMatchFormat'
+ : 'doesNotMatchFormatTrimmed',
data: formatReportData({
originalName,
+ processedName: name,
formats,
}),
});
@@ -745,22 +818,18 @@
*/
function isPascalCase(name) {
return (name.length === 0 ||
- // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
(name[0] === name[0].toUpperCase() && !name.includes('_')));
}
function isStrictPascalCase(name) {
return (name.length === 0 ||
- // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
(name[0] === name[0].toUpperCase() && hasStrictCamelHumps(name, true)));
}
function isCamelCase(name) {
return (name.length === 0 ||
- // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
(name[0] === name[0].toLowerCase() && !name.includes('_')));
}
function isStrictCamelCase(name) {
return (name.length === 0 ||
- // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
(name[0] === name[0].toLowerCase() && hasStrictCamelHumps(name, false)));
}
function hasStrictCamelHumps(name, isUpper) {
@@ -842,12 +911,12 @@
if (option.filter) {
weight |= 1 << 30;
}
- return {
+ const normalizedOption = {
// format options
format: option.format ? option.format.map(f => PredefinedFormats[f]) : null,
custom: option.custom
? {
- regex: new RegExp(option.custom.regex),
+ regex: new RegExp(option.custom.regex, 'u'),
match: option.custom.match,
}
: null,
@@ -859,23 +928,36 @@
: null,
prefix: option.prefix && option.prefix.length > 0 ? option.prefix : null,
suffix: option.suffix && option.suffix.length > 0 ? option.suffix : null,
- // selector options
- selector: isMetaSelector(option.selector)
- ? MetaSelectors[option.selector]
- : Selectors[option.selector],
- modifiers: (_d = (_c = option.modifiers) === null || _c === void 0 ? void 0 : _c.map(m => Modifiers[m]), (_d !== null && _d !== void 0 ? _d : null)),
- types: (_f = (_e = option.types) === null || _e === void 0 ? void 0 : _e.map(m => TypeModifiers[m]), (_f !== null && _f !== void 0 ? _f : null)),
+ modifiers: (_d = (_c = option.modifiers) === null || _c === void 0 ? void 0 : _c.map(m => Modifiers[m])) !== null && _d !== void 0 ? _d : null,
+ types: (_f = (_e = option.types) === null || _e === void 0 ? void 0 : _e.map(m => TypeModifiers[m])) !== null && _f !== void 0 ? _f : null,
filter: option.filter !== undefined
? typeof option.filter === 'string'
- ? { regex: new RegExp(option.filter), match: true }
+ ? { regex: new RegExp(option.filter, 'u'), match: true }
: {
- regex: new RegExp(option.filter.regex),
+ regex: new RegExp(option.filter.regex, 'u'),
match: option.filter.match,
}
: null,
// calculated ordering weight based on modifiers
modifierWeight: weight,
};
+ const selectors = Array.isArray(option.selector)
+ ? option.selector
+ : [option.selector];
+ const selectorsAllowedToHaveTypes = [
+ Selectors.variable,
+ Selectors.parameter,
+ Selectors.property,
+ Selectors.parameterProperty,
+ Selectors.accessor,
+ ];
+ const config = [];
+ selectors
+ .map(selector => isMetaSelector(selector) ? MetaSelectors[selector] : Selectors[selector])
+ .forEach(selector => selectorsAllowedToHaveTypes.includes(selector)
+ ? config.push(Object.assign({ selector: selector }, normalizedOption))
+ : config.push(Object.assign(Object.assign({ selector: selector }, normalizedOption), { types: null })));
+ return config;
}
function isCorrectType(node, config, context) {
if (config.types === null) {
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map
index 200d2ce..76ea393 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map
@@ -1 +1 @@
-{"version":3,"file":"naming-convention.js","sourceRoot":"","sources":["../../src/rules/naming-convention.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAK+C;AAE/C,8CAAgC;AAShC,8BAA8B;AAE9B,IAAK,iBAQJ;AARD,WAAK,iBAAiB;IACpB,mEAAkB,CAAA;IAClB,+EAAwB,CAAA;IACxB,qEAAmB,CAAA;IACnB,iFAAyB,CAAA;IACzB,wDAAwD;IACxD,sEAAmB,CAAA;IACnB,sEAAmB,CAAA;AACrB,CAAC,EARI,iBAAiB,KAAjB,iBAAiB,QAQrB;AAGD,IAAK,iBAIJ;AAJD,WAAK,iBAAiB;IACpB,6DAAe,CAAA;IACf,2DAAc,CAAA;IACd,+DAAgB,CAAA;AAClB,CAAC,EAJI,iBAAiB,KAAjB,iBAAiB,QAIrB;AAGD,IAAK,SAmBJ;AAnBD,WAAK,SAAS;IACZ,eAAe;IACf,iDAAiB,CAA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KAAK,iBAAiB,EAAE;oBACpC,OAAO,IAAI,CAAC;iBACb;gBACD,MAAM;aACP;SACF;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,SAAS,eAAe,CACtB,IAAa,EACb,EAA8B;IAE9B,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE;QAClB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;KACrC;IAED,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC;AAClB,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js
index 861a4c4..806672e 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -36,7 +48,7 @@
node.callee.type === experimental_utils_1.AST_NODE_TYPES.Identifier &&
node.callee.name === 'Array' &&
!node.typeParameters &&
- !util.isOptionalOptionalChain(node)) {
+ !util.isOptionalCallExpression(node)) {
context.report({
node,
messageId: 'useLiteral',
@@ -53,7 +65,6 @@
}
return {
CallExpression: check,
- OptionalCallExpression: check,
NewExpression: check,
};
},
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js.map
index 7f4596e..db44e48 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-array-constructor.js","sourceRoot":"","sources":["../../src/rules/no-array-constructor.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,OAAO;YACpB,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,UAAU,EAAE,8CAA8C;SAC3D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ;;;WAGG;QACH,SAAS,KAAK,CACZ,IAG0B;YAE1B,IACE,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC;gBAC3B,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU;gBAC9C,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,OAAO;gBAC5B,CAAC,IAAI,CAAC,cAAc;gBACpB,CAAC,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,EACnC;gBACA,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,YAAY;oBACvB,GAAG,CAAC,KAAK;wBACP,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;4BAC/B,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;yBACtC;wBACD,MAAM,QAAQ,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;wBACvD,MAAM,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;wBAE5D,OAAO,KAAK,CAAC,WAAW,CACtB,IAAI,EACJ,IAAI,QAAQ,CAAC,KAAK,CAAC,cAAc,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAC9C,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,cAAc,EAAE,KAAK;YACrB,sBAAsB,EAAE,KAAK;YAC7B,aAAa,EAAE,KAAK;SACrB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-array-constructor.js","sourceRoot":"","sources":["../../src/rules/no-array-constructor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,OAAO;YACpB,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,UAAU,EAAE,8CAA8C;SAC3D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ;;;WAGG;QACH,SAAS,KAAK,CACZ,IAAsD;YAEtD,IACE,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC;gBAC3B,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU;gBAC9C,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,OAAO;gBAC5B,CAAC,IAAI,CAAC,cAAc;gBACpB,CAAC,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,EACpC;gBACA,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,YAAY;oBACvB,GAAG,CAAC,KAAK;wBACP,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;4BAC/B,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;yBACtC;wBACD,MAAM,QAAQ,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;wBACvD,MAAM,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;wBAE5D,OAAO,KAAK,CAAC,WAAW,CACtB,IAAI,EACJ,IAAI,QAAQ,CAAC,KAAK,CAAC,cAAc,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAC9C,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,cAAc,EAAE,KAAK;YACrB,aAAa,EAAE,KAAK;SACrB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js
index c2f33cc..b3b994b 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -26,20 +38,39 @@
requiresTypeChecking: true,
},
messages: {
- baseToString: "'{{name}} {{certainty}} evaluate to '[Object object]' when stringified.",
+ baseToString: "'{{name}} {{certainty}} evaluate to '[object Object]' when stringified.",
},
- schema: [],
+ schema: [
+ {
+ type: 'object',
+ properties: {
+ ignoredTypeNames: {
+ type: 'array',
+ items: {
+ type: 'string',
+ },
+ },
+ },
+ additionalProperties: false,
+ },
+ ],
type: 'suggestion',
},
- defaultOptions: [],
- create(context) {
+ defaultOptions: [
+ {
+ ignoredTypeNames: ['RegExp'],
+ },
+ ],
+ create(context, [option]) {
+ var _a;
const parserServices = util.getParserServices(context);
const typeChecker = parserServices.program.getTypeChecker();
+ const ignoredTypeNames = (_a = option.ignoredTypeNames) !== null && _a !== void 0 ? _a : [];
function checkExpression(node, type) {
if (node.type === experimental_utils_1.AST_NODE_TYPES.Literal) {
return;
}
- const certainty = collectToStringCertainty((type !== null && type !== void 0 ? type : typeChecker.getTypeAtLocation(parserServices.esTreeNodeToTSNodeMap.get(node))));
+ const certainty = collectToStringCertainty(type !== null && type !== void 0 ? type : typeChecker.getTypeAtLocation(parserServices.esTreeNodeToTSNodeMap.get(node)));
if (certainty === Usefulness.Always) {
return;
}
@@ -54,19 +85,49 @@
}
function collectToStringCertainty(type) {
const toString = typeChecker.getPropertyOfType(type, 'toString');
- if (toString === undefined || toString.declarations.length === 0) {
+ const declarations = toString === null || toString === void 0 ? void 0 : toString.getDeclarations();
+ if (!toString || !declarations || declarations.length === 0) {
return Usefulness.Always;
}
- if (toString.declarations.every(({ parent }) => !ts.isInterfaceDeclaration(parent) || parent.name.text !== 'Object')) {
+ // Patch for old version TypeScript, the Boolean type definition missing toString()
+ if (type.flags & ts.TypeFlags.Boolean ||
+ type.flags & ts.TypeFlags.BooleanLiteral) {
return Usefulness.Always;
}
+ if (ignoredTypeNames.includes(util.getTypeName(typeChecker, type))) {
+ return Usefulness.Always;
+ }
+ if (declarations.every(({ parent }) => !ts.isInterfaceDeclaration(parent) || parent.name.text !== 'Object')) {
+ return Usefulness.Always;
+ }
+ if (type.isIntersection()) {
+ for (const subType of type.types) {
+ const subtypeUsefulness = collectToStringCertainty(subType);
+ if (subtypeUsefulness === Usefulness.Always) {
+ return Usefulness.Always;
+ }
+ }
+ return Usefulness.Never;
+ }
if (!type.isUnion()) {
return Usefulness.Never;
}
+ let allSubtypesUseful = true;
+ let someSubtypeUseful = false;
for (const subType of type.types) {
- if (collectToStringCertainty(subType) !== Usefulness.Never) {
- return Usefulness.Sometimes;
+ const subtypeUsefulness = collectToStringCertainty(subType);
+ if (subtypeUsefulness !== Usefulness.Always && allSubtypesUseful) {
+ allSubtypesUseful = false;
}
+ if (subtypeUsefulness !== Usefulness.Never && !someSubtypeUseful) {
+ someSubtypeUseful = true;
+ }
+ }
+ if (allSubtypesUseful && someSubtypeUseful) {
+ return Usefulness.Always;
+ }
+ if (someSubtypeUseful) {
+ return Usefulness.Sometimes;
}
return Usefulness.Never;
}
@@ -86,6 +147,10 @@
checkExpression(memberExpr.object);
},
TemplateLiteral(node) {
+ if (node.parent &&
+ node.parent.type === experimental_utils_1.AST_NODE_TYPES.TaggedTemplateExpression) {
+ return;
+ }
for (const expression of node.expressions) {
checkExpression(expression);
}
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map
index 48f5468..378fe4c 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-base-to-string.js","sourceRoot":"","sources":["../../src/rules/no-base-to-string.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,+CAAiC;AAEjC,8CAAgC;AAEhC,IAAK,UAIJ;AAJD,WAAK,UAAU;IACb,+CAAM,CAAA;IACN,4BAAc,CAAA;IACd,+BAAiB,CAAA;AACnB,CAAC,EAJI,UAAU,KAAV,UAAU,QAId;AAED,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,yGAAyG;YAC3G,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,YAAY,EACV,yEAAyE;SAC5E;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACvD,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE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CAAC,KAAK,UAAU,CAAC,KAAK,EAAE;oBAC1D,OAAO,UAAU,CAAC,SAAS,CAAC;iBAC7B;aACF;YAED,OAAO,UAAU,CAAC,KAAK,CAAC;QAC1B,CAAC;QAED,OAAO;YACL,yEAAyE,CACvE,IAA+D;gBAE/D,MAAM,QAAQ,GAAG,WAAW,CAAC,iBAAiB,CAC5C,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CACpD,CAAC;gBACF,MAAM,SAAS,GAAG,WAAW,CAAC,iBAAiB,CAC7C,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CACrD,CAAC;gBAEF,IAAI,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC,KAAK,QAAQ,EAAE;oBACxD,eAAe,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;iBACxC;qBAAM,IAAI,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,SAAS,CAAC,KAAK,QAAQ,EAAE;oBAChE,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;iBACtC;YACH,CAAC;YACD,mFAAmF,CACjF,IAAyB;gBAEzB,MAAM,UAAU,GAAG,IAAI,CAAC,MAAmC,CAAC;gBAC5D,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;YACrC,CAAC;YAED,eAAe,CAAC,IAA8B;gBAC5C,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,WAAW,EAAE;oBACzC,eAAe,CAAC,UAAU,CAAC,CAAC;iBAC7B;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-base-to-string.js","sourceRoot":"","sources":["../../src/rules/no-base-to-string.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,+CAAiC;AAEjC,8CAAgC;AAEhC,IAAK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CACrD,CAAC;gBAEF,IAAI,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC,KAAK,QAAQ,EAAE;oBACxD,eAAe,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;iBACxC;qBAAM,IAAI,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,SAAS,CAAC,KAAK,QAAQ,EAAE;oBAChE,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;iBACtC;YACH,CAAC;YACD,mFAAmF,CACjF,IAAyB;gBAEzB,MAAM,UAAU,GAAG,IAAI,CAAC,MAAmC,CAAC;gBAC5D,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;YACrC,CAAC;YACD,eAAe,CAAC,IAA8B;gBAC5C,IACE,IAAI,CAAC,MAAM;oBACX,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,wBAAwB,EAC5D;oBACA,OAAO;iBACR;gBACD,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,WAAW,EAAE;oBACzC,eAAe,CAAC,UAAU,CAAC,CAAC;iBAC7B;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js
new file mode 100644
index 0000000..9369dc9
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js
@@ -0,0 +1,97 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const util = __importStar(require("../util"));
+exports.default = util.createRule({
+ name: 'no-confusing-non-null-assertion',
+ meta: {
+ type: 'problem',
+ docs: {
+ description: 'Disallow non-null assertion in locations that may be confusing',
+ category: 'Stylistic Issues',
+ recommended: false,
+ },
+ fixable: 'code',
+ messages: {
+ confusingEqual: 'Confusing combinations of non-null assertion and equal test like "a! == b", which looks very similar to not equal "a !== b"',
+ confusingAssign: 'Confusing combinations of non-null assertion and equal test like "a! = b", which looks very similar to not equal "a != b"',
+ notNeedInEqualTest: 'Unnecessary non-null assertion (!) in equal test',
+ notNeedInAssign: 'Unnecessary non-null assertion (!) in assignment left hand',
+ wrapUpLeft: 'Wrap up left hand to avoid putting non-null assertion "!" and "=" together',
+ },
+ schema: [],
+ },
+ defaultOptions: [],
+ create(context) {
+ const sourceCode = context.getSourceCode();
+ return {
+ 'BinaryExpression, AssignmentExpression'(node) {
+ function isLeftHandPrimaryExpression(node) {
+ return node.type === experimental_utils_1.AST_NODE_TYPES.TSNonNullExpression;
+ }
+ if (node.operator === '==' ||
+ node.operator === '===' ||
+ node.operator === '=') {
+ const isAssign = node.operator === '=';
+ const leftHandFinalToken = sourceCode.getLastToken(node.left);
+ const tokenAfterLeft = sourceCode.getTokenAfter(node.left);
+ if ((leftHandFinalToken === null || leftHandFinalToken === void 0 ? void 0 : leftHandFinalToken.type) === experimental_utils_1.AST_TOKEN_TYPES.Punctuator &&
+ (leftHandFinalToken === null || leftHandFinalToken === void 0 ? void 0 : leftHandFinalToken.value) === '!' &&
+ (tokenAfterLeft === null || tokenAfterLeft === void 0 ? void 0 : tokenAfterLeft.value) !== ')') {
+ if (isLeftHandPrimaryExpression(node.left)) {
+ context.report({
+ node,
+ messageId: isAssign ? 'confusingAssign' : 'confusingEqual',
+ suggest: [
+ {
+ messageId: isAssign
+ ? 'notNeedInAssign'
+ : 'notNeedInEqualTest',
+ fix: (fixer) => [
+ fixer.remove(leftHandFinalToken),
+ ],
+ },
+ ],
+ });
+ }
+ else {
+ context.report({
+ node,
+ messageId: isAssign ? 'confusingAssign' : 'confusingEqual',
+ suggest: [
+ {
+ messageId: 'wrapUpLeft',
+ fix: (fixer) => [
+ fixer.insertTextBefore(node.left, '('),
+ fixer.insertTextAfter(node.left, ')'),
+ ],
+ },
+ ],
+ });
+ }
+ }
+ }
+ },
+ };
+ },
+});
+//# sourceMappingURL=no-confusing-non-null-assertion.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js.map
new file mode 100644
index 0000000..d789e54
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"no-confusing-non-null-assertion.js","sourceRoot":"","sources":["../../src/rules/no-confusing-non-null-assertion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAK+C;AAC/C,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,iCAAiC;IACvC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,gEAAgE;YAClE,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,KAAK;SACnB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,cAAc,EACZ,6HAA6H;YAC/H,eAA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AAC,CAAC,iBAAiB;4CACnB,CAAC,CAAC,oBAAoB;wCACxB,GAAG,EAAE,CAAC,KAAK,EAAsB,EAAE,CAAC;4CAClC,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC;yCACjC;qCACF;iCACF;6BACF,CAAC,CAAC;yBACJ;6BAAM;4BACL,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI;gCACJ,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB;gCAC1D,OAAO,EAAE;oCACP;wCACE,SAAS,EAAE,YAAY;wCACvB,GAAG,EAAE,CAAC,KAAK,EAAsB,EAAE,CAAC;4CAClC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC;4CACtC,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC;yCACtC;qCACF;iCACF;6BACF,CAAC,CAAC;yBACJ;qBACF;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js
index 9c4a211..a823830 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js
@@ -1,14 +1,26 @@
"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
const no_dupe_class_members_1 = __importDefault(require("eslint/lib/rules/no-dupe-class-members"));
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js.map
index 010b7b7..7e93bad 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-dupe-class-members.js","sourceRoot":"","sources":["../../src/rules/no-dupe-class-members.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8EAAuE;AACvE,mGAA8D;AAC9D,8CAAgC;AAKhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,kCAAkC;YAC/C,QAAQ,EAAE,iBAAiB;YAC3B,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,MAAM,EAAE,+BAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,QAAQ,EAAE,+BAAQ,CAAC,IAAI,CAAC,QAAQ;KACjC;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,+BAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEvC,uCACK,KAAK,KACR,gBAAgB,CAAC,IAAI;gBACnB,IAAI,IAAI,CAAC,QAAQ,EAAE;oBACjB,OAAO;iBACR;gBAED,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,mCAAc,CAAC,6BAA6B,EAAE;oBACpE,OAAO;iBACR;gBAED,OAAO,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACtC,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-dupe-class-members.js","sourceRoot":"","sources":["../../src/rules/no-dupe-class-members.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,8EAAuE;AACvE,mGAA8D;AAC9D,8CAAgC;AAKhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,kCAAkC;YAC/C,QAAQ,EAAE,iBAAiB;YAC3B,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,MAAM,EAAE,+BAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,QAAQ,EAAE,+BAAQ,CAAC,IAAI,CAAC,QAAQ;KACjC;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,+BAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEvC,uCACK,KAAK,KACR,gBAAgB,CAAC,IAAI;gBACnB,IAAI,IAAI,CAAC,QAAQ,EAAE;oBACjB,OAAO;iBACR;gBAED,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,mCAAc,CAAC,6BAA6B,EAAE;oBACpE,OAAO;iBACR;gBAED,OAAO,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACtC,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js
index 8d254e0..911e401 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js.map
index fc1a44e..bf3450b 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-dynamic-delete.js","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aAAa,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC,CAAC;QACjE,CAAC;QAED,SAAS,aAAa,CAAC,QAA6B;YAClD,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;YAE3C,OAAO;gBACL,UAAU,CAAC,cAAc,CAAC,QAAQ,CAAE,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC7C,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAE,CAAC,KAAK,CAAC,CAAC,CAAC;aAC7C,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,0BAA0B,CACjC,IAAyB;IAEzB,IAAI,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,eAAe,EAAE;QAChD,OAAO,0BAA0B,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KAClD;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,wBAAwB,CAAC,QAA6B;IAC7D,IAAI,QAAQ,CAAC,IAAI,KAAK,mCAAc,CAAC,OAAO,EAAE;QAC5C,OAAO,KAAK,CAAC;KACd;IAED,IAAI,OAAO,QAAQ,CAAC,KAAK,KAAK,QAAQ,EAAE;QACtC,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,OAAO,QAAQ,CAAC,KAAK,KAAK,QAAQ;QAClC,CAAC,OAAO,CAAC,qBAAqB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAC/C,CAAC;AACJ,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js
index c2ac27d..775e85c 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js
@@ -1,14 +1,26 @@
"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
const no_empty_function_1 = __importDefault(require("eslint/lib/rules/no-empty-function"));
@@ -30,6 +42,9 @@
'constructors',
'private-constructors',
'protected-constructors',
+ 'asyncFunctions',
+ 'asyncMethods',
+ 'decoratedFunctions',
],
},
},
@@ -57,6 +72,7 @@
const rules = no_empty_function_1.default.create(context);
const isAllowedProtectedConstructors = allow.includes('protected-constructors');
const isAllowedPrivateConstructors = allow.includes('private-constructors');
+ const isAllowedDecoratedFunctions = allow.includes('decoratedFunctions');
/**
* Check if the method body is empty
* @param node the node to be validated
@@ -73,8 +89,8 @@
* @private
*/
function hasParameterProperties(node) {
- return (node.params &&
- node.params.some(param => param.type === experimental_utils_1.AST_NODE_TYPES.TSParameterProperty));
+ var _a;
+ return (_a = node.params) === null || _a === void 0 ? void 0 : _a.some(param => param.type === experimental_utils_1.AST_NODE_TYPES.TSParameterProperty);
}
/**
* @param node the node to be validated
@@ -82,10 +98,9 @@
* @private
*/
function isAllowedEmptyConstructor(node) {
- var _a;
const parent = node.parent;
if (isBodyEmpty(node) &&
- ((_a = parent) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.MethodDefinition &&
+ (parent === null || parent === void 0 ? void 0 : parent.type) === experimental_utils_1.AST_NODE_TYPES.MethodDefinition &&
parent.kind === 'constructor') {
const { accessibility } = parent;
return (
@@ -98,11 +113,33 @@
}
return false;
}
+ /**
+ * @param node the node to be validated
+ * @returns true if a function has decorators
+ * @private
+ */
+ function isAllowedEmptyDecoratedFunctions(node) {
+ var _a;
+ if (isAllowedDecoratedFunctions && isBodyEmpty(node)) {
+ const decorators = ((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.MethodDefinition
+ ? node.parent.decorators
+ : undefined;
+ return !!decorators && !!decorators.length;
+ }
+ return false;
+ }
return Object.assign(Object.assign({}, rules), { FunctionExpression(node) {
- if (isAllowedEmptyConstructor(node)) {
+ if (isAllowedEmptyConstructor(node) ||
+ isAllowedEmptyDecoratedFunctions(node)) {
return;
}
rules.FunctionExpression(node);
+ },
+ FunctionDeclaration(node) {
+ if (isAllowedEmptyDecoratedFunctions(node)) {
+ return;
+ }
+ rules.FunctionDeclaration(node);
} });
},
});
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js.map
index 4507125..e081d10 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-empty-function.js","sourceRoot":"","sources":["../../src/rules/no-empty-function.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8EAG+C;AAC/C,2FAA0D;AAC1D,8CAAgC;AAKhC,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAC3B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M,KAAK,CAAC,CAAC;QACnD,CAAC;QAED;;;;;WAKG;QACH,SAAS,sBAAsB,CAC7B,IAAgE;YAEhE,OAAO,CACL,IAAI,CAAC,MAAM;gBACX,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,mCAAc,CAAC,mBAAmB,CAC3D,CACF,CAAC;QACJ,CAAC;QAED;;;;WAIG;QACH,SAAS,yBAAyB,CAChC,IAAgE;;YAEhE,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YAC3B,IACE,WAAW,CAAC,IAAI,CAAC;gBACjB,OAAA,MAAM,0CAAE,IAAI,MAAK,mCAAc,CAAC,gBAAgB;gBAChD,MAAM,CAAC,IAAI,KAAK,aAAa,EAC7B;gBACA,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;gBAEjC,OAAO;gBACL,+BAA+B;gBAC/B,CAAC,aAAa,KAAK,WAAW,IAAI,8BAA8B,CAAC;oBACjE,6BAA6B;oBAC7B,CAAC,aAAa,KAAK,SAAS,IAAI,4BAA4B,CAAC;oBAC7D,qDAAqD;oBACrD,sBAAsB,CAAC,IAAI,CAAC,CAC7B,CAAC;aACH;YAED,OAAO,KAAK,CAAC;QACf,CAAC;QAED,uCACK,KAAK,KACR,kBAAkB,CAAC,IAAI;gBACrB,IAAI,yBAAyB,CAAC,IAAI,CAAC,EAAE;oBACnC,OAAO;iBACR;gBAED,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;YACjC,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-empty-function.js","sourceRoot":"","sources":["../../src/rules/no-empty-function.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,2FAA0D;AAC1D,8CAAgC;AAKhC,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAC3B,KAAK,CAAC,OAAO,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AC5C;YAED,OAAO,KAAK,CAAC;QACf,CAAC;QAED,uCACK,KAAK,KACR,kBAAkB,CAAC,IAAI;gBACrB,IACE,yBAAyB,CAAC,IAAI,CAAC;oBAC/B,gCAAgC,CAAC,IAAI,CAAC,EACtC;oBACA,OAAO;iBACR;gBAED,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;YACjC,CAAC;YACD,mBAAmB,CAAC,IAAI;gBACtB,IAAI,gCAAgC,CAAC,IAAI,CAAC,EAAE;oBAC1C,OAAO;iBACR;gBAED,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;YAClC,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js
index 6944792..f4037c2 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -16,6 +28,7 @@
description: 'Disallow the declaration of empty interfaces',
category: 'Best Practices',
recommended: 'error',
+ suggestion: true,
},
fixable: 'code',
messages: {
@@ -43,6 +56,7 @@
return {
TSInterfaceDeclaration(node) {
const sourceCode = context.getSourceCode();
+ const filename = context.getFilename();
if (node.body.body.length !== 0) {
// interface contains members --> Nothing to report
return;
@@ -57,11 +71,31 @@
else if (extend.length === 1) {
// interface extends exactly 1 interface --> Report depending on rule setting
if (!allowSingleExtends) {
- context.report({
- node: node.id,
- messageId: 'noEmptyWithSuper',
- fix: fixer => fixer.replaceText(node, `type ${sourceCode.getText(node.id)} = ${sourceCode.getText(extend[0])}`),
- });
+ const fix = (fixer) => {
+ let typeParam = '';
+ if (node.typeParameters) {
+ typeParam = sourceCode.getText(node.typeParameters);
+ }
+ return fixer.replaceText(node, `type ${sourceCode.getText(node.id)}${typeParam} = ${sourceCode.getText(extend[0])}`);
+ };
+ // Check if interface is within ambient declaration
+ let useAutoFix = true;
+ if (util.isDefinitionFile(filename)) {
+ const scope = context.getScope();
+ if (scope.type === 'tsModule' && scope.block.declare) {
+ useAutoFix = false;
+ }
+ }
+ context.report(Object.assign({ node: node.id, messageId: 'noEmptyWithSuper' }, (useAutoFix
+ ? { fix }
+ : {
+ suggest: [
+ {
+ messageId: 'noEmptyWithSuper',
+ fix,
+ },
+ ],
+ })));
}
}
},
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map
index 1588210..ba663fe 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-empty-interface.js","sourceRoot":"","sources":["../../src/rules/no-empty-interface.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8CAAgC;AAShC,kBAAe,IA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EAAE,KAAK,CAAC,EAAE,CACX,KAAK,CAAC,WAAW,CACf,IAAI,EACJ,QAAQ,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,UAAU,CAAC,OAAO,CACzD,MAAM,CAAC,CAAC,CAAC,CACV,EAAE,CACJ;yBACJ,CAAC,CAAC;qBACJ;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-empty-interface.js","sourceRoot":"","sources":["../../src/rules/no-empty-interface.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,8CAA8C;YAC3D,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;YACpB,UAAU,EAAE,IAAI;SACjB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,OAAO,EAAE,2CAA2C;YACpD,gBAAgB,EACd,mEAAmE;SACtE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,kBAAkB,EAAE;wBAClB,IAAI,EAAE,SAAS;qBAChB;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,kBAAkB,EAAE,KAAK;SAC1B;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,kBAAkB,EAAE,CAAC;QACtC,OAAO;YACL,sBAAsB,CAAC,IAAI;gBACzB,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;gBAC3C,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;gBAEvC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MA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AAC,EAAE,GAAG,EAAE;4BACT,CAAC,CAAC;gCACE,OAAO,EAAE;oCACP;wCACE,SAAS,EAAE,kBAAkB;wCAC7B,GAAG;qCACJ;iCACF;6BACF,CAAC,EACN,CAAC;qBACJ;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js
index 4940491..f64ee14 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -17,6 +29,7 @@
description: 'Disallow usage of the `any` type',
category: 'Best Practices',
recommended: 'warn',
+ suggestion: true,
},
fixable: 'code',
messages: {
@@ -47,9 +60,9 @@
],
create(context, [{ ignoreRestArgs, fixToUnknown }]) {
/**
- * Checks if the node is an arrow function, function declaration or function expression
+ * Checks if the node is an arrow function, function/constructor declaration or function expression
* @param node the node to be validated.
- * @returns true if the node is an arrow function, function declaration, function expression, function type, or call signature
+ * @returns true if the node is any kind of function declaration or expression
* @private
*/
function isNodeValidFunction(node) {
@@ -57,8 +70,13 @@
experimental_utils_1.AST_NODE_TYPES.ArrowFunctionExpression,
experimental_utils_1.AST_NODE_TYPES.FunctionDeclaration,
experimental_utils_1.AST_NODE_TYPES.FunctionExpression,
+ experimental_utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,
experimental_utils_1.AST_NODE_TYPES.TSFunctionType,
+ experimental_utils_1.AST_NODE_TYPES.TSConstructorType,
experimental_utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration,
+ experimental_utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration,
+ experimental_utils_1.AST_NODE_TYPES.TSMethodSignature,
+ experimental_utils_1.AST_NODE_TYPES.TSDeclareFunction,
].includes(node.type);
}
/**
@@ -111,9 +129,8 @@
* @private
*/
function isGreatGrandparentRestElement(node) {
- return (typeof node.parent !== 'undefined' &&
- typeof node.parent.parent !== 'undefined' &&
- typeof node.parent.parent.parent !== 'undefined' &&
+ var _a, _b;
+ return (((_b = (_a = node === null || node === void 0 ? void 0 : node.parent) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.parent) != null &&
isNodeRestElementInFunction(node.parent.parent.parent));
}
/**
@@ -123,11 +140,9 @@
* @private
*/
function isGreatGreatGrandparentRestElement(node) {
- return (typeof node.parent !== 'undefined' &&
- typeof node.parent.parent !== 'undefined' &&
+ var _a, _b, _c;
+ return (((_c = (_b = (_a = node.parent) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.parent) === null || _c === void 0 ? void 0 : _c.parent) != null &&
isNodeValidTSType(node.parent.parent) &&
- typeof node.parent.parent.parent !== 'undefined' &&
- typeof node.parent.parent.parent.parent !== 'undefined' &&
isNodeRestElementInFunction(node.parent.parent.parent.parent));
}
/**
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map
index f3311cd..d9f8f54 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-explicit-any.js","sourceRoot":"","sources":["../../src/rules/no-explicit-any.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAWhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,kCAAkC;YAC/C,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,MAAM;SACpB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,aAAa,EAAE,2CAA2C;YAC1D,cAAc,EACZ,kGAAkG;YACpG,YAAY,EACV,yHAAyH;SAC5H;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,YAAY,EAAE;wBACZ,IAAI,EAAE,SAAS;qBAChB;oBACD,cAAc,EAAE;wBACd,IAAI,EAAE,SAAS;qBAChB;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,YAAY,EAAE,KAAK;YACnB,cAAc,EAAE,KAAK;SACtB;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC;QAChD;;;;;WAKG;QACH,SAAS,mBAAmB,CAAC,IAAmB;YAC9C,OAAO;gBACL,mCAAc,CAAC,uBAAuB;gBACtC,mCAAc,CAAC,mBAAmB;gBAClC,mCAAc,CAAC,kBAAkB;gBACjC,mCAAc,CAAC,cAAc;g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AK,CAAC,EAAE,CAC1B,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC,CAA+B,CAAC;iBACrE;gBAED,OAAO,CAAC,MAAM,iBACZ,IAAI,EACJ,SAAS,EAAE,eAAe,IACvB,YAAY,EACf,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-explicit-any.js","sourceRoot":"","sources":["../../src/rules/no-explicit-any.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAWhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,kCAAkC;YAC/C,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,MAAM;YACnB,UAAU,EAAE,IAAI;SACjB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,aAAa,EAAE,2CAA2C;YAC1D,cAAc,EACZ,kGAAkG;YACpG,YAAY,EACV,yHAAyH;SAC5H;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,YAAY,EAAE;wBACZ,IAAI,EAAE,SAAS;qBAChB;oBACD,cAAc,EAAE;wBACd,IAAI,EAAE,SAAS;qBAChB;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,YAAY,EAAE,KAAK;YACnB,cAAc,EAAE,KAAK;SACtB;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC;QAChD;;;;;WAKG;QACH,SAAS,mBAAmB,CAAC,IAAmB;YAC9C,OAAO;gBACL,mCAAc,CAAC,uBAAuB;gBACtC,mCAAc,CAAC,mBAAmB;gBAClC,mCAAc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AW,CAAC,IAAI,EAAE,SAAS,CAAC,CAA+B,CAAC;iBACrE;gBAED,OAAO,CAAC,MAAM,iBACZ,IAAI,EACJ,SAAS,EAAE,eAAe,IACvB,YAAY,EACf,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js
index 47a814d..9c0ac37 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,7 +27,7 @@
docs: {
description: 'Disallow extra non-null assertion',
category: 'Stylistic Issues',
- recommended: false,
+ recommended: 'error',
},
fixable: 'code',
schema: [],
@@ -36,8 +48,8 @@
}
return {
'TSNonNullExpression > TSNonNullExpression': checkExtraNonNullAssertion,
- 'OptionalMemberExpression > TSNonNullExpression': checkExtraNonNullAssertion,
- 'OptionalCallExpression > TSNonNullExpression.callee': checkExtraNonNullAssertion,
+ 'MemberExpression[optional = true] > TSNonNullExpression': checkExtraNonNullAssertion,
+ 'CallExpression[optional = true] > TSNonNullExpression.callee': checkExtraNonNullAssertion,
};
},
});
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map
index 4799984..ad93d3f 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-extra-non-null-assertion.js","sourceRoot":"","sources":["../../src/rules/no-extra-non-null-assertion.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8CAAgC;AAGhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,KAAK;SACnB;QACD,OAAO,EAAE,MAAM;QACf,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,uBAAuB,EAAE,qCAAqC;SAC/D;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,0BAA0B,CACjC,IAAkC;YAElC,OAAO,CAAC,MAAM,CAAC;gBACb,IAAI;gBACJ,SAAS,EAAE,yBAAyB;gBACpC,GAAG,CAAC,KAAK;oBACP,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC/D,CAAC;aACF,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,2CAA2C,EAAE,0BAA0B;YACvE,gDAAgD,EAAE,0BAA0B;YAC5E,qDAAqD,EAAE,0BAA0B;SAClF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-extra-non-null-assertion.js","sourceRoot":"","sources":["../../src/rules/no-extra-non-null-assertion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,OAAO;SACrB;QACD,OAAO,EAAE,MAAM;QACf,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,uBAAuB,EAAE,qCAAqC;SAC/D;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,0BAA0B,CACjC,IAAkC;YAElC,OAAO,CAAC,MAAM,CAAC;gBACb,IAAI;gBACJ,SAAS,EAAE,yBAAyB;gBACpC,GAAG,CAAC,KAAK;oBACP,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC/D,CAAC;aACF,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,2CAA2C,EAAE,0BAA0B;YACvE,yDAAyD,EAAE,0BAA0B;YACrF,8DAA8D,EAAE,0BAA0B;SAC3F,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js
index 18d7a2a..713be4d 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js
@@ -1,16 +1,28 @@
"use strict";
// any is required to work around manipulating the AST in weird ways
/* eslint-disable @typescript-eslint/no-explicit-any */
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
const no_extra_parens_1 = __importDefault(require("eslint/lib/rules/no-extra-parens"));
@@ -49,11 +61,18 @@
return rule(node);
}
function callExp(node) {
+ var _a;
const rule = rules.CallExpression;
if (util.isTypeAssertion(node.callee)) {
// reduces the precedence of the node so the rule thinks it needs to be wrapped
return rule(Object.assign(Object.assign({}, node), { callee: Object.assign(Object.assign({}, node.callee), { type: experimental_utils_1.AST_NODE_TYPES.SequenceExpression }) }));
}
+ if (node.arguments.length === 1 && ((_a = node.typeParameters) === null || _a === void 0 ? void 0 : _a.params.some(param => param.type === experimental_utils_1.AST_NODE_TYPES.TSParenthesizedType ||
+ param.type === experimental_utils_1.AST_NODE_TYPES.TSImportType))) {
+ return rule(Object.assign(Object.assign({}, node), { arguments: [
+ Object.assign(Object.assign({}, node.arguments[0]), { type: experimental_utils_1.AST_NODE_TYPES.SequenceExpression }),
+ ] }));
+ }
return rule(node);
}
function unaryUpdateExpression(node) {
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js.map
index a010fc2..b3b7d7e 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-extra-parens.js","sourceRoot":"","sources":["../../src/rules/no-extra-parens.ts"],"names":[],"mappings":";AAAA,oEAAoE;AACpE,uDAAuD;;;;;;;;;;;;AAEvD,8EAI+C;AAC/C,uFAAwD;AACxD,8CAAgC;AAKhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE;YACJ,WAAW,EAAE,kCAAkC;YAC/C,QAAQ,EAAE,iBAAiB;YAC3B,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,MAAM;QACf,MAAM,EAAE,yBAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,QAAQ,EAAE,yBAAQ,CAAC,IAAI,CAAC,QAAQ;KACjC;IACD,cAAc,EAAE,CAAC,KAAK,CAAC;IACvB,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,yBAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEvC,SAAS,SAAS,CAChB,IAA4D;Y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C;QACF,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;IAC7C,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js
index 0c1d99b..7c89f97 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js
@@ -1,14 +1,26 @@
"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
const no_extra_semi_1 = __importDefault(require("eslint/lib/rules/no-extra-semi"));
const util = __importStar(require("../util"));
@@ -19,7 +31,7 @@
docs: {
description: 'Disallow unnecessary semicolons',
category: 'Possible Errors',
- recommended: false,
+ recommended: 'error',
extendsBaseRule: true,
},
fixable: 'code',
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js.map
index ac68a4f..c7e87d7 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-extra-semi.js","sourceRoot":"","sources":["../../src/rules/no-extra-semi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mFAAsD;AACtD,8CAAgC;AAKhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,iCAAiC;YAC9C,QAAQ,EAAE,iBAAiB;YAC3B,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,MAAM;QACf,MAAM,EAAE,uBAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,QAAQ,EAAE,uBAAQ,CAAC,IAAI,CAAC,QAAQ;KACjC;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,uBAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEvC,uCACK,KAAK,KACR,aAAa,CAAC,IAAI;gBAChB,KAAK,CAAC,gBAAgB,CAAC,IAAa,CAAC,CAAC;YACxC,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-extra-semi.js","sourceRoot":"","sources":["../../src/rules/no-extra-semi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,mFAAsD;AACtD,8CAAgC;AAKhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,iCAAiC;YAC9C,QAAQ,EAAE,iBAAiB;YAC3B,WAAW,EAAE,OAAO;YACpB,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,MAAM;QACf,MAAM,EAAE,uBAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,QAAQ,EAAE,uBAAQ,CAAC,IAAI,CAAC,QAAQ;KACjC;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,uBAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEvC,uCACK,KAAK,KACR,aAAa,CAAC,IAAI;gBAChB,KAAK,CAAC,gBAAgB,CAAC,IAAa,CAAC,CAAC;YACxC,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js
index 1b7c971..3e81369 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js.map
index aa83cc0..6865a15 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-extraneous-class.js","sourceRoot":"","sources":["../../src/rules/no-extraneous-class.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAYhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;YACvD,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;SACnB;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,oBAAoB,EAAE;wBACpB,IAAI,EAAE,SAAS;qBAChB;oBACD,UAAU,EAAE;wBACV,IAAI,EAAE,SAAS;qBAChB;oBACD,eAAe,EAAE;wBACf,IAAI,EAAE,SAAS;qBAChB;oBACD,kBAAkB,EAAE;wBAClB,IAAI,EAAE,SAAS;qBAChB;iBACF;aACF;SACF;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,yBAAyB;YAChC,UAAU,EAAE,+CAA+C;YAC3D,eAAe,EAAE,2CAA2C;SAC7D;KACF;IACD,cAAc,EAAE;QACd;YACE,oBAAoB,EAAE,KAAK;YAC3B,UAAU,EAAE,KAAK;YACjB,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mB,CAC3D,EACD;4BACA,eAAe,GAAG,KAAK,CAAC;4BACxB,UAAU,GAAG,KAAK,CAAC;yBACpB;qBACF;yBAAM;wBACL,eAAe,GAAG,KAAK,CAAC;wBACxB,IAAI,QAAQ,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;4BACpC,UAAU,GAAG,KAAK,CAAC;yBACpB;qBACF;oBACD,IAAI,CAAC,CAAC,UAAU,IAAI,eAAe,CAAC,EAAE;wBACpC,MAAM;qBACP;iBACF;gBAED,IAAI,eAAe,EAAE;oBACnB,IAAI,CAAC,oBAAoB,EAAE;wBACzB,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,UAAU;4BAChB,SAAS,EAAE,iBAAiB;yBAC7B,CAAC,CAAC;qBACJ;oBACD,OAAO;iBACR;gBACD,IAAI,UAAU,IAAI,CAAC,eAAe,EAAE;oBAClC,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,UAAU;wBAChB,SAAS,EAAE,YAAY;qBACxB,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-extraneous-class.js","sourceRoot":"","sources":["../../src/rules/no-extraneous-class.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAYhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;YACvD,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;SACnB;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,oBAAoB,EAAE;wBACpB,IAAI,EAAE,SAAS;qBAChB;oBACD,UAAU,EAAE;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iBACR;gBAED,IAAI,UAAU,GAAG,IAAI,CAAC;gBACtB,IAAI,eAAe,GAAG,IAAI,CAAC;gBAE3B,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE;oBAC5B,IAAI,MAAM,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,aAAa,EAAE;wBACjD,IACE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CACpB,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,mCAAc,CAAC,mBAAmB,CAC3D,EACD;4BACA,eAAe,GAAG,KAAK,CAAC;4BACxB,UAAU,GAAG,KAAK,CAAC;yBACpB;qBACF;yBAAM;wBACL,eAAe,GAAG,KAAK,CAAC;wBACxB,IAAI,QAAQ,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;4BACpC,UAAU,GAAG,KAAK,CAAC;yBACpB;qBACF;oBACD,IAAI,CAAC,CAAC,UAAU,IAAI,eAAe,CAAC,EAAE;wBACpC,MAAM;qBACP;iBACF;gBAED,IAAI,eAAe,EAAE;oBACnB,IAAI,CAAC,oBAAoB,EAAE;wBACzB,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,UAAU;4BAChB,SAAS,EAAE,iBAAiB;yBAC7B,CAAC,CAAC;qBACJ;oBACD,OAAO;iBACR;gBACD,IAAI,UAAU,IAAI,CAAC,eAAe,EAAE;oBAClC,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,UAAU;wBAChB,SAAS,EAAE,YAAY;qBACxB,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js
index 6ee0cb6..38191bc 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js
@@ -1,14 +1,27 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const tsutils = __importStar(require("tsutils"));
const ts = __importStar(require("typescript"));
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
const util = __importStar(require("../util"));
exports.default = util.createRule({
name: 'no-floating-promises',
@@ -16,20 +29,22 @@
docs: {
description: 'Requires Promise-like values to be handled appropriately',
category: 'Best Practices',
- recommended: false,
+ recommended: 'error',
+ suggestion: true,
requiresTypeChecking: true,
},
messages: {
- floating: 'Promises must be handled appropriately',
+ floating: 'Promises must be handled appropriately.',
floatingVoid: 'Promises must be handled appropriately' +
- ' or explicitly marked as ignored with the `void` operator',
- floatingFixVoid: 'Add void operator to ignore',
+ ' or explicitly marked as ignored with the `void` operator.',
+ floatingFixVoid: 'Add void operator to ignore.',
},
schema: [
{
type: 'object',
properties: {
ignoreVoid: { type: 'boolean' },
+ ignoreIIFE: { type: 'boolean' },
},
additionalProperties: false,
},
@@ -38,7 +53,8 @@
},
defaultOptions: [
{
- ignoreVoid: false,
+ ignoreVoid: true,
+ ignoreIIFE: false,
},
],
create(context, [options]) {
@@ -48,6 +64,9 @@
return {
ExpressionStatement(node) {
const { expression } = parserServices.esTreeNodeToTSNodeMap.get(node);
+ if (options.ignoreIIFE && isAsyncIife(node)) {
+ return;
+ }
if (isUnhandledPromise(checker, expression)) {
if (options.ignoreVoid) {
context.report({
@@ -74,6 +93,15 @@
}
},
};
+ function isAsyncIife(node) {
+ if (node.expression.type !== experimental_utils_1.AST_NODE_TYPES.CallExpression) {
+ return false;
+ }
+ return (node.expression.type === experimental_utils_1.AST_NODE_TYPES.CallExpression &&
+ (node.expression.callee.type ===
+ experimental_utils_1.AST_NODE_TYPES.ArrowFunctionExpression ||
+ node.expression.callee.type === experimental_utils_1.AST_NODE_TYPES.FunctionExpression));
+ }
function isUnhandledPromise(checker, node) {
// First, check expressions whose resulting types may not be promise-like
if (ts.isBinaryExpression(node) &&
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map
index bbc262e..d025287 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-floating-promises.js","sourceRoot":"","sources":["../../src/rules/no-floating-promises.ts"],"names":[],"mappings":";;;;;;;;;AAAA,iDAAmC;AACnC,+CAAiC;AAGjC,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAqB;IACjD,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,0DAA0D;YACvE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,QAAQ,EAAE,wCAAwC;YAClD,YAAY,EACV,wCAAwC;gBACxC,2DAA2D;Y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eAAe,CACvD,OAAO,CAAC,yBAAyB,CAAC,KAAK,EAAE,IAAI,CAAC,CAC/C,CAAC;IACF,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE;QAC5C,IAAI,CAAC,CAAC,iBAAiB,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE;YACtC,OAAO,IAAI,CAAC;SACb;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,6BAA6B,CAAC,UAA6B;IAClE,OAAO,CACL,OAAO,CAAC,0BAA0B,CAAC,UAAU,CAAC,UAAU,CAAC;QACzD,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO;QAC3C,UAAU,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,CACjC,CAAC;AACJ,CAAC;AAED,SAAS,qCAAqC,CAC5C,UAA6B;IAE7B,OAAO,CACL,OAAO,CAAC,0BAA0B,CAAC,UAAU,CAAC,UAAU,CAAC;QACzD,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM;QAC1C,UAAU,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,CACjC,CAAC;AACJ,CAAC;AAED,SAAS,+BAA+B,CACtC,UAA6B;IAE7B,OAAO,CACL,OAAO,CAAC,0BAA0B,CAAC,UAAU,CAAC,UAAU,CAAC;QACzD,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS;QAC7C,UAAU,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,CACjC,CAAC;AACJ,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js
index 8f6d962..e1b7fc7 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -31,9 +43,8 @@
const parserServices = util.getParserServices(context);
const checker = parserServices.program.getTypeChecker();
const originalNode = parserServices.esTreeNodeToTSNodeMap.get(node);
- const type = checker.getTypeAtLocation(originalNode.expression);
- if ((typeof type.symbol !== 'undefined' &&
- type.symbol.name === 'Array') ||
+ const type = util.getConstrainedTypeAtLocation(checker, originalNode.expression);
+ if (util.isTypeArrayTypeOrUnionOfArrayTypes(type, checker) ||
(type.flags & ts.TypeFlags.StringLike) !== 0) {
context.report({
node,
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map
index 88288ab..67767b3 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-for-in-array.js","sourceRoot":"","sources":["../../src/rules/no-for-in-array.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+CAAiC;AACjC,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,qDAAqD;YAClE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,cAAc,EACZ,8EAA8E;SACjF;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,SAAS;KAChB;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;gBACvD,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;gBACxD,MAAM,YAAY,GAAG,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAEpE,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;gBAEhE,IACE,CAAC,OAAO,IAAI,CAAC,MAAM,KAAK,WAAW;oBACjC,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,OAAO,CAAC;oBAC/B,CAAC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,EAC5C;oBACA,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,gBAAgB;qBAC5B,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-for-in-array.js","sourceRoot":"","sources":["../../src/rules/no-for-in-array.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,qDAAqD;YAClE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,cAAc,EACZ,8EAA8E;SACjF;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,SAAS;KAChB;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;gBACvD,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;gBACxD,MAAM,YAAY,GAAG,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAEpE,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAC5C,OAAO,EACP,YAAY,CAAC,UAAU,CACxB,CAAC;gBAEF,IACE,IAAI,CAAC,kCAAkC,CAAC,IAAI,EAAE,OAAO,CAAC;oBACtD,CAAC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,EAC5C;oBACA,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,gBAAgB;qBAC5B,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implicit-any-catch.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implicit-any-catch.js
new file mode 100644
index 0000000..fb3d31e
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implicit-any-catch.js
@@ -0,0 +1,97 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const util = __importStar(require("../util"));
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+exports.default = util.createRule({
+ name: 'no-implicit-any-catch',
+ meta: {
+ type: 'suggestion',
+ docs: {
+ description: 'Disallow usage of the implicit `any` type in catch clauses',
+ category: 'Best Practices',
+ recommended: false,
+ suggestion: true,
+ },
+ fixable: 'code',
+ messages: {
+ implicitAnyInCatch: 'Implicit any in catch clause',
+ explicitAnyInCatch: 'Explicit any in catch clause',
+ suggestExplicitUnknown: 'Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct.',
+ },
+ schema: [
+ {
+ type: 'object',
+ additionalProperties: false,
+ properties: {
+ allowExplicitAny: {
+ type: 'boolean',
+ },
+ },
+ },
+ ],
+ },
+ defaultOptions: [
+ {
+ allowExplicitAny: false,
+ },
+ ],
+ create(context, [{ allowExplicitAny }]) {
+ return {
+ CatchClause(node) {
+ if (!node.param) {
+ return; // ignore catch without variable
+ }
+ if (!node.param.typeAnnotation) {
+ context.report({
+ node,
+ messageId: 'implicitAnyInCatch',
+ suggest: [
+ {
+ messageId: 'suggestExplicitUnknown',
+ fix(fixer) {
+ return fixer.insertTextAfter(node.param, ': unknown');
+ },
+ },
+ ],
+ });
+ }
+ else if (!allowExplicitAny &&
+ node.param.typeAnnotation.typeAnnotation.type ===
+ experimental_utils_1.AST_NODE_TYPES.TSAnyKeyword) {
+ context.report({
+ node,
+ messageId: 'explicitAnyInCatch',
+ suggest: [
+ {
+ messageId: 'suggestExplicitUnknown',
+ fix(fixer) {
+ return fixer.replaceText(node.param.typeAnnotation, ': unknown');
+ },
+ },
+ ],
+ });
+ }
+ },
+ };
+ },
+});
+//# sourceMappingURL=no-implicit-any-catch.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implicit-any-catch.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implicit-any-catch.js.map
new file mode 100644
index 0000000..e5ed504
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implicit-any-catch.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"no-implicit-any-catch.js","sourceRoot":"","sources":["../../src/rules/no-implicit-any-catch.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8CAAgC;AAChC,8EAG+C;AAY/C,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,4DAA4D;YACzE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,UAAU,EAAE,IAAI;SACjB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,kBAAkB,EAAE,8BAA8B;YAClD,kBAAkB,EAAE,8BAA8B;YAClD,sBAAsB,EACpB,kGAAkG;SACrG;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,gBAAgB,EAAE;wBAChB,IAAI,EAAE,SAAS;qBAChB;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,gBAAgB,EAAE,KAAK;SACxB;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,gBAAgB,EAAE,CAAC;QACpC,OAAO;YACL,WAAW,CAAC,IAAI;gBACd,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;oBACf,OAAO,CAAC,gCAAgC;iBACzC;gBAED,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE;oBAC9B,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,oBAAoB;wBAC/B,OAAO,EAAE;4BACP;gCACE,SAAS,EAAE,wBAAwB;gCACnC,GAAG,CAAC,KAAK;oCACP,OAAO,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,KAAM,EAAE,WAAW,CAAC,CAAC;gCACzD,CAAC;6BACF;yBACF;qBACF,CAAC,CAAC;iBACJ;qBAAM,IACL,CAAC,gBAAgB;oBACjB,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,IAAI;wBAC3C,mCAAc,CAAC,YAAY,EAC7B;oBACA,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,oBAAoB;wBAC/B,OAAO,EAAE;4BACP;gCACE,SAAS,EAAE,wBAAwB;gCACnC,GAAG,CAAC,KAAK;oCACP,OAAO,KAAK,CAAC,WAAW,CACtB,IAAI,CAAC,KAAM,CAAC,cAAe,EAC3B,WAAW,CACZ,CAAC;gCACJ,CAAC;6BACF;yBACF;qBACF,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js
index f4d4f62..86eb806 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,6 +24,7 @@
const tsutils = __importStar(require("tsutils"));
const util = __importStar(require("../util"));
const FUNCTION_CONSTRUCTOR = 'Function';
+const GLOBAL_CANDIDATES = new Set(['global', 'window', 'globalThis']);
const EVAL_LIKE_METHODS = new Set([
'setImmediate',
'setInterval',
@@ -24,7 +37,7 @@
docs: {
description: 'Disallow the use of `eval()`-like methods',
category: 'Best Practices',
- recommended: false,
+ recommended: 'error',
requiresTypeChecking: true,
},
messages: {
@@ -37,6 +50,7 @@
defaultOptions: [],
create(context) {
const parserServices = util.getParserServices(context);
+ const program = parserServices.program;
const checker = parserServices.program.getTypeChecker();
function getCalleeName(node) {
if (node.type === experimental_utils_1.AST_NODE_TYPES.Identifier) {
@@ -44,7 +58,7 @@
}
if (node.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression &&
node.object.type === experimental_utils_1.AST_NODE_TYPES.Identifier &&
- node.object.name === 'window') {
+ GLOBAL_CANDIDATES.has(node.object.name)) {
if (node.property.type === experimental_utils_1.AST_NODE_TYPES.Identifier) {
return node.property.name;
}
@@ -56,6 +70,7 @@
return null;
}
function isFunctionType(node) {
+ var _a;
const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node);
const type = checker.getTypeAtLocation(tsNode);
const symbol = type.getSymbol();
@@ -63,6 +78,15 @@
tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Function | ts.SymbolFlags.Method)) {
return true;
}
+ if (symbol && symbol.escapedName === FUNCTION_CONSTRUCTOR) {
+ const declarations = (_a = symbol.getDeclarations()) !== null && _a !== void 0 ? _a : [];
+ for (const declaration of declarations) {
+ const sourceFile = declaration.getSourceFile();
+ if (program.isSourceFileDefaultLibrary(sourceFile)) {
+ return true;
+ }
+ }
+ }
const signatures = checker.getSignaturesOfType(type, ts.SignatureKind.Call);
return signatures.length > 0;
}
@@ -84,13 +108,29 @@
}
}
function checkImpliedEval(node) {
+ var _a;
+ const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node.callee);
+ const type = checker.getTypeAtLocation(tsNode);
const calleeName = getCalleeName(node.callee);
if (calleeName === null) {
return;
}
if (calleeName === FUNCTION_CONSTRUCTOR) {
- context.report({ node, messageId: 'noFunctionConstructor' });
- return;
+ const symbol = type.getSymbol();
+ if (symbol) {
+ const declarations = (_a = symbol.getDeclarations()) !== null && _a !== void 0 ? _a : [];
+ for (const declaration of declarations) {
+ const sourceFile = declaration.getSourceFile();
+ if (program.isSourceFileDefaultLibrary(sourceFile)) {
+ context.report({ node, messageId: 'noFunctionConstructor' });
+ return;
+ }
+ }
+ }
+ else {
+ context.report({ node, messageId: 'noFunctionConstructor' });
+ return;
+ }
}
if (node.arguments.length === 0) {
return;
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map
index a20d459..38b1988 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-implied-eval.js","sourceRoot":"","sources":["../../src/rules/no-implied-eval.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+CAAiC;AACjC,8EAG+C;AAC/C,iDAAmC;AACnC,8CAAgC;AAEhC,MAAM,oBAAoB,GAAG,UAAU,CAAC;AACxC,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC;IAChC,cAAc;IACd,aAAa;IACb,YAAY;IACZ,YAAY;CACb,CAAC,CAAC;AAEH,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,2CAA2C;YACxD,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,kBAAkB,EAAE,4CAA4C;YAChE,qBAAqB,EACnB,wEAAwE;SAC3E;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACvD,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAExD,SAAS,aAAa,CACpB,IAAqC;YAErC,IAAI,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU,EAAE;gBAC3C,OAAO,IAAI,CAAC,IAAI,CAAC;aAClB;YAED,IACE,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,gBAAgB;gBAC7C,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU;gBAC9C,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,EAC7B;gBACA,IAAI,IAAI,CAAC,QAAQ,CAAC,I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K,mCAAc,CAAC,cAAc;oBAChC,OAAO,CACL,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU;wBAC7C,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC;wBAC9B,cAAc,CAAC,IAAI,CAAC,CACrB,CAAC;gBAEJ;oBACE,OAAO,KAAK,CAAC;aAChB;QACH,CAAC;QAED,SAAS,gBAAgB,CACvB,IAAsD;YAEtD,MAAM,UAAU,GAAG,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC9C,IAAI,UAAU,KAAK,IAAI,EAAE;gBACvB,OAAO;aACR;YAED,IAAI,UAAU,KAAK,oBAAoB,EAAE;gBACvC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC,CAAC;gBAC7D,OAAO;aACR;YAED,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC/B,OAAO;aACR;YAED,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;YACjC,IAAI,iBAAiB,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;gBAC7D,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC,CAAC;aACpE;QACH,CAAC;QAED,OAAO;YACL,aAAa,EAAE,gBAAgB;YAC/B,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-implied-eval.js","sourceRoot":"","sources":["../../src/rules/no-implied-eval.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,8EAG+C;AAC/C,iDAAmC;AACnC,8CAAgC;AAEhC,MAAM,oBAAoB,GAAG,UAAU,CAAC;AACxC,MAAM,iB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AAC,CAAC;4BAC7D,OAAO;yBACR;qBACF;iBACF;qBAAM;oBACL,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC,CAAC;oBAC7D,OAAO;iBACR;aACF;YAED,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC/B,OAAO;aACR;YAED,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;YACjC,IAAI,iBAAiB,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;gBAC7D,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC,CAAC;aACpE;QACH,CAAC;QAED,OAAO;YACL,aAAa,EAAE,gBAAgB;YAC/B,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js
index b4006a0..60ff6fb 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -45,8 +57,10 @@
],
create(context, [{ ignoreParameters, ignoreProperties }]) {
function isFunctionCall(init, callName) {
- return ((init.type === experimental_utils_1.AST_NODE_TYPES.CallExpression ||
- init.type === experimental_utils_1.AST_NODE_TYPES.OptionalCallExpression) &&
+ if (init.type === experimental_utils_1.AST_NODE_TYPES.ChainExpression) {
+ return isFunctionCall(init.expression, callName);
+ }
+ return (init.type === experimental_utils_1.AST_NODE_TYPES.CallExpression &&
init.callee.type === experimental_utils_1.AST_NODE_TYPES.Identifier &&
init.callee.name === callName);
}
@@ -80,7 +94,8 @@
? init.argument
: init;
return (isFunctionCall(unwrappedInit, 'BigInt') ||
- unwrappedInit.type === experimental_utils_1.AST_NODE_TYPES.BigIntLiteral);
+ (unwrappedInit.type === experimental_utils_1.AST_NODE_TYPES.Literal &&
+ 'bigint' in unwrappedInit));
}
case experimental_utils_1.AST_NODE_TYPES.TSBooleanKeyword:
return (hasUnaryPrefix(init, '!') ||
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map
index 25be70a..a31baf2 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-inferrable-types.js","sourceRoot":"","sources":["../../src/rules/no-inferrable-types.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,E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,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAChE,CAAC;QAED,SAAS,0BAA0B,CACjC,IAGoC;YAEpC,IAAI,gBAAgB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;gBACpC,OAAO;aACR;YACA,IAAI,CAAC,MAAM,CAAC,MAAM,CACjB,KAAK,CAAC,EAAE,CACN,KAAK,CAAC,IAAI,KAAK,mCAAc,CAAC,iBAAiB;gBAC/C,KAAK,CAAC,IAAI;gBACV,KAAK,CAAC,KAAK,CACmB,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBACjD,oBAAoB,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;YACtE,CAAC,CAAC,CAAC;QACL,CAAC;QAED,SAAS,yBAAyB,CAAC,IAA4B;YAC7D,6DAA6D;YAC7D,iDAAiD;YACjD,sDAAsD;YACtD,0CAA0C;YAC1C,IAAI,gBAAgB,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACtD,OAAO;aACR;YACD,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9D,CAAC;QAED,OAAO;YACL,kBAAkB,EAAE,yBAAyB;YAC7C,kBAAkB,EAAE,0BAA0B;YAC9C,mBAAmB,EAAE,0BAA0B;YAC/C,uBAAuB,EAAE,0BAA0B;YACnD,aAAa,EAAE,yBAAyB;SACzC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-inferrable-types.js","sourceRoot":"","sources":["../../src/rules/no-inferrable-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE;QACJ,IAAI,EA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AAO;aACR;YACD,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAChE,CAAC;QAED,SAAS,0BAA0B,CACjC,IAGoC;YAEpC,IAAI,gBAAgB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;gBACpC,OAAO;aACR;YACA,IAAI,CAAC,MAAM,CAAC,MAAM,CACjB,KAAK,CAAC,EAAE,CACN,KAAK,CAAC,IAAI,KAAK,mCAAc,CAAC,iBAAiB;gBAC/C,KAAK,CAAC,IAAI;gBACV,KAAK,CAAC,KAAK,CACmB,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBACjD,oBAAoB,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;YACtE,CAAC,CAAC,CAAC;QACL,CAAC;QAED,SAAS,yBAAyB,CAAC,IAA4B;YAC7D,6DAA6D;YAC7D,iDAAiD;YACjD,sDAAsD;YACtD,0CAA0C;YAC1C,IAAI,gBAAgB,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACtD,OAAO;aACR;YACD,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9D,CAAC;QAED,OAAO;YACL,kBAAkB,EAAE,yBAAyB;YAC7C,kBAAkB,EAAE,0BAA0B;YAC9C,mBAAmB,EAAE,0BAA0B;YAC/C,uBAAuB,EAAE,0BAA0B;YACnD,aAAa,EAAE,yBAAyB;SACzC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js
new file mode 100644
index 0000000..bfa7ae2
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js
@@ -0,0 +1,59 @@
+"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+var _a;
+Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const no_invalid_this_1 = __importDefault(require("eslint/lib/rules/no-invalid-this"));
+const util_1 = require("../util");
+exports.default = util_1.createRule({
+ name: 'no-invalid-this',
+ meta: {
+ type: 'suggestion',
+ docs: {
+ description: 'disallow `this` keywords outside of classes or class-like objects',
+ category: 'Best Practices',
+ recommended: false,
+ extendsBaseRule: true,
+ },
+ messages: (_a = no_invalid_this_1.default.meta.messages) !== null && _a !== void 0 ? _a : {
+ unexpectedThis: "Unexpected 'this'.",
+ },
+ schema: no_invalid_this_1.default.meta.schema,
+ },
+ defaultOptions: [{ capIsConstructor: true }],
+ create(context) {
+ const rules = no_invalid_this_1.default.create(context);
+ const argList = [];
+ return Object.assign(Object.assign({}, rules), { FunctionDeclaration(node) {
+ argList.push(node.params.some(param => param.type === experimental_utils_1.AST_NODE_TYPES.Identifier && param.name === 'this'));
+ // baseRule's work
+ rules.FunctionDeclaration(node);
+ },
+ 'FunctionDeclaration:exit'(node) {
+ argList.pop();
+ // baseRule's work
+ rules['FunctionDeclaration:exit'](node);
+ },
+ FunctionExpression(node) {
+ argList.push(node.params.some(param => param.type === experimental_utils_1.AST_NODE_TYPES.Identifier && param.name === 'this'));
+ // baseRule's work
+ rules.FunctionExpression(node);
+ },
+ 'FunctionExpression:exit'(node) {
+ argList.pop();
+ // baseRule's work
+ rules['FunctionExpression:exit'](node);
+ },
+ ThisExpression(node) {
+ const lastFnArg = argList[argList.length - 1];
+ if (lastFnArg) {
+ return;
+ }
+ // baseRule's work
+ rules.ThisExpression(node);
+ } });
+ },
+});
+//# sourceMappingURL=no-invalid-this.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js.map
new file mode 100644
index 0000000..1d60a4e
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"no-invalid-this.js","sourceRoot":"","sources":["../../src/rules/no-invalid-this.ts"],"names":[],"mappings":";;;;;;AAAA,8EAG+C;AAC/C,uFAAwD;AACxD,kCAIiB;AAKjB,kBAAe,iBAAU,CAAsB;IAC7C,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,mEAAmE;YACrE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,QAAQ,QAAE,yBAAQ,CAAC,IAAI,CAAC,QAAQ,mCAAI;YAClC,cAAc,EAAE,oBAAoB;SACrC;QACD,MAAM,EAAE,yBAAQ,CAAC,IAAI,CAAC,MAAM;KAC7B;IACD,cAAc,EAAE,CAAC,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC;IAC5C,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,yBAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACvC,MAAM,OAAO,GAAc,EAAE,CAAC;QAE9B,uCACK,KAAK,KACR,mBAAmB,CAAC,IAAkC;gBACpD,OAAO,CAAC,IAAI,CACV,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,KAAK,CAAC,EAAE,CACN,KAAK,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,CACpE,CACF,CAAC;gBACF,kBAAkB;gBAClB,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;YAClC,CAAC;YACD,0BAA0B,CAAC,IAAkC;gBAC3D,OAAO,CAAC,GAAG,EAAE,CAAC;gBACd,kBAAkB;gBAClB,KAAK,CAAC,0BAA0B,CAAC,CAAC,IAAI,CAAC,CAAC;YAC1C,CAAC;YACD,kBAAkB,CAAC,IAAiC;gBAClD,OAAO,CAAC,IAAI,CACV,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,KAAK,CAAC,EAAE,CACN,KAAK,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,CACpE,CACF,CAAC;gBACF,kBAAkB;gBAClB,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;YACjC,CAAC;YACD,yBAAyB,CAAC,IAAiC;gBACzD,OAAO,CAAC,GAAG,EAAE,CAAC;gBACd,kBAAkB;gBAClB,KAAK,CAAC,yBAAyB,CAAC,CAAC,IAAI,CAAC,CAAC;YACzC,CAAC;YACD,cAAc,CAAC,IAA6B;gBAC1C,MAAM,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBAE9C,IAAI,SAAS,EAAE;oBACb,OAAO;iBACR;gBAED,kBAAkB;gBAClB,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YAC7B,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js
new file mode 100644
index 0000000..f58aa23
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js
@@ -0,0 +1,183 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const util = __importStar(require("../util"));
+exports.default = util.createRule({
+ name: 'no-invalid-void-type',
+ meta: {
+ type: 'problem',
+ docs: {
+ description: 'Disallows usage of `void` type outside of generic or return types',
+ category: 'Best Practices',
+ recommended: false,
+ },
+ messages: {
+ invalidVoidForGeneric: '{{ generic }} may not have void as a type variable',
+ invalidVoidNotReturnOrGeneric: 'void is only valid as a return type or generic type variable',
+ invalidVoidNotReturn: 'void is only valid as a return type',
+ invalidVoidNotReturnOrThisParam: 'void is only valid as return type or type of `this` parameter',
+ invalidVoidNotReturnOrThisParamOrGeneric: 'void is only valid as a return type or generic type variable or the type of a `this` parameter',
+ },
+ schema: [
+ {
+ type: 'object',
+ properties: {
+ allowInGenericTypeArguments: {
+ oneOf: [
+ { type: 'boolean' },
+ {
+ type: 'array',
+ items: { type: 'string' },
+ minLength: 1,
+ },
+ ],
+ },
+ allowAsThisParameter: {
+ type: 'boolean',
+ },
+ },
+ additionalProperties: false,
+ },
+ ],
+ },
+ defaultOptions: [
+ { allowInGenericTypeArguments: true, allowAsThisParameter: false },
+ ],
+ create(context, [{ allowInGenericTypeArguments, allowAsThisParameter }]) {
+ const validParents = [
+ experimental_utils_1.AST_NODE_TYPES.TSTypeAnnotation,
+ ];
+ const invalidGrandParents = [
+ experimental_utils_1.AST_NODE_TYPES.TSPropertySignature,
+ experimental_utils_1.AST_NODE_TYPES.CallExpression,
+ experimental_utils_1.AST_NODE_TYPES.ClassProperty,
+ experimental_utils_1.AST_NODE_TYPES.Identifier,
+ ];
+ const validUnionMembers = [
+ experimental_utils_1.AST_NODE_TYPES.TSVoidKeyword,
+ experimental_utils_1.AST_NODE_TYPES.TSNeverKeyword,
+ ];
+ if (allowInGenericTypeArguments === true) {
+ validParents.push(experimental_utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation);
+ }
+ /**
+ * @brief check if the given void keyword is used as a valid generic type
+ *
+ * reports if the type parametrized by void is not in the whitelist, or
+ * allowInGenericTypeArguments is false.
+ * no-op if the given void keyword is not used as generic type
+ */
+ function checkGenericTypeArgument(node) {
+ var _a, _b;
+ // only matches T<..., void, ...>
+ // extra check for precaution
+ /* istanbul ignore next */
+ if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) !== experimental_utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation ||
+ ((_b = node.parent.parent) === null || _b === void 0 ? void 0 : _b.type) !== experimental_utils_1.AST_NODE_TYPES.TSTypeReference) {
+ return;
+ }
+ // check whitelist
+ if (Array.isArray(allowInGenericTypeArguments)) {
+ const sourceCode = context.getSourceCode();
+ const fullyQualifiedName = sourceCode
+ .getText(node.parent.parent.typeName)
+ .replace(/ /gu, '');
+ if (!allowInGenericTypeArguments
+ .map(s => s.replace(/ /gu, ''))
+ .includes(fullyQualifiedName)) {
+ context.report({
+ messageId: 'invalidVoidForGeneric',
+ data: { generic: fullyQualifiedName },
+ node,
+ });
+ }
+ return;
+ }
+ if (!allowInGenericTypeArguments) {
+ context.report({
+ messageId: allowAsThisParameter
+ ? 'invalidVoidNotReturnOrThisParam'
+ : 'invalidVoidNotReturn',
+ node,
+ });
+ }
+ }
+ /**
+ * @brief checks that a union containing void is valid
+ * @return true if every member of the union is specified as a valid type in
+ * validUnionMembers, or is a valid generic type parametrized by void
+ */
+ function isValidUnionType(node) {
+ return node.types.every(member => {
+ var _a, _b;
+ return validUnionMembers.includes(member.type) ||
+ // allows any T<..., void, ...> here, checked by checkGenericTypeArgument
+ (member.type === experimental_utils_1.AST_NODE_TYPES.TSTypeReference &&
+ ((_a = member.typeParameters) === null || _a === void 0 ? void 0 : _a.type) ===
+ experimental_utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation && ((_b = member.typeParameters) === null || _b === void 0 ? void 0 : _b.params.map(param => param.type).includes(experimental_utils_1.AST_NODE_TYPES.TSVoidKeyword)));
+ });
+ }
+ return {
+ TSVoidKeyword(node) {
+ var _a;
+ /* istanbul ignore next */
+ if (!((_a = node.parent) === null || _a === void 0 ? void 0 : _a.parent)) {
+ return;
+ }
+ // checks T<..., void, ...> against specification of allowInGenericArguments option
+ if (node.parent.type === experimental_utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation &&
+ node.parent.parent.type === experimental_utils_1.AST_NODE_TYPES.TSTypeReference) {
+ checkGenericTypeArgument(node);
+ return;
+ }
+ // union w/ void must contain types from validUnionMembers, or a valid generic void type
+ if (node.parent.type === experimental_utils_1.AST_NODE_TYPES.TSUnionType &&
+ isValidUnionType(node.parent)) {
+ return;
+ }
+ // this parameter is ok to be void.
+ if (allowAsThisParameter &&
+ node.parent.type === experimental_utils_1.AST_NODE_TYPES.TSTypeAnnotation &&
+ node.parent.parent.type === experimental_utils_1.AST_NODE_TYPES.Identifier &&
+ node.parent.parent.name === 'this') {
+ return;
+ }
+ // default cases
+ if (validParents.includes(node.parent.type) &&
+ !invalidGrandParents.includes(node.parent.parent.type)) {
+ return;
+ }
+ context.report({
+ messageId: allowInGenericTypeArguments && allowAsThisParameter
+ ? 'invalidVoidNotReturnOrThisParamOrGeneric'
+ : allowInGenericTypeArguments
+ ? 'invalidVoidNotReturnOrGeneric'
+ : allowAsThisParameter
+ ? 'invalidVoidNotReturnOrThisParam'
+ : 'invalidVoidNotReturn',
+ node,
+ });
+ },
+ };
+ },
+});
+//# sourceMappingURL=no-invalid-void-type.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js.map
new file mode 100644
index 0000000..bd9e5ae
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"no-invalid-void-type.js","sourceRoot":"","sources":["../../src/rules/no-invalid-void-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAchC,kBAAe,IAAI,CAAC,UAAU,CAAwB;IACpD,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,mEAAmE;YACrE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,qBAAqB,EACnB,oDAAoD;YACtD,6BAA6B,EAC3B,8DAA8D;YAChE,oBAAoB,EAAE,qCAAqC;YAC3D,+BAA+B,EAC7B,+DAA+D;YACjE,wCAAwC,EACtC,gGAAgG;SACnG;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,2BAA2B,EAAE;wBAC3B,KAAK,EAAE;4BACL,EAAE,IAAI,EAAE,SAAS,EAAE;4BACnB;gCACE,IAAI,EAAE,OAAO;gCACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gCACzB,SAAS,EAAE,CAAC;6BACb;yBACF;qBACF;oBACD,oBAAoB,EAAE;wBACpB,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;KACF;IACD,cAAc,EAAE;QACd,EAAE,2BAA2B,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE;KACnE;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,CAAC;QACrE,MAAM,YAAY,GAAqB;YACrC,mCAAc,CAAC,gBAAgB;SAChC,CAAC;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,mCAAmC;gBACnC,IACE,oBAAoB;oBACpB,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,gBAAgB;oBACpD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU;oBACrD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,MAAM,EAClC;oBACA,OAAO;iBACR;gBAED,gBAAgB;gBAChB,IACE,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;oBACvC,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EACtD;oBACA,OAAO;iBACR;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,SAAS,EACP,2BAA2B,IAAI,oBAAoB;wBACjD,CAAC,CAAC,0CAA0C;wBAC5C,CAAC,CAAC,2BAA2B;4BAC7B,CAAC,CAAC,+BAA+B;4BACjC,CAAC,CAAC,oBAAoB;gCACtB,CAAC,CAAC,iCAAiC;gCACnC,CAAC,CAAC,sBAAsB;oBAC5B,IAAI;iBACL,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js
new file mode 100644
index 0000000..50e42bb
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js
@@ -0,0 +1,196 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+var _a;
+Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const no_loop_func_1 = __importDefault(require("eslint/lib/rules/no-loop-func"));
+const util = __importStar(require("../util"));
+exports.default = util.createRule({
+ name: 'no-loop-func',
+ meta: {
+ type: 'suggestion',
+ docs: {
+ description: 'Disallow function declarations that contain unsafe references inside loop statements',
+ category: 'Best Practices',
+ recommended: false,
+ extendsBaseRule: true,
+ },
+ schema: [],
+ messages: (_a = no_loop_func_1.default === null || no_loop_func_1.default === void 0 ? void 0 : no_loop_func_1.default.meta.messages) !== null && _a !== void 0 ? _a : {
+ unsafeRefs: 'Function declared in a loop contains unsafe references to variable(s) {{ varNames }}.',
+ },
+ },
+ defaultOptions: [],
+ create(context) {
+ /**
+ * Reports functions which match the following condition:
+ * - has a loop node in ancestors.
+ * - has any references which refers to an unsafe variable.
+ *
+ * @param node The AST node to check.
+ * @returns Whether or not the node is within a loop.
+ */
+ function checkForLoops(node) {
+ const loopNode = getContainingLoopNode(node);
+ if (!loopNode) {
+ return;
+ }
+ const references = context.getScope().through;
+ const unsafeRefs = references
+ .filter(r => !isSafe(loopNode, r))
+ .map(r => r.identifier.name);
+ if (unsafeRefs.length > 0) {
+ context.report({
+ node,
+ messageId: 'unsafeRefs',
+ data: { varNames: `'${unsafeRefs.join("', '")}'` },
+ });
+ }
+ }
+ return {
+ ArrowFunctionExpression: checkForLoops,
+ FunctionExpression: checkForLoops,
+ FunctionDeclaration: checkForLoops,
+ };
+ },
+});
+/**
+ * Gets the containing loop node of a specified node.
+ *
+ * We don't need to check nested functions, so this ignores those.
+ * `Scope.through` contains references of nested functions.
+ *
+ * @param node An AST node to get.
+ * @returns The containing loop node of the specified node, or `null`.
+ */
+function getContainingLoopNode(node) {
+ for (let currentNode = node; currentNode.parent; currentNode = currentNode.parent) {
+ const parent = currentNode.parent;
+ switch (parent.type) {
+ case experimental_utils_1.AST_NODE_TYPES.WhileStatement:
+ case experimental_utils_1.AST_NODE_TYPES.DoWhileStatement:
+ return parent;
+ case experimental_utils_1.AST_NODE_TYPES.ForStatement:
+ // `init` is outside of the loop.
+ if (parent.init !== currentNode) {
+ return parent;
+ }
+ break;
+ case experimental_utils_1.AST_NODE_TYPES.ForInStatement:
+ case experimental_utils_1.AST_NODE_TYPES.ForOfStatement:
+ // `right` is outside of the loop.
+ if (parent.right !== currentNode) {
+ return parent;
+ }
+ break;
+ case experimental_utils_1.AST_NODE_TYPES.ArrowFunctionExpression:
+ case experimental_utils_1.AST_NODE_TYPES.FunctionExpression:
+ case experimental_utils_1.AST_NODE_TYPES.FunctionDeclaration:
+ // We don't need to check nested functions.
+ return null;
+ default:
+ break;
+ }
+ }
+ return null;
+}
+/**
+ * Gets the containing loop node of a given node.
+ * If the loop was nested, this returns the most outer loop.
+ * @param node A node to get. This is a loop node.
+ * @param excludedNode A node that the result node should not include.
+ * @returns The most outer loop node.
+ */
+function getTopLoopNode(node, excludedNode) {
+ const border = excludedNode ? excludedNode.range[1] : 0;
+ let retv = node;
+ let containingLoopNode = node;
+ while (containingLoopNode && containingLoopNode.range[0] >= border) {
+ retv = containingLoopNode;
+ containingLoopNode = getContainingLoopNode(containingLoopNode);
+ }
+ return retv;
+}
+/**
+ * Checks whether a given reference which refers to an upper scope's variable is
+ * safe or not.
+ * @param loopNode A containing loop node.
+ * @param reference A reference to check.
+ * @returns `true` if the reference is safe or not.
+ */
+function isSafe(loopNode, reference) {
+ var _a;
+ const variable = reference.resolved;
+ const definition = variable === null || variable === void 0 ? void 0 : variable.defs[0];
+ const declaration = definition === null || definition === void 0 ? void 0 : definition.parent;
+ const kind = (declaration === null || declaration === void 0 ? void 0 : declaration.type) === experimental_utils_1.AST_NODE_TYPES.VariableDeclaration
+ ? declaration.kind
+ : '';
+ // type references are all safe
+ // this only really matters for global types that haven't been configured
+ if (reference.isTypeReference) {
+ return true;
+ }
+ // Variables which are declared by `const` is safe.
+ if (kind === 'const') {
+ return true;
+ }
+ /*
+ * Variables which are declared by `let` in the loop is safe.
+ * It's a different instance from the next loop step's.
+ */
+ if (kind === 'let' &&
+ declaration &&
+ declaration.range[0] > loopNode.range[0] &&
+ declaration.range[1] < loopNode.range[1]) {
+ return true;
+ }
+ /*
+ * WriteReferences which exist after this border are unsafe because those
+ * can modify the variable.
+ */
+ const border = getTopLoopNode(loopNode, kind === 'let' ? declaration : null)
+ .range[0];
+ /**
+ * Checks whether a given reference is safe or not.
+ * The reference is every reference of the upper scope's variable we are
+ * looking now.
+ *
+ * It's safe if the reference matches one of the following condition.
+ * - is readonly.
+ * - doesn't exist inside a local function and after the border.
+ *
+ * @param upperRef A reference to check.
+ * @returns `true` if the reference is safe.
+ */
+ function isSafeReference(upperRef) {
+ var _a;
+ const id = upperRef.identifier;
+ return (!upperRef.isWrite() ||
+ (((_a = variable === null || variable === void 0 ? void 0 : variable.scope) === null || _a === void 0 ? void 0 : _a.variableScope) === upperRef.from.variableScope &&
+ id.range[0] < border));
+ }
+ return (_a = variable === null || variable === void 0 ? void 0 : variable.references.every(isSafeReference)) !== null && _a !== void 0 ? _a : false;
+}
+//# sourceMappingURL=no-loop-func.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js.map
new file mode 100644
index 0000000..45c6496
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js.map
@@ -0,0 +1 @@
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AW,CAAC,CAAC,CAAC,IAAI,CAAC;SACzE,KAAK,CAAC,CAAC,CAAC,CAAC;IAEZ;;;;;;;;;;;OAWG;IACH,SAAS,eAAe,CAAC,QAAkC;;QACzD,MAAM,EAAE,GAAG,QAAQ,CAAC,UAAU,CAAC;QAE/B,OAAO,CACL,CAAC,QAAQ,CAAC,OAAO,EAAE;YACnB,CAAC,OAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,KAAK,0CAAE,aAAa,MAAK,QAAQ,CAAC,IAAI,CAAC,aAAa;gBAC7D,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CACxB,CAAC;IACJ,CAAC;IAED,aAAO,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,UAAU,CAAC,KAAK,CAAC,eAAe,oCAAK,KAAK,CAAC;AAC9D,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js
new file mode 100644
index 0000000..154caa1
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js
@@ -0,0 +1,63 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+var _a;
+Object.defineProperty(exports, "__esModule", { value: true });
+const util = __importStar(require("../util"));
+const baseRule = (() => {
+ try {
+ return require('eslint/lib/rules/no-loss-of-precision');
+ }
+ catch (_a) {
+ /* istanbul ignore next */
+ return null;
+ }
+})();
+exports.default = util.createRule({
+ name: 'no-loss-of-precision',
+ meta: {
+ type: 'problem',
+ docs: {
+ description: 'Disallow literal numbers that lose precision',
+ category: 'Possible Errors',
+ recommended: false,
+ extendsBaseRule: true,
+ },
+ schema: [],
+ messages: (_a = baseRule === null || baseRule === void 0 ? void 0 : baseRule.meta.messages) !== null && _a !== void 0 ? _a : { noLossOfPrecision: '' },
+ },
+ defaultOptions: [],
+ create(context) {
+ /* istanbul ignore if */ if (baseRule === null) {
+ throw new Error('@typescript-eslint/no-loss-of-precision requires at least ESLint v7.1.0');
+ }
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
+ const rules = baseRule.create(context);
+ function isSeperatedNumeric(node) {
+ return typeof node.value === 'number' && node.raw.includes('_');
+ }
+ return {
+ Literal(node) {
+ rules.Literal(Object.assign(Object.assign({}, node), { raw: isSeperatedNumeric(node) ? node.raw.replace(/_/g, '') : node.raw }));
+ },
+ };
+ },
+});
+//# sourceMappingURL=no-loss-of-precision.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map
new file mode 100644
index 0000000..ad268ed
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"no-loss-of-precision.js","sourceRoot":"","sources":["../../src/rules/no-loss-of-precision.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAEA,8CAAgC;AAEhC,MAAM,QAAQ,GAAG,CAAC,GAA2B,EAAE;IAC7C,IAAI;QACF,OAAO,OAAO,CAAC,uCA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no-magic-numbers.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js
index 9d4c33f..f413422 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js
@@ -1,14 +1,27 @@
"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+var _a;
Object.defineProperty(exports, "__esModule", { value: true });
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
const no_magic_numbers_1 = __importDefault(require("eslint/lib/rules/no-magic-numbers"));
@@ -36,7 +49,10 @@
type: 'boolean',
} }) }),
],
- messages: no_magic_numbers_1.default.meta.messages,
+ messages: (_a = no_magic_numbers_1.default.meta.messages) !== null && _a !== void 0 ? _a : {
+ useConst: "Number constants declarations must use 'const'.",
+ noMagic: 'No magic number: {{raw}}.',
+ },
},
defaultOptions: [
{
@@ -133,9 +149,8 @@
* @private
*/
function isParentTSEnumDeclaration(node) {
- var _a;
const parent = getLiteralParent(node);
- return ((_a = parent) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.TSEnumMember;
+ return (parent === null || parent === void 0 ? void 0 : parent.type) === experimental_utils_1.AST_NODE_TYPES.TSEnumMember;
}
/**
* Checks if the node parent is a Typescript literal type
@@ -181,9 +196,8 @@
* @private
*/
function isParentTSReadonlyClassProperty(node) {
- var _a;
const parent = getLiteralParent(node);
- if (((_a = parent) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.ClassProperty && parent.readonly) {
+ if ((parent === null || parent === void 0 ? void 0 : parent.type) === experimental_utils_1.AST_NODE_TYPES.ClassProperty && parent.readonly) {
return true;
}
return false;
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map
index 76a327a..98542b9 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-magic-numbers.js","sourceRoot":"","sources":["../../src/rules/no-magic-numbers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8EAG+C;AAC/C,yFAAyD;AACzD,8CAAgC;AAKhC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,0BAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;IACxD,CAAC,CAAC,0BAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IACzB,CAAC,CAAC,0BAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;AAEzB,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,wBAAw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at end of file
+{"version":3,"file":"no-magic-numbers.js","sourceRoot":"","sources":["../../src/rules/no-magic-numbers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,yFAAyD;AACzD,8CAAgC;AAKhC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,0BAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;IACxD,CAAC,CAAC,0BAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IACzB,CAAC,CAAC,0BAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;AAEzB,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,wBAAwB;YACrC,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,iFAAiF;QACjF,MAAM,EAAE;4CAED,cAAc,KACjB,UAAU,kCACL,cAAc,CAAC,UAAU,KAC5B,yBAAyB,EAAE;wBACzB,IAAI,EAAE,SAAS;qBAChB,EACD,WAAW,EAAE;wBACX,IAAI,EAAE,SAAS;qBAChB,EACD,6BAA6B,EAAE;wBAC7B,IAAI,EAAE,SAAS;qBAChB;SAGN;QACD,QAAQ,QAAE,0BAAQ,CAAC,IAAI,CAAC,QAAQ,mCAAI;YAClC,QAAQ,EAAE,iDAAiD;YAC3D,OAAO,EAAE,2BAA2B;SACrC;KACF;IACD,cAAc,EAAE;QACd;YACE,MAAM,EAAE,EAAE;YACV,kBAAkB,EAAE,KAAK;YACzB,YAAY,EAAE,KAAK;YACnB,aAAa,EAAE,KAAK;YACpB,yBAAyB,EAAE,KAAK;YAChC,WAAW,EAAE,KAAK;YAClB,6BAA6B,EAAE,KAAK;SACrC;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,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GAAG,IAAI,CAAC,MAAM,CAAC;KACpB;IAED,0DAA0D;IAC1D,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE;QAChC,OAAO,KAAK,CAAC;KACd;IAED,yDAAyD;IACzD,IAAI,mCAAmC,CAAC,IAAI,CAAC,EAAE;QAC7C,OAAO,IAAI,CAAC;KACb;IAED,0FAA0F;IAC1F,IAAI,wBAAwB,CAAC,IAAI,CAAC,EAAE;QAClC,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;GAKG;AACH,SAAS,+BAA+B,CAAC,IAAsB;IAC7D,MAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAEtC,IAAI,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,MAAK,mCAAc,CAAC,aAAa,IAAI,MAAM,CAAC,QAAQ,EAAE;QACpE,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js
index 2c3b8e9..3a310de 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js.map
index f04b8f5..36e0d34 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-misused-new.js","sourceRoot":"","sources":["../../src/rules/no-misused-new.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,qDAAqD;YAClE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;SACrB;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,qBAAqB,EAAE,iDAAiD;YACxE,iBAAiB,EAAE,uCAAuC;SAC3D;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ;;;WAGG;QACH,SAAS,oBAAoB,CAC3B,IAIa;YAEb,IAAI,IAAI,EAAE;gBACR,QAAQ,IAAI,CAAC,IAAI,EAAE;oBACjB,KAAK,mCAAc,CAAC,gBAAgB;wBAClC,OAAO,oBAAoB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;oBACnD,KAAK,mCAAc,CAAC,eAAe;wBACjC,OAAO,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC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end of file
+{"version":3,"file":"no-misused-new.js","sourceRoot":"","sources":["../../src/rules/no-misused-new.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,qDAAqD;YAClE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;SACrB;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,qBAAqB,EAAE,iDAAiD;YACxE,iBAAiB,EAAE,uCAAuC;SAC3D;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ;;;WAGG;QACH,SAAS,oBAAoB,CAC3B,IAIa;YAEb,IAAI,IAAI,EAAE;gBACR,QAAQ,IAAI,CAAC,IAAI,EAAE;oBACjB,KAAK,mCAAc,CAAC,gBAAgB;wBAClC,OAAO,oBAAoB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;oBACnD,KAAK,mCAAc,CAAC,eAAe;wBACjC,OAAO,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;oBAC7C,KAAK,mCAAc,CAAC,UAAU;wBAC5B,OAAO,IAAI,CAAC,IAAI,CAAC;oBACnB;wBACE,MAAM;iBACT;aACF;YACD,OAAO,IAAI,CAAC;QACd,CAAC;QAED;;;WAGG;QACH,SAAS,oBAAoB,CAC3B,MAAiC,EACjC,UAAiD;YAEjD,IACE,MAAM;gBACN,IAAI,IAAI,MAAM;gBACd,MAAM,CAAC,EAAE;gBACT,MAAM,CAAC,EAAE,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU,EAC5C;gBACA,OAAO,oBAAoB,CAAC,UAAU,CAAC,KAAK,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC;aAC5D;YACD,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO;YACL,mDAAmD,CACjD,IAA8C;gBAE9C,IACE,oBAAoB,CAClB,IAAI,CAAC,MAAO,CAAC,MAAyC,EACtD,IAAI,CAAC,UAAU,CAChB,EACD;oBACA,cAAc;oBACd,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,uBAAuB;qBACnC,CAAC,CAAC;iBACJ;YACH,CAAC;YACD,2CAA2C,CACzC,IAAgC;gBAEhC,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,uBAAuB;iBACnC,CAAC,CAAC;YACL,CAAC;YACD,8CAA8C,CAC5C,IAA+B;gBAE/B,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,mCAAc,CAAC,6BAA6B,EAAE;oBACpE,IACE,IAAI,CAAC,MAAM;wBACX,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,EAC/D;wBACA,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI;4BACJ,SAAS,EAAE,mBAAmB;yBAC/B,CAAC,CAAC;qBACJ;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js
index acaaca1..5c5b72f 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -66,7 +78,6 @@
};
const voidReturnChecks = {
CallExpression: checkArguments,
- OptionalCallExpression: checkArguments,
NewExpression: checkArguments,
};
function checkTestConditional(node) {
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map
index 097ee07..ae24636 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-misused-promises.js","sourceRoot":"","sources":["../../src/rules/no-misused-promises.ts"],"names":[],"mappings":";;;;;;;;;AACA,iDAAmC;AACnC,+CAAiC;AAEjC,8CAAgC;AAShC,kBAAe,IAAI,CAAC,UAAU,CAAwC;IACpE,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,4DAA4D;YACzE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,UAAU,EACR,yEAAyE;YAC3E,WAAW,EAAE,sDAAsD;SACpE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,kBAAkB,EAA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C,CAAC;yBAC9B;6BAAM,IACL,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,EAC5D;4BACA,qBAAqB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;yBAClC;qBACF;iBACF;aACF;SACF;KACF;IAED,2EAA2E;IAC3E,wCAAwC;IACxC,KAAK,MAAM,QAAQ,IAAI,qBAAqB,EAAE;QAC5C,iBAAiB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;KACpC;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAED,uEAAuE;AACvE,SAAS,eAAe,CACtB,OAAuB,EACvB,IAAmB;IAEnB,MAAM,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;IAEtE,KAAK,MAAM,OAAO,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE;QAClD,KAAK,MAAM,SAAS,IAAI,OAAO,CAAC,iBAAiB,EAAE,EAAE;YACnD,MAAM,UAAU,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC;YAC7C,IAAI,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,UAAU,CAAC,EAAE;gBACrD,OAAO,IAAI,CAAC;aACb;SACF;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-misused-promises.js","sourceRoot":"","sources":["../../src/rules/no-misused-promises.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,iDAAmC;AACnC,+CAAiC;AAEjC,8CAAgC;AAShC,kBAAe,IAAI,CAAC,UAAU,CAAwC;IACpE,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,4DAA4D;YACzE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;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AC;wBAC7C,IAAI,OAAO,CAAC,aAAa,CAAC,UAAU,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;4BACxD,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;yBAC9B;6BAAM,IACL,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,EAC5D;4BACA,qBAAqB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;yBAClC;qBACF;iBACF;aACF;SACF;KACF;IAED,2EAA2E;IAC3E,wCAAwC;IACxC,KAAK,MAAM,QAAQ,IAAI,qBAAqB,EAAE;QAC5C,iBAAiB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;KACpC;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAED,uEAAuE;AACvE,SAAS,eAAe,CACtB,OAAuB,EACvB,IAAmB;IAEnB,MAAM,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;IAEtE,KAAK,MAAM,OAAO,IAAI,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE;QAClD,KAAK,MAAM,SAAS,IAAI,OAAO,CAAC,iBAAiB,EAAE,EAAE;YACnD,MAAM,UAAU,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC;YAC7C,IAAI,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,UAAU,CAAC,EAAE;gBACrD,OAAO,IAAI,CAAC;aACb;SACF;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js
index ad0ec8e..cfd3d37 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -44,12 +56,18 @@
],
create(context, [{ allowDeclarations, allowDefinitionFiles }]) {
const filename = context.getFilename();
+ function isDeclaration(node) {
+ var _a;
+ return (node.declare === true ||
+ (((_a = node.parent.parent) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.TSModuleDeclaration &&
+ isDeclaration(node.parent.parent)));
+ }
return {
"TSModuleDeclaration[global!=true][id.type='Identifier']"(node) {
if ((node.parent &&
node.parent.type === experimental_utils_1.AST_NODE_TYPES.TSModuleDeclaration) ||
(allowDefinitionFiles && util.isDefinitionFile(filename)) ||
- (allowDeclarations && node.declare === true)) {
+ (allowDeclarations && isDeclaration(node))) {
return;
}
context.report({
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map
index d1b04f6..db4bd76 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-namespace.js","sourceRoot":"","sources":["../../src/rules/no-namespace.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,8DAA8D;YAChE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;SACrB;QACD,QAAQ,EAAE;YACR,uBAAuB,EACrB,kFAAkF;SACrF;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,iBAAiB,EAAE;wBACjB,IAAI,EAAE,SAAS;qBAChB;oBACD,oBAAoB,EAAE;wBACpB,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,iBAAiB,EAAE,KAAK;YACxB,oBAAoB,EAAE,IAAI;SAC3B;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,CAAC;QAC3D,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;QAEvC,OAAO;YACL,yDAAyD,CACvD,IAAkC;gBAElC,IACE,CAAC,IAAI,CAAC,MAAM;oBACV,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,mBAAmB,CAAC;oBAC1D,CAAC,oBAAoB,IAAI,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;oBACzD,CAAC,iBAAiB,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,EAC5C;oBACA,OAAO;iBACR;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,yBAAyB;iBACrC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-namespace.js","sourceRoot":"","sources":["../../src/rules/no-namespace.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,8DAA8D;YAChE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;SACrB;QACD,QAAQ,EAAE;YACR,uBAAuB,EACrB,kFAAkF;SACrF;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,iBAAiB,EAAE;wBACjB,IAAI,EAAE,SAAS;qBAChB;oBACD,oBAAoB,EAAE;wBACpB,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,iBAAiB,EAAE,KAAK;YACxB,oBAAoB,EAAE,IAAI;SAC3B;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,CAAC;QAC3D,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;QAEvC,SAAS,aAAa,CAAC,IAAkC;;YACvD,OAAO,CACL,IAAI,CAAC,OAAO,KAAK,IAAI;gBACrB,CAAC,OAAA,IAAI,CAAC,MAAO,CAAC,MAAM,0CAAE,IAAI,MAAK,mCAAc,CAAC,mBAAmB;oBAC/D,aAAa,CAAC,IAAI,CAAC,MAAO,CAAC,MAAM,CAAC,CAAC,CACtC,CAAC;QACJ,CAAC;QAED,OAAO;YACL,yDAAyD,CACvD,IAAkC;gBAElC,IACE,CAAC,IAAI,CAAC,MAAM;oBACV,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,mBAAmB,CAAC;oBAC1D,CAAC,oBAAoB,IAAI,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;oBACzD,CAAC,iBAAiB,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC,EAC1C;oBACA,OAAO;iBACR;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,yBAAyB;iBACrC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js
index 2fbea0f..e86f3ce 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js
@@ -1,13 +1,31 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const ts = __importStar(require("typescript"));
+const semver = __importStar(require("semver"));
const util = __importStar(require("../util"));
+const is3dot9 = semver.satisfies(ts.version, `>= 3.9.0 || >= 3.9.1-rc || >= 3.9.0-beta`, {
+ includePrerelease: true,
+});
exports.default = util.createRule({
name: 'no-non-null-asserted-optional-chain',
meta: {
@@ -15,7 +33,8 @@
docs: {
description: 'Disallows using a non-null assertion after an optional chain expression',
category: 'Possible Errors',
- recommended: false,
+ recommended: 'error',
+ suggestion: true,
},
messages: {
noNonNullOptionalChain: 'Optional chain expressions can return undefined by design - using a non-null assertion is unsafe and wrong.',
@@ -25,8 +44,19 @@
},
defaultOptions: [],
create(context) {
- return {
- 'TSNonNullExpression > :matches(OptionalMemberExpression, OptionalCallExpression)'(node) {
+ // TS3.9 made a breaking change to how non-null works with optional chains.
+ // Pre-3.9, `x?.y!.z` means `(x?.y).z` - i.e. it essentially scrubbed the optionality from the chain
+ // Post-3.9, `x?.y!.z` means `x?.y!.z` - i.e. it just asserts that the property `y` is non-null, not the result of `x?.y`.
+ // This means that for > 3.9, x?.y!.z is valid!
+ //
+ // NOTE: these cases are still invalid for 3.9:
+ // - x?.y.z!
+ // - (x?.y)!.z
+ const baseSelectors = {
+ // non-nulling a wrapped chain will scrub all nulls introduced by the chain
+ // (x?.y)!
+ // (x?.())!
+ 'TSNonNullExpression > ChainExpression'(node) {
// selector guarantees this assertion
const parent = node.parent;
context.report({
@@ -46,7 +76,71 @@
],
});
},
+ // non-nulling at the end of a chain will scrub all nulls introduced by the chain
+ // x?.y!
+ // x?.()!
+ 'ChainExpression > TSNonNullExpression'(node) {
+ context.report({
+ node,
+ messageId: 'noNonNullOptionalChain',
+ // use a suggestion instead of a fixer, because this can obviously break type checks
+ suggest: [
+ {
+ messageId: 'suggestRemovingNonNull',
+ fix(fixer) {
+ return fixer.removeRange([node.range[1] - 1, node.range[1]]);
+ },
+ },
+ ],
+ });
+ },
};
+ if (is3dot9) {
+ return baseSelectors;
+ }
+ return Object.assign(Object.assign({}, baseSelectors), { [[
+ // > :not(ChainExpression) because that case is handled by a previous selector
+ 'MemberExpression > TSNonNullExpression.object > :not(ChainExpression)',
+ 'CallExpression > TSNonNullExpression.callee > :not(ChainExpression)',
+ ].join(', ')](child) {
+ // selector guarantees this assertion
+ const node = child.parent;
+ let current = child;
+ while (current) {
+ switch (current.type) {
+ case experimental_utils_1.AST_NODE_TYPES.MemberExpression:
+ if (current.optional) {
+ // found an optional chain! stop traversing
+ break;
+ }
+ current = current.object;
+ continue;
+ case experimental_utils_1.AST_NODE_TYPES.CallExpression:
+ if (current.optional) {
+ // found an optional chain! stop traversing
+ break;
+ }
+ current = current.callee;
+ continue;
+ default:
+ // something that's not a ChainElement, which means this is not an optional chain we want to check
+ return;
+ }
+ }
+ context.report({
+ node,
+ messageId: 'noNonNullOptionalChain',
+ // use a suggestion instead of a fixer, because this can obviously break type checks
+ suggest: [
+ {
+ messageId: 'suggestRemovingNonNull',
+ fix(fixer) {
+ return fixer.removeRange([node.range[1] - 1, node.range[1]]);
+ },
+ },
+ ],
+ });
+ } });
},
});
//# sourceMappingURL=no-non-null-asserted-optional-chain.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js.map
index 63375b6..21f4056 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-non-null-asserted-optional-chain.js","sourceRoot":"","sources":["../../src/rules/no-non-null-asserted-optional-chain.ts"],"names":[],"mappings":";;;;;;;;;AACA,8CAAgC;AAIhC,kBAAe,IAAI,CAAC,UAAU,CAAiB;IAC7C,IAAI,EAAE,qCAAqC;IAC3C,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,yEAAyE;YAC3E,QAAQ,EAAE,iBAAiB;YAC3B,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,sBAAsB,EACpB,6GAA6G;YAC/G,sBAAsB,EAAE,2CAA2C;SACpE;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,kFAAkF,CAChF,IAEqC;gBAErC,qCAAqC;gBACrC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAsC,CAAC;gBAC3D,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,wBAAwB;oBACnC,oFAAoF;oBACpF,OAAO,EAAE;wBACP;4BACE,SAAS,EAAE,wBAAwB;4BACnC,GAAG,CAAC,KAAK;gCACP,OAAO,KAAK,CAAC,WAAW,CAAC;oCACvB,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;oCACnB,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;iCAChB,CAAC,CAAC;4BACL,CAAC;yBACF;qBACF;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-non-null-asserted-optional-chain.js","sourceRoot":"","sources":["../../src/rules/no-non-null-asserted-optional-chain.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAI+C;AAC/C,+CAAiC;AACjC,+CAAiC;AACjC,8CAAgC;AAEhC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAC9B,EAAE,CAAC,OAAO,EACV,0CAA0C,EAC1C;IACE,iBAAiB,EAAE,IAAI;CACxB,CACF,CAAC;AAEF,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,qCAAqC;IAC3C,IAAI,EAAE;QACJ,IAAI,EAAE,SA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IACD;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js
index e9e0333..82ab1fd 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -17,6 +29,7 @@
description: 'Disallows non-null assertions using the `!` postfix operator',
category: 'Stylistic Issues',
recommended: 'warn',
+ suggestion: true,
},
messages: {
noNonNull: 'Forbidden non-null assertion.',
@@ -29,6 +42,7 @@
const sourceCode = context.getSourceCode();
return {
TSNonNullExpression(node) {
+ var _a, _b;
const suggest = [];
function convertTokenToOptional(replacement) {
return (fixer) => {
@@ -48,60 +62,56 @@
return null;
};
}
- if (node.parent) {
- if ((node.parent.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression ||
- node.parent.type === experimental_utils_1.AST_NODE_TYPES.OptionalMemberExpression) &&
- node.parent.object === node) {
- if (!node.parent.optional) {
- if (node.parent.computed) {
- // it is x![y]?.z
- suggest.push({
- messageId: 'suggestOptionalChain',
- fix: convertTokenToOptional('?.'),
- });
- }
- else {
- // it is x!.y?.z
- suggest.push({
- messageId: 'suggestOptionalChain',
- fix: convertTokenToOptional('?'),
- });
- }
- }
- else {
- if (node.parent.computed) {
- // it is x!?.[y].z
- suggest.push({
- messageId: 'suggestOptionalChain',
- fix: removeToken(),
- });
- }
- else {
- // it is x!?.y.z
- suggest.push({
- messageId: 'suggestOptionalChain',
- fix: removeToken(),
- });
- }
- }
- }
- else if ((node.parent.type === experimental_utils_1.AST_NODE_TYPES.CallExpression ||
- node.parent.type === experimental_utils_1.AST_NODE_TYPES.OptionalCallExpression) &&
- node.parent.callee === node) {
- if (!node.parent.optional) {
- // it is x.y?.z!()
+ if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.MemberExpression &&
+ node.parent.object === node) {
+ if (!node.parent.optional) {
+ if (node.parent.computed) {
+ // it is x![y]?.z
suggest.push({
messageId: 'suggestOptionalChain',
fix: convertTokenToOptional('?.'),
});
}
else {
- // it is x.y.z!?.()
+ // it is x!.y?.z
+ suggest.push({
+ messageId: 'suggestOptionalChain',
+ fix: convertTokenToOptional('?'),
+ });
+ }
+ }
+ else {
+ if (node.parent.computed) {
+ // it is x!?.[y].z
suggest.push({
messageId: 'suggestOptionalChain',
fix: removeToken(),
});
}
+ else {
+ // it is x!?.y.z
+ suggest.push({
+ messageId: 'suggestOptionalChain',
+ fix: removeToken(),
+ });
+ }
+ }
+ }
+ else if (((_b = node.parent) === null || _b === void 0 ? void 0 : _b.type) === experimental_utils_1.AST_NODE_TYPES.CallExpression &&
+ node.parent.callee === node) {
+ if (!node.parent.optional) {
+ // it is x.y?.z!()
+ suggest.push({
+ messageId: 'suggestOptionalChain',
+ fix: convertTokenToOptional('?.'),
+ });
+ }
+ else {
+ // it is x.y.z!?.()
+ suggest.push({
+ messageId: 'suggestOptionalChain',
+ fix: removeToken(),
+ });
}
}
context.report({
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js.map
index 4a3b4d2..4f1d31d 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-non-null-assertion.js","sourceRoot":"","sources":["../../src/rules/no-non-null-assertion.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAIhC,kBAAe,IAAI,CAAC,UAAU,CAAiB;IAC7C,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,8DAA8D;YAChE,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,MAAM;SACpB;QACD,QAAQ,EAAE;YACR,SAAS,EAAE,+BAA+B;YAC1C,oBAAoB,EAClB,mKAAmK;SACtK;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAC3C,OAAO;YACL,mBAAmB,CAAC,IAAI;gBACtB,MAAM,OAAO,GAA+C,EAAE,CAAC;gBAC/D,SAAS,sBAAsB,CAC7B,WAAuB;oBAEvB,OAAO,CAAC,KAAyB,EAA2B,EAAE;wBAC5D,MAAM,QAAQ,GAAG,UAAU,CAAC,aAAa,CACvC,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,4BAA4B,CAClC,CAAC;wBACF,IAAI,QAAQ,EAAE;4BACZ,OAAO,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC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gCAChB,OAAO,CAAC,IAAI,CAAC;oCACX,SAAS,EAAE,sBAAsB;oCACjC,GAAG,EAAE,WAAW,EAAE;iCACnB,CAAC,CAAC;6BACJ;yBACF;qBACF;yBAAM,IACL,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,cAAc;wBACjD,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,sBAAsB,CAAC;wBAC7D,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,IAAI,EAC3B;wBACA,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;4BACzB,kBAAkB;4BAClB,OAAO,CAAC,IAAI,CAAC;gCACX,SAAS,EAAE,sBAAsB;gCACjC,GAAG,EAAE,sBAAsB,CAAC,IAAI,CAAC;6BAClC,CAAC,CAAC;yBACJ;6BAAM;4BACL,mBAAmB;4BACnB,OAAO,CAAC,IAAI,CAAC;gCACX,SAAS,EAAE,sBAAsB;gCACjC,GAAG,EAAE,WAAW,EAAE;6BACnB,CAAC,CAAC;yBACJ;qBACF;iBACF;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,WAAW;oBACtB,OAAO;iBACR,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-non-null-assertion.js","sourceRoot":"","sources":["../../src/rules/no-non-null-assertion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAIhC,kBAAe,IAAI,CAAC,UAAU,CAAiB;IAC7C,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,8DAA8D;YAChE,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,MAAM;YACnB,UAAU,EAAE,IAAI;SACjB;QACD,QAAQ,EAAE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slint-plugin/dist/rules/no-parameter-properties.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-parameter-properties.js
index daef997..7e7a10b 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-parameter-properties.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-parameter-properties.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-parameter-properties.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-parameter-properties.js.map
index 43e9a71..3a15f4c 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-parameter-properties.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-parameter-properties.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-parameter-properties.js","sourceRoot":"","sources":["../../src/rules/no-parameter-properties.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAiBhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,yBAAyB;IAC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,IAAI,KAAK,mCAAc,CAAC,UAAU;wBACjD,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,mCAAc,CAAC,iBAAiB,EACxD;wBACA,OAAO;qBACR;oBAED,MAAM,IAAI,GACR,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU;wBAC/C,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI;wBACrB,CAAC,CAAC,qDAAqD;4BACpD,IAAI,CAAC,SAAS,CAAC,IAA4B,CAAC,IAAI,CAAC;oBAExD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,aAAa;wBACxB,IAAI,EAAE;4BACJ,SAAS,EAAE,IAAI;yBAChB;qBACF,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-parameter-properties.js","sourceRoot":"","sources":["../../src/rules/no-parameter-properties.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAiBhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,gEAAgE;YAClE,QAAQ,EAAE,kBAAkB;YAC5B,oCAAoC;YACpC,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,WAAW,EACT,+DAA+D;SAClE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE;gCACJ,UAAU;gCACV,SAAS;gCACT,WAAW;gCACX,QAAQ;gCACR,kBAAkB;gCAClB,oBAAoB;gCACpB,iBAAiB;6BAClB;yBACF;wBACD,QAAQ,EAAE,CAAC;q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H,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js
new file mode 100644
index 0000000..ccea8a9
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js
@@ -0,0 +1,224 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const util = __importStar(require("../util"));
+// https://github.com/lodash/lodash/blob/86a852fe763935bb64c12589df5391fd7d3bb14d/escapeRegExp.js
+const reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
+const reHasRegExpChar = RegExp(reRegExpChar.source);
+function escapeRegExp(str) {
+ return str && reHasRegExpChar.test(str)
+ ? str.replace(reRegExpChar, '\\$&')
+ : str || '';
+}
+function getNameLocationInGlobalDirectiveComment(sourceCode, comment, name) {
+ const namePattern = new RegExp(`[\\s,]${escapeRegExp(name)}(?:$|[\\s,:])`, 'gu');
+ // To ignore the first text "global".
+ namePattern.lastIndex = comment.value.indexOf('global') + 6;
+ // Search a given variable name.
+ const match = namePattern.exec(comment.value);
+ // Convert the index to loc.
+ const start = sourceCode.getLocFromIndex(comment.range[0] + '/*'.length + (match ? match.index + 1 : 0));
+ const end = {
+ line: start.line,
+ column: start.column + (match ? name.length : 1),
+ };
+ return { start, end };
+}
+exports.default = util.createRule({
+ name: 'no-redeclare',
+ meta: {
+ type: 'suggestion',
+ docs: {
+ description: 'Disallow variable redeclaration',
+ category: 'Best Practices',
+ recommended: false,
+ extendsBaseRule: true,
+ },
+ schema: [
+ {
+ type: 'object',
+ properties: {
+ builtinGlobals: {
+ type: 'boolean',
+ },
+ ignoreDeclarationMerge: {
+ type: 'boolean',
+ },
+ },
+ additionalProperties: false,
+ },
+ ],
+ messages: {
+ redeclared: "'{{id}}' is already defined.",
+ redeclaredAsBuiltin: "'{{id}}' is already defined as a built-in global variable.",
+ redeclaredBySyntax: "'{{id}}' is already defined by a variable declaration.",
+ },
+ },
+ defaultOptions: [
+ {
+ builtinGlobals: true,
+ ignoreDeclarationMerge: true,
+ },
+ ],
+ create(context, [options]) {
+ const sourceCode = context.getSourceCode();
+ const CLASS_DECLARATION_MERGE_NODES = new Set([
+ experimental_utils_1.AST_NODE_TYPES.TSInterfaceDeclaration,
+ experimental_utils_1.AST_NODE_TYPES.TSModuleDeclaration,
+ experimental_utils_1.AST_NODE_TYPES.ClassDeclaration,
+ ]);
+ const FUNCTION_DECLARATION_MERGE_NODES = new Set([
+ experimental_utils_1.AST_NODE_TYPES.TSModuleDeclaration,
+ experimental_utils_1.AST_NODE_TYPES.FunctionDeclaration,
+ ]);
+ function* iterateDeclarations(variable) {
+ if ((options === null || options === void 0 ? void 0 : options.builtinGlobals) &&
+ 'eslintImplicitGlobalSetting' in variable &&
+ (variable.eslintImplicitGlobalSetting === 'readonly' ||
+ variable.eslintImplicitGlobalSetting === 'writable')) {
+ yield { type: 'builtin' };
+ }
+ if ('eslintExplicitGlobalComments' in variable &&
+ variable.eslintExplicitGlobalComments) {
+ for (const comment of variable.eslintExplicitGlobalComments) {
+ yield {
+ type: 'comment',
+ node: comment,
+ loc: getNameLocationInGlobalDirectiveComment(sourceCode, comment, variable.name),
+ };
+ }
+ }
+ const identifiers = variable.identifiers
+ .map(id => ({
+ identifier: id,
+ parent: id.parent,
+ }))
+ // ignore function declarations because TS will treat them as an overload
+ .filter(({ parent }) => parent.type !== experimental_utils_1.AST_NODE_TYPES.TSDeclareFunction);
+ if (options.ignoreDeclarationMerge && identifiers.length > 1) {
+ if (
+ // interfaces merging
+ identifiers.every(({ parent }) => parent.type === experimental_utils_1.AST_NODE_TYPES.TSInterfaceDeclaration)) {
+ return;
+ }
+ if (
+ // namespace/module merging
+ identifiers.every(({ parent }) => parent.type === experimental_utils_1.AST_NODE_TYPES.TSModuleDeclaration)) {
+ return;
+ }
+ if (
+ // class + interface/namespace merging
+ identifiers.every(({ parent }) => CLASS_DECLARATION_MERGE_NODES.has(parent.type))) {
+ const classDecls = identifiers.filter(({ parent }) => parent.type === experimental_utils_1.AST_NODE_TYPES.ClassDeclaration);
+ if (classDecls.length === 1) {
+ // safe declaration merging
+ return;
+ }
+ // there's more than one class declaration, which needs to be reported
+ for (const { identifier } of classDecls) {
+ yield { type: 'syntax', node: identifier, loc: identifier.loc };
+ }
+ return;
+ }
+ if (
+ // class + interface/namespace merging
+ identifiers.every(({ parent }) => FUNCTION_DECLARATION_MERGE_NODES.has(parent.type))) {
+ const functionDecls = identifiers.filter(({ parent }) => parent.type === experimental_utils_1.AST_NODE_TYPES.FunctionDeclaration);
+ if (functionDecls.length === 1) {
+ // safe declaration merging
+ return;
+ }
+ // there's more than one class declaration, which needs to be reported
+ for (const { identifier } of functionDecls) {
+ yield { type: 'syntax', node: identifier, loc: identifier.loc };
+ }
+ return;
+ }
+ }
+ for (const { identifier } of identifiers) {
+ yield { type: 'syntax', node: identifier, loc: identifier.loc };
+ }
+ }
+ function findVariablesInScope(scope) {
+ for (const variable of scope.variables) {
+ const [declaration, ...extraDeclarations] = iterateDeclarations(variable);
+ if (extraDeclarations.length === 0) {
+ continue;
+ }
+ /*
+ * If the type of a declaration is different from the type of
+ * the first declaration, it shows the location of the first
+ * declaration.
+ */
+ const detailMessageId = declaration.type === 'builtin'
+ ? 'redeclaredAsBuiltin'
+ : 'redeclaredBySyntax';
+ const data = { id: variable.name };
+ // Report extra declarations.
+ for (const { type, node, loc } of extraDeclarations) {
+ const messageId = type === declaration.type ? 'redeclared' : detailMessageId;
+ if (node) {
+ context.report({ node, loc, messageId, data });
+ }
+ else if (loc) {
+ context.report({ loc, messageId, data });
+ }
+ }
+ }
+ }
+ /**
+ * Find variables in the current scope.
+ */
+ function checkForBlock(node) {
+ const scope = context.getScope();
+ /*
+ * In ES5, some node type such as `BlockStatement` doesn't have that scope.
+ * `scope.block` is a different node in such a case.
+ */
+ if (scope.block === node) {
+ findVariablesInScope(scope);
+ }
+ }
+ return {
+ Program() {
+ const scope = context.getScope();
+ findVariablesInScope(scope);
+ // Node.js or ES modules has a special scope.
+ if (scope.type === 'global' &&
+ scope.childScopes[0] &&
+ // The special scope's block is the Program node.
+ scope.block === scope.childScopes[0].block) {
+ findVariablesInScope(scope.childScopes[0]);
+ }
+ },
+ FunctionDeclaration: checkForBlock,
+ FunctionExpression: checkForBlock,
+ ArrowFunctionExpression: checkForBlock,
+ BlockStatement: checkForBlock,
+ ForStatement: checkForBlock,
+ ForInStatement: checkForBlock,
+ ForOfStatement: checkForBlock,
+ SwitchStatement: checkForBlock,
+ };
+ },
+});
+//# sourceMappingURL=no-redeclare.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js.map
new file mode 100644
index 0000000..38aac7a
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"no-redeclare.js","sourceRoot":"","sources":["../../src/rules/no-redeclare.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;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B,CAAC,KAAK,CAAC,CAAC;gBAE5B,6CAA6C;gBAC7C,IACE,KAAK,CAAC,IAAI,KAAK,QAAQ;oBACvB,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;oBACpB,iDAAiD;oBACjD,KAAK,CAAC,KAAK,KAAK,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,EAC1C;oBACA,oBAAoB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;iBAC5C;YACH,CAAC;YAED,mBAAmB,EAAE,aAAa;YAClC,kBAAkB,EAAE,aAAa;YACjC,uBAAuB,EAAE,aAAa;YAEtC,cAAc,EAAE,aAAa;YAC7B,YAAY,EAAE,aAAa;YAC3B,cAAc,EAAE,aAAa;YAC7B,cAAc,EAAE,aAAa;YAC7B,eAAe,EAAE,aAAa;SAC/B,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js
index 1439b2b..3bf5f6b 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -25,7 +37,7 @@
defaultOptions: [],
create(context) {
return {
- ':matches(CallExpression, OptionalCallExpression) > Identifier[name="require"]'(node) {
+ 'CallExpression > Identifier[name="require"]'(node) {
context.report({
node: node.parent,
messageId: 'noRequireImports',
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map
index c3f3da7..48ae71e 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-require-imports.js","sourceRoot":"","sources":["../../src/rules/no-require-imports.ts"],"names":[],"mappings":";;;;;;;;;AACA,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;SACnB;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,gBAAgB,EAAE,0CAA0C;SAC7D;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,+EAA+E,CAC7E,IAAyB;gBAEzB,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,IAAI,CAAC,MAAO;oBAClB,SAAS,EAAE,kBAAkB;iBAC9B,CAAC,CAAC;YACL,CAAC;YACD,yBAAyB,CAAC,IAAI;gBAC5B,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,kBAAkB;iBAC9B,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-require-imports.js","sourceRoot":"","sources":["../../src/rules/no-require-imports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;SACnB;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,gBAAgB,EAAE,0CAA0C;SAC7D;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,6CAA6C,CAC3C,IAAyB;gBAEzB,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,IAAI,CAAC,MAAO;oBAClB,SAAS,EAAE,kBAAkB;iBAC9B,CAAC,CAAC;YACL,CAAC;YACD,yBAAyB,CAAC,IAAI;gBAC5B,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,kBAAkB;iBAC9B,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js
new file mode 100644
index 0000000..e70d5c1
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js
@@ -0,0 +1,278 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const util = __importStar(require("../util"));
+exports.default = util.createRule({
+ name: 'no-shadow',
+ meta: {
+ type: 'suggestion',
+ docs: {
+ description: 'Disallow variable declarations from shadowing variables declared in the outer scope',
+ category: 'Variables',
+ recommended: false,
+ extendsBaseRule: true,
+ },
+ schema: [
+ {
+ type: 'object',
+ properties: {
+ builtinGlobals: {
+ type: 'boolean',
+ },
+ hoist: {
+ enum: ['all', 'functions', 'never'],
+ },
+ allow: {
+ type: 'array',
+ items: {
+ type: 'string',
+ },
+ },
+ ignoreTypeValueShadow: {
+ type: 'boolean',
+ },
+ ignoreFunctionTypeParameterNameValueShadow: {
+ type: 'boolean',
+ },
+ },
+ additionalProperties: false,
+ },
+ ],
+ messages: {
+ noShadow: "'{{name}}' is already declared in the upper scope.",
+ },
+ },
+ defaultOptions: [
+ {
+ allow: [],
+ builtinGlobals: false,
+ hoist: 'functions',
+ ignoreTypeValueShadow: true,
+ ignoreFunctionTypeParameterNameValueShadow: true,
+ },
+ ],
+ create(context, [options]) {
+ /**
+ * Check if variable is a `this` parameter.
+ */
+ function isThisParam(variable) {
+ return variable.defs[0].type === 'Parameter' && variable.name === 'this';
+ }
+ function isTypeValueShadow(variable, shadowed) {
+ if (options.ignoreTypeValueShadow !== true) {
+ return false;
+ }
+ if (!('isValueVariable' in variable)) {
+ // this shouldn't happen...
+ return false;
+ }
+ const isShadowedValue = 'isValueVariable' in shadowed ? shadowed.isValueVariable : true;
+ return variable.isValueVariable !== isShadowedValue;
+ }
+ function isFunctionTypeParameterNameValueShadow(variable, shadowed) {
+ if (options.ignoreFunctionTypeParameterNameValueShadow !== true) {
+ return false;
+ }
+ if (!('isValueVariable' in variable)) {
+ // this shouldn't happen...
+ return false;
+ }
+ const isShadowedValue = 'isValueVariable' in shadowed ? shadowed.isValueVariable : true;
+ if (!isShadowedValue) {
+ return false;
+ }
+ const id = variable.identifiers[0];
+ return util.isFunctionType(id.parent);
+ }
+ /**
+ * Check if variable name is allowed.
+ * @param variable The variable to check.
+ * @returns Whether or not the variable name is allowed.
+ */
+ function isAllowed(variable) {
+ return options.allow.indexOf(variable.name) !== -1;
+ }
+ /**
+ * Checks if a variable of the class name in the class scope of ClassDeclaration.
+ *
+ * ClassDeclaration creates two variables of its name into its outer scope and its class scope.
+ * So we should ignore the variable in the class scope.
+ * @param variable The variable to check.
+ * @returns Whether or not the variable of the class name in the class scope of ClassDeclaration.
+ */
+ function isDuplicatedClassNameVariable(variable) {
+ const block = variable.scope.block;
+ return (block.type === experimental_utils_1.AST_NODE_TYPES.ClassDeclaration &&
+ block.id === variable.identifiers[0]);
+ }
+ /**
+ * Checks if a variable of the class name in the class scope of TSEnumDeclaration.
+ *
+ * TSEnumDeclaration creates two variables of its name into its outer scope and its class scope.
+ * So we should ignore the variable in the class scope.
+ * @param variable The variable to check.
+ * @returns Whether or not the variable of the class name in the class scope of TSEnumDeclaration.
+ */
+ function isDuplicatedEnumNameVariable(variable) {
+ const block = variable.scope.block;
+ return (block.type === experimental_utils_1.AST_NODE_TYPES.TSEnumDeclaration &&
+ block.id === variable.identifiers[0]);
+ }
+ /**
+ * Checks if a variable is inside the initializer of scopeVar.
+ *
+ * To avoid reporting at declarations such as `var a = function a() {};`.
+ * But it should report `var a = function(a) {};` or `var a = function() { function a() {} };`.
+ * @param variable The variable to check.
+ * @param scopeVar The scope variable to look for.
+ * @returns Whether or not the variable is inside initializer of scopeVar.
+ */
+ function isOnInitializer(variable, scopeVar) {
+ var _a;
+ const outerScope = scopeVar.scope;
+ const outerDef = scopeVar.defs[0];
+ const outer = (_a = outerDef === null || outerDef === void 0 ? void 0 : outerDef.parent) === null || _a === void 0 ? void 0 : _a.range;
+ const innerScope = variable.scope;
+ const innerDef = variable.defs[0];
+ const inner = innerDef === null || innerDef === void 0 ? void 0 : innerDef.name.range;
+ return !!(outer &&
+ inner &&
+ outer[0] < inner[0] &&
+ inner[1] < outer[1] &&
+ ((innerDef.type === 'FunctionName' &&
+ innerDef.node.type === experimental_utils_1.AST_NODE_TYPES.FunctionExpression) ||
+ innerDef.node.type === experimental_utils_1.AST_NODE_TYPES.ClassExpression) &&
+ outerScope === innerScope.upper);
+ }
+ /**
+ * Get a range of a variable's identifier node.
+ * @param variable The variable to get.
+ * @returns The range of the variable's identifier node.
+ */
+ function getNameRange(variable) {
+ const def = variable.defs[0];
+ return def === null || def === void 0 ? void 0 : def.name.range;
+ }
+ /**
+ * Checks if a variable is in TDZ of scopeVar.
+ * @param variable The variable to check.
+ * @param scopeVar The variable of TDZ.
+ * @returns Whether or not the variable is in TDZ of scopeVar.
+ */
+ function isInTdz(variable, scopeVar) {
+ const outerDef = scopeVar.defs[0];
+ const inner = getNameRange(variable);
+ const outer = getNameRange(scopeVar);
+ return !!(inner &&
+ outer &&
+ inner[1] < outer[0] &&
+ // Excepts FunctionDeclaration if is {"hoist":"function"}.
+ (options.hoist !== 'functions' ||
+ !outerDef ||
+ outerDef.node.type !== experimental_utils_1.AST_NODE_TYPES.FunctionDeclaration));
+ }
+ /**
+ * Finds the variable by a given name in a given scope and its upper scopes.
+ * @param initScope A scope to start find.
+ * @param name A variable name to find.
+ * @returns A found variable or `null`.
+ */
+ function getVariableByName(initScope, name) {
+ let scope = initScope;
+ while (scope) {
+ const variable = scope.set.get(name);
+ if (variable) {
+ return variable;
+ }
+ scope = scope.upper;
+ }
+ return null;
+ }
+ /**
+ * Checks the current context for shadowed variables.
+ * @param {Scope} scope Fixme
+ */
+ function checkForShadows(scope) {
+ const variables = scope.variables;
+ for (const variable of variables) {
+ // ignore "arguments"
+ if (variable.identifiers.length === 0) {
+ continue;
+ }
+ // this params are pseudo-params that cannot be shadowed
+ if (isThisParam(variable)) {
+ continue;
+ }
+ // ignore variables of a class name in the class scope of ClassDeclaration
+ if (isDuplicatedClassNameVariable(variable)) {
+ continue;
+ }
+ // ignore variables of a class name in the class scope of ClassDeclaration
+ if (isDuplicatedEnumNameVariable(variable)) {
+ continue;
+ }
+ // ignore configured allowed names
+ if (isAllowed(variable)) {
+ continue;
+ }
+ // Gets shadowed variable.
+ const shadowed = getVariableByName(scope.upper, variable.name);
+ if (!shadowed) {
+ continue;
+ }
+ // ignore type value variable shadowing if configured
+ if (isTypeValueShadow(variable, shadowed)) {
+ continue;
+ }
+ // ignore function type parameter name shadowing if configured
+ if (isFunctionTypeParameterNameValueShadow(variable, shadowed)) {
+ continue;
+ }
+ const isESLintGlobal = 'writeable' in shadowed;
+ if ((shadowed.identifiers.length > 0 ||
+ (options.builtinGlobals && isESLintGlobal)) &&
+ !isOnInitializer(variable, shadowed) &&
+ !(options.hoist !== 'all' && isInTdz(variable, shadowed))) {
+ context.report({
+ node: variable.identifiers[0],
+ messageId: 'noShadow',
+ data: {
+ name: variable.name,
+ },
+ });
+ }
+ }
+ }
+ return {
+ 'Program:exit'() {
+ const globalScope = context.getScope();
+ const stack = globalScope.childScopes.slice();
+ while (stack.length) {
+ const scope = stack.pop();
+ stack.push(...scope.childScopes);
+ checkForShadows(scope);
+ }
+ },
+ };
+ },
+});
+//# sourceMappingURL=no-shadow.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map
new file mode 100644
index 0000000..188c172
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"no-shadow.js","sourceRoot":"","sources":["../../src/rules/no-shadow.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAI+C;AAC/C,8CAAgC;AAahC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,qFAAqF;YACvF,QAAQ,EAAE,WAAW;YACrB,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,cAAc,EAAE;wBACd,IAAI,EAAE,SAAS;qBAChB;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,CAAC;qBACpC;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,qBAAqB,EAAE;wBACrB,IAAI,EAAE,SAAS;qBAChB;oBACD,0CAA0C,EAAE;wBAC1C,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,QAAQ,EAAE;YACR,QAAQ,EAAE,oDAAoD;SAC/D;KACF;IACD,cAAc,EAAE;QACd;YACE,KAAK,EAAE,EAAE;YACT,cAAc,EAAE,KAAK;YACrB,KAAK,EAAE,WAAW;YAClB,qBAAqB,EAAE,IAAI;YAC3B,0CAA0C,EAAE,IAAI;SACjD;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB;;WAEG;QACH,SAAS,WAAW,CAAC,QAAiC;YACpD,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,WAAW,IAAI,QAAQ,CA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;wBACb,IAAI,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;wBAC7B,SAAS,EAAE,UAAU;wBACrB,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ,CAAC,IAAI;yBACpB;qBACF,CAAC,CAAC;iBACJ;aACF;QACH,CAAC;QAED,OAAO;YACL,cAAc;gBACZ,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;gBACvC,MAAM,KAAK,GAAG,WAAW,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;gBAE9C,OAAO,KAAK,CAAC,MAAM,EAAE;oBACnB,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,EAAG,CAAC;oBAE3B,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;oBACjC,eAAe,CAAC,KAAK,CAAC,CAAC;iBACxB;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js
index ca6e7e3..cd0ae56 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js.map
index fb80481..99bf7d3 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-this-alias.js","sourceRoot":"","sources":["../../src/rules/no-this-alias.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0BAA0B;YACvC,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;SACrB;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,kBAAkB,EAAE;wBAClB,IAAI,EAAE,SAAS;qBAChB;oBACD,YAAY,EAAE;wBACZ,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;SACF;QACD,QAAQ,EAAE;YACR,cAAc,EAAE,kDAAkD;YAClE,eAAe,EACb,8DAA8D;SACjE;KACF;IACD,cAAc,EAAE;QACd;YACE,kBAAkB,EAAE,IAAI;YACxB,YAAY,EAAE,EAAE;SACjB;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,kBAAkB,EAAE,YAAY,EAAE,CAAC;QACpD,OAAO;YACL,gDAAgD,CAC9C,IAAiC;gBAEjC,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,CAAC;gBAEpB,IAAI,kBAAkB,IAAI,EAAE,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU,EAAE;oBAC/D,OAAO;iBACR;gBAED,MAAM,cAAc,GAClB,EAAE,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU;oBACnC,CAAC,CAAC,YAAa,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;oBACjC,CAAC,CAAC,KAAK,CAAC;gBACZ,IAAI,CAAC,cAAc,EAAE;oBACnB,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,EAAE;wBACR,SAAS,EACP,EAAE,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU;4BACnC,CAAC,CAAC,gBAAgB;4BAClB,CAAC,CAAC,iBAAiB;qBACxB,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-this-alias.js","sourceRoot":"","sources":["../../src/rules/no-this-alias.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0BAA0B;YACvC,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;SACrB;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,kBAAkB,EAAE;wBAClB,IAAI,EAAE,SAAS;qBAChB;oBACD,YAAY,EAAE;wBACZ,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;SACF;QACD,QAAQ,EAAE;YACR,cAAc,EAAE,kDAAkD;YAClE,eAAe,EACb,8DAA8D;SACjE;KACF;IACD,cAAc,EAAE;QACd;YACE,kBAAkB,EAAE,IAAI;YACxB,YAAY,EAAE,EAAE;SACjB;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,kBAAkB,EAAE,YAAY,EAAE,CAAC;QACpD,OAAO;YACL,gDAAgD,CAC9C,IAAiC;gBAEjC,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,CAAC;gBAEpB,IAAI,kBAAkB,IAAI,EAAE,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU,EAAE;oBAC/D,OAAO;iBACR;gBAED,MAAM,cAAc,GAClB,EAAE,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU;oBACnC,CAAC,CAAC,YAAa,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;oBACjC,CAAC,CAAC,KAAK,CAAC;gBACZ,IAAI,CAAC,cAAc,EAAE;oBACnB,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,EAAE;wBACR,SAAS,EACP,EAAE,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU;4BACnC,CAAC,CAAC,gBAAgB;4BAClB,CAAC,CAAC,iBAAiB;qBACxB,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js
index bb155f8..b11fa4b 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -33,12 +45,18 @@
const checker = program.getTypeChecker();
function isErrorLike(type) {
var _a;
+ if (type.isIntersection()) {
+ return type.types.some(isErrorLike);
+ }
+ if (type.isUnion()) {
+ return type.types.every(isErrorLike);
+ }
const symbol = type.getSymbol();
if (!symbol) {
return false;
}
if (symbol.getName() === 'Error') {
- const declarations = (_a = symbol.getDeclarations(), (_a !== null && _a !== void 0 ? _a : []));
+ const declarations = (_a = symbol.getDeclarations()) !== null && _a !== void 0 ? _a : [];
for (const declaration of declarations) {
const sourceFile = declaration.getSourceFile();
if (program.isSourceFileDefaultLibrary(sourceFile)) {
@@ -46,10 +64,11 @@
}
}
}
- const baseTypes = checker.getBaseTypes(type);
- for (const baseType of baseTypes) {
- if (isErrorLike(baseType)) {
- return true;
+ if (symbol.flags & (ts.SymbolFlags.Class | ts.SymbolFlags.Interface)) {
+ for (const baseType of checker.getBaseTypes(type)) {
+ if (isErrorLike(baseType)) {
+ return true;
+ }
}
}
return false;
@@ -59,7 +78,8 @@
case experimental_utils_1.AST_NODE_TYPES.Identifier:
case experimental_utils_1.AST_NODE_TYPES.CallExpression:
case experimental_utils_1.AST_NODE_TYPES.NewExpression:
- case experimental_utils_1.AST_NODE_TYPES.MemberExpression: {
+ case experimental_utils_1.AST_NODE_TYPES.MemberExpression:
+ case experimental_utils_1.AST_NODE_TYPES.TSAsExpression: {
const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node);
return checker.getTypeAtLocation(tsNode);
}
@@ -69,11 +89,11 @@
return tryGetThrowArgumentType(node.expressions[node.expressions.length - 1]);
case experimental_utils_1.AST_NODE_TYPES.LogicalExpression: {
const left = tryGetThrowArgumentType(node.left);
- return (left !== null && left !== void 0 ? left : tryGetThrowArgumentType(node.right));
+ return left !== null && left !== void 0 ? left : tryGetThrowArgumentType(node.right);
}
case experimental_utils_1.AST_NODE_TYPES.ConditionalExpression: {
const consequent = tryGetThrowArgumentType(node.consequent);
- return (consequent !== null && consequent !== void 0 ? consequent : tryGetThrowArgumentType(node.alternate));
+ return consequent !== null && consequent !== void 0 ? consequent : tryGetThrowArgumentType(node.alternate);
}
default:
return null;
@@ -90,7 +110,8 @@
context.report({ node, messageId: 'undef' });
return;
}
- if (type.flags & (ts.TypeFlags.Any | ts.TypeFlags.Unknown) ||
+ if (util.isTypeAnyType(type) ||
+ util.isTypeUnknownType(type) ||
isErrorLike(type)) {
return;
}
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js.map
index 9a52e80..86d94ff 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-throw-literal.js","sourceRoot":"","sources":["../../src/rules/no-throw-literal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+CAAiC;AACjC,8CAAgC;AAChC,8EAG+C;AAE/C,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EA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YAC3C,IAAI,IAAI,EAAE;gBACR,IAAI,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE;oBACvC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;oBAC7C,OAAO;iBACR;gBAED,IACE,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC;oBACtD,WAAW,CAAC,IAAI,CAAC,EACjB;oBACA,OAAO;iBACR;aACF;YAED,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC;QAChD,CAAC;QAED,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,IAAI,IAAI,CAAC,QAAQ,EAAE;oBACjB,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;iBACnC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-throw-literal.js","sourceRoot":"","sources":["../../src/rules/no-throw-literal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,8CAAgC;AAChC,8EAG+C;AAE/C,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;YACvD,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,MAAM,EAAE,wCAAwC;YAChD,KAAK,EAAE,yBAAyB;SACjC;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,cAAc,GAAG,IAAI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;YAED,MAAM,IAAI,GAAG,uBAAuB,CAAC,IAAI,CAAC,CAAC;YAC3C,IAAI,IAAI,EAAE;gBACR,IAAI,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE;oBACvC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;oBAC7C,OAAO;iBACR;gBAED,IACE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC;oBACxB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;oBAC5B,WAAW,CAAC,IAAI,CAAC,EACjB;oBACA,OAAO;iBACR;aACF;YAED,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC;QAChD,CAAC;QAED,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,IAAI,IAAI,CAAC,QAAQ,EAAE;oBACjB,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;iBACnC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js
index b03e5df..62b9398 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -191,7 +203,11 @@
else if (
// eslint-disable-next-line @typescript-eslint/internal/prefer-ast-types-enum
type.node.type.endsWith('Keyword') ||
- aliasTypes.has(type.node.type)) {
+ aliasTypes.has(type.node.type) ||
+ (type.node.type === experimental_utils_1.AST_NODE_TYPES.TSTypeOperator &&
+ type.node.operator === 'readonly' &&
+ type.node.typeAnnotation &&
+ aliasTypes.has(type.node.typeAnnotation.type))) {
// alias / keyword
checkAndReport(allowAliases, isTopLevel, type, 'Aliases');
}
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map
index 22018ed..ad55508 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-type-alias.js","sourceRoot":"","sources":["../../src/rules/no-type-alias.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAQhC,MAAM,UAAU,GAAa;IAC3B,QAAQ;IACR,OAAO;IACP,WAAW;IACX,kBAAkB;IAClB,6BAA6B;CAC9B,CAAC;AAuBF,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,kCAAkC;YAC/C,QAAQ,EAAE,kBAAkB;YAC5B,o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AAI,KAAK,mCAAc,CAAC,WAAW;gBACxC,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,kBAAkB,EAC/C;gBACA,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAkB,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;oBACtD,GAAG,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;oBACvC,OAAO,GAAG,CAAC;gBACb,CAAC,EAAE,EAAE,CAAC,CAAC;aACR;YACD,IAAI,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,mBAAmB,EAAE;gBACpD,OAAO,QAAQ,CAAC,IAAI,CAAC,cAAc,EAAE,eAAe,CAAC,CAAC;aACvD;YACD,OAAO,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC;QACrC,CAAC;QAED,OAAO;YACL,sBAAsB,CAAC,IAAI;gBACzB,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;gBAC5C,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;oBACtB,iCAAiC;oBACjC,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;iBACrC;qBAAM;oBACL,wBAAwB;oBACxB,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;wBACnB,mBAAmB,CAAC,IAAI,CAAC,CAAC;oBAC5B,CAAC,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-type-alias.js","sourceRoot":"","sources":["../../src/rules/no-type-alias.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAQhC,MAAM,UAAU,GAAa;IAC3B,QAAQ;IACR,OAAO;IACP,WAAW;IACX,kBAAkB;IAClB,6BAA6B;CAC9B,C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qBAAM;oBACL,wBAAwB;oBACxB,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;wBACnB,mBAAmB,CAAC,IAAI,CAAC,CAAC;oBAC5B,CAAC,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js
index 935feb1..7da37ad 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -22,14 +34,35 @@
},
fixable: 'code',
messages: {
- direct: 'This expression unnecessarily compares a boolean value to a boolean instead of using it directly',
+ direct: 'This expression unnecessarily compares a boolean value to a boolean instead of using it directly.',
negated: 'This expression unnecessarily compares a boolean value to a boolean instead of negating it.',
+ comparingNullableToTrueDirect: 'This expression unnecessarily compares a nullable boolean value to true instead of using it directly.',
+ comparingNullableToTrueNegated: 'This expression unnecessarily compares a nullable boolean value to true instead of negating it.',
+ comparingNullableToFalse: 'This expression unnecessarily compares a nullable boolean value to false instead of using the ?? operator to provide a default.',
},
- schema: [],
+ schema: [
+ {
+ type: 'object',
+ properties: {
+ allowComparingNullableBooleansToTrue: {
+ type: 'boolean',
+ },
+ allowComparingNullableBooleansToFalse: {
+ type: 'boolean',
+ },
+ },
+ additionalProperties: false,
+ },
+ ],
type: 'suggestion',
},
- defaultOptions: [],
- create(context) {
+ defaultOptions: [
+ {
+ allowComparingNullableBooleansToTrue: true,
+ allowComparingNullableBooleansToFalse: true,
+ },
+ ],
+ create(context, [options]) {
const parserServices = util.getParserServices(context);
const checker = parserServices.program.getTypeChecker();
function getBooleanComparison(node) {
@@ -38,10 +71,42 @@
return undefined;
}
const expressionType = checker.getTypeAtLocation(parserServices.esTreeNodeToTSNodeMap.get(comparison.expression));
- if (!tsutils.isTypeFlagSet(expressionType, ts.TypeFlags.Boolean | ts.TypeFlags.BooleanLiteral)) {
- return undefined;
+ if (isBooleanType(expressionType)) {
+ return Object.assign(Object.assign({}, comparison), { expressionIsNullableBoolean: false });
}
- return comparison;
+ if (isNullableBoolean(expressionType)) {
+ return Object.assign(Object.assign({}, comparison), { expressionIsNullableBoolean: true });
+ }
+ return undefined;
+ }
+ function isBooleanType(expressionType) {
+ return tsutils.isTypeFlagSet(expressionType, ts.TypeFlags.Boolean | ts.TypeFlags.BooleanLiteral);
+ }
+ /**
+ * checks if the expressionType is a union that
+ * 1) contains at least one nullish type (null or undefined)
+ * 2) contains at least once boolean type (true or false or boolean)
+ * 3) does not contain any types besides nullish and boolean types
+ */
+ function isNullableBoolean(expressionType) {
+ if (!expressionType.isUnion()) {
+ return false;
+ }
+ const { types } = expressionType;
+ const nonNullishTypes = types.filter(type => !tsutils.isTypeFlagSet(type, ts.TypeFlags.Undefined | ts.TypeFlags.Null));
+ const hasNonNullishType = nonNullishTypes.length > 0;
+ if (!hasNonNullishType) {
+ return false;
+ }
+ const hasNullableType = nonNullishTypes.length < types.length;
+ if (!hasNullableType) {
+ return false;
+ }
+ const allNonNullishTypesAreBoolean = nonNullishTypes.every(isBooleanType);
+ if (!allNonNullishTypesAreBoolean) {
+ return false;
+ }
+ return true;
}
function deconstructComparison(node) {
const comparisonType = util.getEqualsKind(node.operator);
@@ -56,10 +121,11 @@
typeof against.value !== 'boolean') {
continue;
}
- const { value } = against;
- const negated = node.operator.startsWith('!');
+ const { value: literalBooleanInComparison } = against;
+ const negated = !comparisonType.isPositive;
return {
- forTruthy: value ? !negated : negated,
+ literalBooleanInComparison,
+ forTruthy: literalBooleanInComparison ? !negated : negated,
expression,
negated,
range: expression.range[0] < against.range[0]
@@ -69,21 +135,71 @@
}
return undefined;
}
+ function nodeIsUnaryNegation(node) {
+ return (node.type === experimental_utils_1.AST_NODE_TYPES.UnaryExpression &&
+ node.prefix &&
+ node.operator === '!');
+ }
return {
BinaryExpression(node) {
const comparison = getBooleanComparison(node);
- if (comparison) {
- context.report({
- fix: function* (fixer) {
- yield fixer.removeRange(comparison.range);
+ if (comparison === undefined) {
+ return;
+ }
+ if (comparison.expressionIsNullableBoolean) {
+ if (comparison.literalBooleanInComparison &&
+ options.allowComparingNullableBooleansToTrue) {
+ return;
+ }
+ if (!comparison.literalBooleanInComparison &&
+ options.allowComparingNullableBooleansToFalse) {
+ return;
+ }
+ }
+ context.report({
+ fix: function* (fixer) {
+ yield fixer.removeRange(comparison.range);
+ // if the expression `exp` isn't nullable, or we're comparing to `true`,
+ // we can just replace the entire comparison with `exp` or `!exp`
+ if (!comparison.expressionIsNullableBoolean ||
+ comparison.literalBooleanInComparison) {
if (!comparison.forTruthy) {
yield fixer.insertTextBefore(node, '!');
}
- },
- messageId: comparison.negated ? 'negated' : 'direct',
- node,
- });
- }
+ return;
+ }
+ // if we're here, then the expression is a nullable boolean and we're
+ // comparing to a literal `false`
+ // if we're doing `== false` or `=== false`, then we need to negate the expression
+ if (!comparison.negated) {
+ const { parent } = node;
+ // if the parent is a negation, we can instead just get rid of the parent's negation.
+ // i.e. instead of resulting in `!(!(exp))`, we can just result in `exp`
+ if (parent != null && nodeIsUnaryNegation(parent)) {
+ // remove from the beginning of the parent to the beginning of this node
+ yield fixer.removeRange([parent.range[0], node.range[0]]);
+ // remove from the end of the node to the end of the parent
+ yield fixer.removeRange([node.range[1], parent.range[1]]);
+ }
+ else {
+ yield fixer.insertTextBefore(node, '!');
+ }
+ }
+ // provide the default `true`
+ yield fixer.insertTextBefore(node, '(');
+ yield fixer.insertTextAfter(node, ' ?? true)');
+ },
+ messageId: comparison.expressionIsNullableBoolean
+ ? comparison.literalBooleanInComparison
+ ? comparison.negated
+ ? 'comparingNullableToTrueNegated'
+ : 'comparingNullableToTrueDirect'
+ : 'comparingNullableToFalse'
+ : comparison.negated
+ ? 'negated'
+ : 'direct',
+ node,
+ });
},
};
},
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map
index 6c7c170..be36dbf 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-unnecessary-boolean-literal-compare.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-boolean-literal-compare.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,iDAAmC;AACnC,+CAAiC;AACjC,8CAAgC;AAWhC,kBAAe,IAAI,CAAC,UAAU,CAAiB;IAC7C,IAAI,EAAE,wCAAwC;IAC9C,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,iEAAiE;YACnE,QAAQ,EAAE,kBAAkB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CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-unnecessary-boolean-literal-compare.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-boolean-literal-compare.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,iDAAmC;AACnC,+CAAiC;AACjC,8CAAgC;AA4BhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,wCAAwC;IAC9C,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,iEAAiE;YACnE,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,MAAM,EACJ,mGAAmG;YACrG,OAAO,EACL,6FAA6F;YAC/F,6BAA6B,EAC3B,uGAAuG;YACzG,8BAA8B,EAC5B,iGAAiG;YACnG,wBAAwB,EACtB,iIAAiI;SACpI;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,oCAAoC,EAAE;wBACpC,IAAI,EAAE,SAAS;qBAChB;oBACD,qCAAqC,EAAE;wBACrC,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE;QACd;YACE,oCAAoC,EAAE,IAAI;YAC1C,qCAAqC,EAAE,IAAI;SAC5C;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACvD,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAExD,SAAS,oBAAoB,CAC3B,IAA+B;YAE/B,MAAM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AC,MAAM,CAAC,EAAE;gCACjD,wEAAwE;gCACxE,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gCAC1D,2DAA2D;gCAC3D,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;6BAC3D;iCAAM;gCACL,MAAM,KAAK,CAAC,gBAAgB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;6BACzC;yBACF;wBAED,6BAA6B;wBAC7B,MAAM,KAAK,CAAC,gBAAgB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;wBACxC,MAAM,KAAK,CAAC,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;oBACjD,CAAC;oBACD,SAAS,EAAE,UAAU,CAAC,2BAA2B;wBAC/C,CAAC,CAAC,UAAU,CAAC,0BAA0B;4BACrC,CAAC,CAAC,UAAU,CAAC,OAAO;gCAClB,CAAC,CAAC,gCAAgC;gCAClC,CAAC,CAAC,+BAA+B;4BACnC,CAAC,CAAC,0BAA0B;wBAC9B,CAAC,CAAC,UAAU,CAAC,OAAO;4BACpB,CAAC,CAAC,SAAS;4BACX,CAAC,CAAC,QAAQ;oBACZ,IAAI;iBACL,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js
index eeacb86..32b7139 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -18,11 +30,11 @@
// PossiblyFalsy flag includes literal values, so exclude ones that
// are definitely truthy
.filter(t => !isTruthyLiteral(t))
- .some(type => tsutils_1.isTypeFlagSet(type, ts.TypeFlags.PossiblyFalsy));
+ .some(type => util_1.isTypeFlagSet(type, ts.TypeFlags.PossiblyFalsy));
const isPossiblyTruthy = (type) => tsutils_1.unionTypeParts(type).some(type => !tsutils_1.isFalsyType(type));
// Nullish utilities
const nullishFlag = ts.TypeFlags.Undefined | ts.TypeFlags.Null;
-const isNullishType = (type) => tsutils_1.isTypeFlagSet(type, nullishFlag);
+const isNullishType = (type) => util_1.isTypeFlagSet(type, nullishFlag);
const isPossiblyNullish = (type) => tsutils_1.unionTypeParts(type).some(isNullishType);
const isAlwaysNullish = (type) => tsutils_1.unionTypeParts(type).every(isNullishType);
// isLiteralType only covers numbers and strings, this is a more exhaustive check.
@@ -49,10 +61,7 @@
allowConstantLoopConditions: {
type: 'boolean',
},
- ignoreRhs: {
- type: 'boolean',
- },
- checkArrayPredicates: {
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: {
type: 'boolean',
},
},
@@ -63,71 +72,133 @@
messages: {
alwaysTruthy: 'Unnecessary conditional, value is always truthy.',
alwaysFalsy: 'Unnecessary conditional, value is always falsy.',
- alwaysTruthyFunc: 'This callback should return a conditional, but return is always truthy',
- alwaysFalsyFunc: 'This callback should return a conditional, but return is always falsy',
+ alwaysTruthyFunc: 'This callback should return a conditional, but return is always truthy.',
+ alwaysFalsyFunc: 'This callback should return a conditional, but return is always falsy.',
neverNullish: 'Unnecessary conditional, expected left-hand side of `??` operator to be possibly null or undefined.',
- alwaysNullish: 'Unnecessary conditional, left-hand side of `??` operator is always `null` or `undefined`',
+ alwaysNullish: 'Unnecessary conditional, left-hand side of `??` operator is always `null` or `undefined`.',
literalBooleanExpression: 'Unnecessary conditional, both sides of the expression are literal values',
+ noOverlapBooleanExpression: 'Unnecessary conditional, the types have no overlap',
never: 'Unnecessary conditional, value is `never`',
neverOptionalChain: 'Unnecessary optional chain on a non-nullish value',
+ noStrictNullCheck: 'This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.',
},
},
defaultOptions: [
{
allowConstantLoopConditions: false,
- ignoreRhs: false,
- checkArrayPredicates: false,
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
},
],
- create(context, [{ allowConstantLoopConditions, checkArrayPredicates, ignoreRhs }]) {
+ create(context, [{ allowConstantLoopConditions, allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing, },]) {
const service = util_1.getParserServices(context);
const checker = service.program.getTypeChecker();
const sourceCode = context.getSourceCode();
+ const compilerOptions = service.program.getCompilerOptions();
+ const isStrictNullChecks = tsutils_1.isStrictCompilerOptionEnabled(compilerOptions, 'strictNullChecks');
+ if (!isStrictNullChecks &&
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing !== true) {
+ context.report({
+ loc: {
+ start: { line: 0, column: 0 },
+ end: { line: 0, column: 0 },
+ },
+ messageId: 'noStrictNullCheck',
+ });
+ }
function getNodeType(node) {
const tsNode = service.esTreeNodeToTSNodeMap.get(node);
return util_1.getConstrainedTypeAtLocation(checker, tsNode);
}
function nodeIsArrayType(node) {
const nodeType = getNodeType(node);
- return checker.isArrayType(nodeType) || checker.isTupleType(nodeType);
+ return checker.isArrayType(nodeType);
+ }
+ function nodeIsTupleType(node) {
+ const nodeType = getNodeType(node);
+ return checker.isTupleType(nodeType);
+ }
+ function isArrayIndexExpression(node) {
+ return (
+ // Is an index signature
+ node.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression &&
+ node.computed &&
+ // ...into an array type
+ (nodeIsArrayType(node.object) ||
+ // ... or a tuple type
+ (nodeIsTupleType(node.object) &&
+ // Exception: literal index into a tuple - will have a sound type
+ node.property.type !== experimental_utils_1.AST_NODE_TYPES.Literal)));
}
/**
* Checks if a conditional node is necessary:
* if the type of the node is always true or always false, it's not necessary.
*/
- function checkNode(node) {
+ function checkNode(node, isUnaryNotArgument = false) {
+ // Check if the node is Unary Negation expression and handle it
+ if (node.type === experimental_utils_1.AST_NODE_TYPES.UnaryExpression &&
+ node.operator === '!') {
+ return checkNode(node.argument, true);
+ }
+ // Since typescript array index signature types don't represent the
+ // possibility of out-of-bounds access, if we're indexing into an array
+ // just skip the check, to avoid false positives
+ if (isArrayIndexExpression(node)) {
+ return;
+ }
+ // When checking logical expressions, only check the right side
+ // as the left side has been checked by checkLogicalExpressionForUnnecessaryConditionals
+ //
+ // Unless the node is nullish coalescing, as it's common to use patterns like `nullBool ?? true` to to strict
+ // boolean checks if we inspect the right here, it'll usually be a constant condition on purpose.
+ // In this case it's better to inspect the type of the expression as a whole.
+ if (node.type === experimental_utils_1.AST_NODE_TYPES.LogicalExpression &&
+ node.operator !== '??') {
+ return checkNode(node.right);
+ }
const type = getNodeType(node);
// Conditional is always necessary if it involves:
// `any` or `unknown` or a naked type parameter
- if (tsutils_1.unionTypeParts(type).some(part => tsutils_1.isTypeFlagSet(part, ts.TypeFlags.Any |
- ts.TypeFlags.Unknown |
- ts.TypeFlags.TypeParameter))) {
+ if (tsutils_1.unionTypeParts(type).some(part => util_1.isTypeAnyType(part) ||
+ util_1.isTypeUnknownType(part) ||
+ util_1.isTypeFlagSet(part, ts.TypeFlags.TypeParameter))) {
return;
}
- const messageId = tsutils_1.isTypeFlagSet(type, ts.TypeFlags.Never)
- ? 'never'
- : !isPossiblyTruthy(type)
- ? 'alwaysFalsy'
- : !isPossiblyFalsy(type)
- ? 'alwaysTruthy'
- : undefined;
+ let messageId = null;
+ if (util_1.isTypeFlagSet(type, ts.TypeFlags.Never)) {
+ messageId = 'never';
+ }
+ else if (!isPossiblyTruthy(type)) {
+ messageId = !isUnaryNotArgument ? 'alwaysFalsy' : 'alwaysTruthy';
+ }
+ else if (!isPossiblyFalsy(type)) {
+ messageId = !isUnaryNotArgument ? 'alwaysTruthy' : 'alwaysFalsy';
+ }
if (messageId) {
context.report({ node, messageId });
}
}
function checkNodeForNullish(node) {
- const type = getNodeType(node);
- // Conditional is always necessary if it involves `any` or `unknown`
- if (tsutils_1.isTypeFlagSet(type, ts.TypeFlags.Any | ts.TypeFlags.Unknown)) {
+ // Since typescript array index signature types don't represent the
+ // possibility of out-of-bounds access, if we're indexing into an array
+ // just skip the check, to avoid false positives
+ if (isArrayIndexExpression(node)) {
return;
}
- const messageId = tsutils_1.isTypeFlagSet(type, ts.TypeFlags.Never)
- ? 'never'
- : !isPossiblyNullish(type)
- ? 'neverNullish'
- : isAlwaysNullish(type)
- ? 'alwaysNullish'
- : undefined;
+ const type = getNodeType(node);
+ // Conditional is always necessary if it involves `any` or `unknown`
+ if (util_1.isTypeAnyType(type) || util_1.isTypeUnknownType(type)) {
+ return;
+ }
+ let messageId = null;
+ if (util_1.isTypeFlagSet(type, ts.TypeFlags.Never)) {
+ messageId = 'never';
+ }
+ else if (!isPossiblyNullish(type)) {
+ messageId = 'neverNullish';
+ }
+ else if (isAlwaysNullish(type)) {
+ messageId = 'alwaysNullish';
+ }
if (messageId) {
context.report({ node, messageId });
}
@@ -138,6 +209,9 @@
*
* NOTE: It's also unnecessary if the types that don't overlap at all
* but that case is handled by the Typescript compiler itself.
+ * Known exceptions:
+ * * https://github.com/microsoft/TypeScript/issues/32627
+ * * https://github.com/microsoft/TypeScript/issues/37160 (handled)
*/
const BOOL_OPERATORS = new Set([
'<',
@@ -150,21 +224,41 @@
'!==',
]);
function checkIfBinaryExpressionIsNecessaryConditional(node) {
- if (BOOL_OPERATORS.has(node.operator) &&
- isLiteral(getNodeType(node.left)) &&
- isLiteral(getNodeType(node.right))) {
- context.report({ node, messageId: 'literalBooleanExpression' });
- }
- }
- /**
- * Checks that a testable expression is necessarily conditional, reports otherwise.
- * Filters all LogicalExpressions to prevent some duplicate reports.
- */
- function checkIfTestExpressionIsNecessaryConditional(node) {
- if (node.test.type === experimental_utils_1.AST_NODE_TYPES.LogicalExpression) {
+ if (!BOOL_OPERATORS.has(node.operator)) {
return;
}
- checkNode(node.test);
+ const leftType = getNodeType(node.left);
+ const rightType = getNodeType(node.right);
+ if (isLiteral(leftType) && isLiteral(rightType)) {
+ context.report({ node, messageId: 'literalBooleanExpression' });
+ return;
+ }
+ // Workaround for https://github.com/microsoft/TypeScript/issues/37160
+ if (isStrictNullChecks) {
+ const UNDEFINED = ts.TypeFlags.Undefined;
+ const NULL = ts.TypeFlags.Null;
+ const isComparable = (type, flag) => {
+ // Allow comparison to `any`, `unknown` or a naked type parameter.
+ flag |=
+ ts.TypeFlags.Any |
+ ts.TypeFlags.Unknown |
+ ts.TypeFlags.TypeParameter;
+ // Allow loose comparison to nullish values.
+ if (node.operator === '==' || node.operator === '!=') {
+ flag |= NULL | UNDEFINED;
+ }
+ return util_1.isTypeFlagSet(type, flag);
+ };
+ if ((leftType.flags === UNDEFINED &&
+ !isComparable(rightType, UNDEFINED)) ||
+ (rightType.flags === UNDEFINED &&
+ !isComparable(leftType, UNDEFINED)) ||
+ (leftType.flags === NULL && !isComparable(rightType, NULL)) ||
+ (rightType.flags === NULL && !isComparable(leftType, NULL))) {
+ context.report({ node, messageId: 'noOverlapBooleanExpression' });
+ return;
+ }
+ }
}
/**
* Checks that a logical expression contains a boolean, reports otherwise.
@@ -174,17 +268,16 @@
checkNodeForNullish(node.left);
return;
}
+ // Only checks the left side, since the right side might not be "conditional" at all.
+ // The right side will be checked if the LogicalExpression is used in a conditional context
checkNode(node.left);
- if (!ignoreRhs) {
- checkNode(node.right);
- }
}
/**
* Checks that a testable expression of a loop is necessarily conditional, reports otherwise.
*/
function checkIfLoopIsNecessaryConditional(node) {
- if (node.test === null ||
- node.test.type === experimental_utils_1.AST_NODE_TYPES.LogicalExpression) {
+ if (node.test === null) {
+ // e.g. `for(;;)`
return;
}
/**
@@ -205,21 +298,20 @@
'some',
'every',
]);
- function shouldCheckCallback(node) {
+ function isArrayPredicateFunction(node) {
const { callee } = node;
return (
- // option is on
- !!checkArrayPredicates &&
- // looks like `something.filter` or `something.find`
- callee.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression &&
+ // looks like `something.filter` or `something.find`
+ callee.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression &&
callee.property.type === experimental_utils_1.AST_NODE_TYPES.Identifier &&
ARRAY_PREDICATE_FUNCTIONS.has(callee.property.name) &&
// and the left-hand side is an array, according to the types
- nodeIsArrayType(callee.object));
+ (nodeIsArrayType(callee.object) || nodeIsTupleType(callee.object)));
}
function checkCallExpression(node) {
- const { arguments: [callback], } = node;
- if (callback && shouldCheckCallback(node)) {
+ // If this is something like arr.filter(x => /*condition*/), check `condition`
+ if (isArrayPredicateFunction(node) && node.arguments.length) {
+ const callback = node.arguments[0];
// Inline defined functions
if ((callback.type === experimental_utils_1.AST_NODE_TYPES.ArrowFunctionExpression ||
callback.type === experimental_utils_1.AST_NODE_TYPES.FunctionExpression) &&
@@ -260,16 +352,88 @@
}
}
}
+ // Recursively searches an optional chain for an array index expression
+ // Has to search the entire chain, because an array index will "infect" the rest of the types
+ // Example:
+ // ```
+ // [{x: {y: "z"} }][n] // type is {x: {y: "z"}}
+ // ?.x // type is {y: "z"}
+ // ?.y // This access is considered "unnecessary" according to the types
+ // ```
+ function optionChainContainsArrayIndex(node) {
+ const lhsNode = node.type === experimental_utils_1.AST_NODE_TYPES.CallExpression ? node.callee : node.object;
+ if (isArrayIndexExpression(lhsNode)) {
+ return true;
+ }
+ if (lhsNode.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression ||
+ lhsNode.type === experimental_utils_1.AST_NODE_TYPES.CallExpression) {
+ return optionChainContainsArrayIndex(lhsNode);
+ }
+ return false;
+ }
+ function isNullablePropertyType(objType, propertyType) {
+ if (propertyType.isUnion()) {
+ return propertyType.types.some(type => isNullablePropertyType(objType, type));
+ }
+ if (propertyType.isNumberLiteral() || propertyType.isStringLiteral()) {
+ const propType = util_1.getTypeOfPropertyOfName(checker, objType, propertyType.value.toString());
+ if (propType) {
+ return util_1.isNullableType(propType, { allowUndefined: true });
+ }
+ }
+ const typeName = util_1.getTypeName(checker, propertyType);
+ return !!((typeName === 'string' &&
+ checker.getIndexInfoOfType(objType, ts.IndexKind.String)) ||
+ (typeName === 'number' &&
+ checker.getIndexInfoOfType(objType, ts.IndexKind.Number)));
+ }
+ // Checks whether a member expression is nullable or not regardless of it's previous node.
+ // Example:
+ // ```
+ // // 'bar' is nullable if 'foo' is null.
+ // // but this function checks regardless of 'foo' type, so returns 'true'.
+ // declare const foo: { bar : { baz: string } } | null
+ // foo?.bar;
+ // ```
+ function isNullableOriginFromPrev(node) {
+ const prevType = getNodeType(node.object);
+ const property = node.property;
+ if (prevType.isUnion() && util_1.isIdentifier(property)) {
+ const isOwnNullable = prevType.types.some(type => {
+ if (node.computed) {
+ const propertyType = getNodeType(node.property);
+ return isNullablePropertyType(type, propertyType);
+ }
+ const propType = util_1.getTypeOfPropertyOfName(checker, type, property.name);
+ return propType && util_1.isNullableType(propType, { allowUndefined: true });
+ });
+ return (!isOwnNullable && util_1.isNullableType(prevType, { allowUndefined: true }));
+ }
+ return false;
+ }
+ function isOptionableExpression(node) {
+ const type = getNodeType(node);
+ const isOwnNullable = node.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression
+ ? !isNullableOriginFromPrev(node)
+ : true;
+ return (util_1.isTypeAnyType(type) ||
+ util_1.isTypeUnknownType(type) ||
+ (util_1.isNullableType(type, { allowUndefined: true }) && isOwnNullable));
+ }
function checkOptionalChain(node, beforeOperator, fix) {
// We only care if this step in the chain is optional. If just descend
// from an optional chain, then that's fine.
if (!node.optional) {
return;
}
- const type = getNodeType(node);
- if (tsutils_1.isTypeFlagSet(type, ts.TypeFlags.Any) ||
- tsutils_1.isTypeFlagSet(type, ts.TypeFlags.Unknown) ||
- util_1.isNullableType(type, { allowUndefined: true })) {
+ // Since typescript array index signature types don't represent the
+ // possibility of out-of-bounds access, if we're indexing into an array
+ // just skip the check, to avoid false positives
+ if (optionChainContainsArrayIndex(node)) {
+ return;
+ }
+ const nodeToCheck = node.type === experimental_utils_1.AST_NODE_TYPES.CallExpression ? node.callee : node.object;
+ if (isOptionableExpression(nodeToCheck)) {
return;
}
const questionDotOperator = util_1.nullThrows(sourceCode.getTokenAfter(beforeOperator, token => token.type === experimental_utils_1.AST_TOKEN_TYPES.Punctuator && token.value === '?.'), util_1.NullThrowsReasons.MissingToken('operator', node.type));
@@ -283,7 +447,7 @@
});
}
function checkOptionalMemberExpression(node) {
- checkOptionalChain(node, node.object, '.');
+ checkOptionalChain(node, node.object, node.computed ? '' : '.');
}
function checkOptionalCallExpression(node) {
checkOptionalChain(node, node.callee, '');
@@ -291,14 +455,14 @@
return {
BinaryExpression: checkIfBinaryExpressionIsNecessaryConditional,
CallExpression: checkCallExpression,
- ConditionalExpression: checkIfTestExpressionIsNecessaryConditional,
+ ConditionalExpression: (node) => checkNode(node.test),
DoWhileStatement: checkIfLoopIsNecessaryConditional,
ForStatement: checkIfLoopIsNecessaryConditional,
- IfStatement: checkIfTestExpressionIsNecessaryConditional,
+ IfStatement: (node) => checkNode(node.test),
LogicalExpression: checkLogicalExpressionForUnnecessaryConditionals,
WhileStatement: checkIfLoopIsNecessaryConditional,
- OptionalMemberExpression: checkOptionalMemberExpression,
- OptionalCallExpression: checkOptionalCallExpression,
+ 'MemberExpression[optional = true]': checkOptionalMemberExpression,
+ 'CallExpression[optional = true]': checkOptionalCallExpression,
};
},
});
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map
index c0bb104..d3b5c58 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-unnecessary-condition.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-condition.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAI+C;AAC/C,+CAAiC;AACjC,qCAOiB;AACjB,kCAOiB;AAEjB,uBAAuB;AACvB,UAAU;AACV,MAAM,eAAe,GAAG,CAAC,IAAa,EAAW,EAAE,CACjD,8BAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,uBAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAE5E,MAAM,eAAe,GAAG,CAAC,IAAa,EAAW,EAAE,CACjD,wBAAc,CAAC,IAAI,CAAC;IAClB,mEAAmE;IACnE,wBAAwB;KACvB,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;KAChC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,uBAAa,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC;AAEnE,MAAM,gBAAgB,GAAG,CAAC,IAAa,EAAW,EAAE,CAClD,wBAAc,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC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,cAAc,EAAE,iCAAiC;YACjD,wBAAwB,EAAE,6BAA6B;YACvD,sBAAsB,EAAE,2BAA2B;SACpD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-unnecessary-condition.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-condition.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAI+C;AAC/C,+CAAiC;AACjC,qCAOiB;AACjB,kCAaiB;AAEjB,uBAAuB;AACvB,UAAU;AACV,MAAM,eAAe,GAAG,CAAC,IAAa,EAAW,EAAE,CACjD,8BAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,uBAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAE5E,MAAM,eAAe,GAAG,CAAC,IAAa,EAAW,EAAE,CACjD,wBAAc,CAAC,IAAI,CAAC;IAClB,mEAAmE;IACnE,wBAAwB;KACvB,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;KAChC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,oBAAa,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC;AAEnE,MAAM,gBAAgB,GAAG,CAAC,IAAa,EAAW,EAAE,CAClD,wBAAc,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,qBAAW,CAAC,IAAI,CAAC,CAAC,CAAC;AAExD,oBAAoB;AACpB,MAAM,WAAW,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC;AAC/D,MAAM,aAAa,GAAG,CAAC,IAAa,EAAW,EAAE,CAC/C,oBAAa,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AAEnC,MAAM,iBAAiB,GAAG,CAAC,IAAa,EAA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AAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAClE,CAAC;QAED,SAAS,2BAA2B,CAAC,IAA6B;YAChE,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC5C,CAAC;QAED,OAAO;YACL,gBAAgB,EAAE,6CAA6C;YAC/D,cAAc,EAAE,mBAAmB;YACnC,qBAAqB,EAAE,CAAC,IAAI,EAAQ,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;YAC3D,gBAAgB,EAAE,iCAAiC;YACnD,YAAY,EAAE,iCAAiC;YAC/C,WAAW,EAAE,CAAC,IAAI,EAAQ,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;YACjD,iBAAiB,EAAE,gDAAgD;YACnE,cAAc,EAAE,iCAAiC;YACjD,mCAAmC,EAAE,6BAA6B;YAClE,iCAAiC,EAAE,2BAA2B;SAC/D,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js
index aca12b0..52202a0 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -43,7 +55,7 @@
}
function symbolIsNamespaceInScope(symbol) {
var _a;
- const symbolDeclarations = (_a = symbol.getDeclarations(), (_a !== null && _a !== void 0 ? _a : []));
+ const symbolDeclarations = (_a = symbol.getDeclarations()) !== null && _a !== void 0 ? _a : [];
if (symbolDeclarations.some(decl => namespacesInScope.some(ns => ns === decl))) {
return true;
}
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map
index ecb696f..c516a45 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-unnecessary-qualifier.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-qualifier.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,+CAAiC;AACjC,iDAAmC;AACnC,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,iDAAiD;YAC9D,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,oBAAoB,EAClB,0DAA0D;SAC7D;QACD,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qEAAqE,EAAE,eAAe;YACtF,mEAAmE,EAAE,eAAe;YACpF,eAAe,CAAC,IAA8B;gBAC5C,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;YACpD,CAAC;YACD,kCAAkC,EAAE,UAClC,IAA+B;gBAE/B,MAAM,QAAQ,GAAG,IAAI,CAAC,QAA+B,CAAC;gBACtD,IAAI,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;oBACvC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;iBACnD;YACH,CAAC;YACD,sBAAsB,EAAE,+BAA+B;YACvD,uBAAuB,EAAE,+BAA+B;SACzD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-unnecessary-qualifier.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-qualifier.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,+CAAiC;AACjC,iDAAmC;AACnC,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,iDAAiD;YAC9D,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,oBAAoB,EAClB,0DAA0D;SAC7D;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,iBAAiB,GAAc,EAAE,CAAC;QACxC,IAAI,gCAAgC,GAAyB,IAAI,CAAC;QAClE,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC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QAA+B,CAAC;gBACtD,IAAI,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;oBACvC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;iBACnD;YACH,CAAC;YACD,sBAAsB,EAAE,+BAA+B;YACvD,uBAAuB,EAAE,+BAA+B;SACzD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js
index 5fa768b..d8fab61 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -33,13 +45,12 @@
const checker = parserServices.program.getTypeChecker();
const sourceCode = context.getSourceCode();
function checkTSArgsAndParameters(esParameters, typeParameters) {
- var _a;
// Just check the last one. Must specify previous type parameters if the last one is specified.
const i = esParameters.params.length - 1;
const arg = esParameters.params[i];
const param = typeParameters[i];
// TODO: would like checker.areTypesEquivalent. https://github.com/Microsoft/TypeScript/issues/13502
- if (!((_a = param) === null || _a === void 0 ? void 0 : _a.default) ||
+ if (!(param === null || param === void 0 ? void 0 : param.default) ||
param.default.getText() !== sourceCode.getText(arg)) {
return;
}
@@ -80,19 +91,19 @@
return undefined;
}
const sym = getAliasedSymbol(symAtLocation, checker);
- if (!sym.declarations) {
+ const declarations = sym.getDeclarations();
+ if (!declarations) {
return undefined;
}
- return util_1.findFirstResult(sym.declarations, decl => tsutils.isClassLikeDeclaration(decl) ||
+ return util_1.findFirstResult(declarations, decl => tsutils.isClassLikeDeclaration(decl) ||
ts.isTypeAliasDeclaration(decl) ||
ts.isInterfaceDeclaration(decl)
? decl.typeParameters
: undefined);
}
function getTypeParametersFromCall(node, checker) {
- var _a;
const sig = checker.getResolvedSignature(node);
- const sigDecl = (_a = sig) === null || _a === void 0 ? void 0 : _a.getDeclaration();
+ const sigDecl = sig === null || sig === void 0 ? void 0 : sig.getDeclaration();
if (!sigDecl) {
return ts.isNewExpression(node)
? getTypeParametersFromType(node.expression, checker)
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map
index 9cf40b2..c669509 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-unnecessary-type-arguments.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-arguments.ts"],"names":[],"mappings":";;;;;;;;;AACA,iDAAmC;AACnC,+CAAiC;AACjC,8CAAgC;AAChC,kCAA0C;AAc1C,kBAAe,IAAI,CAAC,UAAU,CAAiB;IAC7C,IAAI,E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,SAAS,CAAC;KAClB;IAED,OAAO,sBAAe,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,CAAC,EAAE,CAC9C,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC;QACpC,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC;QAC/B,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC;QAC7B,CAAC,CAAC,IAAI,CAAC,cAAc;QACrB,CAAC,CAAC,SAAS,CACd,CAAC;AACJ,CAAC;AAED,SAAS,yBAAyB,CAChC,IAA0C,EAC1C,OAAuB;;IAEvB,MAAM,GAAG,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,OAAO,SAAG,GAAG,0CAAE,cAAc,EAAE,CAAC;IACtC,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC;YAC7B,CAAC,CAAC,yBAAyB,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC;YACrD,CAAC,CAAC,SAAS,CAAC;KACf;IAED,OAAO,OAAO,CAAC,cAAc,CAAC;AAChC,CAAC;AAED,SAAS,gBAAgB,CACvB,MAAiB,EACjB,OAAuB;IAEvB,OAAO,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC;QAC1D,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC;QAClC,CAAC,CAAC,MAAM,CAAC;AACb,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-unnecessary-type-arguments.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-arguments.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,iDAAmC;AACnC,+CAAiC;AACjC,8CAAgC;AAChC,kCAA0C;AAc1C,kBAAe,IAAI,CAAC,UAAU,CAAiB;IAC7C,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE;YAC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AE;QACjB,OAAO,SAAS,CAAC;KAClB;IAED,OAAO,sBAAe,CAAC,YAAY,EAAE,IAAI,CAAC,EAAE,CAC1C,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC;QACpC,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC;QAC/B,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC;QAC7B,CAAC,CAAC,IAAI,CAAC,cAAc;QACrB,CAAC,CAAC,SAAS,CACd,CAAC;AACJ,CAAC;AAED,SAAS,yBAAyB,CAChC,IAA0C,EAC1C,OAAuB;IAEvB,MAAM,GAAG,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,OAAO,GAAG,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,cAAc,EAAE,CAAC;IACtC,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC;YAC7B,CAAC,CAAC,yBAAyB,CAAC,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC;YACrD,CAAC,CAAC,SAAS,CAAC;KACf;IAED,OAAO,OAAO,CAAC,cAAc,CAAC;AAChC,CAAC;AAED,SAAS,gBAAgB,CACvB,MAAiB,EACjB,OAAuB;IAEvB,OAAO,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC;QAC1D,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC;QAClC,CAAC,CAAC,MAAM,CAAC;AACb,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js
index 379c846..249849f 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js
@@ -1,12 +1,25 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
const tsutils_1 = require("tsutils");
const ts = __importStar(require("typescript"));
const util = __importStar(require("../util"));
@@ -73,39 +86,6 @@
return true;
}
/**
- * Returns the contextual type of a given node.
- * Contextual type is the type of the target the node is going into.
- * i.e. the type of a called function's parameter, or the defined type of a variable declaration
- */
- function getContextualType(checker, node) {
- const parent = node.parent;
- if (!parent) {
- return;
- }
- if (tsutils_1.isCallExpression(parent) || tsutils_1.isNewExpression(parent)) {
- if (node === parent.expression) {
- // is the callee, so has no contextual type
- return;
- }
- }
- else if (tsutils_1.isVariableDeclaration(parent) ||
- tsutils_1.isPropertyDeclaration(parent) ||
- tsutils_1.isParameterDeclaration(parent)) {
- return parent.type
- ? checker.getTypeFromTypeNode(parent.type)
- : undefined;
- }
- else if (tsutils_1.isJsxExpression(parent)) {
- return checker.getContextualType(parent);
- }
- else if (![ts.SyntaxKind.TemplateSpan, ts.SyntaxKind.JsxExpression].includes(parent.kind)) {
- // parent is not something we know we can get the contextual type of
- return;
- }
- // TODO - support return statement checking
- return checker.getContextualType(node);
- }
- /**
* Returns true if there's a chance the variable has been used before a value has been assigned to it
*/
function isPossiblyUsedBeforeAssigned(node) {
@@ -138,6 +118,11 @@
}
return false;
}
+ function isConstAssertion(node) {
+ return (node.type === experimental_utils_1.AST_NODE_TYPES.TSTypeReference &&
+ node.typeName.type === experimental_utils_1.AST_NODE_TYPES.Identifier &&
+ node.typeName.name === 'const');
+ }
return {
TSNonNullExpression(node) {
const originalNode = parserServices.esTreeNodeToTSNodeMap.get(node);
@@ -160,7 +145,7 @@
else {
// we know it's a nullable type
// so figure out if the variable is used in a place that accepts nullable types
- const contextualType = getContextualType(checker, originalNode);
+ const contextualType = util.getContextualType(checker, originalNode);
if (contextualType) {
// in strict mode you can't assign null to undefined, so we have to make sure that
// the two types share a nullable type
@@ -193,7 +178,8 @@
},
'TSAsExpression, TSTypeAssertion'(node) {
var _a;
- if ((_a = options.typesToIgnore) === null || _a === void 0 ? void 0 : _a.includes(sourceCode.getText(node.typeAnnotation))) {
+ if (((_a = options.typesToIgnore) === null || _a === void 0 ? void 0 : _a.includes(sourceCode.getText(node.typeAnnotation))) ||
+ isConstAssertion(node.typeAnnotation)) {
return;
}
const originalNode = parserServices.esTreeNodeToTSNodeMap.get(node);
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map
index e9e0957..31dfa14 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-unnecessary-type-assertion.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-assertion.ts"],"names":[],"mappings":";;;;;;;;;AACA,qCAWiB;AACjB,+CAAiC;AACjC,8CAAgC;AAShC,kBAAe,IAAI,CAAC,UAAU,CAAs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,KAAK,CAAC,WAAW,CAAC;oCAChB,YAAY,CAAC,UAAU,CAAC,GAAG;oCAC3B,YAAY,CAAC,GAAG;iCACjB,CAAC,CAAC;wBACT,CAAC;qBACF,CAAC,CAAC;iBACJ;gBAED,qDAAqD;YACvD,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-unnecessary-type-assertion.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-assertion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,qCAMiB;AACjB,+CAAiC;AACjC,8CAAgC;AAShC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,qEAAqE;YACvE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,oBAAoB,EAClB,oFAAoF;YACtF,uBAAuB,EACrB,+FAA+F;SAClG;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,aAAa,EAAE;wBACb,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;SACF;QACD,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE,CAAC,EAAE,CAAC;IACpB,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAC3C,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACvD,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QACxD,MAAM,eAAe,GAAG,cAAc,CAAC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"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js
new file mode 100644
index 0000000..42b1f9c
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js
@@ -0,0 +1,265 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const util = __importStar(require("../util"));
+exports.default = util.createRule({
+ name: 'no-unsafe-assignment',
+ meta: {
+ type: 'problem',
+ docs: {
+ description: 'Disallows assigning any to variables and properties',
+ category: 'Possible Errors',
+ recommended: 'error',
+ requiresTypeChecking: true,
+ },
+ messages: {
+ anyAssignment: 'Unsafe assignment of an any value.',
+ unsafeArrayPattern: 'Unsafe array destructuring of an any array value.',
+ unsafeArrayPatternFromTuple: 'Unsafe array destructuring of a tuple element with an any value.',
+ unsafeAssignment: 'Unsafe assignment of type {{sender}} to a variable of type {{receiver}}.',
+ unsafeArraySpread: 'Unsafe spread of an any value in an array.',
+ },
+ schema: [],
+ },
+ defaultOptions: [],
+ create(context) {
+ const { program, esTreeNodeToTSNodeMap } = util.getParserServices(context);
+ const checker = program.getTypeChecker();
+ // returns true if the assignment reported
+ function checkArrayDestructureHelper(receiverNode, senderNode) {
+ if (receiverNode.type !== experimental_utils_1.AST_NODE_TYPES.ArrayPattern) {
+ return false;
+ }
+ const senderTsNode = esTreeNodeToTSNodeMap.get(senderNode);
+ const senderType = checker.getTypeAtLocation(senderTsNode);
+ return checkArrayDestructure(receiverNode, senderType, senderTsNode);
+ }
+ // returns true if the assignment reported
+ function checkArrayDestructure(receiverNode, senderType, senderNode) {
+ // any array
+ // const [x] = ([] as any[]);
+ if (util.isTypeAnyArrayType(senderType, checker)) {
+ context.report({
+ node: receiverNode,
+ messageId: 'unsafeArrayPattern',
+ });
+ return false;
+ }
+ if (!checker.isTupleType(senderType)) {
+ return true;
+ }
+ const tupleElements = util.getTypeArguments(senderType, checker);
+ // tuple with any
+ // const [x] = [1 as any];
+ let didReport = false;
+ for (let receiverIndex = 0; receiverIndex < receiverNode.elements.length; receiverIndex += 1) {
+ const receiverElement = receiverNode.elements[receiverIndex];
+ if (!receiverElement) {
+ continue;
+ }
+ if (receiverElement.type === experimental_utils_1.AST_NODE_TYPES.RestElement) {
+ // don't handle rests as they're not a 1:1 assignment
+ continue;
+ }
+ const senderType = tupleElements[receiverIndex];
+ if (!senderType) {
+ continue;
+ }
+ // check for the any type first so we can handle [[[x]]] = [any]
+ if (util.isTypeAnyType(senderType)) {
+ context.report({
+ node: receiverElement,
+ messageId: 'unsafeArrayPatternFromTuple',
+ });
+ // we want to report on every invalid element in the tuple
+ didReport = true;
+ }
+ else if (receiverElement.type === experimental_utils_1.AST_NODE_TYPES.ArrayPattern) {
+ didReport = checkArrayDestructure(receiverElement, senderType, senderNode);
+ }
+ else if (receiverElement.type === experimental_utils_1.AST_NODE_TYPES.ObjectPattern) {
+ didReport = checkObjectDestructure(receiverElement, senderType, senderNode);
+ }
+ }
+ return didReport;
+ }
+ // returns true if the assignment reported
+ function checkObjectDestructureHelper(receiverNode, senderNode) {
+ if (receiverNode.type !== experimental_utils_1.AST_NODE_TYPES.ObjectPattern) {
+ return false;
+ }
+ const senderTsNode = esTreeNodeToTSNodeMap.get(senderNode);
+ const senderType = checker.getTypeAtLocation(senderTsNode);
+ return checkObjectDestructure(receiverNode, senderType, senderTsNode);
+ }
+ // returns true if the assignment reported
+ function checkObjectDestructure(receiverNode, senderType, senderNode) {
+ const properties = new Map(senderType
+ .getProperties()
+ .map(property => [
+ property.getName(),
+ checker.getTypeOfSymbolAtLocation(property, senderNode),
+ ]));
+ let didReport = false;
+ for (let receiverIndex = 0; receiverIndex < receiverNode.properties.length; receiverIndex += 1) {
+ const receiverProperty = receiverNode.properties[receiverIndex];
+ if (receiverProperty.type === experimental_utils_1.AST_NODE_TYPES.RestElement) {
+ // don't bother checking rest
+ continue;
+ }
+ let key;
+ if (receiverProperty.computed === false) {
+ key =
+ receiverProperty.key.type === experimental_utils_1.AST_NODE_TYPES.Identifier
+ ? receiverProperty.key.name
+ : String(receiverProperty.key.value);
+ }
+ else if (receiverProperty.key.type === experimental_utils_1.AST_NODE_TYPES.Literal) {
+ key = String(receiverProperty.key.value);
+ }
+ else if (receiverProperty.key.type === experimental_utils_1.AST_NODE_TYPES.TemplateLiteral &&
+ receiverProperty.key.quasis.length === 1) {
+ key = String(receiverProperty.key.quasis[0].value.cooked);
+ }
+ else {
+ // can't figure out the name, so skip it
+ continue;
+ }
+ const senderType = properties.get(key);
+ if (!senderType) {
+ continue;
+ }
+ // check for the any type first so we can handle {x: {y: z}} = {x: any}
+ if (util.isTypeAnyType(senderType)) {
+ context.report({
+ node: receiverProperty.value,
+ messageId: 'unsafeArrayPatternFromTuple',
+ });
+ didReport = true;
+ }
+ else if (receiverProperty.value.type === experimental_utils_1.AST_NODE_TYPES.ArrayPattern) {
+ didReport = checkArrayDestructure(receiverProperty.value, senderType, senderNode);
+ }
+ else if (receiverProperty.value.type === experimental_utils_1.AST_NODE_TYPES.ObjectPattern) {
+ didReport = checkObjectDestructure(receiverProperty.value, senderType, senderNode);
+ }
+ }
+ return didReport;
+ }
+ // returns true if the assignment reported
+ function checkAssignment(receiverNode, senderNode, reportingNode, comparisonType) {
+ var _a;
+ const receiverTsNode = esTreeNodeToTSNodeMap.get(receiverNode);
+ const receiverType = comparisonType === 2 /* Contextual */
+ ? (_a = util.getContextualType(checker, receiverTsNode)) !== null && _a !== void 0 ? _a : checker.getTypeAtLocation(receiverTsNode) : checker.getTypeAtLocation(receiverTsNode);
+ const senderType = checker.getTypeAtLocation(esTreeNodeToTSNodeMap.get(senderNode));
+ if (util.isTypeAnyType(senderType)) {
+ // handle cases when we assign any ==> unknown.
+ if (util.isTypeUnknownType(receiverType)) {
+ return false;
+ }
+ context.report({
+ node: reportingNode,
+ messageId: 'anyAssignment',
+ });
+ return true;
+ }
+ if (comparisonType === 0 /* None */) {
+ return false;
+ }
+ const result = util.isUnsafeAssignment(senderType, receiverType, checker);
+ if (!result) {
+ return false;
+ }
+ const { sender, receiver } = result;
+ context.report({
+ node: reportingNode,
+ messageId: 'unsafeAssignment',
+ data: {
+ sender: checker.typeToString(sender),
+ receiver: checker.typeToString(receiver),
+ },
+ });
+ return true;
+ }
+ function getComparisonType(typeAnnotation) {
+ return typeAnnotation
+ ? // if there's a type annotation, we can do a comparison
+ 1 /* Basic */
+ : // no type annotation means the variable's type will just be inferred, thus equal
+ 0 /* None */;
+ }
+ return {
+ 'VariableDeclarator[init != null]'(node) {
+ const init = util.nullThrows(node.init, util.NullThrowsReasons.MissingToken(node.type, 'init'));
+ let didReport = checkAssignment(node.id, init, node, getComparisonType(node.id.typeAnnotation));
+ if (!didReport) {
+ didReport = checkArrayDestructureHelper(node.id, init);
+ }
+ if (!didReport) {
+ checkObjectDestructureHelper(node.id, init);
+ }
+ },
+ 'ClassProperty[value != null]'(node) {
+ checkAssignment(node.key, node.value, node, getComparisonType(node.typeAnnotation));
+ },
+ 'AssignmentExpression[operator = "="], AssignmentPattern'(node) {
+ let didReport = checkAssignment(node.left, node.right, node, 1 /* Basic */);
+ if (!didReport) {
+ didReport = checkArrayDestructureHelper(node.left, node.right);
+ }
+ if (!didReport) {
+ checkObjectDestructureHelper(node.left, node.right);
+ }
+ },
+ // object pattern props are checked via assignments
+ ':not(ObjectPattern) > Property'(node) {
+ if (node.value.type === experimental_utils_1.AST_NODE_TYPES.AssignmentPattern ||
+ node.value.type === experimental_utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression) {
+ // handled by other selector
+ return;
+ }
+ checkAssignment(node.key, node.value, node, 2 /* Contextual */);
+ },
+ 'ArrayExpression > SpreadElement'(node) {
+ const resetNode = esTreeNodeToTSNodeMap.get(node.argument);
+ const restType = checker.getTypeAtLocation(resetNode);
+ if (util.isTypeAnyType(restType) ||
+ util.isTypeAnyArrayType(restType, checker)) {
+ context.report({
+ node: node,
+ messageId: 'unsafeArraySpread',
+ });
+ }
+ },
+ 'JSXAttribute[value != null]'(node) {
+ const value = util.nullThrows(node.value, util.NullThrowsReasons.MissingToken(node.type, 'value'));
+ if (value.type !== experimental_utils_1.AST_NODE_TYPES.JSXExpressionContainer ||
+ value.expression.type === experimental_utils_1.AST_NODE_TYPES.JSXEmptyExpression) {
+ return;
+ }
+ checkAssignment(node.name, value.expression, value.expression, 2 /* Contextual */);
+ },
+ };
+ },
+});
+//# sourceMappingURL=no-unsafe-assignment.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map
new file mode 100644
index 0000000..272d4ac
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"no-unsafe-assignment.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-assignment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAE/C,8CAAgC;AAWhC,kBAAe,IAAI,CAAC,UAAU,CAAC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IAAI,CAAC,IAAI,EACT,KAAK,CAAC,UAAU,EAChB,KAAK,CAAC,UAAU,qBAEjB,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js
new file mode 100644
index 0000000..b3d4b5d
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js
@@ -0,0 +1,67 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const util = __importStar(require("../util"));
+exports.default = util.createRule({
+ name: 'no-unsafe-call',
+ meta: {
+ type: 'problem',
+ docs: {
+ description: 'Disallows calling an any type value',
+ category: 'Possible Errors',
+ recommended: 'error',
+ requiresTypeChecking: true,
+ },
+ messages: {
+ unsafeCall: 'Unsafe call of an any typed value.',
+ unsafeNew: 'Unsafe construction of an any type value.',
+ unsafeTemplateTag: 'Unsafe any typed template tag.',
+ },
+ schema: [],
+ },
+ defaultOptions: [],
+ create(context) {
+ const { program, esTreeNodeToTSNodeMap } = util.getParserServices(context);
+ const checker = program.getTypeChecker();
+ function checkCall(node, reportingNode, messageId) {
+ const tsNode = esTreeNodeToTSNodeMap.get(node);
+ const type = util.getConstrainedTypeAtLocation(checker, tsNode);
+ if (util.isTypeAnyType(type)) {
+ context.report({
+ node: reportingNode,
+ messageId: messageId,
+ });
+ }
+ }
+ return {
+ 'CallExpression > *.callee'(node) {
+ checkCall(node, node, 'unsafeCall');
+ },
+ NewExpression(node) {
+ checkCall(node.callee, node, 'unsafeNew');
+ },
+ 'TaggedTemplateExpression > *.tag'(node) {
+ checkCall(node, node, 'unsafeTemplateTag');
+ },
+ };
+ },
+});
+//# sourceMappingURL=no-unsafe-call.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map
new file mode 100644
index 0000000..2f8e7e8
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"no-unsafe-call.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-call.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,8CAAgC;AAIhC,kBAAe,IAAI,CAAC,UAAU,CAAiB;IAC7C,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,iBAAiB;YAC3B,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,oCAAoC;YAChD,SAAS,EAAE,2CAA2C;YACtD,iBAAiB,EAAE,gCAAgC;SACpD;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,EAAE,OAAO,EAAE,qBAAqB,EAAE,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3E,MAAM,OAAO,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;QAEzC,SAAS,SAAS,CAChB,IAAmB,EACnB,aAA4B,EAC5B,SAAqB;YAErB,MAAM,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAC/C,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;YAEhE,IAAI,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE;gBAC5B,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,aAAa;oBACnB,SAAS,EAAE,SAAS;iBACrB,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,2BAA2B,CACzB,IAAuC;gBAEvC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC;YACtC,CAAC;YACD,aAAa,CAAC,IAAI;gBAChB,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;YAC5C,CAAC;YACD,kCAAkC,CAAC,IAAmB;gBACpD,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,mBAAmB,CAAC,CAAC;YAC7C,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js
new file mode 100644
index 0000000..21c6c31
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js
@@ -0,0 +1,105 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const util = __importStar(require("../util"));
+exports.default = util.createRule({
+ name: 'no-unsafe-member-access',
+ meta: {
+ type: 'problem',
+ docs: {
+ description: 'Disallows member access on any typed variables',
+ category: 'Possible Errors',
+ recommended: 'error',
+ requiresTypeChecking: true,
+ },
+ messages: {
+ unsafeMemberExpression: 'Unsafe member access {{property}} on an any value.',
+ unsafeComputedMemberAccess: 'Computed name {{property}} resolves to an any value.',
+ },
+ schema: [],
+ },
+ defaultOptions: [],
+ create(context) {
+ const { program, esTreeNodeToTSNodeMap } = util.getParserServices(context);
+ const checker = program.getTypeChecker();
+ const sourceCode = context.getSourceCode();
+ const stateCache = new Map();
+ function checkMemberExpression(node) {
+ const cachedState = stateCache.get(node);
+ if (cachedState) {
+ return cachedState;
+ }
+ if (node.object.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression) {
+ const objectState = checkMemberExpression(node.object);
+ if (objectState === 1 /* Unsafe */) {
+ // if the object is unsafe, we know this will be unsafe as well
+ // we don't need to report, as we have already reported on the inner member expr
+ stateCache.set(node, objectState);
+ return objectState;
+ }
+ }
+ const tsNode = esTreeNodeToTSNodeMap.get(node.object);
+ const type = checker.getTypeAtLocation(tsNode);
+ const state = util.isTypeAnyType(type) ? 1 /* Unsafe */ : 2 /* Safe */;
+ stateCache.set(node, state);
+ if (state === 1 /* Unsafe */) {
+ const propertyName = sourceCode.getText(node.property);
+ context.report({
+ node,
+ messageId: 'unsafeMemberExpression',
+ data: {
+ property: node.computed ? `[${propertyName}]` : `.${propertyName}`,
+ },
+ });
+ }
+ return state;
+ }
+ return {
+ MemberExpression: checkMemberExpression,
+ 'MemberExpression[computed = true] > *.property'(node) {
+ if (
+ // x[1]
+ node.type === experimental_utils_1.AST_NODE_TYPES.Literal ||
+ // x[1++] x[++x] etc
+ // FUN FACT - **all** update expressions return type number, regardless of the argument's type,
+ // because JS engines return NaN if there the argument is not a number.
+ node.type === experimental_utils_1.AST_NODE_TYPES.UpdateExpression) {
+ // perf optimizations - literals can obviously never be `any`
+ return;
+ }
+ const tsNode = esTreeNodeToTSNodeMap.get(node);
+ const type = checker.getTypeAtLocation(tsNode);
+ if (util.isTypeAnyType(type)) {
+ const propertyName = sourceCode.getText(node);
+ context.report({
+ node,
+ messageId: 'unsafeComputedMemberAccess',
+ data: {
+ property: `[${propertyName}]`,
+ },
+ });
+ }
+ },
+ };
+ },
+});
+//# sourceMappingURL=no-unsafe-member-access.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map
new file mode 100644
index 0000000..4a2df7a
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"no-unsafe-member-access.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-member-access.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAOhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,gDAAgD;YAC7D,QAAQ,EAAE,iBAAiB;YAC3B,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;S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AAM,YAAY,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBACvD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,wBAAwB;oBACnC,IAAI,EAAE;wBACJ,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,YAAY,GAAG,CAAC,CAAC,CAAC,IAAI,YAAY,EAAE;qBACnE;iBACF,CAAC,CAAC;aACJ;YAED,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO;YACL,gBAAgB,EAAE,qBAAqB;YACvC,gDAAgD,CAC9C,IAAyB;gBAEzB;gBACE,OAAO;gBACP,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,OAAO;oBACpC,oBAAoB;oBACpB,+FAA+F;oBAC/F,uEAAuE;oBACvE,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,gBAAgB,EAC7C;oBACA,6DAA6D;oBAC7D,OAAO;iBACR;gBAED,MAAM,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAC/C,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;gBAE/C,IAAI,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE;oBAC5B,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBAC9C,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,4BAA4B;wBACvC,IAAI,EAAE;4BACJ,QAAQ,EAAE,IAAI,YAAY,GAAG;yBAC9B;qBACF,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js
new file mode 100644
index 0000000..50b809c
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js
@@ -0,0 +1,137 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const tsutils_1 = require("tsutils");
+const util = __importStar(require("../util"));
+exports.default = util.createRule({
+ name: 'no-unsafe-return',
+ meta: {
+ type: 'problem',
+ docs: {
+ description: 'Disallows returning any from a function',
+ category: 'Possible Errors',
+ recommended: 'error',
+ requiresTypeChecking: true,
+ },
+ messages: {
+ unsafeReturn: 'Unsafe return of an {{type}} typed value',
+ unsafeReturnAssignment: 'Unsafe return of type {{sender}} from function with return type {{receiver}}.',
+ },
+ schema: [],
+ },
+ defaultOptions: [],
+ create(context) {
+ const { program, esTreeNodeToTSNodeMap } = util.getParserServices(context);
+ const checker = program.getTypeChecker();
+ function getParentFunctionNode(node) {
+ let current = node.parent;
+ while (current) {
+ if (current.type === experimental_utils_1.AST_NODE_TYPES.ArrowFunctionExpression ||
+ current.type === experimental_utils_1.AST_NODE_TYPES.FunctionDeclaration ||
+ current.type === experimental_utils_1.AST_NODE_TYPES.FunctionExpression) {
+ return current;
+ }
+ current = current.parent;
+ }
+ // this shouldn't happen in correct code, but someone may attempt to parse bad code
+ // the parser won't error, so we shouldn't throw here
+ /* istanbul ignore next */ return null;
+ }
+ function checkReturn(returnNode, reportingNode = returnNode) {
+ const tsNode = esTreeNodeToTSNodeMap.get(returnNode);
+ const anyType = util.isAnyOrAnyArrayTypeDiscriminated(tsNode, checker);
+ const functionNode = getParentFunctionNode(returnNode);
+ /* istanbul ignore if */ if (!functionNode) {
+ return;
+ }
+ // function has an explicit return type, so ensure it's a safe return
+ const returnNodeType = util.getConstrainedTypeAtLocation(checker, esTreeNodeToTSNodeMap.get(returnNode));
+ const functionTSNode = esTreeNodeToTSNodeMap.get(functionNode);
+ // function expressions will not have their return type modified based on receiver typing
+ // so we have to use the contextual typing in these cases, i.e.
+ // const foo1: () => Set<string> = () => new Set<any>();
+ // the return type of the arrow function is Set<any> even though the variable is typed as Set<string>
+ let functionType = tsutils_1.isExpression(functionTSNode)
+ ? util.getContextualType(checker, functionTSNode)
+ : checker.getTypeAtLocation(functionTSNode);
+ if (!functionType) {
+ functionType = checker.getTypeAtLocation(functionTSNode);
+ }
+ if (anyType !== 2 /* Safe */) {
+ // Allow cases when the declared return type of the function is either unknown or unknown[]
+ // and the function is returning any or any[].
+ for (const signature of functionType.getCallSignatures()) {
+ const functionReturnType = signature.getReturnType();
+ if (anyType === 0 /* Any */ &&
+ util.isTypeUnknownType(functionReturnType)) {
+ return;
+ }
+ if (anyType === 1 /* AnyArray */ &&
+ util.isTypeUnknownArrayType(functionReturnType, checker)) {
+ return;
+ }
+ }
+ // If the function return type was not unknown/unknown[], mark usage as unsafeReturn.
+ return context.report({
+ node: reportingNode,
+ messageId: 'unsafeReturn',
+ data: {
+ type: anyType === 0 /* Any */ ? 'any' : 'any[]',
+ },
+ });
+ }
+ for (const signature of functionType.getCallSignatures()) {
+ const functionReturnType = signature.getReturnType();
+ if (returnNodeType === functionReturnType) {
+ // don't bother checking if they're the same
+ // either the function is explicitly declared to return the same type
+ // or there was no declaration, so the return type is implicit
+ return;
+ }
+ const result = util.isUnsafeAssignment(returnNodeType, functionReturnType, checker);
+ if (!result) {
+ return;
+ }
+ const { sender, receiver } = result;
+ return context.report({
+ node: reportingNode,
+ messageId: 'unsafeReturnAssignment',
+ data: {
+ sender: checker.typeToString(sender),
+ receiver: checker.typeToString(receiver),
+ },
+ });
+ }
+ }
+ return {
+ ReturnStatement(node) {
+ const argument = node.argument;
+ if (!argument) {
+ return;
+ }
+ checkReturn(argument, node);
+ },
+ 'ArrowFunctionExpression > :not(BlockStatement).body': checkReturn,
+ };
+ },
+});
+//# sourceMappingURL=no-unsafe-return.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map
new file mode 100644
index 0000000..e2f30ca
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"no-unsafe-return.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-return.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,qCAAuC;AACvC,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,iBAAiB;YAC3B,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,0CAA0C;YACxD,sBAAsB,EACpB,+EAA+E;SAClF;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,EAAE,OAAO,EAAE,qBAAqB,EAAE,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAA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C;oBACpB,IAAI,EAAE,aAAa;oBACnB,SAAS,EAAE,wBAAwB;oBACnC,IAAI,EAAE;wBACJ,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC;wBACpC,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC;qBACzC;iBACF,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,eAAe,CAAC,IAAI;gBAClB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;gBAC/B,IAAI,CAAC,QAAQ,EAAE;oBACb,OAAO;iBACR;gBAED,WAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YAC9B,CAAC;YACD,qDAAqD,EAAE,WAAW;SACnE,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-untyped-public-signature.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-untyped-public-signature.js
deleted file mode 100644
index 6834e58..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-untyped-public-signature.js
+++ /dev/null
@@ -1,99 +0,0 @@
-"use strict";
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
- return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-const util = __importStar(require("../util"));
-const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
-exports.default = util.createRule({
- name: 'no-untyped-public-signature',
- meta: {
- deprecated: true,
- replacedBy: ['explicit-module-boundary-types'],
- docs: {
- description: 'Disallow untyped public methods',
- category: 'Best Practices',
- recommended: false,
- },
- messages: {
- noReturnType: 'Public method has no return type',
- untypedParameter: 'Public method parameters should be typed',
- },
- schema: [
- {
- allowAdditionalProperties: false,
- properties: {
- ignoredMethods: {
- type: 'array',
- items: {
- type: 'string',
- },
- },
- },
- type: 'object',
- },
- ],
- type: 'suggestion',
- },
- defaultOptions: [{ ignoredMethods: [] }],
- create(context, [options]) {
- const ignoredMethods = new Set(options.ignoredMethods);
- function isPublicMethod(node) {
- return node.accessibility === 'public' || !node.accessibility;
- }
- function isIgnoredMethod(node, ignoredMethods) {
- if (node.key.type === experimental_utils_1.AST_NODE_TYPES.Literal &&
- typeof node.key.value === 'string') {
- return ignoredMethods.has(node.key.value);
- }
- if (node.key.type === experimental_utils_1.AST_NODE_TYPES.TemplateLiteral &&
- node.key.expressions.length === 0) {
- return ignoredMethods.has(node.key.quasis[0].value.raw);
- }
- if (!node.computed && node.key.type === experimental_utils_1.AST_NODE_TYPES.Identifier) {
- return ignoredMethods.has(node.key.name);
- }
- return false;
- }
- function isParamTyped(node) {
- return (!!node.typeAnnotation &&
- node.typeAnnotation.typeAnnotation.type !== experimental_utils_1.AST_NODE_TYPES.TSAnyKeyword);
- }
- function isReturnTyped(node) {
- if (!node) {
- return false;
- }
- return (node.typeAnnotation &&
- node.typeAnnotation.type !== experimental_utils_1.AST_NODE_TYPES.TSAnyKeyword);
- }
- return {
- 'TSAbstractMethodDefinition, MethodDefinition'(node) {
- if (isPublicMethod(node) && !isIgnoredMethod(node, ignoredMethods)) {
- const paramIdentifiers = node.value.params.filter(param => param.type === experimental_utils_1.AST_NODE_TYPES.Identifier);
- const identifiersHaveTypes = paramIdentifiers.every(isParamTyped);
- if (!identifiersHaveTypes) {
- context.report({
- node,
- messageId: 'untypedParameter',
- data: {},
- });
- }
- if (node.kind !== 'constructor' &&
- node.kind !== 'set' &&
- !isReturnTyped(node.value.returnType)) {
- context.report({
- node,
- messageId: 'noReturnType',
- data: {},
- });
- }
- }
- },
- };
- },
-});
-//# sourceMappingURL=no-untyped-public-signature.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-untyped-public-signature.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-untyped-public-signature.js.map
deleted file mode 100644
index a51d901..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-untyped-public-signature.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"no-untyped-public-signature.js","sourceRoot":"","sources":["../../src/rules/no-untyped-public-signature.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8CAAgC;AAChC,8EAG+C;AAM/C,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE,CAAC,gCAAgC,CAAC;QAC9C,IAAI,EAAE;YACJ,WAAW,EAAE,iCAAiC;YAC9C,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,kCAAkC;YAChD,gBAAgB,EAAE,0CAA0C;SAC7D;QACD,MAAM,EAAE;YACN;gBACE,yBAAyB,EAAE,KAAK;gBAChC,UAAU,EAAE;oBACV,cAAc,EAAE;wBACd,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;gBACD,IAAI,EAAE,QAAQ;aACf;SACF;QACD,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC;IACxC,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QAEvD,SAAS,cAAc,CACrB,IAAqE;YAErE,OAAO,IAAI,CAAC,aAAa,KAAK,QAAQ,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC;QAChE,CAAC;QAED,SAAS,eAAe,CACtB,IAAqE,EACrE,cAA2B;YAE3B,IACE,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,mCAAc,CAAC,OAAO;gBACxC,OAAO,IAAI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AAK,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU,CACzB,CAAC;oBAC3B,MAAM,oBAAoB,GAAG,gBAAgB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;oBAClE,IAAI,CAAC,oBAAoB,EAAE;wBACzB,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI;4BACJ,SAAS,EAAE,kBAAkB;4BAC7B,IAAI,EAAE,EAAE;yBACT,CAAC,CAAC;qBACJ;oBAED,IACE,IAAI,CAAC,IAAI,KAAK,aAAa;wBAC3B,IAAI,CAAC,IAAI,KAAK,KAAK;wBACnB,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,EACrC;wBACA,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI;4BACJ,SAAS,EAAE,cAAc;4BACzB,IAAI,EAAE,EAAE;yBACT,CAAC,CAAC;qBACJ;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js
index 4842a26..1b3a2d4 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js
@@ -1,14 +1,27 @@
"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+var _a;
Object.defineProperty(exports, "__esModule", { value: true });
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
const no_unused_expressions_1 = __importDefault(require("eslint/lib/rules/no-unused-expressions"));
@@ -24,15 +37,35 @@
extendsBaseRule: true,
},
schema: no_unused_expressions_1.default.meta.schema,
- messages: {},
+ messages: (_a = no_unused_expressions_1.default.meta.messages) !== null && _a !== void 0 ? _a : {
+ unusedExpression: 'Expected an assignment or function call and instead saw an expression.',
+ },
},
- defaultOptions: [],
- create(context) {
+ defaultOptions: [
+ {
+ allowShortCircuit: false,
+ allowTernary: false,
+ allowTaggedTemplates: false,
+ },
+ ],
+ create(context, options) {
const rules = no_unused_expressions_1.default.create(context);
+ const { allowShortCircuit = false, allowTernary = false } = options[0];
+ function isValidExpression(node) {
+ if (allowShortCircuit && node.type === experimental_utils_1.AST_NODE_TYPES.LogicalExpression) {
+ return isValidExpression(node.right);
+ }
+ if (allowTernary && node.type === experimental_utils_1.AST_NODE_TYPES.ConditionalExpression) {
+ return (isValidExpression(node.alternate) &&
+ isValidExpression(node.consequent));
+ }
+ return ((node.type === experimental_utils_1.AST_NODE_TYPES.ChainExpression &&
+ node.expression.type === experimental_utils_1.AST_NODE_TYPES.CallExpression) ||
+ node.type === experimental_utils_1.AST_NODE_TYPES.ImportExpression);
+ }
return {
ExpressionStatement(node) {
- if (node.directive ||
- node.expression.type === experimental_utils_1.AST_NODE_TYPES.OptionalCallExpression) {
+ if (node.directive || isValidExpression(node.expression)) {
return;
}
rules.ExpressionStatement(node);
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js.map
index 3fa9a2e..d9fc646 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-unused-expressions.js","sourceRoot":"","sources":["../../src/rules/no-unused-expressions.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8EAAuE;AACvE,mGAA8D;AAC9D,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,MAAM,EAAE,+BAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,QAAQ,EAAE,EAAE;KACb;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,+BAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEvC,OAAO;YACL,mBAAmB,CAAC,IAAI;gBACtB,IACE,IAAI,CAAC,SAAS;oBACd,IAAI,CAAC,UAAU,CAAC,IAAI,KAAK,mCAAc,CAAC,sBAAsB,EAC9D;oBACA,OAAO;iBACR;gBAED,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;YAClC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-unused-expressions.js","sourceRoot":"","sources":["../../src/rules/no-unused-expressions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;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KAAK,mCAAc,CAAC,cAAc,CAAC;gBACzD,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,gBAAgB,CAC9C,CAAC;QACJ,CAAC;QAED,OAAO;YACL,mBAAmB,CAAC,IAAI;gBACtB,IAAI,IAAI,CAAC,SAAS,IAAI,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;oBACxD,OAAO;iBACR;gBAED,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;YAClC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars-experimental.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars-experimental.js
index 11b8b77..fd05722 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars-experimental.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars-experimental.js
@@ -1,13 +1,26 @@
"use strict";
/* eslint-disable no-fallthrough */
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
+exports.DEFAULT_IGNORED_REGEX_STRING = void 0;
const ts = __importStar(require("typescript"));
const util = __importStar(require("../util"));
exports.DEFAULT_IGNORED_REGEX_STRING = '^_';
@@ -19,8 +32,9 @@
description: 'Disallow unused variables and arguments',
category: 'Best Practices',
recommended: false,
- requiresTypeChecking: true,
},
+ deprecated: true,
+ replacedBy: ['no-unused-vars'],
schema: [
{
type: 'object',
@@ -45,7 +59,7 @@
],
messages: {
unused: "{{type}} '{{name}}' is declared but its value is never read.",
- unusedWithIgnorePattern: "{{type}} '{{name}}' is declared but its value is never read. Allowed unused names must match {{pattern}}",
+ unusedWithIgnorePattern: "{{type}} '{{name}}' is declared but its value is never read. Allowed unused names must match {{pattern}}.",
unusedImport: 'All imports in import declaration are unused.',
unusedTypeParameters: 'All type parameters are unused.',
},
@@ -58,14 +72,14 @@
],
create(context, [userOptions]) {
var _a;
- const parserServices = util.getParserServices(context);
+ const parserServices = util.getParserServices(context, true);
const tsProgram = parserServices.program;
const afterAllDiagnosticsCallbacks = [];
const options = {
ignoredNames: userOptions && typeof userOptions.ignoredNamesRegex === 'string'
? new RegExp(userOptions.ignoredNamesRegex)
: null,
- ignoreArgsIfArgsAfterAreUsed: (_a = userOptions.ignoreArgsIfArgsAfterAreUsed, (_a !== null && _a !== void 0 ? _a : false)),
+ ignoreArgsIfArgsAfterAreUsed: (_a = userOptions.ignoreArgsIfArgsAfterAreUsed) !== null && _a !== void 0 ? _a : false,
};
function handleIdentifier(identifier) {
function report(type) {
@@ -122,7 +136,6 @@
case ts.SyntaxKind.ImportSpecifier:
// a namespace import is NOT used, but the default import is used
case ts.SyntaxKind.NamespaceImport:
- // eslint-disable-next-line @typescript-eslint/internal/prefer-ast-types-enum
report('Import');
break;
case ts.SyntaxKind.InterfaceDeclaration:
@@ -157,7 +170,7 @@
const unusedParameters = new Set();
function handleParameterDeclaration(identifier, parent) {
const name = identifier.getText();
- // regardless of if the paramter is ignored, track that it had a diagnostic fired on it
+ // regardless of if the parameter is ignored, track that it had a diagnostic fired on it
unusedParameters.add(identifier);
/*
NOTE - Typescript will automatically ignore parameters that have a
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars-experimental.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars-experimental.js.map
index 55f3d88..d5e1583 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars-experimental.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars-experimental.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-unused-vars-experimental.js","sourceRoot":"","sources":["../../src/rules/no-unused-vars-experimental.ts"],"names":[],"mappings":";AAAA,mCAAmC;;;;;;;;;AAGnC,+CAAiC;AACjC,8CAAgC;AAkBnB,QAAA,4BAA4B,GAAG,IAAI,CAAC;AACjD,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,iBAAiB,EAAE;wBACjB,KAAK,EAAE;4BACL;gCACE,IAAI,EAAE,QAAQ;6BACf;4BACD;gCACE,IAAI,EAAE,SAAS;gCACf,IAAI,EAAE,CAAC,KAAK,CAAC;6BACd;yBACF;qBACF;oBACD,4BAA4B,EAAE;wBAC5B,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,8DAA8D;YACtE,uBAAuB,EACrB,0GAA0G;YAC5G,YAAY,EAAE,+CAA+C;YAC7D,oBAAoB,EAAE,iCAAiC;SACxD;KACF;IACD,cAAc,EAAE;QACd;YACE,iBAAiB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gBACH,CAAC,CAAC,CAAC;gBAEH,kFAAkF;gBAClF,4BAA4B,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;YACnD,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH;;GAEG;AACH,SAAS,kBAAkB,CAAC,IAAY;IACtC,OAAO;QACL,IAAI;QACJ,IAAI;QACJ,IAAI;QACJ,IAAI;QACJ,IAAI;QACJ,IAAI;QACJ,IAAI;KACL,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACnB,CAAC;AAED;;GAEG;AACH,SAAS,aAAa,CAAC,IAAa;IAClC,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,oBAAoB;QAChD,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,mBAAmB,CAChD,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ,CAAC,IAAa;IAC7B,OAAO,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC;AACvD,CAAC;AAED,SAAS,YAAY,CAAC,IAAa;IACjC,OAAO,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;AAChD,CAAC;AAED,SAAS,SAAS,CAChB,IAAa,EACb,MAA6C;IAE7C,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,aAAa;QACzC,MAAM,CAAC,cAAc,KAAK,SAAS,CACpC,CAAC;AACJ,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-unused-vars-experimental.js","sourceRoot":"","sources":["../../src/rules/no-unused-vars-experimental.ts"],"names":[],"mappings":";AAAA,mCAAmC;;;;;;;;;;;;;;;;;;;;;;AAGnC,+CAAiC;AACjC,8CAAgC;AAkBnB,QAAA,4BAA4B,GAAG,IAAI,CAAC;AACjD,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAA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CAAC,UAAU,CAAC,mBAAmB,CAChD,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ,CAAC,IAAa;IAC7B,OAAO,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC;AACvD,CAAC;AAED,SAAS,YAAY,CAAC,IAAa;IACjC,OAAO,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;AAChD,CAAC;AAED,SAAS,SAAS,CAChB,IAAa,EACb,MAA6C;IAE7C,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,aAAa;QACzC,MAAM,CAAC,cAAc,KAAK,SAAS,CACpC,CAAC;AACJ,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js
index 2ab3871..fbb7b03 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js
@@ -1,16 +1,30 @@
"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+var _a;
Object.defineProperty(exports, "__esModule", { value: true });
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const scope_manager_1 = require("@typescript-eslint/scope-manager");
const no_unused_vars_1 = __importDefault(require("eslint/lib/rules/no-unused-vars"));
const util = __importStar(require("../util"));
exports.default = util.createRule({
@@ -24,61 +38,320 @@
extendsBaseRule: true,
},
schema: no_unused_vars_1.default.meta.schema,
- messages: no_unused_vars_1.default.meta.messages,
+ messages: (_a = no_unused_vars_1.default.meta.messages) !== null && _a !== void 0 ? _a : {
+ unusedVar: "'{{varName}}' is {{action}} but never used{{additional}}.",
+ },
},
- defaultOptions: [],
+ defaultOptions: [{}],
create(context) {
const rules = no_unused_vars_1.default.create(context);
+ const filename = context.getFilename();
+ const MODULE_DECL_CACHE = new Map();
/**
- * Mark heritage clause as used
- * @param node The node currently being traversed
+ * Gets a list of TS module definitions for a specified variable.
+ * @param variable eslint-scope variable object.
*/
- function markHeritageAsUsed(node) {
+ function getModuleNameDeclarations(variable) {
+ const moduleDeclarations = [];
+ variable.defs.forEach(def => {
+ if (def.type === 'TSModuleName') {
+ moduleDeclarations.push(def.node);
+ }
+ });
+ return moduleDeclarations;
+ }
+ /**
+ * Determine if an identifier is referencing an enclosing name.
+ * This only applies to declarations that create their own scope (modules, functions, classes)
+ * @param ref The reference to check.
+ * @param nodes The candidate function nodes.
+ * @returns True if it's a self-reference, false if not.
+ */
+ function isBlockSelfReference(ref, nodes) {
+ let scope = ref.from;
+ while (scope) {
+ if (nodes.indexOf(scope.block) >= 0) {
+ return true;
+ }
+ scope = scope.upper;
+ }
+ return false;
+ }
+ function isExported(variable, target) {
+ // TS will require that all merged namespaces/interfaces are exported, so we only need to find one
+ return variable.defs.some(def => {
+ var _a, _b;
+ return def.node.type === target &&
+ (((_a = def.node.parent) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.ExportNamedDeclaration ||
+ ((_b = def.node.parent) === null || _b === void 0 ? void 0 : _b.type) === experimental_utils_1.AST_NODE_TYPES.ExportDefaultDeclaration);
+ });
+ }
+ return Object.assign(Object.assign({}, rules), { 'TSCallSignatureDeclaration, TSConstructorType, TSConstructSignatureDeclaration, TSDeclareFunction, TSEmptyBodyFunctionExpression, TSFunctionType, TSMethodSignature'(node) {
+ // function type signature params create variables because they can be referenced within the signature,
+ // but they obviously aren't unused variables for the purposes of this rule.
+ for (const param of node.params) {
+ visitPattern(param, name => {
+ context.markVariableAsUsed(name.name);
+ });
+ }
+ },
+ TSEnumDeclaration() {
+ // enum members create variables because they can be referenced within the enum,
+ // but they obviously aren't unused variables for the purposes of this rule.
+ const scope = context.getScope();
+ for (const variable of scope.variables) {
+ context.markVariableAsUsed(variable.name);
+ }
+ },
+ TSMappedType(node) {
+ // mapped types create a variable for their type name, but it's not necessary to reference it,
+ // so we shouldn't consider it as unused for the purpose of this rule.
+ context.markVariableAsUsed(node.typeParameter.name.name);
+ },
+ TSModuleDeclaration() {
+ const childScope = context.getScope();
+ const scope = util.nullThrows(context.getScope().upper, util.NullThrowsReasons.MissingToken(childScope.type, 'upper scope'));
+ for (const variable of scope.variables) {
+ const moduleNodes = getModuleNameDeclarations(variable);
+ if (moduleNodes.length === 0 ||
+ // ignore unreferenced module definitions, as the base rule will report on them
+ variable.references.length === 0 ||
+ // ignore exported nodes
+ isExported(variable, experimental_utils_1.AST_NODE_TYPES.TSModuleDeclaration)) {
+ continue;
+ }
+ // check if the only reference to a module's name is a self-reference in its body
+ // this won't be caught by the base rule because it doesn't understand TS modules
+ const isOnlySelfReferenced = variable.references.every(ref => {
+ return isBlockSelfReference(ref, moduleNodes);
+ });
+ if (isOnlySelfReferenced) {
+ context.report({
+ node: variable.identifiers[0],
+ messageId: 'unusedVar',
+ data: {
+ varName: variable.name,
+ action: 'defined',
+ additional: '',
+ },
+ });
+ }
+ }
+ },
+ [[
+ 'TSParameterProperty > AssignmentPattern > Identifier.left',
+ 'TSParameterProperty > Identifier.parameter',
+ ].join(', ')](node) {
+ // just assume parameter properties are used as property usage tracking is beyond the scope of this rule
+ context.markVariableAsUsed(node.name);
+ },
+ ':matches(FunctionDeclaration, FunctionExpression, ArrowFunctionExpression) > Identifier[name="this"].params'(node) {
+ // this parameters should always be considered used as they're pseudo-parameters
+ context.markVariableAsUsed(node.name);
+ },
+ 'TSInterfaceDeclaration, TSTypeAliasDeclaration'(node) {
+ const variable = context.getScope().set.get(node.id.name);
+ if (!variable) {
+ return;
+ }
+ if (variable.references.length === 0 ||
+ // ignore exported nodes
+ isExported(variable, node.type)) {
+ return;
+ }
+ // check if the type is only self-referenced
+ // this won't be caught by the base rule because it doesn't understand self-referencing types
+ const isOnlySelfReferenced = variable.references.every(ref => {
+ if (ref.identifier.range[0] >= node.range[0] &&
+ ref.identifier.range[1] <= node.range[1]) {
+ return true;
+ }
+ return false;
+ });
+ if (isOnlySelfReferenced) {
+ context.report({
+ node: variable.identifiers[0],
+ messageId: 'unusedVar',
+ data: {
+ varName: variable.name,
+ action: 'defined',
+ additional: '',
+ },
+ });
+ }
+ },
+ // declaration file handling
+ [ambientDeclarationSelector(experimental_utils_1.AST_NODE_TYPES.Program, true)](node) {
+ if (!util.isDefinitionFile(filename)) {
+ return;
+ }
+ markDeclarationChildAsUsed(node);
+ },
+ // global augmentation can be in any file, and they do not need exports
+ 'TSModuleDeclaration[declare = true][global = true]'() {
+ context.markVariableAsUsed('global');
+ },
+ // children of a namespace that is a child of a declared namespace are auto-exported
+ [ambientDeclarationSelector('TSModuleDeclaration[declare = true] > TSModuleBlock TSModuleDeclaration > TSModuleBlock', false)](node) {
+ markDeclarationChildAsUsed(node);
+ },
+ // declared namespace handling
+ [ambientDeclarationSelector('TSModuleDeclaration[declare = true] > TSModuleBlock', false)](node) {
+ var _a;
+ const moduleDecl = util.nullThrows((_a = node.parent) === null || _a === void 0 ? void 0 : _a.parent, util.NullThrowsReasons.MissingParent);
+ // declared ambient modules with an `export =` statement will only export that one thing
+ // all other statements are not automatically exported in this case
+ if (moduleDecl.id.type === experimental_utils_1.AST_NODE_TYPES.Literal &&
+ checkModuleDeclForExportEquals(moduleDecl)) {
+ return;
+ }
+ markDeclarationChildAsUsed(node);
+ } });
+ function checkModuleDeclForExportEquals(node) {
+ var _a, _b;
+ const cached = MODULE_DECL_CACHE.get(node);
+ if (cached != null) {
+ return cached;
+ }
+ for (const statement of (_b = (_a = node.body) === null || _a === void 0 ? void 0 : _a.body) !== null && _b !== void 0 ? _b : []) {
+ if (statement.type === experimental_utils_1.AST_NODE_TYPES.TSExportAssignment) {
+ MODULE_DECL_CACHE.set(node, true);
+ return true;
+ }
+ }
+ MODULE_DECL_CACHE.set(node, false);
+ return false;
+ }
+ function ambientDeclarationSelector(parent, childDeclare) {
+ return [
+ // Types are ambiently exported
+ `${parent} > :matches(${[
+ experimental_utils_1.AST_NODE_TYPES.TSInterfaceDeclaration,
+ experimental_utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration,
+ ].join(', ')})`,
+ // Value things are ambiently exported if they are "declare"d
+ `${parent} > :matches(${[
+ experimental_utils_1.AST_NODE_TYPES.ClassDeclaration,
+ experimental_utils_1.AST_NODE_TYPES.TSDeclareFunction,
+ experimental_utils_1.AST_NODE_TYPES.TSEnumDeclaration,
+ experimental_utils_1.AST_NODE_TYPES.TSModuleDeclaration,
+ experimental_utils_1.AST_NODE_TYPES.VariableDeclaration,
+ ].join(', ')})${childDeclare ? '[declare = true]' : ''}`,
+ ].join(', ');
+ }
+ function markDeclarationChildAsUsed(node) {
+ var _a;
+ const identifiers = [];
switch (node.type) {
- case experimental_utils_1.AST_NODE_TYPES.Identifier:
- context.markVariableAsUsed(node.name);
+ case experimental_utils_1.AST_NODE_TYPES.TSInterfaceDeclaration:
+ case experimental_utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration:
+ case experimental_utils_1.AST_NODE_TYPES.ClassDeclaration:
+ case experimental_utils_1.AST_NODE_TYPES.FunctionDeclaration:
+ case experimental_utils_1.AST_NODE_TYPES.TSDeclareFunction:
+ case experimental_utils_1.AST_NODE_TYPES.TSEnumDeclaration:
+ case experimental_utils_1.AST_NODE_TYPES.TSModuleDeclaration:
+ if (((_a = node.id) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.Identifier) {
+ identifiers.push(node.id);
+ }
break;
- case experimental_utils_1.AST_NODE_TYPES.MemberExpression:
- markHeritageAsUsed(node.object);
- break;
- case experimental_utils_1.AST_NODE_TYPES.CallExpression:
- markHeritageAsUsed(node.callee);
+ case experimental_utils_1.AST_NODE_TYPES.VariableDeclaration:
+ for (const declaration of node.declarations) {
+ visitPattern(declaration, pattern => {
+ identifiers.push(pattern);
+ });
+ }
break;
}
- }
- return Object.assign({}, rules, {
- 'TSTypeReference Identifier'(node) {
- context.markVariableAsUsed(node.name);
- },
- TSInterfaceHeritage(node) {
- if (node.expression) {
- markHeritageAsUsed(node.expression);
- }
- },
- TSClassImplements(node) {
- if (node.expression) {
- markHeritageAsUsed(node.expression);
- }
- },
- 'TSParameterProperty Identifier'(node) {
- // just assume parameter properties are used
- context.markVariableAsUsed(node.name);
- },
- 'TSEnumMember Identifier'(node) {
- context.markVariableAsUsed(node.name);
- },
- '*[declare=true] Identifier'(node) {
- context.markVariableAsUsed(node.name);
- const scope = context.getScope();
- const { variableScope } = scope;
- if (variableScope !== scope) {
- const superVar = variableScope.set.get(node.name);
+ const scope = context.getScope();
+ const { variableScope } = scope;
+ if (variableScope !== scope) {
+ for (const id of identifiers) {
+ const superVar = variableScope.set.get(id.name);
if (superVar) {
superVar.eslintUsed = true;
}
}
- },
- });
+ }
+ else {
+ for (const id of identifiers) {
+ context.markVariableAsUsed(id.name);
+ }
+ }
+ }
+ function visitPattern(node, cb) {
+ const visitor = new scope_manager_1.PatternVisitor({}, node, cb);
+ visitor.visit(node);
+ }
},
});
+/*
+
+###### TODO ######
+
+Edge cases that aren't currently handled due to laziness and them being super edgy edge cases
+
+
+--- function params referenced in typeof type refs in the function declaration ---
+--- NOTE - TS gets these cases wrong
+
+function _foo(
+ arg: number // arg should be unused
+): typeof arg {
+ return 1 as any;
+}
+
+function _bar(
+ arg: number, // arg should be unused
+ _arg2: typeof arg,
+) {}
+
+
+--- function names referenced in typeof type refs in the function declaration ---
+--- NOTE - TS gets these cases right
+
+function foo( // foo should be unused
+): typeof foo {
+ return 1 as any;
+}
+
+function bar( // bar should be unused
+ _arg: typeof bar
+) {}
+
+*/
+/*
+
+###### TODO ######
+
+We currently extend base `no-unused-vars` implementation because it's easier and lighter-weight.
+
+Because of this, there are a few false-negatives which won't get caught.
+We could fix these if we fork the base rule; but that's a lot of code (~650 lines) to add in.
+I didn't want to do that just yet without some real-world issues, considering these are pretty rare edge-cases.
+
+These cases are mishandled because the base rule assumes that each variable has one def, but type-value shadowing
+creates a variable with two defs
+
+--- type-only or value-only references to type/value shadowed variables ---
+--- NOTE - TS gets these cases wrong
+
+type T = 1;
+const T = 2; // this T should be unused
+
+type U = T; // this U should be unused
+const U = 3;
+
+const _V = U;
+
+
+--- partially exported type/value shadowed variables ---
+--- NOTE - TS gets these cases wrong
+
+export interface Foo {}
+const Foo = 1; // this Foo should be unused
+
+interface Bar {} // this Bar should be unused
+export const Bar = 1;
+
+*/
//# sourceMappingURL=no-unused-vars.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map
index 2c4990e..af5677d 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-unused-vars.js","sourceRoot":"","sources":["../../src/rules/no-unused-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,CAAC;YACD,iBAAiB,CAAC,IAAgC;gBAChD,IAAI,IAAI,CAAC,UAAU,EAAE;oBACnB,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;iBACrC;YACH,CAAC;YACD,gCAAgC,CAAC,IAAyB;gBACxD,4CAA4C;gBAC5C,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACxC,CAAC;YACD,yBAAyB,CAAC,IAAyB;gBACjD,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACxC,CAAC;YACD,4BAA4B,CAAC,IAAyB;gBACpD,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACtC,MAAM,KAAK,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;gBACjC,MAAM,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;gBAChC,IAAI,aAAa,KAAK,KAAK,EAAE;oBAC3B,MAAM,QAAQ,GAAG,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;oBAClD,IAAI,QAAQ,EAAE;wBACZ,QAAQ,CAAC,UAAU,GAAG,IAAI,CAAC;qBAC5B;iBACF;YACH,CAAC;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-unused-vars.js","sourceRoot":"","sources":["../../src/rules/no-unused-vars.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8EAI+C;AAC/C,oEAAkE;AAClE,qFAAuD;AACvD,8CAAgC;AAKhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,WAAW;YACrB,WAAW,EAAE,MAAM;YACnB,eAAe,EAAE,IAA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AE,aAAa,EAAE,GAAG,KAAK,CAAC;YAChC,IAAI,aAAa,KAAK,KAAK,EAAE;gBAC3B,KAAK,MAAM,EAAE,IAAI,WAAW,EAAE;oBAC5B,MAAM,QAAQ,GAAG,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;oBAChD,IAAI,QAAQ,EAAE;wBACZ,QAAQ,CAAC,UAAU,GAAG,IAAI,CAAC;qBAC5B;iBACF;aACF;iBAAM;gBACL,KAAK,MAAM,EAAE,IAAI,WAAW,EAAE;oBAC5B,OAAO,CAAC,kBAAkB,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;iBACrC;aACF;QACH,CAAC;QAED,SAAS,YAAY,CACnB,IAAmB,EACnB,EAAuC;YAEvC,MAAM,OAAO,GAAG,IAAI,8BAAc,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;YACjD,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACtB,CAAC;IACH,CAAC;CACF,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCE;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCE"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js
index 5a14dab..c7807f1 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -19,6 +31,7 @@
let enums = true;
let variables = true;
let typedefs = true;
+ let ignoreTypeReferences = true;
if (typeof options === 'string') {
functions = options !== 'nofunc';
}
@@ -28,26 +41,16 @@
enums = options.enums !== false;
variables = options.variables !== false;
typedefs = options.typedefs !== false;
+ ignoreTypeReferences = options.ignoreTypeReferences !== false;
}
- return { functions, classes, enums, variables, typedefs };
-}
-/**
- * Checks whether or not a given scope is a top level scope.
- */
-function isTopLevelScope(scope) {
- return scope.type === 'module' || scope.type === 'global';
-}
-/**
- * Checks whether or not a given variable declaration in an upper scope.
- */
-function isOuterScope(variable, reference) {
- if (variable.scope.variableScope === reference.from.variableScope) {
- // allow the same scope only if it's the top level global/module scope
- if (!isTopLevelScope(variable.scope.variableScope)) {
- return false;
- }
- }
- return true;
+ return {
+ functions,
+ classes,
+ enums,
+ variables,
+ typedefs,
+ ignoreTypeReferences,
+ };
}
/**
* Checks whether or not a given variable is a function declaration.
@@ -56,24 +59,31 @@
return variable.defs[0].type === 'FunctionName';
}
/**
- * Checks whether or not a given variable is a enum declaration in an upper function scope.
+ * Checks whether or not a given variable is a type declaration.
+ */
+function isTypedef(variable) {
+ return variable.defs[0].type === 'Type';
+}
+/**
+ * Checks whether or not a given variable is a enum declaration.
*/
function isOuterEnum(variable, reference) {
- const node = variable.defs[0].node;
- return (node.type === experimental_utils_1.AST_NODE_TYPES.TSEnumDeclaration &&
- isOuterScope(variable, reference));
+ return (variable.defs[0].type == 'TSEnumName' &&
+ variable.scope.variableScope !== reference.from.variableScope);
}
/**
* Checks whether or not a given variable is a class declaration in an upper function scope.
*/
function isOuterClass(variable, reference) {
- return (variable.defs[0].type === 'ClassName' && isOuterScope(variable, reference));
+ return (variable.defs[0].type === 'ClassName' &&
+ variable.scope.variableScope !== reference.from.variableScope);
}
/**
* Checks whether or not a given variable is a variable declaration in an upper function scope.
*/
function isOuterVariable(variable, reference) {
- return (variable.defs[0].type === 'Variable' && isOuterScope(variable, reference));
+ return (variable.defs[0].type === 'Variable' &&
+ variable.scope.variableScope !== reference.from.variableScope);
}
/**
* Checks whether or not a given location is inside of the range of a given node.
@@ -92,6 +102,7 @@
* - for (var a of a) {}
*/
function isInInitializer(variable, reference) {
+ var _a;
if (variable.scope !== reference.from) {
return false;
}
@@ -102,8 +113,7 @@
if (isInRange(node.init, location)) {
return true;
}
- if (node.parent &&
- node.parent.parent &&
+ if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.parent) &&
(node.parent.parent.type === experimental_utils_1.AST_NODE_TYPES.ForInStatement ||
node.parent.parent.type === experimental_utils_1.AST_NODE_TYPES.ForOfStatement) &&
isInRange(node.parent.parent.right, location)) {
@@ -130,7 +140,7 @@
docs: {
description: 'Disallow the use of variables before they are defined',
category: 'Variables',
- recommended: 'error',
+ recommended: false,
extendsBaseRule: true,
},
messages: {
@@ -150,6 +160,7 @@
enums: { type: 'boolean' },
variables: { type: 'boolean' },
typedefs: { type: 'boolean' },
+ ignoreTypeReferences: { type: 'boolean' },
},
additionalProperties: false,
},
@@ -164,6 +175,7 @@
enums: true,
variables: true,
typedefs: true,
+ ignoreTypeReferences: true,
},
],
create(context, optionsWithDefault) {
@@ -174,17 +186,23 @@
* @param reference The reference to the variable
*/
function isForbidden(variable, reference) {
+ if (reference.isTypeReference && options.ignoreTypeReferences) {
+ return false;
+ }
if (isFunction(variable)) {
- return !!options.functions;
+ return options.functions;
}
if (isOuterClass(variable, reference)) {
- return !!options.classes;
+ return options.classes;
}
if (isOuterVariable(variable, reference)) {
- return !!options.variables;
+ return options.variables;
}
if (isOuterEnum(variable, reference)) {
- return !!options.enums;
+ return options.enums;
+ }
+ if (isTypedef(variable)) {
+ return options.typedefs;
}
return true;
}
@@ -203,9 +221,10 @@
if (reference.init ||
!variable ||
variable.identifiers.length === 0 ||
- (variable.identifiers[0].range[1] < reference.identifier.range[1] &&
+ (variable.identifiers[0].range[1] <= reference.identifier.range[1] &&
!isInInitializer(variable, reference)) ||
- !isForbidden(variable, reference)) {
+ !isForbidden(variable, reference) ||
+ reference.from.type === experimental_utils_1.TSESLint.Scope.ScopeType.functionType) {
return;
}
// Reports.
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map
index ef84689..e715a5b 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-use-before-define.js","sourceRoot":"","sources":["../../src/rules/no-use-before-define.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAI+C;AAC/C,8CAAgC;AAEhC,MAAM,aAAa,GAAG,iIAAiI,CAAC;AAExJ;;GAEG;AACH,SAAS,YAAY,CAAC,OAA+B;IACnD,IAAI,SAAS,GAAG,IAAI,CAAC;IACrB,IAAI,OAAO,GAAG,IAAI,CAAC;IACnB,IAAI,KAAK,GAAG,IAAI,CAAC;IACjB,IAAI,SAAS,GAAG,IAAI,CAAC;IACrB,IAAI,QAAQ,GAAG,IAAI,CAAC;IAEpB,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,SAAS,GAAG,OAAO,KAAK,QAAQ,CAAC;KAClC;SAAM,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI,EAAE;QAC1D,SAAS,GAAG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AAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;wBAC/D,CAAC,eAAe,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;oBACxC,CAAC,WAAW,CAAC,QAAQ,EAAE,SAAS,CAAC,EACjC;oBACA,OAAO;iBACR;gBAED,WAAW;gBACX,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,SAAS,CAAC,UAAU;oBAC1B,SAAS,EAAE,mBAAmB;oBAC9B,IAAI,EAAE;wBACJ,IAAI,EAAE,SAAS,CAAC,UAAU,CAAC,IAAI;qBAChC;iBACF,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAClD,CAAC;QAED,OAAO;YACL,OAAO;gBACL,oBAAoB,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC3C,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-use-before-define.js","sourceRoot":"","sources":["../../src/rules/no-use-before-define.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAI+C;AAC/C,8CAAgC;AAEhC,MAAM,aAAa,GAAG,iIAAiI,CAAC;AAExJ;;GAEG;AACH,SAAS,YAAY,CAAC,OAA+B;IACnD,IAAI,SAAS,GAAG,IAAI,CAAC;IACrB,IAAI,OAAO,GAAG,IAAI,CAAC;IACnB,IAAI,KAAK,GAAG,IAAI,CAAC;IACjB,IAAI,SAAS,GAAG,IAAI,CAAC;IACrB,IAAI,QAAQ,GAAG,IAAI,CAAC;IACpB,IAAI,oBAAoB,GAAG,IAAI,CAAC;IAEhC,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,SAAS,GAAG,OAAO,KAAK,QAAQ,CAAC;KAClC;SAAM,IAAI,OAAO,OAAO,KAA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BACjC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;wBAChE,CAAC,eAAe,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;oBACxC,CAAC,WAAW,CAAC,QAAQ,EAAE,SAAS,CAAC;oBACjC,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,6BAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,YAAY,EAC7D;oBACA,OAAO;iBACR;gBAED,WAAW;gBACX,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,SAAS,CAAC,UAAU;oBAC1B,SAAS,EAAE,mBAAmB;oBAC9B,IAAI,EAAE;wBACJ,IAAI,EAAE,SAAS,CAAC,UAAU,CAAC,IAAI;qBAChC;iBACF,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAClD,CAAC;QAED,OAAO;YACL,OAAO;gBACL,oBAAoB,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC3C,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js
index 6c135a4..936e083 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js
@@ -1,14 +1,27 @@
"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+var _a;
Object.defineProperty(exports, "__esModule", { value: true });
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
const no_useless_constructor_1 = __importDefault(require("eslint/lib/rules/no-useless-constructor"));
@@ -51,7 +64,9 @@
extendsBaseRule: true,
},
schema: no_useless_constructor_1.default.meta.schema,
- messages: no_useless_constructor_1.default.meta.messages,
+ messages: (_a = no_useless_constructor_1.default.meta.messages) !== null && _a !== void 0 ? _a : {
+ noUselessConstructor: 'Useless constructor.',
+ },
},
defaultOptions: [],
create(context) {
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js.map
index 5eb8159..865009c 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-useless-constructor.js","sourceRoot":"","sources":["../../src/rules/no-useless-constructor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8EAG+C;AAC/C,qGAA+D;AAC/D,8CAAgC;AAKhC;;GAEG;AACH,SAAS,kB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K;oBACV,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,mCAAc,CAAC,kBAAkB;oBACrD,IAAI,CAAC,KAAK,CAAC,IAAI;oBACf,kBAAkB,CAAC,IAAI,CAAC;oBACxB,WAAW,CAAC,IAAI,CAAC,EACjB;oBACA,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;iBAC9B;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-useless-constructor.js","sourceRoot":"","sources":["../../src/rules/no-useless-constructor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,qGAA+D;AAC/D,8CAAgC;AAKhC;;GAEG;AACH,SAAS,kBAAkB,CAAC,IAA+B;IACzD,QAAQ,IAAI,CAAC,aAAa,EAAE;QAC1B,KAAK,WAAW,CAAC;QACjB,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC;QACf,KAAK,QAAQ;YACX,IACE,IAAI,CAAC,MAAM;gBACX,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,SAAS;gBAC7C,IAAI,CAAC,MAAM,CAAC,MAAM;gBAClB,YAAY,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM;gBAClC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,EAC7B;gBACA,OAAO,KAAK,CAAC;aACd;YACD,MAAM;KACT;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAC,IAA+B;IAClD,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM;QAClB,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CACrB,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,mCAAc,CAAC,mBAAmB,CAC3D,CACF,CAAC;AACJ,CAAC;AAED,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,MAAM,EAAE,gCAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,QAAQ,QAAE,gCAAQ,CAAC,IAAI,CAAC,QAAQ,mCAAI;YAClC,oBAAoB,EAAE,sBAAsB;SAC7C;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,gCAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACvC,OAAO;YACL,gBAAgB,CAAC,IAAI;gBACnB,IACE,IAAI,CAAC,KAAK;oBACV,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,mCAAc,CAAC,kBAAkB;oBACrD,IAAI,CAAC,KAAK,CAAC,IAAI;oBACf,kBAAkB,CAAC,IAAI,CAAC;oBACxB,WAAW,CAAC,IAAI,CAAC,EACjB;oBACA,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;iBAC9B;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js
index 0e0dc38..c042fe0 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -26,13 +38,18 @@
defaultOptions: [],
create(context) {
return {
- 'CallExpression, OptionalCallExpression'(node) {
+ CallExpression(node) {
+ var _a;
+ const parent = ((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.ChainExpression
+ ? node.parent.parent
+ : node.parent;
if (node.callee.type === experimental_utils_1.AST_NODE_TYPES.Identifier &&
node.callee.name === 'require' &&
- node.parent &&
- (node.parent.type === experimental_utils_1.AST_NODE_TYPES.VariableDeclarator ||
- node.parent.type === experimental_utils_1.AST_NODE_TYPES.CallExpression ||
- node.parent.type === experimental_utils_1.AST_NODE_TYPES.OptionalCallExpression)) {
+ parent &&
+ (parent.type === experimental_utils_1.AST_NODE_TYPES.VariableDeclarator ||
+ parent.type === experimental_utils_1.AST_NODE_TYPES.CallExpression ||
+ parent.type === experimental_utils_1.AST_NODE_TYPES.TSAsExpression ||
+ parent.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression)) {
context.report({
node,
messageId: 'noVarReqs',
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js.map
index 12dd67c..3d9eefc 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js.map
@@ -1 +1 @@
-{"version":3,"file":"no-var-requires.js","sourceRoot":"","sources":["../../src/rules/no-var-requires.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAKhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,qEAAqE;YACvE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;SACrB;QACD,QAAQ,EAAE;YACR,SAAS,EAAE,iDAAiD;SAC7D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,wCAAwC,CACtC,IAA+D;gBAE/D,IACE,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU;oBAC9C,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS;oBAC9B,IAAI,CAAC,MAAM;oBACX,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,kBAAkB;wBACrD,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,cAAc;wBAClD,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,sBAAsB,CAAC,EAC7D;oBACA,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,WAAW;qBACvB,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"no-var-requires.js","sourceRoot":"","sources":["../../src/rules/no-var-requires.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAKhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,qEAAqE;YACvE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;SACrB;QACD,QAAQ,EAAE;YACR,SAAS,EAAE,iDAAiD;SAC7D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,cAAc,CAAC,IAA6B;;gBAC1C,MAAM,MAAM,GACV,OAAA,IAAI,CAAC,MAAM,0CAAE,IAAI,MAAK,mCAAc,CAAC,eAAe;oBAClD,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;oBACpB,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;gBAClB,IACE,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU;oBAC9C,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS;oBAC9B,MAAM;oBACN,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,kBAAkB;wBAChD,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,cAAc;wBAC7C,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,cAAc;wBAC7C,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,gBAAgB,CAAC,EAClD;oBACA,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,WAAW;qBACvB,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js
index 2c557b4..caf2a55 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -16,12 +28,13 @@
docs: {
description: 'Prefer usage of `as const` over literal type',
category: 'Best Practices',
- recommended: false,
+ recommended: 'error',
+ suggestion: true,
},
fixable: 'code',
messages: {
- preferConstAssertion: 'Expected a `const` instead of a literal type assertion',
- variableConstAssertion: 'Expected a `const` assertion instead of a literal type annotation',
+ preferConstAssertion: 'Expected a `const` instead of a literal type assertion.',
+ variableConstAssertion: 'Expected a `const` assertion instead of a literal type annotation.',
variableSuggest: 'You should use `as const` instead of type annotation.',
},
schema: [],
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js.map
index 00a715e..93e89b8 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js.map
@@ -1 +1 @@
-{"version":3,"file":"prefer-as-const.js","sourceRoot":"","sources":["../../src/rules/prefer-as-const.ts"],"names":[],"mappings":";;;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AC,SAAS,EAAE,WAAW,CAAC;iCAC9C;6BACF;yBACF;qBACF,CAAC,CAAC;iBACJ;aACF;QACH,CAAC;QAED,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;YAC3D,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;YAC3D,CAAC;YACD,kBAAkB,CAAC,IAAI;gBACrB,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,CAAC,cAAc,EAAE;oBACvC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,cAAc,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;iBACvE;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"prefer-as-const.js","sourceRoot":"","sources":["../../src/rules/prefer-as-const.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAI+C;AAC/C,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,8CAA8C;YAC3D,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;YACpB,UAAU,EAAE,IAAI;SACjB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,oBAAoB,EAClB,yDAAyD;YAC3D,sBAAsB,EACpB,oEAAoE;YACtE,eAAe,EAAE,uDAAuD;SACzE;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,YAAY,CACnB,SAA8B,EAC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CAAC,EAAE,CAAC,cAAc,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;iBACvE;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js
new file mode 100644
index 0000000..f81e3dc
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js
@@ -0,0 +1,85 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const util = __importStar(require("../util"));
+exports.default = util.createRule({
+ name: 'prefer-enum-initializers',
+ meta: {
+ type: 'suggestion',
+ docs: {
+ description: 'Prefer initializing each enums member value',
+ category: 'Best Practices',
+ recommended: false,
+ suggestion: true,
+ },
+ messages: {
+ defineInitializer: "The value of the member '{{ name }}' should be explicitly defined",
+ defineInitializerSuggestion: 'Can be fixed to {{ name }} = {{ suggested }}',
+ },
+ schema: [],
+ },
+ defaultOptions: [],
+ create(context) {
+ const sourceCode = context.getSourceCode();
+ function TSEnumDeclaration(node) {
+ const { members } = node;
+ members.forEach((member, index) => {
+ if (member.initializer == null) {
+ const name = sourceCode.getText(member);
+ context.report({
+ node: member,
+ messageId: 'defineInitializer',
+ data: {
+ name,
+ },
+ suggest: [
+ {
+ messageId: 'defineInitializerSuggestion',
+ data: { name, suggested: index },
+ fix: (fixer) => {
+ return fixer.replaceText(member, `${name} = ${index}`);
+ },
+ },
+ {
+ messageId: 'defineInitializerSuggestion',
+ data: { name, suggested: index + 1 },
+ fix: (fixer) => {
+ return fixer.replaceText(member, `${name} = ${index + 1}`);
+ },
+ },
+ {
+ messageId: 'defineInitializerSuggestion',
+ data: { name, suggested: `'${name}'` },
+ fix: (fixer) => {
+ return fixer.replaceText(member, `${name} = '${name}'`);
+ },
+ },
+ ],
+ });
+ }
+ });
+ }
+ return {
+ TSEnumDeclaration,
+ };
+ },
+});
+//# sourceMappingURL=prefer-enum-initializers.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js.map
new file mode 100644
index 0000000..5a2c3bf
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"prefer-enum-initializers.js","sourceRoot":"","sources":["../../src/rules/prefer-enum-initializers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,8CAAgC;AAKhC,kBAAe,IAAI,CAAC,UAAU,CAAiB;IAC7C,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,6CAA6C;YAC1D,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,UAAU,EAAE,IAAI;SACjB;QACD,QAAQ,EAAE;YACR,iBAAiB,EACf,mEAAmE;YACrE,2BAA2B,EACzB,8CAA8C;SACjD;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,E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AAI,OAAO,IAAI,GAAG,CAAC,CAAC;gCAC1D,CAAC;6BACF;yBACF;qBACF,CAAC,CAAC;iBACJ;YACH,CAAC,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,iBAAiB;SAClB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js
index d3d6771..acd31ea 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -19,7 +31,7 @@
recommended: false,
},
messages: {
- preferForOf: 'Expected a `for-of` loop instead of a `for` loop with this simple iteration',
+ preferForOf: 'Expected a `for-of` loop instead of a `for` loop with this simple iteration.',
},
schema: [],
},
@@ -45,8 +57,7 @@
node.type === experimental_utils_1.AST_NODE_TYPES.BinaryExpression &&
node.operator === '<' &&
isMatchingIdentifier(node.left, name) &&
- (node.right.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression ||
- node.right.type === experimental_utils_1.AST_NODE_TYPES.OptionalMemberExpression) &&
+ node.right.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression &&
isMatchingIdentifier(node.right.property, 'length')) {
return node.right.object;
}
@@ -130,8 +141,7 @@
const node = id.parent;
return (!contains(body, id) ||
(node !== undefined &&
- (node.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression ||
- node.type === experimental_utils_1.AST_NODE_TYPES.OptionalMemberExpression) &&
+ node.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression &&
node.property === id &&
sourceCode.getText(node.object) === arrayText &&
!isAssignee(node)));
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map
index cdd145d..b7cc1d9 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map
@@ -1 +1 @@
-{"version":3,"file":"prefer-for-of.js","sourceRoot":"","sources":["../../src/rules/prefer-for-of.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAI+C;AAC/C,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,gHAAgH;YAClH,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,WAAW,EACT,6EAA6E;SAChF;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,2BAA2B,CAClC,IAA0B;YAE1B,OAAO,CACL,IAAI,KAAK,IAAI;gBACb,IAAI,CAAC,IAAI,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oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC3D,IACE,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC;oBACnC,wBAAwB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,eAAe,CAAC,EAC9D;oBACA,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,aAAa;qBACzB,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"prefer-for-of.js","sourceRoot":"","sources":["../../src/rules/prefer-for-of.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAI+C;AAC/C,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,gHAAgH;YAClH,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,WAAW,EACT,8EAA8E;SACjF;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,2BAA2B,CAClC,IAA0B;YAE1B,OAAO,CACL,IAAI,KAAK,IAAI;gBACb,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,mBAAmB;gBAChD,IAAI,CAAC,IAAI,KAAK,OAAO;gBACrB,IAAI,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,CAC/B,CAAC;QACJ,CAAC;QAED,SAAS,SAAS,CAAC,IAAyB,EAAE,KAAa;YACzD,OAAO,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC;QACtE,CAAC;QAED,SAAS,iBAAiB,CAAC,IAAiC;YAC1D,OA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,EAAE;wBACpB,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,SAAS;wBAC7C,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CACrB,CAAC;YACJ,CAAC,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,mBAAmB,CAAC,IAA2B;gBAC7C,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;oBAC3C,OAAO;iBACR;gBAED,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAE9B,CAAC;gBACd,IACE,CAAC,UAAU;oBACX,CAAC,iBAAiB,CAAC,UAAU,CAAC;oBAC9B,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU,EAChD;oBACA,OAAO;iBACR;gBAED,MAAM,SAAS,GAAG,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC;gBACrC,MAAM,eAAe,GAAG,0BAA0B,CAChD,IAAI,CAAC,IAAI,EACT,SAAS,CACV,CAAC;gBACF,IAAI,CAAC,eAAe,EAAE;oBACpB,OAAO;iBACR;gBAED,MAAM,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC3D,IACE,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC;oBACnC,wBAAwB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,eAAe,CAAC,EAC9D;oBACA,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,aAAa;qBACzB,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js
index 08b3f53..b10172c 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js
@@ -1,14 +1,31 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
+exports.phrases = void 0;
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
const util = __importStar(require("../util"));
+exports.phrases = {
+ [experimental_utils_1.AST_NODE_TYPES.TSTypeLiteral]: 'Type literal',
+ [experimental_utils_1.AST_NODE_TYPES.TSInterfaceDeclaration]: 'Interface',
+};
exports.default = util.createRule({
name: 'prefer-function-type',
meta: {
@@ -19,7 +36,8 @@
},
fixable: 'code',
messages: {
- functionTypeOverCallableType: "{{ type }} has only a call signature - use '{{ sigSuggestion }}' instead.",
+ functionTypeOverCallableType: '{{ literalOrInterface }} only has a call signature, you should use a function type instead.',
+ unexpectedThisOnFunctionOnlyInterface: "`this` refers to the function type '{{ interfaceName }}', did you intend to use a generic `this` parameter like `<Self>(this: Self, ...) => Self` instead?",
},
schema: [],
type: 'suggestion',
@@ -84,10 +102,24 @@
* @param member The TypeElement being checked
* @param node The parent of member being checked
*/
- function checkMember(member, node) {
+ function checkMember(member, node, tsThisTypes = null) {
if ((member.type === experimental_utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration ||
member.type === experimental_utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration) &&
typeof member.returnType !== 'undefined') {
+ if (tsThisTypes !== null &&
+ tsThisTypes.length > 0 &&
+ node.type === experimental_utils_1.AST_NODE_TYPES.TSInterfaceDeclaration) {
+ // the message can be confusing if we don't point directly to the `this` node instead of the whole member
+ // and in favour of generating at most one error we'll only report the first occurrence of `this` if there are multiple
+ context.report({
+ node: tsThisTypes[0],
+ messageId: 'unexpectedThisOnFunctionOnlyInterface',
+ data: {
+ interfaceName: node.id.name,
+ },
+ });
+ return;
+ }
const suggestion = renderSuggestion(member, node);
const fixStart = node.type === experimental_utils_1.AST_NODE_TYPES.TSTypeLiteral
? node.range[0]
@@ -99,10 +131,7 @@
node: member,
messageId: 'functionTypeOverCallableType',
data: {
- type: node.type === experimental_utils_1.AST_NODE_TYPES.TSTypeLiteral
- ? 'Type literal'
- : 'Interface',
- sigSuggestion: suggestion,
+ literalOrInterface: exports.phrases[node.type],
},
fix(fixer) {
return fixer.replaceTextRange([fixStart, node.range[1]], suggestion);
@@ -110,12 +139,35 @@
});
}
}
+ let tsThisTypes = null;
+ let literalNesting = 0;
return {
- TSInterfaceDeclaration(node) {
- if (!hasOneSupertype(node) && node.body.body.length === 1) {
- checkMember(node.body.body[0], node);
+ TSInterfaceDeclaration() {
+ // when entering an interface reset the count of `this`s to empty.
+ tsThisTypes = [];
+ },
+ 'TSInterfaceDeclaration TSThisType'(node) {
+ // inside an interface keep track of all ThisType references.
+ // unless it's inside a nested type literal in which case it's invalid code anyway
+ // we don't want to incorrectly say "it refers to name" while typescript says it's completely invalid.
+ if (literalNesting === 0 && tsThisTypes !== null) {
+ tsThisTypes.push(node);
}
},
+ 'TSInterfaceDeclaration:exit'(node) {
+ if (!hasOneSupertype(node) && node.body.body.length === 1) {
+ checkMember(node.body.body[0], node, tsThisTypes);
+ }
+ // on exit check member and reset the array to nothing.
+ tsThisTypes = null;
+ },
+ // keep track of nested literals to avoid complaining about invalid `this` uses
+ 'TSInterfaceDeclaration TSTypeLiteral'() {
+ literalNesting += 1;
+ },
+ 'TSInterfaceDeclaration TSTypeLiteral:exit'() {
+ literalNesting -= 1;
+ },
'TSTypeLiteral[members.length = 1]'(node) {
checkMember(node.members[0], node);
},
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map
index e8bcad2..e87d7e2 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map
@@ -1 +1 @@
-{"version":3,"file":"prefer-function-type.js","sourceRoot":"","sources":["../../src/rules/prefer-function-type.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAI+C;AAC/C,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,+DAA+D;YACjE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;SACnB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,4BAA4B,EAC1B,2EAA2E;SAC9E;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C;;;WAGG;QACH,SAAS,eAAe,CAAC,IAAqC;YAC5D,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC9C,OAAO,KAAK,CAAC;aACd;YACD,IAAI,IAAI,CAAC,OA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AAM;oBACZ,SAAS,EAAE,8BAA8B;oBACzC,IAAI,EAAE;wBACJ,IAAI,EACF,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,aAAa;4BACxC,CAAC,CAAC,cAAc;4BAChB,CAAC,CAAC,WAAW;wBACjB,aAAa,EAAE,UAAU;qBAC1B;oBACD,GAAG,CAAC,KAAK;wBACP,OAAO,KAAK,CAAC,gBAAgB,CAC3B,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzB,UAAU,CACX,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,sBAAsB,CAAC,IAAI;gBACzB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;oBACzD,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;iBACtC;YACH,CAAC;YACD,mCAAmC,CAAC,IAA4B;gBAC9D,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;YACrC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"prefer-function-type.js","sourceRoot":"","sources":["../../src/rules/prefer-function-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,8EAI+C;AAC/C,8CAAgC;AAEnB,QAAA,OAAO,GAAG;IACrB,CAAC,mCAAc,CAAC,aAAa,CAAC,EAAE,cAAc;IAC9C,CAAC,mCAAc,CAAC,sBAAsB,CAAC,EAAE,WAAW;CAC5C,CAAC;AAEX,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,+DAA+D;YACjE,QAA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AI,CAAC;QACrD,IAAI,cAAc,GAAG,CAAC,CAAC;QACvB,OAAO;YACL,sBAAsB;gBACpB,kEAAkE;gBAClE,WAAW,GAAG,EAAE,CAAC;YACnB,CAAC;YACD,mCAAmC,CAAC,IAAyB;gBAC3D,6DAA6D;gBAC7D,kFAAkF;gBAClF,sGAAsG;gBACtG,IAAI,cAAc,KAAK,CAAC,IAAI,WAAW,KAAK,IAAI,EAAE;oBAChD,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBACxB;YACH,CAAC;YACD,6BAA6B,CAC3B,IAAqC;gBAErC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;oBACzD,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;iBACnD;gBACD,uDAAuD;gBACvD,WAAW,GAAG,IAAI,CAAC;YACrB,CAAC;YACD,+EAA+E;YAC/E,sCAAsC;gBACpC,cAAc,IAAI,CAAC,CAAC;YACtB,CAAC;YACD,2CAA2C;gBACzC,cAAc,IAAI,CAAC,CAAC;YACtB,CAAC;YACD,mCAAmC,CAAC,IAA4B;gBAC9D,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;YACrC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js
index 3627d3e..e352e96 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js
@@ -1,14 +1,25 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
-const eslint_utils_1 = require("eslint-utils");
const regexpp_1 = require("regexpp");
const ts = __importStar(require("typescript"));
const util_1 = require("../util");
@@ -20,7 +31,7 @@
docs: {
description: 'Enforce `includes` method over `indexOf` method',
category: 'Best Practices',
- recommended: 'error',
+ recommended: false,
requiresTypeChecking: true,
},
fixable: 'code',
@@ -35,7 +46,7 @@
const services = util_1.getParserServices(context);
const types = services.program.getTypeChecker();
function isNumber(node, value) {
- const evaluated = eslint_utils_1.getStaticValue(node, globalScope);
+ const evaluated = util_1.getStaticValue(node, globalScope);
return evaluated !== null && evaluated.value === value;
}
function isPositiveCheck(node) {
@@ -86,7 +97,7 @@
* @param node The node to parse.
*/
function parseRegExp(node) {
- const evaluated = eslint_utils_1.getStaticValue(node, globalScope);
+ const evaluated = util_1.getStaticValue(node, globalScope);
if (evaluated == null || !(evaluated.value instanceof RegExp)) {
return null;
}
@@ -105,29 +116,40 @@
return String.fromCodePoint(...chars.map(c => c.value));
}
return {
- "BinaryExpression > :matches(CallExpression, OptionalCallExpression).left > :matches(MemberExpression, OptionalMemberExpression).callee[property.name='indexOf'][computed=false]"(node) {
+ [[
+ // a.indexOf(b) !== 1
+ "BinaryExpression > CallExpression.left > MemberExpression.callee[property.name='indexOf'][computed=false]",
+ // a?.indexOf(b) !== 1
+ "BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name='indexOf'][computed=false]",
+ ].join(', ')](node) {
+ var _a, _b, _c;
// Check if the comparison is equivalent to `includes()`.
const callNode = node.parent;
- const compareNode = callNode.parent;
+ const compareNode = (((_a = callNode.parent) === null || _a === void 0 ? void 0 : _a.type) ===
+ experimental_utils_1.AST_NODE_TYPES.ChainExpression
+ ? callNode.parent.parent
+ : callNode.parent);
const negative = isNegativeCheck(compareNode);
if (!negative && !isPositiveCheck(compareNode)) {
return;
}
// Get the symbol of `indexOf` method.
const tsNode = services.esTreeNodeToTSNodeMap.get(node.property);
- const indexofMethodSymbol = types.getSymbolAtLocation(tsNode);
- if (indexofMethodSymbol == null ||
- indexofMethodSymbol.declarations.length === 0) {
+ const indexofMethodDeclarations = (_b = types
+ .getSymbolAtLocation(tsNode)) === null || _b === void 0 ? void 0 : _b.getDeclarations();
+ if (indexofMethodDeclarations == null ||
+ indexofMethodDeclarations.length === 0) {
return;
}
// Check if every declaration of `indexOf` method has `includes` method
// and the two methods have the same parameters.
- for (const instanceofMethodDecl of indexofMethodSymbol.declarations) {
+ for (const instanceofMethodDecl of indexofMethodDeclarations) {
const typeDecl = instanceofMethodDecl.parent;
const type = types.getTypeAtLocation(typeDecl);
- const includesMethodSymbol = type.getProperty('includes');
- if (includesMethodSymbol == null ||
- !includesMethodSymbol.declarations.some(includesMethodDecl => hasSameParameters(includesMethodDecl, instanceofMethodDecl))) {
+ const includesMethodDecl = (_c = type
+ .getProperty('includes')) === null || _c === void 0 ? void 0 : _c.getDeclarations();
+ if (includesMethodDecl == null ||
+ !includesMethodDecl.some(includesMethodDecl => hasSameParameters(includesMethodDecl, instanceofMethodDecl))) {
return;
}
}
@@ -145,12 +167,22 @@
});
},
// /bar/.test(foo)
- ':matches(CallExpression, OptionalCallExpression) > :matches(MemberExpression, OptionalMemberExpression).callee[property.name="test"][computed=false]'(node) {
+ 'CallExpression > MemberExpression.callee[property.name="test"][computed=false]'(node) {
+ var _a;
const callNode = node.parent;
const text = callNode.arguments.length === 1 ? parseRegExp(node.object) : null;
if (text == null) {
return;
}
+ //check the argument type of test methods
+ const argument = callNode.arguments[0];
+ const tsNode = services.esTreeNodeToTSNodeMap.get(argument);
+ const type = util_1.getConstrainedTypeAtLocation(types, tsNode);
+ const includesMethodDecl = (_a = type
+ .getProperty('includes')) === null || _a === void 0 ? void 0 : _a.getDeclarations();
+ if (includesMethodDecl == null) {
+ return;
+ }
context.report({
node: callNode,
messageId: 'preferStringIncludes',
@@ -160,17 +192,13 @@
argNode.type !== experimental_utils_1.AST_NODE_TYPES.TemplateLiteral &&
argNode.type !== experimental_utils_1.AST_NODE_TYPES.Identifier &&
argNode.type !== experimental_utils_1.AST_NODE_TYPES.MemberExpression &&
- argNode.type !== experimental_utils_1.AST_NODE_TYPES.OptionalMemberExpression &&
- argNode.type !== experimental_utils_1.AST_NODE_TYPES.CallExpression &&
- argNode.type !== experimental_utils_1.AST_NODE_TYPES.OptionalCallExpression;
+ argNode.type !== experimental_utils_1.AST_NODE_TYPES.CallExpression;
yield fixer.removeRange([callNode.range[0], argNode.range[0]]);
if (needsParen) {
yield fixer.insertTextBefore(argNode, '(');
yield fixer.insertTextAfter(argNode, ')');
}
- yield fixer.insertTextAfter(argNode, `${callNode.type === experimental_utils_1.AST_NODE_TYPES.OptionalCallExpression
- ? '?.'
- : '.'}includes(${JSON.stringify(text)}`);
+ yield fixer.insertTextAfter(argNode, `${node.optional ? '?.' : '.'}includes(${JSON.stringify(text)}`);
},
});
},
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map
index 4ec9f07..b0f5b80 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map
@@ -1 +1 @@
-{"version":3,"file":"prefer-includes.js","sourceRoot":"","sources":["../../src/rules/prefer-includes.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,+CAA8C;AAC9C,qCAA+D;AAC/D,+CAAiC;AACjC,kCAAwD;AAExD,kBAAe,iBAAU,CAAC;IACxB,IAAI,EAAE,iBAAiB;IACvB,cAAc,EAAE,EAAE;IAElB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,iDAAiD;YAC9D,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,cAAc,EAAE,kCAAkC;YAClD,oBAAoB,EAClB,uDAAuD;SAC1D;QACD,MAAM,EAAE,EAAE;KACX;IAED,MAAM,CAAC,OAAO;QACZ,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;QACvC,MAAM,QAAQ,GAAG,wBAAiB,CAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAEhD,SAAS,QAAQ,CAAC,IAAmB,EAAE,KAAa;YAClD,MAAM,SAAS,GAAG,6BAAc,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;YACpD,OAAO,SAAS,KAAK,IAAI,IAAI,SAAS,CAAC,KAAK,KAAK,KAAK,CAAC;QACzD,CAAC;QAED,SAAS,eAAe,CAAC,IAA+B;YACtD,QAAQ,IAAI,CAAC,QAAQ,EAAE;gBACrB,KAAK,KAAK,CAAC;gBACX,KAAK,IAAI,CAAC;gBACV,KAAK,GAAG;oBACN,OAAO,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;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CAAC,CAAC,IAAI;4BACN,CAAC,CAAC,GACN,YAAY,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CACnC,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"prefer-includes.js","sourceRoot":"","sources":["../../src/rules/prefer-includes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,qCAA+D;AAC/D,+CAAiC;AACjC,kCAKiB;AAEjB,kBAAe,iBAAU,CAAC;IACxB,IAAI,EAAE,iBAAiB;IACvB,cAAc,EAAE,EAAE;IAElB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,iDAAiD;YAC9D,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,cAAc,EAAE,kCAAkC;YAClD,oBAAoB,EAClB,uDAAuD;SAC1D;QACD,MAAM,EAAE,EAAE;KACX;IAED,MAAM,CAAC,OAAO;QACZ,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;QACvC,MAAM,QAAQ,GAAG,wBAAiB,CAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAEhD,SAAS,QAAQ,CAAC,IAAmB,EAAE,KAAa;YAClD,MAAM,SAAS,GAAG,qBAAc,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;YACpD,OAAO,SAAS,KAAK,IAAI,IAAI,SAAS,CAAC,KAAK,KAAK,KAAK,CAAC;QACzD,CAAC;QAED,SAAS,eAAe,CAAC,IAA+B;YACtD,QAAQ,IAAI,CAAC,QAAQ,EAAE;gBACrB,KAAK,KAAK,CAA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AI,KAAK,mCAAc,CAAC,OAAO;4BACvC,OAAO,CAAC,IAAI,KAAK,mCAAc,CAAC,eAAe;4BAC/C,OAAO,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU;4BAC1C,OAAO,CAAC,IAAI,KAAK,mCAAc,CAAC,gBAAgB;4BAChD,OAAO,CAAC,IAAI,KAAK,mCAAc,CAAC,cAAc,CAAC;wBAEjD,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC/D,IAAI,UAAU,EAAE;4BACd,MAAM,KAAK,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;4BAC3C,MAAM,KAAK,CAAC,eAAe,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;yBAC3C;wBACD,MAAM,KAAK,CAAC,eAAe,CACzB,OAAO,EACP,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,YAAY,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAChE,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js
new file mode 100644
index 0000000..475f4e7
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js
@@ -0,0 +1,46 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const util_1 = require("../util");
+exports.default = util_1.createRule({
+ name: 'prefer-literal-enum-member',
+ meta: {
+ type: 'suggestion',
+ docs: {
+ description: 'Require that all enum members be literal values to prevent unintended enum member name shadow issues',
+ category: 'Best Practices',
+ recommended: false,
+ requiresTypeChecking: false,
+ },
+ messages: {
+ notLiteral: `Explicit enum value must only be a literal value (string, number, boolean, etc).`,
+ },
+ schema: [],
+ },
+ defaultOptions: [],
+ create(context) {
+ return {
+ TSEnumMember(node) {
+ // If there is no initializer, then this node is just the name of the member, so ignore.
+ if (node.initializer == null) {
+ return;
+ }
+ // any old literal
+ if (node.initializer.type === experimental_utils_1.AST_NODE_TYPES.Literal) {
+ return;
+ }
+ // -1 and +1
+ if (node.initializer.type === experimental_utils_1.AST_NODE_TYPES.UnaryExpression &&
+ ['+', '-'].includes(node.initializer.operator) &&
+ node.initializer.argument.type === experimental_utils_1.AST_NODE_TYPES.Literal) {
+ return;
+ }
+ context.report({
+ node: node.id,
+ messageId: 'notLiteral',
+ });
+ },
+ };
+ },
+});
+//# sourceMappingURL=prefer-literal-enum-member.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js.map
new file mode 100644
index 0000000..9d5f038
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"prefer-literal-enum-member.js","sourceRoot":"","sources":["../../src/rules/prefer-literal-enum-member.ts"],"names":[],"mappings":";;AAAA,8EAAuE;AACvE,kCAAqC;AAErC,kBAAe,iBAAU,CAAC;IACxB,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,sGAAsG;YACxG,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,KAAK;SAC5B;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,kFAAkF;SAC/F;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,YAAY,CAAC,IAAI;gBACf,wFAAwF;gBACxF,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;oBAC5B,OAAO;iBACR;gBACD,kBAAkB;gBAClB,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,KAAK,mCAAc,CAAC,OAAO,EAAE;oBACpD,OAAO;iBACR;gBACD,YAAY;gBACZ,IACE,IAAI,CAAC,WAAW,CAAC,IAAI,KAAK,mCAAc,CAAC,eAAe;oBACxD,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC;oBAC9C,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,KAAK,mCAAc,CAAC,OAAO,EACzD;oBACA,OAAO;iBACR;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,IAAI,CAAC,EAAE;oBACb,SAAS,EAAE,YAAY;iBACxB,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js
index 866bf59..26303e7 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js.map
index cfdf2e8..c4765a0 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js.map
@@ -1 +1 @@
-{"version":3,"file":"prefer-namespace-keyword.js","sourceRoot":"","sources":["../../src/rules/prefer-namespace-keyword.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,iHAAiH;YACnH,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;SACrB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,YAAY,EACV,2EAA2E;SAC9E;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C,OAAO;YACL,mBAAmB,CAAC,IAAI;gBACtB,sCAAsC;gBACtC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,mCAAc,CAAC,OAAO,EAAE;oBACvD,OAAO;iBACR;gBACD,wCAAwC;gBACxC,MAAM,UAAU,GAAG,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBAEtD,IACE,UAAU;oBACV,UAAU,CAAC,IAAI,KAAK,oCAAe,CAAC,UAAU;oBAC9C,UAAU,CAAC,KAAK,KAAK,QAAQ,EAC7B;oBACA,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,cAAc;wBACzB,GAAG,CAAC,KAAK;4BACP,OAAO,KAAK,CAAC,WAAW,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;wBACpD,CAAC;qBACF,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"prefer-namespace-keyword.js","sourceRoot":"","sources":["../../src/rules/prefer-namespace-keyword.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,iHAAiH;YACnH,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;SACrB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,YAAY,EACV,2EAA2E;SAC9E;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C,OAAO;YACL,mBAAmB,CAAC,IAAI;gBACtB,sCAAsC;gBACtC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,mCAAc,CAAC,OAAO,EAAE;oBACvD,OAAO;iBACR;gBACD,wCAAwC;gBACxC,MAAM,UAAU,GAAG,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBAEtD,IACE,UAAU;oBACV,UAAU,CAAC,IAAI,KAAK,oCAAe,CAAC,UAAU;oBAC9C,UAAU,CAAC,KAAK,KAAK,QAAQ,EAC7B;oBACA,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,cAAc;wBACzB,GAAG,CAAC,KAAK;4BACP,OAAO,KAAK,CAAC,WAAW,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;wBACpD,CAAC;qBACF,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js
index f6b4a6d..840e5c3 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -17,11 +29,12 @@
description: 'Enforce the usage of the nullish coalescing operator instead of logical chaining',
category: 'Best Practices',
recommended: false,
+ suggestion: true,
requiresTypeChecking: true,
},
- fixable: 'code',
messages: {
preferNullish: 'Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator.',
+ suggestNullish: 'Fix to nullish coalescing operator (`??`).',
},
schema: [
{
@@ -45,10 +58,9 @@
{
ignoreConditionalTests: true,
ignoreMixedLogicalExpressions: true,
- forceSuggestionFixer: false,
},
],
- create(context, [{ ignoreConditionalTests, ignoreMixedLogicalExpressions, forceSuggestionFixer, },]) {
+ create(context, [{ ignoreConditionalTests, ignoreMixedLogicalExpressions }]) {
const parserServices = util.getParserServices(context);
const sourceCode = context.getSourceCode();
const checker = parserServices.program.getTypeChecker();
@@ -83,18 +95,16 @@
}
yield fixer.replaceText(barBarOperator, '??');
}
- const fixer = isMixedLogical || forceSuggestionFixer
- ? // suggestion instead for cases where we aren't sure if the fixer is completely safe
+ context.report({
+ node: barBarOperator,
+ messageId: 'preferNullish',
+ suggest: [
{
- suggest: [
- {
- messageId: 'preferNullish',
- fix,
- },
- ],
- }
- : { fix };
- context.report(Object.assign({ node: barBarOperator, messageId: 'preferNullish' }, fixer));
+ messageId: 'suggestNullish',
+ fix,
+ },
+ ],
+ });
},
};
},
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map
index 5e24231..b46f8d4 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map
@@ -1 +1 @@
-{"version":3,"file":"prefer-nullish-coalescing.js","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IG;YACH,OAAO,KAAK,CAAC;SACd;QAED,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;KAC1B;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,wBAAwB,CAAC,IAAgC;IAChE,MAAM,IAAI,GAAG,IAAI,GAAG,EAA6B,CAAC;IAClD,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IACnD,KAAK,MAAM,OAAO,IAAI,KAAK,EAAE;QAC3B,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YACrB,SAAS;SACV;QACD,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAElB,IAAI,OAAO,IAAI,OAAO,CAAC,IAAI,KAAK,mCAAc,CAAC,iBAAiB,EAAE;YAChE,IAAI,OAAO,CAAC,QAAQ,KAAK,IAAI,EAAE;gBAC7B,OAAO,IAAI,CAAC;aACb;iBAAM,IAAI,OAAO,CAAC,QAAQ,KAAK,IAAI,EAAE;gBACpC,sEAAsE;gBACtE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;aACzD;SACF;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
\ No newline at end of file
+{"version":3,"file":"prefer-nullish-coalescing.js","sourceRoot":"","sources":["../../src/rules/prefer-nullish-coalescing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAK+C;AAC/C,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,2BAA2B;IACjC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,kFAAkF;YACpF,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,UAAU,EAAE,IAAI;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,CAAC;QAElB,IAAI,OAAO,IAAI,OAAO,CAAC,IAAI,KAAK,mCAAc,CAAC,iBAAiB,EAAE;YAChE,IAAI,OAAO,CAAC,QAAQ,KAAK,IAAI,EAAE;gBAC7B,OAAO,IAAI,CAAC;aACb;iBAAM,IAAI,OAAO,CAAC,QAAQ,KAAK,IAAI,EAAE;gBACpC,sEAAsE;gBACtE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;aACzD;SACF;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js
index 3673794..c8eb961 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js
@@ -1,14 +1,25 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
-const eslint_utils_1 = require("eslint-utils");
const util = __importStar(require("../util"));
/*
The AST is always constructed such the first element is always the deepest element.
@@ -34,10 +45,11 @@
description: 'Prefer using concise optional chain expressions instead of chained logical ands',
category: 'Best Practices',
recommended: false,
+ suggestion: true,
},
- fixable: 'code',
messages: {
preferOptionalChain: "Prefer using an optional chain expression instead, as it's more concise and easier to read.",
+ optionalChainSuggest: 'Change to an optional chain.',
},
schema: [],
},
@@ -47,13 +59,18 @@
return {
[[
'LogicalExpression[operator="&&"] > Identifier',
+ 'LogicalExpression[operator="&&"] > MemberExpression',
+ 'LogicalExpression[operator="&&"] > ChainExpression > MemberExpression',
'LogicalExpression[operator="&&"] > BinaryExpression[operator="!=="]',
'LogicalExpression[operator="&&"] > BinaryExpression[operator="!="]',
].join(',')](initialIdentifierOrNotEqualsExpr) {
+ var _a;
// selector guarantees this cast
- const initialExpression = initialIdentifierOrNotEqualsExpr.parent;
+ const initialExpression = (((_a = initialIdentifierOrNotEqualsExpr.parent) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.ChainExpression
+ ? initialIdentifierOrNotEqualsExpr.parent.parent
+ : initialIdentifierOrNotEqualsExpr.parent);
if (initialExpression.left !== initialIdentifierOrNotEqualsExpr) {
- // the identifier is not the deepest left node
+ // the node(identifier or member expression) is not the deepest left node
return;
}
if (!isValidChainTarget(initialIdentifierOrNotEqualsExpr, true)) {
@@ -136,9 +153,14 @@
context.report({
node: previous,
messageId: 'preferOptionalChain',
- fix(fixer) {
- return fixer.replaceText(previous, optionallyChainedCode);
- },
+ suggest: [
+ {
+ messageId: 'optionalChainSuggest',
+ fix: (fixer) => [
+ fixer.replaceText(previous, optionallyChainedCode),
+ ],
+ },
+ ],
});
}
},
@@ -149,8 +171,7 @@
// isValidChainTarget ensures this is type safe
node.left);
}
- if (node.type === experimental_utils_1.AST_NODE_TYPES.CallExpression ||
- node.type === experimental_utils_1.AST_NODE_TYPES.OptionalCallExpression) {
+ if (node.type === experimental_utils_1.AST_NODE_TYPES.CallExpression) {
const calleeText = getText(
// isValidChainTarget ensures this is type safe
node.callee);
@@ -158,7 +179,7 @@
// - JSX: <Foo Needs Space Between Attrs />
// - Unary Operators: typeof foo, await bar, delete baz
const closingParenToken = util.nullThrows(sourceCode.getLastToken(node), util.NullThrowsReasons.MissingToken('closing parenthesis', node.type));
- const openingParenToken = util.nullThrows(sourceCode.getFirstTokenBetween(node.callee, closingParenToken, eslint_utils_1.isOpeningParenToken), util.NullThrowsReasons.MissingToken('opening parenthesis', node.type));
+ const openingParenToken = util.nullThrows(sourceCode.getFirstTokenBetween(node.callee, closingParenToken, util.isOpeningParenToken), util.NullThrowsReasons.MissingToken('opening parenthesis', node.type));
const argumentsText = sourceCode.text.substring(openingParenToken.range[0], closingParenToken.range[1]);
return `${calleeText}${argumentsText}`;
}
@@ -168,6 +189,13 @@
if (node.type === experimental_utils_1.AST_NODE_TYPES.ThisExpression) {
return 'this';
}
+ if (node.type === experimental_utils_1.AST_NODE_TYPES.ChainExpression) {
+ /* istanbul ignore if */ if (node.expression.type === experimental_utils_1.AST_NODE_TYPES.TSNonNullExpression) {
+ // this shouldn't happen
+ return '';
+ }
+ return getText(node.expression);
+ }
return getMemberExpressionText(node);
}
/**
@@ -178,12 +206,10 @@
// cases should match the list in ALLOWED_MEMBER_OBJECT_TYPES
switch (node.object.type) {
case experimental_utils_1.AST_NODE_TYPES.CallExpression:
- case experimental_utils_1.AST_NODE_TYPES.OptionalCallExpression:
case experimental_utils_1.AST_NODE_TYPES.Identifier:
objectText = getText(node.object);
break;
case experimental_utils_1.AST_NODE_TYPES.MemberExpression:
- case experimental_utils_1.AST_NODE_TYPES.OptionalMemberExpression:
objectText = getMemberExpressionText(node.object);
break;
case experimental_utils_1.AST_NODE_TYPES.ThisExpression:
@@ -201,12 +227,10 @@
propertyText = getText(node.property);
break;
case experimental_utils_1.AST_NODE_TYPES.Literal:
- case experimental_utils_1.AST_NODE_TYPES.BigIntLiteral:
case experimental_utils_1.AST_NODE_TYPES.TemplateLiteral:
propertyText = sourceCode.getText(node.property);
break;
case experimental_utils_1.AST_NODE_TYPES.MemberExpression:
- case experimental_utils_1.AST_NODE_TYPES.OptionalMemberExpression:
propertyText = getMemberExpressionText(node.property);
break;
/* istanbul ignore next */
@@ -234,39 +258,35 @@
experimental_utils_1.AST_NODE_TYPES.CallExpression,
experimental_utils_1.AST_NODE_TYPES.Identifier,
experimental_utils_1.AST_NODE_TYPES.MemberExpression,
- experimental_utils_1.AST_NODE_TYPES.OptionalCallExpression,
- experimental_utils_1.AST_NODE_TYPES.OptionalMemberExpression,
experimental_utils_1.AST_NODE_TYPES.ThisExpression,
]);
const ALLOWED_COMPUTED_PROP_TYPES = new Set([
- experimental_utils_1.AST_NODE_TYPES.BigIntLiteral,
experimental_utils_1.AST_NODE_TYPES.Identifier,
experimental_utils_1.AST_NODE_TYPES.Literal,
experimental_utils_1.AST_NODE_TYPES.MemberExpression,
- experimental_utils_1.AST_NODE_TYPES.OptionalMemberExpression,
experimental_utils_1.AST_NODE_TYPES.TemplateLiteral,
]);
const ALLOWED_NON_COMPUTED_PROP_TYPES = new Set([
experimental_utils_1.AST_NODE_TYPES.Identifier,
]);
function isValidChainTarget(node, allowIdentifier) {
- if (node.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression ||
- node.type === experimental_utils_1.AST_NODE_TYPES.OptionalMemberExpression) {
+ if (node.type === experimental_utils_1.AST_NODE_TYPES.ChainExpression) {
+ return isValidChainTarget(node.expression, allowIdentifier);
+ }
+ if (node.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression) {
const isObjectValid = ALLOWED_MEMBER_OBJECT_TYPES.has(node.object.type) &&
// make sure to validate the expression is of our expected structure
isValidChainTarget(node.object, true);
const isPropertyValid = node.computed
? ALLOWED_COMPUTED_PROP_TYPES.has(node.property.type) &&
// make sure to validate the member expression is of our expected structure
- (node.property.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression ||
- node.property.type === experimental_utils_1.AST_NODE_TYPES.OptionalMemberExpression
+ (node.property.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression
? isValidChainTarget(node.property, allowIdentifier)
: true)
: ALLOWED_NON_COMPUTED_PROP_TYPES.has(node.property.type);
return isObjectValid && isPropertyValid;
}
- if (node.type === experimental_utils_1.AST_NODE_TYPES.CallExpression ||
- node.type === experimental_utils_1.AST_NODE_TYPES.OptionalCallExpression) {
+ if (node.type === experimental_utils_1.AST_NODE_TYPES.CallExpression) {
return isValidChainTarget(node.callee, allowIdentifier);
}
if (allowIdentifier &&
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map
index bf51065..1ce75dd 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map
@@ -1 +1 @@
-{"version":3,"file":"prefer-optional-chain.js","sourceRoot":"","sources":["../../src/rules/prefer-optional-chain.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,+CAAmD;AACnD,8CAAgC;AAWhC;;;;;;;;;;;;;;;EAeE;AACF,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,iFAAiF;YACnF,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;SACnB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,mBAAmB,EACjB,6FAA6F;SAChG;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAC3C,OAAO;YACL,CAAC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K,mCAAc,CAAC,cAAc,CAAC,EAC9C;QACA,OAAO,IAAI,CAAC;KACb;IAED;;;;;;MAME;IACF,IACE,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,gBAAgB;QAC7C,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;QACrC,kBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,eAAe,CAAC,EAC9C;QACA,IACE,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU;YAC7C,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,WAAW,EAC/B;YACA,OAAO,IAAI,CAAC;SACb;QACD,IACE,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,mCAAc,CAAC,OAAO;YAC1C,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,IAAI,EACzB;YACA,OAAO,IAAI,CAAC;SACb;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
\ No newline at end of file
+{"version":3,"file":"prefer-optional-chain.js","sourceRoot":"","sources":["../../src/rules/prefer-optional-chain.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAI+C;AAC/C,8CAAgC;AAUhC;;;;;;;;;;;;;;;EAeE;AAEF,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,iFAAiF;YACnF,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,UAAU,EAAE,IAAI;SACjB;QACD,QAAQ,EAAE;YACR,mBAAmB,EACjB,6FAA6F;YAC/F,oBAAoB,EAAE,8BAA8B;SACrD;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAA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AAc,CAAC,cAAc,EAAE;QAC/C,OAAO,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;KACzD;IAED,IACE,eAAe;QACf,CAAC,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU;YACtC,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,cAAc,CAAC,EAC9C;QACA,OAAO,IAAI,CAAC;KACb;IAED;;;;;;MAME;IACF,IACE,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,gBAAgB;QAC7C,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;QACrC,kBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,eAAe,CAAC,EAC9C;QACA,IACE,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU;YAC7C,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,WAAW,EAC/B;YACA,OAAO,IAAI,CAAC;SACb;QACD,IACE,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,mCAAc,CAAC,OAAO;YAC1C,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,IAAI,EACzB;YACA,OAAO,IAAI,CAAC;SACb;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js
index bb2269b..1c79049 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -31,7 +43,7 @@
},
],
messages: {
- shouldBeReadonly: 'Parameter should be a read only type',
+ shouldBeReadonly: 'Parameter should be a read only type.',
},
},
defaultOptions: [
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js.map
index 58be343..be616c8 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js.map
@@ -1 +1 @@
-{"version":3,"file":"prefer-readonly-parameter-types.js","sourceRoot":"","sources":["../../src/rules/prefer-readonly-parameter-types.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAShC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,iCAAiC;IACvC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,kGAAkG;YACpG,QAAQ,EAAE,iBAAiB;YAC3B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd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AAU,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;oBAEtD,IAAI,CAAC,UAAU,EAAE;wBACf,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,kBAAkB;yBAC9B,CAAC,CAAC;qBACJ;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"prefer-readonly-parameter-types.js","sourceRoot":"","sources":["../../src/rules/prefer-readonly-parameter-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAShC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,iCAAiC;IACvC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,kGAAkG;YACpG,QAAQ,EAAE,iBAAiB;YAC3B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,wBAAwB,EAAE;wBACxB,IAAI,EAAE,SAAS;qBAChB;iBACF;aACF;SACF;QACD,QAAQ,EAAE;YACR,gBAAgB,EAAE,uCAAuC;SAC1D;KACF;IACD,cAAc,EAAE;QACd;YACE,wBAAwB,EAAE,IAAI;SAC/B;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,wBAAwB,EAAE,CAAC;QAC5C,MAAM,EAAE,qBAAqB,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3E,MAAM,OAAO,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;QAEzC,OAAO;YACL,CAAC;gBACC,mCAAc,CAAC,uBAAuB;gBACtC,mCAAc,CAAC,mBAAmB;gBAClC,mCAAc,CAAC,kBAAkB;gBACjC,mCAAc,CAAC,0BAA0B;gBACzC,mCAAc,CAAC,+BAA+B;gBAC9C,mCAAc,CAAC,iBAAiB;gBAChC,mCAAc,CAAC,6BAA6B;gBAC5C,mCAAc,CAAC,cAAc;gBAC7B,mCAAc,CAAC,iBAAiB;aACjC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CACX,IAS8B;gBAE9B,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,EAAE;oBAC/B,IACE,CAAC,wBAAwB;wBACzB,KAAK,CAAC,IAAI,KAAK,mCAAc,CAAC,mBAAmB,EACjD;wBACA,SAAS;qBACV;oBAED,MAAM,WAAW,GACf,KAAK,CAAC,IAAI,KAAK,mCAAc,CAAC,mBAAmB;wBAC/C,CAAC,CAAC,KAAK,CAAC,SAAS;wBACjB,CAAC,CAAC,KAAK,CAAC;oBACZ,MAAM,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;oBACtD,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;oBAC/C,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;oBAEtD,IAAI,CAAC,UAAU,EAAE;wBACf,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,kBAAkB;yBAC9B,CAAC,CAAC;qBACJ;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js
index 74d34ad..ede07d7 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -202,7 +214,7 @@
}
addVariableModification(node) {
const modifierType = this.checker.getTypeAtLocation(node.expression);
- if (modifierType.symbol === undefined ||
+ if (!modifierType.getSymbol() ||
!util_1.typeIsOrHasBaseType(modifierType, this.classType)) {
return;
}
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map
index e550b41..1aae677 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map
@@ -1 +1 @@
-{"version":3,"file":"prefer-readonly.js","sourceRoot":"","sources":["../../src/rules/prefer-readonly.ts"],"names":[],"mappings":";;;;;;;;;AAAA,iDAAmC;AACnC,+CAAiC;AACjC,8CAAgC;AAChC,kCAA8C;AAC9C,8EAG+C;AAU/C,MAAM,uBAAuB,GAAG;IAC9B,mCAAc,CAAC,uBAAuB;IACtC,mCAAc,CAAC,mBAAmB;IAClC,mCAAc,CAAC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E,CAAC;SACtD,CAAC;IACJ,CAAC;CACF"}
\ No newline at end of file
+{"version":3,"file":"prefer-readonly.js","sourceRoot":"","sources":["../../src/rules/prefer-readonly.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,iDAAmC;AACnC,+CAAiC;AACjC,8CAAgC;AAChC,kCAA8C;AAC9C,8EAG+C;AAU/C,MAAM,uBAAuB,GAAG;IAC9B,mCAAc,CAAC,uBAAuB;IACtC,mCAAc,CAAC,mBAAmB;IAClC,mCAAc,CAAC,kBAAkB;IACjC,mCAAc,CAAC,gBAAgB;CAChC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,6GAA6G;YAC/G,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,cAAc,EACZ,+DAA+D;SAClE;QACD,MAAM,EAAE;YACN;gBACE,yBAAyB,EAAE,KAAK;gBAChC,UAAU,EAAE;oBACV,iBAAiB,EAAE;wBACjB,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,IAAI,EAAE,QAAQ;aACf;SACF;QACD,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE,CAAC,EAAE,iBAAiB,EAAE,KAAK,EAAE,CAAC;IAC9C,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAE,CAAC;QACrC,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACvD,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QACxD,MAAM,eAAe,GAAiB,EAAE,CAAC;QAEzC,SAAS,8BAA8B,CACrC,IAAiC,EACjC,MAAe,EACf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AC,CAAC,CAAC;QAEH,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;YACtD,IAAI,CAAC,wBAAwB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;QAEH,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,MAAM,EAAE,CAAC;YACrD,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,MAAM,EAAE,CAAC;SACtD,CAAC;IACJ,CAAC;CACF"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js
new file mode 100644
index 0000000..d108479
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js
@@ -0,0 +1,92 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+const util = __importStar(require("../util"));
+const getMemberExpressionName = (member) => {
+ if (!member.computed) {
+ return member.property.name;
+ }
+ if (member.property.type === experimental_utils_1.AST_NODE_TYPES.Literal &&
+ typeof member.property.value === 'string') {
+ return member.property.value;
+ }
+ return null;
+};
+exports.default = util.createRule({
+ name: 'prefer-reduce-type-parameter',
+ meta: {
+ type: 'problem',
+ docs: {
+ category: 'Best Practices',
+ recommended: false,
+ description: 'Prefer using type parameter when calling `Array#reduce` instead of casting',
+ requiresTypeChecking: true,
+ },
+ messages: {
+ preferTypeParameter: 'Unnecessary cast: Array#reduce accepts a type parameter for the default value.',
+ },
+ fixable: 'code',
+ schema: [],
+ },
+ defaultOptions: [],
+ create(context) {
+ const service = util.getParserServices(context);
+ const checker = service.program.getTypeChecker();
+ return {
+ 'CallExpression > MemberExpression.callee'(callee) {
+ if (getMemberExpressionName(callee) !== 'reduce') {
+ return;
+ }
+ const [, secondArg] = callee.parent.arguments;
+ if (callee.parent.arguments.length < 2 ||
+ !util.isTypeAssertion(secondArg)) {
+ return;
+ }
+ // Get the symbol of the `reduce` method.
+ const tsNode = service.esTreeNodeToTSNodeMap.get(callee.object);
+ const calleeObjType = util.getConstrainedTypeAtLocation(checker, tsNode);
+ // Check the owner type of the `reduce` method.
+ if (checker.isArrayType(calleeObjType)) {
+ context.report({
+ messageId: 'preferTypeParameter',
+ node: secondArg,
+ fix: fixer => [
+ fixer.removeRange([
+ secondArg.range[0],
+ secondArg.expression.range[0],
+ ]),
+ fixer.removeRange([
+ secondArg.expression.range[1],
+ secondArg.range[1],
+ ]),
+ fixer.insertTextAfter(callee, `<${context
+ .getSourceCode()
+ .getText(secondArg.typeAnnotation)}>`),
+ ],
+ });
+ return;
+ }
+ },
+ };
+ },
+});
+//# sourceMappingURL=prefer-reduce-type-parameter.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map
new file mode 100644
index 0000000..647e716
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"prefer-reduce-type-parameter.js","sourceRoot":"","sources":["../../src/rules/prefer-reduce-type-parameter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAMhC,MAAM,uBAAuB,GAAG,CAC9B,MAAiC,EAClB,EAAE;IACjB,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;QACpB,OAAO,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;KAC7B;IAED,IACE,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,mCAAc,CAAC,OAAO;QAC/C,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,KAAK,QAAQ,EACzC;QACA,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;KAC9B;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,WAAW,EACT,4EAA4E;YAC9E,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,mBAAmB,EACjB,gFAAgF;SACnF;QACD,OAAO,EAAE,MAAM;QACf,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,OAAO,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAChD,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAEjD,OAAO;YACL,0CAA0C,CACxC,MAAgD;gBAEhD,IAAI,uBAAuB,CAAC,MAAM,CAAC,KAAK,QAAQ,EAAE;oBAChD,OAAO;iBACR;gBAED,MAAM,CAAC,EAAE,SAAS,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC;gBAE9C,IACE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC;oBAClC,CAAC,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,EAChC;oBACA,OAAO;iBACR;gBAED,yCAAyC;gBACzC,MAAM,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;gBAChE,MAAM,aAAa,GAAG,IAAI,CAAC,4BAA4B,CACrD,OAAO,EACP,MAAM,CACP,CAAC;gBAEF,+CAA+C;gBAC/C,IAAI,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,EAAE;oBACtC,OAAO,CAAC,MAAM,CAAC;wBACb,SAAS,EAAE,qBAAqB;wBAChC,IAAI,EAAE,SAAS;wBACf,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC;4BACZ,KAAK,CAAC,WAAW,CAAC;gCAChB,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;gCAClB,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;6BAC9B,CAAC;4BACF,KAAK,CAAC,WAAW,CAAC;gCAChB,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;gCAC7B,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;6BACnB,CAAC;4BACF,KAAK,CAAC,eAAe,CACnB,MAAM,EACN,IAAI,OAAO;iCACR,aAAa,EAAE;iCACf,OAAO,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG,CACxC;yBACF;qBACF,CAAC,CAAC;oBAEH,OAAO;iBACR;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js
index 59ccb3f..a09b655 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js
@@ -1,6 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-const eslint_utils_1 = require("eslint-utils");
const util_1 = require("../util");
exports.default = util_1.createRule({
name: 'prefer-regexp-exec',
@@ -34,7 +33,7 @@
"CallExpression[arguments.length=1] > MemberExpression.callee[property.name='match'][computed=false]"(node) {
const callNode = node.parent;
const arg = callNode.arguments[0];
- const evaluated = eslint_utils_1.getStaticValue(arg, globalScope);
+ const evaluated = util_1.getStaticValue(arg, globalScope);
// Don't report regular expressions with global flag.
if (evaluated &&
evaluated.value instanceof RegExp &&
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map
index c9b3091..3aa5e73 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map
@@ -1 +1 @@
-{"version":3,"file":"prefer-regexp-exec.js","sourceRoot":"","sources":["../../src/rules/prefer-regexp-exec.ts"],"names":[],"mappings":";;AACA,+CAA8C;AAC9C,kCAAqE;AAErE,kBAAe,iBAAU,CAAC;IACxB,IAAI,EAAE,oBAAoB;IAC1B,cAAc,EAAE,EAAE;IAElB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,4FAA4F;YAC9F,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,yBAAyB,EAAE,yCAAyC;SACrE;QACD,MAAM,EAAE,EAAE;KACX;IAED,MAAM,CAAC,OAAO;QACZ,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;QACvC,MAAM,OAAO,GAAG,wBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAErD;;;WAGG;QACH,SAAS,YAAY,CAAC,IAAqC;YACzD,MAAM,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAC9C,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CACxC,CAAC;YACF,OAAO,kBAAW,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,QAAQ,CAAC;QAC3D,CAAC;QAED,OAAO;YACL,qGAAqG,CACnG,IAA+B;gBAE/B,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAiC,CAAC;gBACxD,MAAM,GAAG,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;gBAClC,MAAM,SAAS,GAAG,6BAAc,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;gBAEnD,qDAAqD;gBACrD,IACE,SAAS;oBACT,SAAS,CAAC,KAAK,YAAY,MAAM;oBACjC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EACnC;oBACA,OAAO;iBACR;gBAED,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;oBAC7B,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,2BAA2B;qBACvC,CAAC,CAAC;oBACH,OAAO;iBACR;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"prefer-regexp-exec.js","sourceRoot":"","sources":["../../src/rules/prefer-regexp-exec.ts"],"names":[],"mappings":";;AACA,kCAKiB;AAEjB,kBAAe,iBAAU,CAAC;IACxB,IAAI,EAAE,oBAAoB;IAC1B,cAAc,EAAE,EAAE;IAElB,IAAI,EAAE;QACJ,IAAI,EAAE,YA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;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js
index fa41e4c..5b3e028 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js
@@ -1,7 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
-const eslint_utils_1 = require("eslint-utils");
const regexpp_1 = require("regexpp");
const util_1 = require("../util");
const EQ_OPERATORS = /^[=!]=/;
@@ -14,7 +13,7 @@
docs: {
description: 'Enforce the use of `String#startsWith` and `String#endsWith` instead of other equivalent methods of checking substrings',
category: 'Best Practices',
- recommended: 'error',
+ recommended: false,
requiresTypeChecking: true,
},
messages: {
@@ -42,7 +41,7 @@
* @param node The node to check.
*/
function isNull(node) {
- const evaluated = eslint_utils_1.getStaticValue(node, globalScope);
+ const evaluated = util_1.getStaticValue(node, globalScope);
return evaluated != null && evaluated.value === null;
}
/**
@@ -51,7 +50,7 @@
* @param value The expected value of the `Literal` node.
*/
function isNumber(node, value) {
- const evaluated = eslint_utils_1.getStaticValue(node, globalScope);
+ const evaluated = util_1.getStaticValue(node, globalScope);
return evaluated != null && evaluated.value === value;
}
/**
@@ -60,11 +59,10 @@
* @param kind The method name to get a character.
*/
function isCharacter(node) {
- const evaluated = eslint_utils_1.getStaticValue(node, globalScope);
+ const evaluated = util_1.getStaticValue(node, globalScope);
return (evaluated != null &&
typeof evaluated.value === 'string' &&
// checks if the string is a character long
- // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
evaluated.value[0] === evaluated.value);
}
/**
@@ -107,13 +105,12 @@
* @param expectedObjectNode The node which is expected as the receiver of `length` property.
*/
function isLengthExpression(node, expectedObjectNode) {
- if (node.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression ||
- node.type === experimental_utils_1.AST_NODE_TYPES.OptionalMemberExpression) {
- return (eslint_utils_1.getPropertyName(node, globalScope) === 'length' &&
+ if (node.type === experimental_utils_1.AST_NODE_TYPES.MemberExpression) {
+ return (util_1.getPropertyName(node, globalScope) === 'length' &&
isSameTokens(node.object, expectedObjectNode));
}
- const evaluatedLength = eslint_utils_1.getStaticValue(node, globalScope);
- const evaluatedString = eslint_utils_1.getStaticValue(expectedObjectNode, globalScope);
+ const evaluatedLength = util_1.getStaticValue(node, globalScope);
+ const evaluatedString = util_1.getStaticValue(expectedObjectNode, globalScope);
return (evaluatedLength != null &&
evaluatedString != null &&
typeof evaluatedLength.value === 'number' &&
@@ -121,6 +118,21 @@
evaluatedLength.value === evaluatedString.value.length);
}
/**
+ * Check if a given node is a negative index expression
+ *
+ * E.g. `s.slice(- <expr>)`, `s.substring(s.length - <expr>)`
+ *
+ * @param node The node to check.
+ * @param expectedIndexedNode The node which is expected as the receiver of index expression.
+ */
+ function isNegativeIndexExpression(node, expectedIndexedNode) {
+ return ((node.type === experimental_utils_1.AST_NODE_TYPES.UnaryExpression &&
+ node.operator === '-') ||
+ (node.type === experimental_utils_1.AST_NODE_TYPES.BinaryExpression &&
+ node.operator === '-' &&
+ isLengthExpression(node.left, expectedIndexedNode)));
+ }
+ /**
* Check if a given node is the expression of the last index.
*
* E.g. `foo.length - 1`
@@ -144,7 +156,7 @@
* @param node The member expression node to get.
*/
function getPropertyRange(node) {
- const dotOrOpenBracket = sourceCode.getTokenAfter(node.object, eslint_utils_1.isNotClosingParenToken);
+ const dotOrOpenBracket = sourceCode.getTokenAfter(node.object, util_1.isNotClosingParenToken);
return [dotOrOpenBracket.range[0], node.range[1]];
}
/**
@@ -179,7 +191,7 @@
* @param node The node to parse.
*/
function parseRegExp(node) {
- const evaluated = eslint_utils_1.getStaticValue(node, globalScope);
+ const evaluated = util_1.getStaticValue(node, globalScope);
if (evaluated == null || !(evaluated.value instanceof RegExp)) {
return null;
}
@@ -197,6 +209,22 @@
}
return { isEndsWith, isStartsWith, text };
}
+ function getLeftNode(node) {
+ if (node.type === experimental_utils_1.AST_NODE_TYPES.ChainExpression) {
+ return getLeftNode(node.expression);
+ }
+ let leftNode;
+ if (node.type === experimental_utils_1.AST_NODE_TYPES.CallExpression) {
+ leftNode = node.callee;
+ }
+ else {
+ leftNode = node;
+ }
+ if (leftNode.type !== experimental_utils_1.AST_NODE_TYPES.MemberExpression) {
+ throw new Error(`Expected a MemberExpression, got ${leftNode.type}`);
+ }
+ return leftNode;
+ }
/**
* Fix code with using the right operand as the search string.
* For example: `foo.slice(0, 3) === 'bar'` → `foo.startsWith('bar')`
@@ -207,10 +235,7 @@
*/
function* fixWithRightOperand(fixer, node, kind, isNegative, isOptional) {
// left is CallExpression or MemberExpression.
- const leftNode = (node.left.type === experimental_utils_1.AST_NODE_TYPES.CallExpression ||
- node.left.type === experimental_utils_1.AST_NODE_TYPES.OptionalCallExpression
- ? node.left.callee
- : node.left);
+ const leftNode = getLeftNode(node.left);
const propertyRange = getPropertyRange(leftNode);
if (isNegative) {
yield fixer.insertTextBefore(node, '!');
@@ -226,32 +251,37 @@
* @param kind The kind of the report.
* @param negative The flag to fix to negative condition.
*/
- function* fixWithArgument(fixer, node, kind, negative, isOptional) {
- const callNode = node.left;
- const calleeNode = callNode.callee;
+ function* fixWithArgument(fixer, node, callNode, calleeNode, kind, negative, isOptional) {
if (negative) {
yield fixer.insertTextBefore(node, '!');
}
yield fixer.replaceTextRange(getPropertyRange(calleeNode), `${isOptional ? '?.' : '.'}${kind}sWith`);
yield fixer.removeRange([callNode.range[1], node.range[1]]);
}
+ function getParent(node) {
+ var _a;
+ return util_1.nullThrows(((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.ChainExpression
+ ? node.parent.parent
+ : node.parent, util_1.NullThrowsReasons.MissingParent);
+ }
return {
// foo[0] === "a"
// foo.charAt(0) === "a"
// foo[foo.length - 1] === "a"
// foo.charAt(foo.length - 1) === "a"
[[
- 'BinaryExpression > :matches(MemberExpression, OptionalMemberExpression).left[computed=true]',
- 'BinaryExpression > :matches(CallExpression, OptionalCallExpression).left > :matches(MemberExpression, OptionalMemberExpression).callee[property.name="charAt"][computed=false]',
+ 'BinaryExpression > MemberExpression.left[computed=true]',
+ 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="charAt"][computed=false]',
+ 'BinaryExpression > ChainExpression.left > MemberExpression[computed=true]',
+ 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="charAt"][computed=false]',
].join(', ')](node) {
- let parentNode = node.parent;
+ let parentNode = getParent(node);
let indexNode = null;
- if (parentNode.type === experimental_utils_1.AST_NODE_TYPES.CallExpression ||
- parentNode.type === experimental_utils_1.AST_NODE_TYPES.OptionalCallExpression) {
+ if ((parentNode === null || parentNode === void 0 ? void 0 : parentNode.type) === experimental_utils_1.AST_NODE_TYPES.CallExpression) {
if (parentNode.arguments.length === 1) {
indexNode = parentNode.arguments[0];
}
- parentNode = parentNode.parent;
+ parentNode = getParent(parentNode);
}
else {
indexNode = node.property;
@@ -280,12 +310,14 @@
});
},
// foo.indexOf('bar') === 0
- 'BinaryExpression > :matches(CallExpression, OptionalCallExpression).left > :matches(MemberExpression, OptionalMemberExpression).callee[property.name="indexOf"][computed=false]'(node) {
- const callNode = node.parent;
- const parentNode = callNode.parent;
+ [[
+ 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="indexOf"][computed=false]',
+ 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="indexOf"][computed=false]',
+ ].join(', ')](node) {
+ const callNode = getParent(node);
+ const parentNode = getParent(callNode);
if (callNode.arguments.length !== 1 ||
!isEqualityComparison(parentNode) ||
- parentNode.left !== callNode ||
!isNumber(parentNode.right, 0) ||
!isStringType(node.object)) {
return;
@@ -294,18 +326,20 @@
node: parentNode,
messageId: 'preferStartsWith',
fix(fixer) {
- return fixWithArgument(fixer, parentNode, 'start', parentNode.operator.startsWith('!'), node.optional);
+ return fixWithArgument(fixer, parentNode, callNode, node, 'start', parentNode.operator.startsWith('!'), node.optional);
},
});
},
// foo.lastIndexOf('bar') === foo.length - 3
// foo.lastIndexOf(bar) === foo.length - bar.length
- 'BinaryExpression > :matches(CallExpression, OptionalCallExpression).left > :matches(MemberExpression, OptionalMemberExpression).callee[property.name="lastIndexOf"][computed=false]'(node) {
- const callNode = node.parent;
- const parentNode = callNode.parent;
+ [[
+ 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="lastIndexOf"][computed=false]',
+ 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="lastIndexOf"][computed=false]',
+ ].join(', ')](node) {
+ const callNode = getParent(node);
+ const parentNode = getParent(callNode);
if (callNode.arguments.length !== 1 ||
!isEqualityComparison(parentNode) ||
- parentNode.left !== callNode ||
parentNode.right.type !== experimental_utils_1.AST_NODE_TYPES.BinaryExpression ||
parentNode.right.operator !== '-' ||
!isLengthExpression(parentNode.right.left, node.object) ||
@@ -317,15 +351,18 @@
node: parentNode,
messageId: 'preferEndsWith',
fix(fixer) {
- return fixWithArgument(fixer, parentNode, 'end', parentNode.operator.startsWith('!'), node.optional);
+ return fixWithArgument(fixer, parentNode, callNode, node, 'end', parentNode.operator.startsWith('!'), node.optional);
},
});
},
// foo.match(/^bar/) === null
// foo.match(/bar$/) === null
- 'BinaryExpression > :matches(CallExpression, OptionalCallExpression).left > :matches(MemberExpression, OptionalMemberExpression).callee[property.name="match"][computed=false]'(node) {
- const callNode = node.parent;
- const parentNode = callNode.parent;
+ [[
+ 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="match"][computed=false]',
+ 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="match"][computed=false]',
+ ].join(', ')](node) {
+ const callNode = getParent(node);
+ const parentNode = getParent(callNode);
if (!isEqualityComparison(parentNode) ||
!isNull(parentNode.right) ||
!isStringType(node.object)) {
@@ -358,19 +395,20 @@
// foo.substring(foo.length - 3) === 'bar'
// foo.substring(foo.length - 3, foo.length) === 'bar'
[[
- ':matches(CallExpression, OptionalCallExpression) > :matches(MemberExpression, OptionalMemberExpression).callee[property.name="slice"][computed=false]',
- ':matches(CallExpression, OptionalCallExpression) > :matches(MemberExpression, OptionalMemberExpression).callee[property.name="substring"][computed=false]',
+ 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="slice"][computed=false]',
+ 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="substring"][computed=false]',
+ 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="slice"][computed=false]',
+ 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="substring"][computed=false]',
].join(', ')](node) {
- const callNode = node.parent;
- const parentNode = callNode.parent;
- if (!isEqualityComparison(parentNode) ||
- parentNode.left !== callNode ||
- !isStringType(node.object)) {
+ const callNode = getParent(node);
+ const parentNode = getParent(callNode);
+ if (!isEqualityComparison(parentNode) || !isStringType(node.object)) {
return;
}
- const isEndsWith = callNode.arguments.length === 1 ||
+ const isEndsWith = (callNode.arguments.length === 1 ||
(callNode.arguments.length === 2 &&
- isLengthExpression(callNode.arguments[1], node.object));
+ isLengthExpression(callNode.arguments[1], node.object))) &&
+ isNegativeIndexExpression(callNode.arguments[0], node.object);
const isStartsWith = !isEndsWith &&
callNode.arguments.length === 2 &&
isNumber(callNode.arguments[0], 0);
@@ -389,6 +427,9 @@
typeof eqNode.right.value !== 'string')) {
return null;
}
+ // code being checked is likely mistake:
+ // unequal length of strings being checked for equality
+ // or reliant on behavior of substring (negative indices interpreted as 0)
if (isStartsWith) {
if (!isLengthExpression(callNode.arguments[1], eqNode.right)) {
return null;
@@ -414,8 +455,8 @@
},
// /^bar/.test(foo)
// /bar$/.test(foo)
- ':matches(CallExpression, OptionalCallExpression) > :matches(MemberExpression, OptionalMemberExpression).callee[property.name="test"][computed=false]'(node) {
- const callNode = node.parent;
+ 'CallExpression > MemberExpression.callee[property.name="test"][computed=false]'(node) {
+ const callNode = getParent(node);
const parsed = callNode.arguments.length === 1 ? parseRegExp(node.object) : null;
if (parsed == null) {
return;
@@ -432,17 +473,13 @@
argNode.type !== experimental_utils_1.AST_NODE_TYPES.TemplateLiteral &&
argNode.type !== experimental_utils_1.AST_NODE_TYPES.Identifier &&
argNode.type !== experimental_utils_1.AST_NODE_TYPES.MemberExpression &&
- argNode.type !== experimental_utils_1.AST_NODE_TYPES.OptionalMemberExpression &&
- argNode.type !== experimental_utils_1.AST_NODE_TYPES.CallExpression &&
- argNode.type !== experimental_utils_1.AST_NODE_TYPES.OptionalCallExpression;
+ argNode.type !== experimental_utils_1.AST_NODE_TYPES.CallExpression;
yield fixer.removeRange([callNode.range[0], argNode.range[0]]);
if (needsParen) {
yield fixer.insertTextBefore(argNode, '(');
yield fixer.insertTextAfter(argNode, ')');
}
- yield fixer.insertTextAfter(argNode, `${callNode.type === experimental_utils_1.AST_NODE_TYPES.OptionalCallExpression
- ? '?.'
- : '.'}${methodName}(${JSON.stringify(text)}`);
+ yield fixer.insertTextAfter(argNode, `${node.optional ? '?.' : '.'}${methodName}(${JSON.stringify(text)}`);
},
});
},
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map
index 9d229c0..55dc08b 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map
@@ -1 +1 @@
-{"version":3,"file":"prefer-string-starts-ends-with.js","sourceRoot":"","sources":["../../src/rules/prefer-string-starts-ends-with.ts"],"names":[],"mappings":";;AAAA,8EAI+C;AAC/C,+CAIsB;AACtB,qCAAyD;AACzD,kCAAqE;AAErE,MAAM,YAAY,GAA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ules/prefer-ts-expect-error.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js
new file mode 100644
index 0000000..e086529
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js
@@ -0,0 +1,81 @@
+"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+ if (mod && mod.__esModule) return mod;
+ var result = {};
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
+ return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+const util = __importStar(require("../util"));
+const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
+exports.default = util.createRule({
+ name: 'prefer-ts-expect-error',
+ meta: {
+ type: 'problem',
+ docs: {
+ description: 'Recommends using `@ts-expect-error` over `@ts-ignore`',
+ category: 'Best Practices',
+ recommended: false,
+ },
+ fixable: 'code',
+ messages: {
+ preferExpectErrorComment: 'Use "@ts-expect-error" to ensure an error is actually being suppressed.',
+ },
+ schema: [],
+ },
+ defaultOptions: [],
+ create(context) {
+ const tsIgnoreRegExpSingleLine = /^\s*\/?\s*@ts-ignore/;
+ const tsIgnoreRegExpMultiLine = /^\s*(?:\/|\*)*\s*@ts-ignore/;
+ const sourceCode = context.getSourceCode();
+ function isLineComment(comment) {
+ return comment.type === experimental_utils_1.AST_TOKEN_TYPES.Line;
+ }
+ function getLastCommentLine(comment) {
+ if (isLineComment(comment)) {
+ return comment.value;
+ }
+ // For multiline comments - we look at only the last line.
+ const commentlines = comment.value.split('\n');
+ return commentlines[commentlines.length - 1];
+ }
+ function isValidTsIgnorePresent(comment) {
+ const line = getLastCommentLine(comment);
+ return isLineComment(comment)
+ ? tsIgnoreRegExpSingleLine.test(line)
+ : tsIgnoreRegExpMultiLine.test(line);
+ }
+ return {
+ Program() {
+ const comments = sourceCode.getAllComments();
+ comments.forEach(comment => {
+ if (isValidTsIgnorePresent(comment)) {
+ const lineCommentRuleFixer = (fixer) => fixer.replaceText(comment, `//${comment.value.replace('@ts-ignore', '@ts-expect-error')}`);
+ const blockCommentRuleFixer = (fixer) => fixer.replaceText(comment, `/*${comment.value.replace('@ts-ignore', '@ts-expect-error')}*/`);
+ context.report({
+ node: comment,
+ messageId: 'preferExpectErrorComment',
+ fix: isLineComment(comment)
+ ? lineCommentRuleFixer
+ : blockCommentRuleFixer,
+ });
+ }
+ });
+ },
+ };
+ },
+});
+//# sourceMappingURL=prefer-ts-expect-error.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js.map
new file mode 100644
index 0000000..4680747
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"prefer-ts-expect-error.js","sourceRoot":"","sources":["../../src/rules/prefer-ts-expect-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8CAAgC;AAChC,8EAG+C;AAQ/C,kBAAe,IAAI,CAAC,UAAU,CAAiB;IAC7C,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,uDAAuD;YACpE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;SACnB;QACD,OAAO,EAAE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AO,CAAC,YAAY,EAAE,kBAAkB,CAAC,EAAE,CAC/D,CAAC;wBAEJ,MAAM,qBAAqB,GAAG,CAAC,KAAgB,EAAW,EAAE,CAC1D,KAAK,CAAC,WAAW,CACf,OAAO,EACP,KAAK,OAAO,CAAC,KAAK,CAAC,OAAO,CACxB,YAAY,EACZ,kBAAkB,CACnB,IAAI,CACN,CAAC;wBAEJ,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,OAAO;4BACb,SAAS,EAAE,0BAA0B;4BACrC,GAAG,EAAE,aAAa,CAAC,OAAO,CAAC;gCACzB,CAAC,CAAC,oBAAoB;gCACtB,CAAC,CAAC,qBAAqB;yBAC1B,CAAC,CAAC;qBACJ;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js
index c1dcaf5..b216a9c 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map
index 7d8cb4e..bfd56d5 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map
@@ -1 +1 @@
-{"version":3,"file":"promise-function-async.js","sourceRoot":"","sources":["../../src/rules/promise-function-async.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAchC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,2EAA2E;YAC7E,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,+CAA+C;SAC9D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,QAAQ,EAAE;wBACR,IAAI,EAAE,SAAS;qBAChB;oBACD,mBAAmB,EAAE;wBACnB,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,mBAAmB,EAAE;wBACnB,IAAI,EAAE,SAAS;qBAChB;oBACD,yBAAyB,EAAE;wBACzB,IAAI,EAAE,SAAS;qBAChB;oBACD,wBAAwB,EAAE;wBACxB,IAAI,EAAE,SAAS;qBAChB;oBACD,uBAAuB,EAAE;wBACvB,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF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I,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,KAAK,CAAC,EAC1D;gBACA,OAAO;aACR;YAED,OAAO,CAAC,MAAM,CAAC;gBACb,SAAS,EAAE,cAAc;gBACzB,IAAI;aACL,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,wCAAwC,CACtC,IAAsC;gBAEtC,IAAI,mBAAmB,EAAE;oBACvB,YAAY,CAAC,IAAI,CAAC,CAAC;iBACpB;YACH,CAAC;YACD,oCAAoC,CAClC,IAAkC;gBAElC,IAAI,yBAAyB,EAAE;oBAC7B,YAAY,CAAC,IAAI,CAAC,CAAC;iBACpB;YACH,CAAC;YACD,mCAAmC,CACjC,IAAiC;gBAEjC,IACE,IAAI,CAAC,MAAM;oBACX,MAAM,IAAI,IAAI,CAAC,MAAM;oBACrB,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,EAC7B;oBACA,IAAI,uBAAuB,EAAE;wBAC3B,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;qBAC3B;iBACF;qBAAM,IAAI,wBAAwB,EAAE;oBACnC,YAAY,CAAC,IAAI,CAAC,CAAC;iBACpB;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"promise-function-async.js","sourceRoot":"","sources":["../../src/rules/promise-function-async.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAchC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,2EAA2E;YAC7E,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,+CAA+C;SAC9D;QACD,MAAM,EAAE;YACN;gBACE,IAAI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/@typescript-eslint/eslint-plugin/dist/rules/quotes.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js
index 34653d8..17e820c 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js
@@ -1,14 +1,27 @@
"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+var _a;
Object.defineProperty(exports, "__esModule", { value: true });
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
const quotes_1 = __importDefault(require("eslint/lib/rules/quotes"));
@@ -24,7 +37,9 @@
extendsBaseRule: true,
},
fixable: 'code',
- messages: quotes_1.default.meta.messages,
+ messages: (_a = quotes_1.default.meta.messages) !== null && _a !== void 0 ? _a : {
+ wrongQuotes: 'Strings must use {{description}}.',
+ },
schema: quotes_1.default.meta.schema,
},
defaultOptions: [
@@ -37,14 +52,14 @@
create(context, [option]) {
const rules = quotes_1.default.create(context);
function isAllowedAsNonBacktick(node) {
- var _a;
const parent = node.parent;
- switch ((_a = parent) === null || _a === void 0 ? void 0 : _a.type) {
+ switch (parent === null || parent === void 0 ? void 0 : parent.type) {
case experimental_utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition:
case experimental_utils_1.AST_NODE_TYPES.TSMethodSignature:
case experimental_utils_1.AST_NODE_TYPES.TSPropertySignature:
case experimental_utils_1.AST_NODE_TYPES.TSModuleDeclaration:
case experimental_utils_1.AST_NODE_TYPES.TSLiteralType:
+ case experimental_utils_1.AST_NODE_TYPES.TSExternalModuleReference:
return true;
case experimental_utils_1.AST_NODE_TYPES.TSEnumMember:
return node === parent.id;
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js.map
index 95dee9c..de3a0e5 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js.map
@@ -1 +1 @@
-{"version":3,"file":"quotes.js","sourceRoot":"","sources":["../../src/rules/quotes.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8EAG+C;AAC/C,qEAA+C;AAC/C,8CAAgC;AAKhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE;YACJ,WAAW,EACT,0EAA0E;YAC5E,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,gBAAQ,CAAC,IAAI,CAAC,QAAQ;QAChC,MAAM,EAAE,gBAAQ,CAAC,IAAI,CAAC,MAAM;KAC7B;IACD,cAAc,EAAE;QACd,QAAQ;QACR;YACE,qBAAqB,EAAE,KAAK;YAC5B,WAAW,EAAE,KAAK;S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AChB;QACH,CAAC;QAED,OAAO;YACL,OAAO,CAAC,IAAI;gBACV,IAAI,MAAM,KAAK,UAAU,IAAI,sBAAsB,CAAC,IAAI,CAAC,EAAE;oBACzD,OAAO;iBACR;gBAED,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;YAED,eAAe,CAAC,IAAI;gBAClB,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;YAC9B,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js
index 797d091..e71e0d5 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js
@@ -1,17 +1,32 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
-const ts = __importStar(require("typescript"));
const util = __importStar(require("../util"));
exports.default = util.createRule({
name: 'require-array-sort-compare',
- defaultOptions: [],
+ defaultOptions: [
+ {
+ ignoreStringArrays: false,
+ },
+ ],
meta: {
type: 'problem',
docs: {
@@ -23,28 +38,41 @@
messages: {
requireCompare: "Require 'compare' argument.",
},
- schema: [],
+ schema: [
+ {
+ type: 'object',
+ properties: {
+ ignoreStringArrays: {
+ type: 'boolean',
+ },
+ },
+ },
+ ],
},
- create(context) {
+ create(context, [options]) {
const service = util.getParserServices(context);
const checker = service.program.getTypeChecker();
+ /**
+ * Check if a given node is an array which all elements are string.
+ * @param node
+ */
+ function isStringArrayNode(node) {
+ const type = checker.getTypeAtLocation(service.esTreeNodeToTSNodeMap.get(node));
+ if (checker.isArrayType(type) || checker.isTupleType(type)) {
+ const typeArgs = checker.getTypeArguments(type);
+ return typeArgs.every(arg => util.getTypeName(checker, arg) === 'string');
+ }
+ return false;
+ }
return {
- ":matches(CallExpression, OptionalCallExpression)[arguments.length=0] > :matches(MemberExpression, OptionalMemberExpression)[property.name='sort'][computed=false]"(node) {
- // Get the symbol of the `sort` method.
- const tsNode = service.esTreeNodeToTSNodeMap.get(node);
- const sortSymbol = checker.getSymbolAtLocation(tsNode);
- if (sortSymbol == null) {
+ "CallExpression[arguments.length=0] > MemberExpression[property.name='sort'][computed=false]"(callee) {
+ const tsNode = service.esTreeNodeToTSNodeMap.get(callee.object);
+ const calleeObjType = util.getConstrainedTypeAtLocation(checker, tsNode);
+ if (options.ignoreStringArrays && isStringArrayNode(callee.object)) {
return;
}
- // Check the owner type of the `sort` method.
- for (const methodDecl of sortSymbol.declarations) {
- const typeDecl = methodDecl.parent;
- if (ts.isInterfaceDeclaration(typeDecl) &&
- ts.isSourceFile(typeDecl.parent) &&
- typeDecl.name.escapedText === 'Array') {
- context.report({ node: node.parent, messageId: 'requireCompare' });
- return;
- }
+ if (util.isTypeArrayTypeOrUnionOfArrayTypes(calleeObjType, checker)) {
+ context.report({ node: callee.parent, messageId: 'requireCompare' });
}
},
};
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map
index 1e1d48d..1a04cc4 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map
@@ -1 +1 @@
-{"version":3,"file":"require-array-sort-compare.js","sourceRoot":"","sources":["../../src/rules/require-array-sort-compare.ts"],"names":[],"mappings":";;;;;;;;;AACA,+CAAiC;AACjC,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,4BAA4B;IAClC,cAAc,EAAE,EAAE;IAElB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,mEAAmE;YACrE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,cAAc,EAAE,6BAA6B;SAC9C;QACD,MAAM,EAAE,EAAE;KACX;IAED,MAAM,CAAC,OAAO;QACZ,MAAM,OAAO,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAChD,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAEjD,OAAO;YACL,mKAAmK,CACjK,IAAmE;gBAEnE,uCAAuC;gBACvC,MAAM,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBACvD,MAAM,UAAU,GAAG,OAAO,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;gBACvD,IAAI,UAAU,IAAI,IAAI,EAAE;oBACtB,OAAO;iBACR;gBAED,6CAA6C;gBAC7C,KAAK,MAAM,UAAU,IAAI,UAAU,CAAC,YAAY,EAAE;oBAChD,MAAM,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC;oBACnC,IACE,EAAE,CAAC,sBAAsB,CAAC,QAAQ,CAAC;wBACnC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC;wBAChC,QAAQ,CAAC,IAAI,CAAC,WAAW,KAAK,OAAO,EACrC;wBACA,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,MAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC,CAAC;wBACpE,OAAO;qBACR;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"require-array-sort-compare.js","sourceRoot":"","sources":["../../src/rules/require-array-sort-compare.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,8CAAgC;AAShC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,4BAA4B;IAClC,cAAc,EAAE;QACd;YACE,kBAAkB,EAAE,KAAK;SAC1B;KACF;IAED,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,mEAAmE;YACrE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,cAAc,EAAE,6BAA6B;SAC9C;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,kBAAkB,EAAE;wBAClB,IAAI,EAAE,SAAS;qBAChB;iBACF;aACF;SACF;KACF;IAED,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,MAAM,OAAO,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAChD,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAEjD;;;WAGG;QACH,SAAS,iBAAiB,CAAC,IAAqC;YAC9D,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CACpC,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CACxC,CAAC;YACF,IAAI,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;gBAC1D,MAAM,QAAQ,GAAG,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;gBAChD,OAAO,QAAQ,CAAC,KAAK,CACnB,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,GAAG,CAAC,KAAK,QAAQ,CACnD,CAAC;aACH;YACD,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO;YACL,6FAA6F,CAC3F,MAAiC;gBAEjC,MAAM,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;gBAChE,MAAM,aAAa,GAAG,IAAI,CAAC,4BAA4B,CACrD,OAAO,EACP,MAAM,CACP,CAAC;gBAEF,IAAI,OAAO,CAAC,kBAAkB,IAAI,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;oBAClE,OAAO;iBACR;gBAED,IAAI,IAAI,CAAC,kCAAkC,CAAC,aAAa,EAAE,OAAO,CAAC,EAAE;oBACnE,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,MAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC,CAAC;iBACvE;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js
index 0da4691..3bdbc09 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js
@@ -1,14 +1,25 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
-const eslint_utils_1 = require("eslint-utils");
const tsutils = __importStar(require("tsutils"));
const util = __importStar(require("../util"));
exports.default = util.createRule({
@@ -41,6 +52,8 @@
upper: scopeInfo,
hasAwait: false,
hasAsync: node.async,
+ isGen: node.generator || false,
+ isAsyncYield: false,
};
}
/**
@@ -52,13 +65,16 @@
// this shouldn't ever happen, as we have to exit a function after we enter it
return;
}
- if (node.async && !scopeInfo.hasAwait && !isEmptyFunction(node)) {
+ if (node.async &&
+ !scopeInfo.hasAwait &&
+ !isEmptyFunction(node) &&
+ !(scopeInfo.isGen && scopeInfo.isAsyncYield)) {
context.report({
node,
loc: getFunctionHeadLoc(node, sourceCode),
messageId: 'missingAwait',
data: {
- name: util.upperCaseFirst(eslint_utils_1.getFunctionNameWithKind(node)),
+ name: util.upperCaseFirst(util.getFunctionNameWithKind(node)),
},
});
}
@@ -80,6 +96,28 @@
}
scopeInfo.hasAwait = true;
}
+ /**
+ * mark `scopeInfo.isAsyncYield` to `true` if its a generator
+ * function and the delegate is `true`
+ */
+ function markAsHasDelegateGen(node) {
+ var _a;
+ if (!scopeInfo || !scopeInfo.isGen || !node.argument) {
+ return;
+ }
+ if (((_a = node === null || node === void 0 ? void 0 : node.argument) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.Literal) {
+ // making this `false` as for literals we don't need to check the definition
+ // eg : async function* run() { yield* 1 }
+ scopeInfo.isAsyncYield = false;
+ }
+ const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node === null || node === void 0 ? void 0 : node.argument);
+ const type = checker.getTypeAtLocation(tsNode);
+ const symbol = type.getSymbol();
+ // async function* test1() {yield* asyncGenerator() }
+ if ((symbol === null || symbol === void 0 ? void 0 : symbol.getName()) === 'AsyncGenerator') {
+ scopeInfo.isAsyncYield = true;
+ }
+ }
return {
FunctionDeclaration: enterFunction,
FunctionExpression: enterFunction,
@@ -89,6 +127,7 @@
'ArrowFunctionExpression:exit': exitFunction,
AwaitExpression: markAsHasAwait,
'ForOfStatement[await = true]': markAsHasAwait,
+ 'YieldExpression[delegate = true]': markAsHasDelegateGen,
// check body-less async arrow function.
// ignore `async () => await foo` because it's obviously correct
'ArrowFunctionExpression[async = true] > :not(BlockStatement, AwaitExpression)'(node) {
@@ -121,8 +160,8 @@
*/
function getOpeningParenOfParams(node, sourceCode) {
return util.nullThrows(node.id
- ? sourceCode.getTokenAfter(node.id, eslint_utils_1.isOpeningParenToken)
- : sourceCode.getFirstToken(node, eslint_utils_1.isOpeningParenToken), util.NullThrowsReasons.MissingToken('(', node.type));
+ ? sourceCode.getTokenAfter(node.id, util.isOpeningParenToken)
+ : sourceCode.getFirstToken(node, util.isOpeningParenToken), util.NullThrowsReasons.MissingToken('(', node.type));
}
// https://github.com/eslint/eslint/blob/03a69dbe86d5b5768a310105416ae726822e3c1c/lib/rules/utils/ast-utils.js#L1220-L1242
/**
@@ -133,7 +172,7 @@
let start = null;
let end = null;
if (node.type === experimental_utils_1.AST_NODE_TYPES.ArrowFunctionExpression) {
- const arrowToken = util.nullThrows(sourceCode.getTokenBefore(node.body, eslint_utils_1.isArrowToken), util.NullThrowsReasons.MissingToken('=>', node.type));
+ const arrowToken = util.nullThrows(sourceCode.getTokenBefore(node.body, util.isArrowToken), util.NullThrowsReasons.MissingToken('=>', node.type));
start = arrowToken.loc.start;
end = arrowToken.loc.end;
}
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map
index 5c5e6ca..bab6931 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map
@@ -1 +1 @@
-{"version":3,"file":"require-await.js","sourceRoot":"","sources":["../../src/rules/require-await.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAI+C;AAC/C,+CAIsB;AACtB,iDAAmC;AAEnC,8CAAgC;AAYhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,2DAA2D;YACxE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;YAC1B,eAAe,EAAE,IAAI;SACtB;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,YAAY,EAAE,qCAAqC;SACpD;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACvD,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAExD,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAC3C,IAAI,SAAS,GAAqB,IAAI,CAAC;QAEvC;;WAEG;QACH,SAAS,aAAa,CAAC,IAAkB;YACvC,SAAS,GAAG;gBACV,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E/B,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAC5B,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,iBAAiB,CAAC,aAAa,CACrC,CAAC;IACF,IAAI,KAAK,GAAG,IAAI,CAAC;IACjB,IAAI,GAAG,GAAG,IAAI,CAAC;IAEf,IAAI,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,uBAAuB,EAAE;QACxD,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAChC,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,2BAAY,CAAC,EAClD,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CACrD,CAAC;QAEF,KAAK,GAAG,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC;QAC7B,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC;KAC1B;SAAM,IACL,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,QAAQ;QACvC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,gBAAgB,EAC/C;QACA,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC;QACzB,GAAG,GAAG,uBAAuB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC;KAC3D;SAAM;QACL,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;QACvB,GAAG,GAAG,uBAAuB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC;KAC3D;IAED,OAAO;QACL,KAAK;QACL,GAAG;KACJ,CAAC;AACJ,CAAC"}
\ No newline at end of file
+{"version":3,"file":"require-await.js","sourceRoot":"","sources":["../../src/rules/require-await.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAI+C;AAC/C,iDAAmC;AAEnC,8CAAgC;AAchC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC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G,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;QACvB,GAAG,GAAG,uBAAuB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC;KAC3D;IAED,OAAO;QACL,KAAK;QACL,GAAG;KACJ,CAAC;AACJ,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js
index b00a983..aa2ba07 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -16,7 +28,7 @@
docs: {
description: 'When adding two variables, operands must both be of type number or of type string',
category: 'Best Practices',
- recommended: false,
+ recommended: 'error',
requiresTypeChecking: true,
},
messages: {
@@ -48,13 +60,6 @@
* Helper function to get base type of node
*/
function getBaseTypeOfLiteralType(type) {
- const constraint = type.getConstraint();
- if (constraint &&
- // for generic types with union constraints, it will return itself from getConstraint
- // so we have to guard against infinite recursion...
- constraint !== type) {
- return getBaseTypeOfLiteralType(constraint);
- }
if (type.isNumberLiteral()) {
return 'number';
}
@@ -83,7 +88,7 @@
*/
function getNodeType(node) {
const tsNode = service.esTreeNodeToTSNodeMap.get(node);
- const type = typeChecker.getTypeAtLocation(tsNode);
+ const type = util.getConstrainedTypeAtLocation(typeChecker, tsNode);
return getBaseTypeOfLiteralType(type);
}
function checkPlusOperands(node) {
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map
index ffacf1d..df5c3ce 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map
@@ -1 +1 @@
-{"version":3,"file":"restrict-plus-operands.js","sourceRoot":"","sources":["../../src/rules/restrict-plus-operands.ts"],"names":[],"mappings":";;;;;;;;;AACA,+CAAiC;AACjC,8CAAgC;AAShC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,mFAAmF;YACrF,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,UAAU,EACR,wEAAwE;YAC1E,UAAU,EACR,2GAA2G;YAC7G,UAAU,EAAE,iDAAiD;SAC9D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,wBAAwB,EAAE;wBACxB,IAAI,EAAE,SAAS;qBAChB;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,wBAAwB,EAAE,KAA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C;QAED;;;WAGG;QACH,SAAS,WAAW,CAAC,IAAyB;YAC5C,MAAM,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACvD,MAAM,IAAI,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;YAEnD,OAAO,wBAAwB,CAAC,IAAI,CAAC,CAAC;QACxC,CAAC;QAED,SAAS,iBAAiB,CACxB,IAA+D;YAE/D,MAAM,QAAQ,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACxC,MAAM,SAAS,GAAG,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAE1C,IACE,QAAQ,KAAK,SAAS;gBACtB,SAAS,KAAK,SAAS;gBACvB,QAAQ,KAAK,SAAS,EACtB;gBACA,IAAI,QAAQ,KAAK,QAAQ,IAAI,SAAS,KAAK,QAAQ,EAAE;oBACnD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,YAAY;qBACxB,CAAC,CAAC;iBACJ;qBAAM,IAAI,QAAQ,KAAK,QAAQ,IAAI,SAAS,KAAK,QAAQ,EAAE;oBAC1D,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,YAAY;qBACxB,CAAC,CAAC;iBACJ;qBAAM;oBACL,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,YAAY;qBACxB,CAAC,CAAC;iBACJ;aACF;QACH,CAAC;QAED,OAAO;YACL,gCAAgC,EAAE,iBAAiB;YACnD,qCAAqC,CAAC,IAAI;gBACxC,IAAI,wBAAwB,EAAE;oBAC5B,iBAAiB,CAAC,IAAI,CAAC,CAAC;iBACzB;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"restrict-plus-operands.js","sourceRoot":"","sources":["../../src/rules/restrict-plus-operands.ts"],"names":[],"mappings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,YAAY;qBACxB,CAAC,CAAC;iBACJ;qBAAM;oBACL,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,YAAY;qBACxB,CAAC,CAAC;iBACJ;aACF;QACH,CAAC;QAED,OAAO;YACL,gCAAgC,EAAE,iBAAiB;YACnD,qCAAqC,CAAC,IAAI;gBACxC,IAAI,wBAAwB,EAAE;oBAC5B,iBAAiB,CAAC,IAAI,CAAC,CAAC;iBACzB;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js
index b0bb7b9..e72f791 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -17,40 +29,52 @@
docs: {
description: 'Enforce template literal expressions to be of string type',
category: 'Best Practices',
- recommended: false,
+ recommended: 'error',
requiresTypeChecking: true,
},
messages: {
- invalidType: 'Invalid type of template literal expression.',
+ invalidType: 'Invalid type "{{type}}" of template literal expression.',
},
schema: [
{
type: 'object',
properties: {
- allowBoolean: { type: 'boolean' },
- allowNullable: { type: 'boolean' },
allowNumber: { type: 'boolean' },
+ allowBoolean: { type: 'boolean' },
+ allowAny: { type: 'boolean' },
+ allowNullish: { type: 'boolean' },
},
},
],
},
- defaultOptions: [{}],
+ defaultOptions: [
+ {
+ allowNumber: true,
+ },
+ ],
create(context, [options]) {
const service = util.getParserServices(context);
const typeChecker = service.program.getTypeChecker();
- const allowedTypes = [
- 'string',
- ...(options.allowNumber ? ['number', 'bigint'] : []),
- ...(options.allowBoolean ? ['boolean'] : []),
- ...(options.allowNullable ? ['null', 'undefined'] : []),
- ];
- function isAllowedType(types) {
- for (const type of types) {
- if (!allowedTypes.includes(type)) {
- return false;
- }
+ function isUnderlyingTypePrimitive(type) {
+ if (util.isTypeFlagSet(type, ts.TypeFlags.StringLike)) {
+ return true;
}
- return true;
+ if (options.allowNumber &&
+ util.isTypeFlagSet(type, ts.TypeFlags.NumberLike | ts.TypeFlags.BigIntLike)) {
+ return true;
+ }
+ if (options.allowBoolean &&
+ util.isTypeFlagSet(type, ts.TypeFlags.BooleanLike)) {
+ return true;
+ }
+ if (options.allowAny && util.isTypeAnyType(type)) {
+ return true;
+ }
+ if (options.allowNullish &&
+ util.isTypeFlagSet(type, ts.TypeFlags.Null | ts.TypeFlags.Undefined)) {
+ return true;
+ }
+ return false;
}
return {
TemplateLiteral(node) {
@@ -58,64 +82,29 @@
if (node.parent.type === experimental_utils_1.AST_NODE_TYPES.TaggedTemplateExpression) {
return;
}
- for (const expr of node.expressions) {
- const type = getNodeType(expr);
- if (!isAllowedType(type)) {
+ for (const expression of node.expressions) {
+ const expressionType = util.getConstrainedTypeAtLocation(typeChecker, service.esTreeNodeToTSNodeMap.get(expression));
+ if (!isInnerUnionOrIntersectionConformingTo(expressionType, isUnderlyingTypePrimitive)) {
context.report({
- node: expr,
+ node: expression,
messageId: 'invalidType',
+ data: { type: typeChecker.typeToString(expressionType) },
});
}
}
},
};
- /**
- * Helper function to get base type of node
- * @param node the node to be evaluated.
- */
- function getNodeType(node) {
- const tsNode = service.esTreeNodeToTSNodeMap.get(node);
- const type = typeChecker.getTypeAtLocation(tsNode);
- return getBaseType(type);
- }
- function getBaseType(type) {
- const constraint = type.getConstraint();
- if (constraint &&
- // for generic types with union constraints, it will return itself
- constraint !== type) {
- return getBaseType(constraint);
+ function isInnerUnionOrIntersectionConformingTo(type, predicate) {
+ return rec(type);
+ function rec(innerType) {
+ if (innerType.isUnion()) {
+ return innerType.types.every(rec);
+ }
+ if (innerType.isIntersection()) {
+ return innerType.types.some(rec);
+ }
+ return predicate(innerType);
}
- if (type.isStringLiteral()) {
- return ['string'];
- }
- if (type.isNumberLiteral()) {
- return ['number'];
- }
- if (type.flags & ts.TypeFlags.BigIntLiteral) {
- return ['bigint'];
- }
- if (type.flags & ts.TypeFlags.BooleanLiteral) {
- return ['boolean'];
- }
- if (type.flags & ts.TypeFlags.Null) {
- return ['null'];
- }
- if (type.flags & ts.TypeFlags.Undefined) {
- return ['undefined'];
- }
- if (type.isUnion()) {
- return type.types
- .map(getBaseType)
- .reduce((all, array) => [...all, ...array], []);
- }
- const stringType = typeChecker.typeToString(type);
- if (stringType === 'string' ||
- stringType === 'number' ||
- stringType === 'bigint' ||
- stringType === 'boolean') {
- return [stringType];
- }
- return ['other'];
}
},
});
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map
index be2c177..2e51705 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map
@@ -1 +1 @@
-{"version":3,"file":"restrict-template-expressions.js","s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O,CAAC,QAAQ,CAAC,CAAC;aACnB;YACD,IAAI,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,aAAa,EAAE;gBAC3C,OAAO,CAAC,QAAQ,CAAC,CAAC;aACnB;YACD,IAAI,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,cAAc,EAAE;gBAC5C,OAAO,CAAC,SAAS,CAAC,CAAC;aACpB;YACD,IAAI,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE;gBAClC,OAAO,CAAC,MAAM,CAAC,CAAC;aACjB;YACD,IAAI,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE;gBACvC,OAAO,CAAC,WAAW,CAAC,CAAC;aACtB;YAED,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE;gBAClB,OAAO,IAAI,CAAC,KAAK;qBACd,GAAG,CAAC,WAAW,CAAC;qBAChB,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;aACnD;YAED,MAAM,UAAU,GAAG,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YAClD,IACE,UAAU,KAAK,QAAQ;gBACvB,UAAU,KAAK,QAAQ;gBACvB,UAAU,KAAK,QAAQ;gBACvB,UAAU,KAAK,SAAS,EACxB;gBACA,OAAO,CAAC,UAAU,CAAC,CAAC;aACrB;YAED,OAAO,CAAC,OAAO,CAAC,CAAC;QACnB,CAAC;IACH,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"restrict-template-expressions.js","sourceRoot":"","sources":["../../src/rules/restrict-template-expressions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,+CAAiC;AACjC,8CAAgC;AAahC,kBAAe,IAAI,CAAC,UAAU,CAAqB;IAC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AAS,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;iBAClC;gBAED,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;YAC9B,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js
index 193ecab..910c332 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -24,9 +36,9 @@
fixable: 'code',
type: 'problem',
messages: {
- nonPromiseAwait: 'returning an awaited value that is not a promise is not allowed',
- disallowedPromiseAwait: 'returning an awaited promise is not allowed in this context',
- requiredPromiseAwait: 'returning an awaited promise is required in this context',
+ nonPromiseAwait: 'Returning an awaited value that is not a promise is not allowed.',
+ disallowedPromiseAwait: 'Returning an awaited promise is not allowed in this context.',
+ requiredPromiseAwait: 'Returning an awaited promise is required in this context.',
},
schema: [
{
@@ -39,27 +51,61 @@
const parserServices = util.getParserServices(context);
const checker = parserServices.program.getTypeChecker();
const sourceCode = context.getSourceCode();
- function inTryCatch(node) {
+ let scopeInfo = null;
+ function enterFunction(node) {
+ scopeInfo = {
+ hasAsync: node.async,
+ };
+ }
+ function inTry(node) {
let ancestor = node.parent;
while (ancestor && !ts.isFunctionLike(ancestor)) {
- if (tsutils.isTryStatement(ancestor) ||
- tsutils.isCatchClause(ancestor)) {
+ if (tsutils.isTryStatement(ancestor)) {
return true;
}
ancestor = ancestor.parent;
}
return false;
}
+ function inCatch(node) {
+ let ancestor = node.parent;
+ while (ancestor && !ts.isFunctionLike(ancestor)) {
+ if (tsutils.isCatchClause(ancestor)) {
+ return true;
+ }
+ ancestor = ancestor.parent;
+ }
+ return false;
+ }
+ function isReturnPromiseInFinally(node) {
+ let ancestor = node.parent;
+ while (ancestor && !ts.isFunctionLike(ancestor)) {
+ if (tsutils.isTryStatement(ancestor.parent) &&
+ tsutils.isBlock(ancestor) &&
+ ancestor.parent.end === ancestor.end) {
+ return true;
+ }
+ ancestor = ancestor.parent;
+ }
+ return false;
+ }
+ function hasFinallyBlock(node) {
+ let ancestor = node.parent;
+ while (ancestor && !ts.isFunctionLike(ancestor)) {
+ if (tsutils.isTryStatement(ancestor)) {
+ return !!ancestor.finallyBlock;
+ }
+ ancestor = ancestor.parent;
+ }
+ return false;
+ }
// function findTokensToRemove()
function removeAwait(fixer, node) {
- const awaitNode = node.type === experimental_utils_1.AST_NODE_TYPES.ReturnStatement
- ? node.argument
- : node.body;
// Should always be an await node; but let's be safe.
- /* istanbul ignore if */ if (!util.isAwaitExpression(awaitNode)) {
+ /* istanbul ignore if */ if (!util.isAwaitExpression(node)) {
return null;
}
- const awaitToken = sourceCode.getFirstToken(awaitNode, util.isAwaitKeyword);
+ const awaitToken = sourceCode.getFirstToken(node, util.isAwaitKeyword);
// Should always be the case; but let's be safe.
/* istanbul ignore if */ if (!awaitToken) {
return null;
@@ -76,14 +122,7 @@
return fixer.removeRange([startAt, endAt]);
}
function insertAwait(fixer, node) {
- const targetNode = node.type === experimental_utils_1.AST_NODE_TYPES.ReturnStatement
- ? node.argument
- : node.body;
- // There should always be a target node; but let's be safe.
- /* istanbul ignore if */ if (!targetNode) {
- return null;
- }
- return fixer.insertTextBefore(targetNode, 'await ');
+ return fixer.insertTextBefore(node, 'await ');
}
function test(node, expression) {
let child;
@@ -128,7 +167,7 @@
return;
}
if (option === 'in-try-catch') {
- const isInTryCatch = inTryCatch(expression);
+ const isInTryCatch = inTry(expression) || inCatch(expression);
if (isAwait && !isInTryCatch) {
context.report({
messageId: 'disallowedPromiseAwait',
@@ -137,6 +176,12 @@
});
}
else if (!isAwait && isInTryCatch) {
+ if (inCatch(expression) && !hasFinallyBlock(expression)) {
+ return;
+ }
+ if (isReturnPromiseInFinally(expression)) {
+ return;
+ }
context.report({
messageId: 'requiredPromiseAwait',
node,
@@ -146,20 +191,35 @@
return;
}
}
+ function findPossiblyReturnedNodes(node) {
+ if (node.type === experimental_utils_1.AST_NODE_TYPES.ConditionalExpression) {
+ return [
+ ...findPossiblyReturnedNodes(node.alternate),
+ ...findPossiblyReturnedNodes(node.consequent),
+ ];
+ }
+ return [node];
+ }
return {
+ FunctionDeclaration: enterFunction,
+ FunctionExpression: enterFunction,
+ ArrowFunctionExpression: enterFunction,
'ArrowFunctionExpression[async = true]:exit'(node) {
if (node.body.type !== experimental_utils_1.AST_NODE_TYPES.BlockStatement) {
- const expression = parserServices.esTreeNodeToTSNodeMap.get(node.body);
- test(node, expression);
+ findPossiblyReturnedNodes(node.body).forEach(node => {
+ const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node);
+ test(node, tsNode);
+ });
}
},
ReturnStatement(node) {
- const originalNode = parserServices.esTreeNodeToTSNodeMap.get(node);
- const { expression } = originalNode;
- if (!expression) {
+ if (!scopeInfo || !scopeInfo.hasAsync || !node.argument) {
return;
}
- test(node, expression);
+ findPossiblyReturnedNodes(node.argument).forEach(node => {
+ const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node);
+ test(node, tsNode);
+ });
},
};
},
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map
index e765cc7..3806c18 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map
@@ -1 +1 @@
-{"version":3,"file":"return-await.js","sourceRoot":"","sources":["../../src/rules/return-await.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAI+C;AAC/C,iDAAmC;AACnC,+CAAiC;AACjC,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,iDAAiD;YAC9D,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;YAC1B,eAAe,EAAE,iBAAiB;SACnC;QACD,OAAO,EAAE,MAAM;QACf,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE;YACR,eAAe,EACb,iEAAiE;YACnE,sBAAsB,EACpB,6DAA6D;YAC/D,oBAAoB,EAClB,0DAA0D;SAC7D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,CAAC,cAAc,EAAE,QAAQ,EAAE,OAAO,CAAC;aAC1C;SACF;KACF;IACD,cAAc,EAAE,CAAC,cAAc,CAAC;IAEhC,MAAM,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;QACtB,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACvD,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QACxD,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C,SAAS,UAAU,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C,IAAI,EAAE,UAAU,CAAC,CAAC;iBACxB;YACH,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,MAAM,YAAY,GAAG,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAEpE,MAAM,EAAE,UAAU,EAAE,GAAG,YAAY,CAAC;gBAEpC,IAAI,CAAC,UAAU,EAAE;oBACf,OAAO;iBACR;gBAED,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;YACzB,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"return-await.js","sourceRoot":"","sources":["../../src/rules/return-await.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAI+C;AAC/C,iDAAmC;AACnC,+CAAiC;AACjC,8CAAgC;AAWhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,iDAAiD;YAC9D,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;YAC1B,eAAe,EAAE,iBAAiB;SACnC;QACD,OAAO,EAAE,MAAM;QACf,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE;YACR,eAAe,EACb,kEAAkE;YACpE,sBAAsB,EACpB,8DAA8D;YAChE,oBAAoB,EAClB,2DAA2D;SAC9D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,CAAC,cAAc,EAAE,QAAQ,EAAE,OAAO,CAAC;aAC1C;SACF;KACF;IACD,cAAc,EAAE,CAAC,cAAc,CAAC;IAEhC,MAAM,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;QACtB,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACvD,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC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AAE,aAAa;YACjC,uBAAuB,EAAE,aAAa;YAEtC,4CAA4C,CAC1C,IAAsC;gBAEtC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,cAAc,EAAE;oBACpD,yBAAyB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;wBAClD,MAAM,MAAM,GAAG,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;wBAC9D,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;oBACrB,CAAC,CAAC,CAAC;iBACJ;YACH,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,IAAI,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;oBACvD,OAAO;iBACR;gBACD,yBAAyB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;oBACtD,MAAM,MAAM,GAAG,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;oBAC9D,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;gBACrB,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js
index 9a3cf0e..7e2ccde 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js
@@ -1,14 +1,27 @@
"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+var _a;
Object.defineProperty(exports, "__esModule", { value: true });
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
const semi_1 = __importDefault(require("eslint/lib/rules/semi"));
@@ -26,7 +39,10 @@
},
fixable: 'code',
schema: semi_1.default.meta.schema,
- messages: semi_1.default.meta.messages,
+ messages: (_a = semi_1.default.meta.messages) !== null && _a !== void 0 ? _a : {
+ missingSemi: 'Missing semicolon.',
+ extraSemi: 'Extra semicolon.',
+ },
},
defaultOptions: [
'always',
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js.map
index 5295d55..5c2e0f7 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js.map
@@ -1 +1 @@
-{"version":3,"file":"semi.js","sourceRoot":"","sources":["../../src/rules/semi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8EAI+C;AAC/C,iEAA6C;AAC7C,8CAAgC;AAKhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,MAAM;IACZ,I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Y,KACf,wBAAwB,CAAC,IAAI;gBAC3B,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,KAAK,mCAAc,CAAC,sBAAsB,EAAE;oBACnE,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;iBACtC;YACH,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js
index ae95604..3d97723 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js
@@ -1,14 +1,25 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
-const eslint_utils_1 = require("eslint-utils");
const util = __importStar(require("../util"));
exports.default = util.createRule({
name: 'space-before-function-paren',
@@ -61,11 +72,12 @@
* @returns {boolean} Whether the function has a name.
*/
function isNamedFunction(node) {
- if (node.id) {
+ if (node.id != null) {
return true;
}
const parent = node.parent;
return (parent.type === experimental_utils_1.AST_NODE_TYPES.MethodDefinition ||
+ parent.type === experimental_utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition ||
(parent.type === experimental_utils_1.AST_NODE_TYPES.Property &&
(parent.kind === 'get' || parent.kind === 'set' || parent.method)));
}
@@ -79,16 +91,16 @@
if (node.type === experimental_utils_1.AST_NODE_TYPES.ArrowFunctionExpression) {
// Always ignore non-async functions and arrow functions without parens, e.g. async foo => bar
if (node.async &&
- eslint_utils_1.isOpeningParenToken(sourceCode.getFirstToken(node, { skip: 1 }))) {
- return _a = overrideConfig.asyncArrow, (_a !== null && _a !== void 0 ? _a : baseConfig);
+ util.isOpeningParenToken(sourceCode.getFirstToken(node, { skip: 1 }))) {
+ return (_a = overrideConfig.asyncArrow) !== null && _a !== void 0 ? _a : baseConfig;
}
}
else if (isNamedFunction(node)) {
- return _b = overrideConfig.named, (_b !== null && _b !== void 0 ? _b : baseConfig);
+ return (_b = overrideConfig.named) !== null && _b !== void 0 ? _b : baseConfig;
// `generator-star-spacing` should warn anonymous generators. E.g. `function* () {}`
}
else if (!node.generator) {
- return _c = overrideConfig.anonymous, (_c !== null && _c !== void 0 ? _c : baseConfig);
+ return (_c = overrideConfig.anonymous) !== null && _c !== void 0 ? _c : baseConfig;
}
return 'ignore';
}
@@ -108,14 +120,17 @@
rightToken = sourceCode.getTokenAfter(leftToken);
}
else {
- rightToken = sourceCode.getFirstToken(node, eslint_utils_1.isOpeningParenToken);
+ rightToken = sourceCode.getFirstToken(node, util.isOpeningParenToken);
leftToken = sourceCode.getTokenBefore(rightToken);
}
const hasSpacing = sourceCode.isSpaceBetweenTokens(leftToken, rightToken);
if (hasSpacing && functionConfig === 'never') {
context.report({
node,
- loc: leftToken.loc.end,
+ loc: {
+ start: leftToken.loc.end,
+ end: rightToken.loc.start,
+ },
messageId: 'unexpected',
fix: fixer => fixer.removeRange([leftToken.range[1], rightToken.range[0]]),
});
@@ -125,7 +140,7 @@
(!node.typeParameters || node.id)) {
context.report({
node,
- loc: leftToken.loc.end,
+ loc: rightToken.loc,
messageId: 'missing',
fix: fixer => fixer.insertTextAfter(leftToken, ' '),
});
@@ -135,6 +150,8 @@
ArrowFunctionExpression: checkFunction,
FunctionDeclaration: checkFunction,
FunctionExpression: checkFunction,
+ TSEmptyBodyFunctionExpression: checkFunction,
+ TSDeclareFunction: checkFunction,
};
},
});
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js.map
index 91b155a..4f69e19 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js.map
@@ -1 +1 @@
-{"version":3,"file":"space-before-function-paren.js","sourceRoot":"","sources":["../../src/rules/space-before-function-paren.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,+CAAmD;AACnD,8CAAgC;AAehC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE;YACJ,WAAW,EAAE,yDAAyD;YACtE,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,YAAY;QACrB,MAAM,EAAE;YACN;gBACE,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;qBAC1B;oBACD;wBACE,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACV,SAAS,EAAE;gCACT,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC;6BACpC;4BACD,KAAK,EAAE;gCACL,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC;6BACpC;4B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KAAK,CAAC,EAAE,CACX,KAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;iBAC/D,CAAC,CAAC;aACJ;iBAAM,IACL,CAAC,UAAU;gBACX,cAAc,KAAK,QAAQ;gBAC3B,CAAC,CAAC,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,EAAE,CAAC,EACjC;gBACA,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,GAAG;oBACtB,SAAS,EAAE,SAAS;oBACpB,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,SAAS,EAAE,GAAG,CAAC;iBACpD,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,uBAAuB,EAAE,aAAa;YACtC,mBAAmB,EAAE,aAAa;YAClC,kBAAkB,EAAE,aAAa;SAClC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"space-before-function-paren.js","sourceRoot":"","sources":["../../src/rules/space-before-function-paren.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAehC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE;YACJ,WAAW,EAAE,yDAAyD;YACtE,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,YAAY;QACrB,MAAM,EAAE;YACN;gBACE,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;qBAC1B;oBACD;wBACE,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACV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,MAAM,UAAU,GAAG,UAAU,CAAC,oBAAoB,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;YAE1E,IAAI,UAAU,IAAI,cAAc,KAAK,OAAO,EAAE;gBAC5C,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,GAAG,EAAE;wBACH,KAAK,EAAE,SAAS,CAAC,GAAG,CAAC,GAAG;wBACxB,GAAG,EAAE,UAAU,CAAC,GAAG,CAAC,KAAK;qBAC1B;oBACD,SAAS,EAAE,YAAY;oBACvB,GAAG,EAAE,KAAK,CAAC,EAAE,CACX,KAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;iBAC/D,CAAC,CAAC;aACJ;iBAAM,IACL,CAAC,UAAU;gBACX,cAAc,KAAK,QAAQ;gBAC3B,CAAC,CAAC,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,EAAE,CAAC,EACjC;gBACA,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,GAAG,EAAE,UAAU,CAAC,GAAG;oBACnB,SAAS,EAAE,SAAS;oBACpB,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,SAAS,EAAE,GAAG,CAAC;iBACpD,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,uBAAuB,EAAE,aAAa;YACtC,mBAAmB,EAAE,aAAa;YAClC,kBAAkB,EAAE,aAAa;YACjC,6BAA6B,EAAE,aAAa;YAC5C,iBAAiB,EAAE,aAAa;SACjC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js
index b18ba77..3f2454c 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -25,13 +37,14 @@
{
type: 'object',
properties: {
- ignoreRhs: {
- type: 'boolean',
- },
- allowNullable: {
- type: 'boolean',
- },
- allowSafe: {
+ allowString: { type: 'boolean' },
+ allowNumber: { type: 'boolean' },
+ allowNullableObject: { type: 'boolean' },
+ allowNullableBoolean: { type: 'boolean' },
+ allowNullableString: { type: 'boolean' },
+ allowNullableNumber: { type: 'boolean' },
+ allowAny: { type: 'boolean' },
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: {
type: 'boolean',
},
},
@@ -59,18 +72,36 @@
'The condition is always true.',
conditionErrorNullableObject: 'Unexpected nullable object value in conditional. ' +
'An explicit null check is required.',
+ noStrictNullCheck: 'This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.',
},
},
defaultOptions: [
{
- ignoreRhs: false,
- allowNullable: false,
- allowSafe: false,
+ allowString: true,
+ allowNumber: true,
+ allowNullableObject: true,
+ allowNullableBoolean: false,
+ allowNullableString: false,
+ allowNullableNumber: false,
+ allowAny: false,
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
},
],
create(context, [options]) {
const service = util.getParserServices(context);
const checker = service.program.getTypeChecker();
+ const compilerOptions = service.program.getCompilerOptions();
+ const isStrictNullChecks = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'strictNullChecks');
+ if (!isStrictNullChecks &&
+ options.allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing !== true) {
+ context.report({
+ loc: {
+ start: { line: 0, column: 0 },
+ end: { line: 0, column: 0 },
+ },
+ messageId: 'noStrictNullCheck',
+ });
+ }
const checkedNodes = new Set();
return {
ConditionalExpression: checkTestExpression,
@@ -91,125 +122,106 @@
checkNode(node.argument, true);
}
/**
- * This function analyzes the type of a boolean expression node and checks if it is allowed.
- * It can recurse when checking nested logical operators, so that only the outermost expressions are reported.
+ * This function analyzes the type of a node and checks if it is allowed in a boolean context.
+ * It can recurse when checking nested logical operators, so that only the outermost operands are reported.
+ * The right operand of a logical expression is ignored unless it's a part of a test expression (if/while/ternary/etc).
* @param node The AST node to check.
- * @param isRoot Whether it is the root of a logical expression and there was no recursion yet.
- * @returns `true` if there was an error reported.
+ * @param isTestExpr Whether the node is a descendant of a test expression.
*/
- function checkNode(node, isRoot = false) {
+ function checkNode(node, isTestExpr = false) {
// prevent checking the same node multiple times
if (checkedNodes.has(node)) {
- return false;
+ return;
}
checkedNodes.add(node);
- // for logical operator, we also check its operands
+ // for logical operator, we check its operands
if (node.type === experimental_utils_1.AST_NODE_TYPES.LogicalExpression &&
node.operator !== '??') {
- let hasError = false;
- if (checkNode(node.left)) {
- hasError = true;
+ checkNode(node.left, isTestExpr);
+ // we ignore the right operand when not in a context of a test expression
+ if (isTestExpr) {
+ checkNode(node.right, isTestExpr);
}
- if (!options.ignoreRhs) {
- if (checkNode(node.right)) {
- hasError = true;
- }
- }
- // if this logical operator is not the root of a logical expression
- // we only check its operands and return
- if (!isRoot) {
- return hasError;
- }
- // if this is the root of a logical expression
- // we want to check its resulting type too
- else {
- // ...unless there already was an error, we exit so we don't double-report
- if (hasError) {
- return true;
- }
- }
+ return;
}
const tsNode = service.esTreeNodeToTSNodeMap.get(node);
const type = util.getConstrainedTypeAtLocation(checker, tsNode);
- let messageId;
const types = inspectVariantTypes(tsutils.unionTypeParts(type));
const is = (...wantedTypes) => types.size === wantedTypes.length &&
wantedTypes.every(type => types.has(type));
// boolean
if (is('boolean')) {
// boolean is always okay
- return false;
+ return;
}
// never
if (is('never')) {
// never is always okay
- return false;
+ return;
}
// nullish
- else if (is('nullish')) {
+ if (is('nullish')) {
// condition is always false
- messageId = 'conditionErrorNullish';
+ context.report({ node, messageId: 'conditionErrorNullish' });
+ return;
}
// nullable boolean
- else if (is('nullish', 'boolean')) {
- if (!options.allowNullable) {
- messageId = 'conditionErrorNullableBoolean';
+ if (is('nullish', 'boolean')) {
+ if (!options.allowNullableBoolean) {
+ context.report({ node, messageId: 'conditionErrorNullableBoolean' });
}
+ return;
}
// string
- else if (is('string')) {
- messageId = 'conditionErrorString';
+ if (is('string')) {
+ if (!options.allowString) {
+ context.report({ node, messageId: 'conditionErrorString' });
+ }
+ return;
}
// nullable string
- else if (is('nullish', 'string')) {
- messageId = 'conditionErrorNullableString';
+ if (is('nullish', 'string')) {
+ if (!options.allowNullableString) {
+ context.report({ node, messageId: 'conditionErrorNullableString' });
+ }
+ return;
}
// number
- else if (is('number')) {
- messageId = 'conditionErrorNumber';
+ if (is('number')) {
+ if (!options.allowNumber) {
+ context.report({ node, messageId: 'conditionErrorNumber' });
+ }
+ return;
}
// nullable number
- else if (is('nullish', 'number')) {
- messageId = 'conditionErrorNullableNumber';
+ if (is('nullish', 'number')) {
+ if (!options.allowNullableNumber) {
+ context.report({ node, messageId: 'conditionErrorNullableNumber' });
+ }
+ return;
}
// object
- else if (is('object')) {
+ if (is('object')) {
// condition is always true
- if (!options.allowSafe) {
- messageId = 'conditionErrorObject';
- }
+ context.report({ node, messageId: 'conditionErrorObject' });
+ return;
}
// nullable object
- else if (is('nullish', 'object')) {
- if (!options.allowSafe || !options.allowNullable) {
- messageId = 'conditionErrorNullableObject';
+ if (is('nullish', 'object')) {
+ if (!options.allowNullableObject) {
+ context.report({ node, messageId: 'conditionErrorNullableObject' });
}
- }
- // boolean/object
- else if (is('boolean', 'object')) {
- if (!options.allowSafe) {
- messageId = 'conditionErrorOther';
- }
- }
- // nullable boolean/object
- else if (is('nullish', 'boolean', 'object')) {
- if (!options.allowSafe || !options.allowNullable) {
- messageId = 'conditionErrorOther';
- }
+ return;
}
// any
- else if (is('any')) {
- messageId = 'conditionErrorAny';
+ if (is('any')) {
+ if (!options.allowAny) {
+ context.report({ node, messageId: 'conditionErrorAny' });
+ }
+ return;
}
// other
- else {
- messageId = 'conditionErrorOther';
- }
- if (messageId != null) {
- context.report({ node, messageId });
- return true;
- }
- return false;
+ context.report({ node, messageId: 'conditionErrorOther' });
}
/**
* Check union variants for the types we care about
@@ -225,7 +237,7 @@
if (types.some(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.StringLike))) {
variantTypes.add('string');
}
- if (types.some(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.NumberLike))) {
+ if (types.some(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.NumberLike | ts.TypeFlags.BigIntLike))) {
variantTypes.add('number');
}
if (types.some(type => !tsutils.isTypeFlagSet(type, ts.TypeFlags.Null |
@@ -234,12 +246,13 @@
ts.TypeFlags.BooleanLike |
ts.TypeFlags.StringLike |
ts.TypeFlags.NumberLike |
+ ts.TypeFlags.BigIntLike |
ts.TypeFlags.Any |
ts.TypeFlags.Unknown |
ts.TypeFlags.Never))) {
variantTypes.add('object');
}
- if (types.some(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.Any | ts.TypeFlags.Unknown))) {
+ if (types.some(type => util.isTypeAnyType(type) || util.isTypeUnknownType(type))) {
variantTypes.add('any');
}
if (types.some(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.Never))) {
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map
index e07cb44..0c4d8df 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map
@@ -1 +1 @@
-{"version":3,"file":"strict-boolean-expressions.js","sourceRoot":"","sources":["../../src/rules/strict-boolean-expressions.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,+CAAiC;AACjC,iDAAmC;AACnC,8CAAgC;AAsBhC,kBAAe,IAAI,CAAC,UAAU,CAAqB;IACjD,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,oDAAoD;YACjE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,SAAS,EAAE;wBACT,IAAI,EAAE,SAAS;qBAChB;oBACD,aAAa,EAAE;wBACb,IAAI,EAAE,SAAS;qBAChB;oBACD,SAAS,EAAE;wBACT,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,QAAQ,EAAE;YACR,mBAAmB,EACjB,mCAAmC;gBACnC,mCAAmC;YACrC,iBAAiB,EACf,uCAAuC;gBACvC,kDAAkD;YACpD,qBAAqB,EACnB,2CAA2C;gBAC3C,gCAAgC;YAClC,6BAA6B,EAC3B,oDAAoD;gBACpD,4CAA4C;YAC9C,oBAAoB,EAClB,0CAA0C;gBAC1C,6CAA6C;YAC/C,4BAA4B,EAC1B,mDAAmD;gBACnD,mDAAmD;YACr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AC;IACH,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"strict-boolean-expressions.js","sourceRoot":"","sources":["../../src/rules/strict-boolean-expressions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,+CAAiC;AACjC,iDAAmC;AACnC,8CAAgC;AA4BhC,kBAAe,IAAI,CAAC,UAAU,CAAqB;IACjD,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,oDAAoD;YACjE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBAChC,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBAChC,mBAAmB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBACxC,oBAAoB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBACzC,mBAAmB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBACxC,mBAAmB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBACxC,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBAC7B,sDAAsD,EAAE;wBACtD,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,QAAQ,EAAE;YACR,mBAAmB,EACjB,mCAAmC;gBACnC,mCAAmC;YACrC,iBAAiB,EACf,uCAAuC;gBACvC,kDAAkD;YACpD,qBAAqB,EACnB,2CAA2C;gBAC3C,gCAAgC;YAClC,6BAA6B,EAC3B,oDAAoD;gBACpD,4CAA4C;YAC9C,oBAAoB,EAClB,0CAA0C;gBAC1C,6CAA6C;YAC/C,4BAA4B,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CAAC,SAAS,CAAC,UAAU;gBACvB,EAAE,CAAC,SAAS,CAAC,GAAG;gBAChB,EAAE,CAAC,SAAS,CAAC,OAAO;gBACpB,EAAE,CAAC,SAAS,CAAC,KAAK,CACrB,CACJ,EACD;gBACA,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;aAC5B;YAED,IACE,KAAK,CAAC,IAAI,CACR,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CACjE,EACD;gBACA,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;aACzB;YAED,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE;gBACvE,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;aAC3B;YAED,OAAO,YAAY,CAAC;QACtB,CAAC;IACH,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js
index 3d927b4..92ea5fa 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js
@@ -1,16 +1,27 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const ts = __importStar(require("typescript"));
const util_1 = require("../util");
const tsutils_1 = require("tsutils");
-const eslint_utils_1 = require("eslint-utils");
exports.default = util_1.createRule({
name: 'switch-exhaustiveness-check',
meta: {
@@ -19,12 +30,13 @@
description: 'Exhaustiveness checking in switch with union type',
category: 'Best Practices',
recommended: false,
+ suggestion: true,
requiresTypeChecking: true,
},
schema: [],
messages: {
switchIsNotExhaustive: 'Switch is not exhaustive. Cases not matched: {{missingBranches}}',
- addMissingCases: 'Add branches for missing cases',
+ addMissingCases: 'Add branches for missing cases.',
},
},
defaultOptions: [],
@@ -32,11 +44,27 @@
const sourceCode = context.getSourceCode();
const service = util_1.getParserServices(context);
const checker = service.program.getTypeChecker();
+ const compilerOptions = service.program.getCompilerOptions();
+ function requiresQuoting(name) {
+ if (name.length === 0) {
+ return true;
+ }
+ if (!ts.isIdentifierStart(name.charCodeAt(0), compilerOptions.target)) {
+ return true;
+ }
+ for (let i = 1; i < name.length; i += 1) {
+ if (!ts.isIdentifierPart(name.charCodeAt(i), compilerOptions.target)) {
+ return true;
+ }
+ }
+ return false;
+ }
function getNodeType(node) {
const tsNode = service.esTreeNodeToTSNodeMap.get(node);
return util_1.getConstrainedTypeAtLocation(checker, tsNode);
}
- function fixSwitch(fixer, node, missingBranchTypes) {
+ function fixSwitch(fixer, node, missingBranchTypes, symbolName) {
+ var _a;
const lastCase = node.cases.length > 0 ? node.cases[node.cases.length - 1] : null;
const caseIndent = lastCase
? ' '.repeat(lastCase.loc.start.column)
@@ -58,7 +86,13 @@
if (missingBranchType.isIntersection()) {
continue;
}
- const caseTest = checker.typeToString(missingBranchType);
+ const missingBranchName = (_a = missingBranchType.getSymbol()) === null || _a === void 0 ? void 0 : _a.escapedName;
+ let caseTest = checker.typeToString(missingBranchType);
+ if (symbolName &&
+ (missingBranchName || missingBranchName === '') &&
+ requiresQuoting(missingBranchName.toString())) {
+ caseTest = `${symbolName}['${missingBranchName}']`;
+ }
const errorMessage = `Not implemented yet: ${caseTest} case`;
missingCases.push(`case ${caseTest}: { throw new Error('${errorMessage}') }`);
}
@@ -69,12 +103,14 @@
return fixer.insertTextAfter(lastCase, `\n${fixString}`);
}
// there were no existing cases
- const openingBrace = sourceCode.getTokenAfter(node.discriminant, eslint_utils_1.isOpeningBraceToken);
- const closingBrace = sourceCode.getTokenAfter(node.discriminant, eslint_utils_1.isClosingBraceToken);
+ const openingBrace = sourceCode.getTokenAfter(node.discriminant, util_1.isOpeningBraceToken);
+ const closingBrace = sourceCode.getTokenAfter(node.discriminant, util_1.isClosingBraceToken);
return fixer.replaceTextRange([openingBrace.range[0], closingBrace.range[1]], ['{', fixString, `${caseIndent}}`].join('\n'));
}
function checkSwitchExhaustive(node) {
+ var _a;
const discriminantType = getNodeType(node.discriminant);
+ const symbolName = (_a = discriminantType.getSymbol()) === null || _a === void 0 ? void 0 : _a.escapedName;
if (discriminantType.isUnion()) {
const unionTypes = tsutils_1.unionTypeParts(discriminantType);
const caseTypes = new Set();
@@ -95,16 +131,19 @@
messageId: 'switchIsNotExhaustive',
data: {
missingBranches: missingBranchTypes
- .map(missingType => tsutils_1.isTypeFlagSet(missingType, ts.TypeFlags.ESSymbolLike)
- ? `typeof ${missingType.symbol.escapedName}`
- : checker.typeToString(missingType))
+ .map(missingType => {
+ var _a;
+ return tsutils_1.isTypeFlagSet(missingType, ts.TypeFlags.ESSymbolLike)
+ ? `typeof ${(_a = missingType.getSymbol()) === null || _a === void 0 ? void 0 : _a.escapedName}`
+ : checker.typeToString(missingType);
+ })
.join(' | '),
},
suggest: [
{
messageId: 'addMissingCases',
fix(fixer) {
- return fixSwitch(fixer, node, missingBranchTypes);
+ return fixSwitch(fixer, node, missingBranchTypes, symbolName === null || symbolName === void 0 ? void 0 : symbolName.toString());
},
},
],
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map
index 0943b0f..0a8b9da 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map
@@ -1 +1 @@
-{"version":3,"file":"switch-exhaustiveness-check.js","sourceRoot":"","sources":["../../src/rules/switch-exhaustiveness-check.ts"],"names":[],"mappings":";;;;;;;;;AACA,+CAAiC;AACjC,kCAIiB;AACjB,qCAAwD;AACxD,+CAAwE;AAExE,kBAAe,iBAAU,CAAC;IACxB,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,mDAAmD;YAChE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,qBAAqB,EACnB,kEAAkE;YACpE,eAAe,EAAE,gCAAgC;SAClD;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAC3C,MAAM,OAAO,GAAG,wBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAEjD,SAAS,WAAW,CAAC,IAAmB;YACtC,MAAM,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,I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C,EAAE;oBACnC,kCAAkC;oBAClC,OAAO;iBACR;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,IAAI,CAAC,YAAY;oBACvB,SAAS,EAAE,uBAAuB;oBAClC,IAAI,EAAE;wBACJ,eAAe,EAAE,kBAAkB;6BAChC,GAAG,CAAC,WAAW,CAAC,EAAE,CACjB,uBAAa,CAAC,WAAW,EAAE,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC;4BACnD,CAAC,CAAC,UAAU,WAAW,CAAC,MAAM,CAAC,WAAW,EAAE;4BAC5C,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,CACtC;6BACA,IAAI,CAAC,KAAK,CAAC;qBACf;oBACD,OAAO,EAAE;wBACP;4BACE,SAAS,EAAE,iBAAiB;4BAC5B,GAAG,CAAC,KAAK;gCACP,OAAO,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,kBAAkB,CAAC,CAAC;4BACpD,CAAC;yBACF;qBACF;iBACF,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,eAAe,EAAE,qBAAqB;SACvC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"switch-exhaustiveness-check.js","sourceRoot":"","sources":["../../src/rules/switch-exhaustiveness-check.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,+CAAiC;AACjC,kCAMiB;AACjB,qCAAwD;AAExD,kBAAe,iBAAU,CAAC;IACxB,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,mDAAmD;YAChE,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,KAAK;YAClB,UAAU,EAAE,IAAI;YAChB,oBAAoB,EAAE,IAAI;SAC3B;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,qBAAqB,EACnB,kEAAkE;YACpE,eAAe,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AAC,GAAG,CAAC,SAAS,CAAC,CACvC,CAAC;gBAEF,IAAI,kBAAkB,CAAC,MAAM,KAAK,CAAC,EAAE;oBACnC,kCAAkC;oBAClC,OAAO;iBACR;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,IAAI,CAAC,YAAY;oBACvB,SAAS,EAAE,uBAAuB;oBAClC,IAAI,EAAE;wBACJ,eAAe,EAAE,kBAAkB;6BAChC,GAAG,CAAC,WAAW,CAAC,EAAE;;4BACjB,OAAA,uBAAa,CAAC,WAAW,EAAE,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC;gCACnD,CAAC,CAAC,UAAU,MAAA,WAAW,CAAC,SAAS,EAAE,0CAAE,WAAW,EAAE;gCAClD,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,CAAA;yBAAA,CACtC;6BACA,IAAI,CAAC,KAAK,CAAC;qBACf;oBACD,OAAO,EAAE;wBACP;4BACE,SAAS,EAAE,iBAAiB;4BAC5B,GAAG,CAAC,KAAK;gCACP,OAAO,SAAS,CACd,KAAK,EACL,IAAI,EACJ,kBAAkB,EAClB,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,QAAQ,GACrB,CAAC;4BACJ,CAAC;yBACF;qBACF;iBACF,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,eAAe,EAAE,qBAAqB;SACvC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js
index 45792ac..943df2e 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map
index 08e29db..3efae8a 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map
@@ -1 +1 @@
-{"version":3,"file":"triple-slash-reference.js","sourceRoot":"","sources":["../../src/rules/triple-slash-reference.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAWhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,wFAAwF;YAC1F,QAAQ,EAAE,gBAAgB;YAC1B,WAAW,EAAE,OAAO;SACrB;QACD,QAAQ,EAAE;YACR,oBAAoB,EAClB,iFAAiF;SACpF;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,GAAG,EAAE;wBACH,IAAI,EAAE,CA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EACjD;4BACA,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI,EAAE,OAAO;gCACb,SAAS,EAAE,sBAAsB;gCACjC,IAAI,EAAE;oCACJ,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC;iCAC3B;6BACF,CAAC,CAAC;4BACH,OAAO;yBACR;wBACD,IAAI,eAAe,CAAC,CAAC,CAAC,KAAK,OAAO,IAAI,KAAK,KAAK,eAAe,EAAE;4BAC/D,UAAU,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;yBAC9D;qBACF;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js
index fda4292..fc017d7 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -18,23 +30,22 @@
additionalProperties: false,
};
function createRules(options) {
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
- const globals = Object.assign(Object.assign({}, (((_a = options) === null || _a === void 0 ? void 0 : _a.before) !== undefined ? { before: options.before } : {})), (((_b = options) === null || _b === void 0 ? void 0 : _b.after) !== undefined ? { after: options.after } : {}));
- const override = (_d = (_c = options) === null || _c === void 0 ? void 0 : _c.overrides, (_d !== null && _d !== void 0 ? _d : {}));
- const colon = Object.assign(Object.assign({ before: false, after: true }, globals), (_e = override) === null || _e === void 0 ? void 0 : _e.colon);
- const arrow = Object.assign(Object.assign({ before: true, after: true }, globals), (_f = override) === null || _f === void 0 ? void 0 : _f.arrow);
+ var _a;
+ const globals = Object.assign(Object.assign({}, ((options === null || options === void 0 ? void 0 : options.before) !== undefined ? { before: options.before } : {})), ((options === null || options === void 0 ? void 0 : options.after) !== undefined ? { after: options.after } : {}));
+ const override = (_a = options === null || options === void 0 ? void 0 : options.overrides) !== null && _a !== void 0 ? _a : {};
+ const colon = Object.assign(Object.assign({ before: false, after: true }, globals), override === null || override === void 0 ? void 0 : override.colon);
+ const arrow = Object.assign(Object.assign({ before: true, after: true }, globals), override === null || override === void 0 ? void 0 : override.arrow);
return {
colon: colon,
arrow: arrow,
- variable: Object.assign(Object.assign({}, colon), (_g = override) === null || _g === void 0 ? void 0 : _g.variable),
- property: Object.assign(Object.assign({}, colon), (_h = override) === null || _h === void 0 ? void 0 : _h.property),
- parameter: Object.assign(Object.assign({}, colon), (_j = override) === null || _j === void 0 ? void 0 : _j.parameter),
- returnType: Object.assign(Object.assign({}, colon), (_k = override) === null || _k === void 0 ? void 0 : _k.returnType),
+ variable: Object.assign(Object.assign({}, colon), override === null || override === void 0 ? void 0 : override.variable),
+ property: Object.assign(Object.assign({}, colon), override === null || override === void 0 ? void 0 : override.property),
+ parameter: Object.assign(Object.assign({}, colon), override === null || override === void 0 ? void 0 : override.parameter),
+ returnType: Object.assign(Object.assign({}, colon), override === null || override === void 0 ? void 0 : override.returnType),
};
}
function getIdentifierRules(rules, node) {
- var _a;
- const scope = (_a = node) === null || _a === void 0 ? void 0 : _a.parent;
+ const scope = node === null || node === void 0 ? void 0 : node.parent;
if (util_1.isVariableDeclarator(scope)) {
return rules.variable;
}
@@ -46,9 +57,9 @@
}
}
function getRules(rules, node) {
- var _a, _b;
- const scope = (_b = (_a = node) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.parent;
- if (util_1.isTSFunctionType(scope)) {
+ var _a;
+ const scope = (_a = node === null || node === void 0 ? void 0 : node.parent) === null || _a === void 0 ? void 0 : _a.parent;
+ if (util_1.isTSFunctionType(scope) || util_1.isTSConstructorType(scope)) {
return rules.arrow;
}
else if (util_1.isIdentifier(scope)) {
@@ -71,7 +82,7 @@
docs: {
description: 'Require consistent spacing around type annotations',
category: 'Stylistic Issues',
- recommended: 'error',
+ recommended: false,
},
fixable: 'whitespace',
messages: {
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js.map
index 932308a..fb00864 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js.map
@@ -1 +1 @@
-{"version":3,"file":"type-annotation-spacing.js","sourceRoot":"","sources":["../../src/rules/type-annotation-spacing.ts"],"names":[],"mappings":";;;;;;;;;AACA,8CAAgC;AAChC,kCAOiB;AA6BjB,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC3B,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC3B;IACD,oBAAoB,EAAE,KAA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AE;gBACjC,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,oBAAoB;oBAC1B,SAAS,EAAE,qBAAqB;oBAChC,IAAI,EAAE;wBACJ,IAAI;qBACL;oBACD,GAAG,CAAC,KAAK;wBACP,OAAO,KAAK,CAAC,eAAe,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;oBACnD,CAAC;iBACF,CAAC,CAAC;aACJ;iBAAM,IAAI,CAAC,MAAM,IAAI,aAAa,GAAG,CAAC,EAAE;gBACvC,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,oBAAoB;oBAC1B,SAAS,EAAE,uBAAuB;oBAClC,IAAI,EAAE;wBACJ,IAAI;qBACL;oBACD,GAAG,CAAC,KAAK;wBACP,OAAO,KAAK,CAAC,WAAW,CAAC;4BACvB,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;4BACtB,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC;yBAC9B,CAAC,CAAC;oBACL,CAAC;iBACF,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,YAAY,CAAC,IAAI;gBACf,IAAI,IAAI,CAAC,cAAc,EAAE;oBACvB,0BAA0B,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;iBACjD;YACH,CAAC;YACD,gBAAgB,CAAC,IAAI;gBACnB,0BAA0B,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YAClD,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"type-annotation-spacing.js","sourceRoot":"","sources":["../../src/rules/type-annotation-spacing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA,8CAAgC;AAChC,kCAQiB;AA6BjB,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC3B,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAA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;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js
index 6b42b03..fb4c63c 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -18,8 +30,8 @@
recommended: false,
},
messages: {
- expectedTypedef: 'expected a type annotation',
- expectedTypedefNamed: 'expected {{name}} to have a type annotation',
+ expectedTypedef: 'Expected a type annotation.',
+ expectedTypedefNamed: 'Expected {{name}} to have a type annotation.',
},
schema: [
{
@@ -40,10 +52,14 @@
},
defaultOptions: [
{
- ["arrowParameter" /* ArrowParameter */]: true,
- ["memberVariableDeclaration" /* MemberVariableDeclaration */]: true,
- ["parameter" /* Parameter */]: true,
- ["propertyDeclaration" /* PropertyDeclaration */]: true,
+ ["arrayDestructuring" /* ArrayDestructuring */]: false,
+ ["arrowParameter" /* ArrowParameter */]: false,
+ ["memberVariableDeclaration" /* MemberVariableDeclaration */]: false,
+ ["objectDestructuring" /* ObjectDestructuring */]: false,
+ ["parameter" /* Parameter */]: false,
+ ["propertyDeclaration" /* PropertyDeclaration */]: false,
+ ["variableDeclaration" /* VariableDeclaration */]: false,
+ ["variableDeclarationIgnoreFunction" /* VariableDeclarationIgnoreFunction */]: false,
},
],
create(context, [options]) {
@@ -107,6 +123,11 @@
}
return {
ArrayPattern(node) {
+ var _a;
+ if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.RestElement &&
+ node.parent.typeAnnotation) {
+ return;
+ }
if (options["arrayDestructuring" /* ArrayDestructuring */] &&
!node.typeAnnotation &&
!isForOfStatementContext(node)) {
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js.map
index a78b59c..bc20808 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js.map
@@ -1 +1 @@
-{"version":3,"file":"typedef.js","sourceRoot":"","sources":["../../src/rules/typedef.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAiBhC,kBAAe,IAAI,CAAC,UAAU,CAAwB;IACpD,IAAI,EAAE,SAAS;IACf,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,oCAAoC;YACjD,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,eAAe,EAAE,4BAA4B;YAC7C,oBAAoB,EAAE,6CAA6C;SACpE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,+CAA+B,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBACpD,uCAA2B,EAAE,EAAE,IAAI,EAAE,SAA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I;gBACrB,IACE,CAAC,OAAO,iDAAgC;oBACxC,IAAI,CAAC,EAAE,CAAC,cAAc;oBACtB,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,mCAAc,CAAC,YAAY;wBAC3C,CAAC,OAAO,+CAA+B,CAAC;oBAC1C,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,mCAAc,CAAC,aAAa;wBAC5C,CAAC,OAAO,iDAAgC,CAAC;oBAC3C,CAAC,IAAI,CAAC,IAAI,IAAI,mCAAmC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAC7D;oBACA,OAAO;iBACR;gBAED,IAAI,OAAO,GAA8B,IAAI,CAAC,MAAM,CAAC;gBACrD,OAAO,OAAO,EAAE;oBACd,QAAQ,OAAO,CAAC,IAAI,EAAE;wBACpB,KAAK,mCAAc,CAAC,mBAAmB;4BACrC,uBAAuB;4BACvB,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;4BACzB,MAAM;wBACR,KAAK,mCAAc,CAAC,cAAc,CAAC;wBACnC,KAAK,mCAAc,CAAC,cAAc;4BAChC,4CAA4C;4BAC5C,OAAO;wBACT;4BACE,kBAAkB;4BAClB,OAAO,GAAG,SAAS,CAAC;4BACpB,MAAM;qBACT;iBACF;gBAED,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;YACrC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"typedef.js","sourceRoot":"","sources":["../../src/rules/typedef.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAiBhC,kBAAe,IAAI,CAAC,UAAU,CAAwB;IACpD,IAAI,EAAE,SAAS;IACf,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,oCAAoC;YACjD,QAAQ,EAAE,kBAAkB;YAC5B,WAAW,EAAE,KAAK;SAC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SAAS,CAAC;4BACpB,MAAM;qBACT;iBACF;gBAED,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;YACrC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js
index 7d166b5..88777e0 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -75,6 +87,11 @@
'Intl',
];
const nativelyBoundMembers = SUPPORTED_GLOBALS.map(namespace => {
+ if (!(namespace in global)) {
+ // node.js might not have namespaces like Intl depending on compilation options
+ // https://nodejs.org/api/intl.html#intl_options_for_building_node_js
+ return [];
+ }
const object = global[namespace];
return Object.getOwnPropertyNames(object)
.filter(name => !name.startsWith('_') &&
@@ -83,7 +100,7 @@
})
.reduce((arr, names) => arr.concat(names), [])
.filter(name => !nativelyNotBoundMembers.has(name));
-const isMemberNotImported = (symbol, currentSourceFile) => {
+const isNotImported = (symbol, currentSourceFile) => {
const { valueDeclaration } = symbol;
if (!valueDeclaration) {
// working around https://github.com/microsoft/TypeScript/issues/31294
@@ -129,14 +146,14 @@
const checker = parserServices.program.getTypeChecker();
const currentSourceFile = parserServices.program.getSourceFile(context.getFilename());
return {
- 'MemberExpression, OptionalMemberExpression'(node) {
+ MemberExpression(node) {
if (isSafeUse(node)) {
return;
}
const objectSymbol = checker.getSymbolAtLocation(parserServices.esTreeNodeToTSNodeMap.get(node.object));
if (objectSymbol &&
nativelyBoundMembers.includes(getMemberFullName(node)) &&
- isMemberNotImported(objectSymbol, currentSourceFile)) {
+ isNotImported(objectSymbol, currentSourceFile)) {
return;
}
const originalNode = parserServices.esTreeNodeToTSNodeMap.get(node);
@@ -148,16 +165,48 @@
});
}
},
+ 'VariableDeclarator, AssignmentExpression'(node) {
+ const [idNode, initNode] = node.type === experimental_utils_1.AST_NODE_TYPES.VariableDeclarator
+ ? [node.id, node.init]
+ : [node.left, node.right];
+ if (initNode && idNode.type === experimental_utils_1.AST_NODE_TYPES.ObjectPattern) {
+ const tsNode = parserServices.esTreeNodeToTSNodeMap.get(initNode);
+ const rightSymbol = checker.getSymbolAtLocation(tsNode);
+ const initTypes = checker.getTypeAtLocation(tsNode);
+ const notImported = rightSymbol && isNotImported(rightSymbol, currentSourceFile);
+ idNode.properties.forEach(property => {
+ if (property.type === experimental_utils_1.AST_NODE_TYPES.Property &&
+ property.key.type === experimental_utils_1.AST_NODE_TYPES.Identifier) {
+ if (notImported &&
+ util.isIdentifier(initNode) &&
+ nativelyBoundMembers.includes(`${initNode.name}.${property.key.name}`)) {
+ return;
+ }
+ const symbol = initTypes.getProperty(property.key.name);
+ if (symbol && isDangerousMethod(symbol, ignoreStatic)) {
+ context.report({
+ messageId: 'unbound',
+ node,
+ });
+ }
+ }
+ });
+ }
+ },
};
},
});
function isDangerousMethod(symbol, ignoreStatic) {
+ var _a;
const { valueDeclaration } = symbol;
if (!valueDeclaration) {
// working around https://github.com/microsoft/TypeScript/issues/31294
return false;
}
switch (valueDeclaration.kind) {
+ case ts.SyntaxKind.PropertyDeclaration:
+ return (((_a = valueDeclaration.initializer) === null || _a === void 0 ? void 0 : _a.kind) ===
+ ts.SyntaxKind.FunctionExpression);
case ts.SyntaxKind.MethodDeclaration:
case ts.SyntaxKind.MethodSignature:
return !(ignoreStatic &&
@@ -166,28 +215,31 @@
return false;
}
function isSafeUse(node) {
- var _a;
const parent = node.parent;
- switch ((_a = parent) === null || _a === void 0 ? void 0 : _a.type) {
+ switch (parent === null || parent === void 0 ? void 0 : parent.type) {
case experimental_utils_1.AST_NODE_TYPES.IfStatement:
case experimental_utils_1.AST_NODE_TYPES.ForStatement:
case experimental_utils_1.AST_NODE_TYPES.MemberExpression:
- case experimental_utils_1.AST_NODE_TYPES.OptionalMemberExpression:
case experimental_utils_1.AST_NODE_TYPES.SwitchStatement:
case experimental_utils_1.AST_NODE_TYPES.UpdateExpression:
case experimental_utils_1.AST_NODE_TYPES.WhileStatement:
return true;
case experimental_utils_1.AST_NODE_TYPES.CallExpression:
- case experimental_utils_1.AST_NODE_TYPES.OptionalCallExpression:
return parent.callee === node;
case experimental_utils_1.AST_NODE_TYPES.ConditionalExpression:
return parent.test === node;
case experimental_utils_1.AST_NODE_TYPES.TaggedTemplateExpression:
return parent.tag === node;
case experimental_utils_1.AST_NODE_TYPES.UnaryExpression:
- return parent.operator === 'typeof';
+ // the first case is safe for obvious
+ // reasons. The second one is also fine
+ // since we're returning something falsy
+ return ['typeof', '!', 'void', 'delete'].includes(parent.operator);
case experimental_utils_1.AST_NODE_TYPES.BinaryExpression:
return ['instanceof', '==', '!=', '===', '!=='].includes(parent.operator);
+ case experimental_utils_1.AST_NODE_TYPES.AssignmentExpression:
+ return parent.operator === '=' && node === parent.left;
+ case experimental_utils_1.AST_NODE_TYPES.ChainExpression:
case experimental_utils_1.AST_NODE_TYPES.TSNonNullExpression:
case experimental_utils_1.AST_NODE_TYPES.TSAsExpression:
case experimental_utils_1.AST_NODE_TYPES.TSTypeAssertion:
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map
index 81ceae7..a42745e 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map
@@ -1 +1 @@
-{"version":3,"file":"unbound-method.js","sourceRoot":"","sources":["../../src/rules/unbound-method.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,iDAAmC;AACnC,+CAAiC;AACjC,8CAAgC;AAchC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC;IACtC,aAAa;IACb,cAAc;IACd,iBAAiB;IACjB,gBAAgB;IAChB,oBAAoB;IACpB,yBAAyB;IACzB,uBAAuB;IACvB,wBAAwB;IACxB,wBAAwB;IACxB,aAAa;IACb,kCAAkC;IAClC,wBAAwB;IACxB,aAAa;IACb,sBAAsB;IACtB,iBAAiB;IACjB,2BAA2B;IAC3B,aAAa;IACb,wBAAwB;CACzB,CAAC,CAAC;AACH,MAAM,iBAAiB,GAAG;IACxB,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,OAAO;IACP,MAAM;IACN,UAAU;IACV,SAAS;IACT,SAAS;IACT,SAAS;IACT,MAAM;IACN,MAAM;IACN,MAAM;CACE,CAAC;AACX,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;IAC7D,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;IACjC,OAAO,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC;SACtC,MA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I,KAAK,IAAI,CAAC;QAE9B,KAAK,mCAAc,CAAC,wBAAwB;YAC1C,OAAO,MAAM,CAAC,GAAG,KAAK,IAAI,CAAC;QAE7B,KAAK,mCAAc,CAAC,eAAe;YACjC,OAAO,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAC;QAEtC,KAAK,mCAAc,CAAC,gBAAgB;YAClC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAE5E,KAAK,mCAAc,CAAC,mBAAmB,CAAC;QACxC,KAAK,mCAAc,CAAC,cAAc,CAAC;QACnC,KAAK,mCAAc,CAAC,eAAe;YACjC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;QAE3B,KAAK,mCAAc,CAAC,iBAAiB;YACnC,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,EAAE;gBACpD,qEAAqE;gBACrE,OAAO,IAAI,CAAC;aACb;YAED,oFAAoF;YACpF,0CAA0C;YAC1C,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;KAC5B;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
\ No newline at end of file
+{"version":3,"file":"unbound-method.js","sourceRoot":"","sources":["../../src/rules/unbound-method.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,iDAAmC;AACnC,+CAAiC;AACjC,8CAAgC;AAchC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC;IACtC,aAAa;IACb,cAAc;IACd,iBAAiB;IACjB,gBAAgB;IAChB,oBAAoB;IACpB,yBAAyB;IACzB,uBAAuB;IACvB,wBAAwB;IACxB,wBAAwB;IACxB,aAAa;IACb,kCAAkC;IAClC,wBAAwB;IACxB,aAAa;IACb,sBAAsB;IACtB,iB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,CAAC;QAE5E,KAAK,mCAAc,CAAC,oBAAoB;YACtC,OAAO,MAAM,CAAC,QAAQ,KAAK,GAAG,IAAI,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC;QAEzD,KAAK,mCAAc,CAAC,eAAe,CAAC;QACpC,KAAK,mCAAc,CAAC,mBAAmB,CAAC;QACxC,KAAK,mCAAc,CAAC,cAAc,CAAC;QACnC,KAAK,mCAAc,CAAC,eAAe;YACjC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;QAE3B,KAAK,mCAAc,CAAC,iBAAiB;YACnC,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,EAAE;gBACpD,qEAAqE;gBACrE,OAAO,IAAI,CAAC;aACb;YAED,oFAAoF;YACpF,0CAA0C;YAC1C,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;KAC5B;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js
index 1ce3a0c..c20553a 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js
@@ -1,9 +1,21 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
@@ -40,7 +52,6 @@
return `${overloads} can be combined into one signature`;
}
function addFailures(failures) {
- var _a, _b;
for (const failure of failures) {
const { unify, only2 } = failure;
switch (unify.kind) {
@@ -58,8 +69,8 @@
messageId: 'singleParameterDifference',
data: {
failureStringStart: failureStringStart(lineOfOtherOverload),
- type1: sourceCode.getText((_a = typeAnnotation0) === null || _a === void 0 ? void 0 : _a.typeAnnotation),
- type2: sourceCode.getText((_b = typeAnnotation1) === null || _b === void 0 ? void 0 : _b.typeAnnotation),
+ type1: sourceCode.getText(typeAnnotation0 === null || typeAnnotation0 === void 0 ? void 0 : typeAnnotation0.typeAnnotation),
+ type2: sourceCode.getText(typeAnnotation1 === null || typeAnnotation1 === void 0 ? void 0 : typeAnnotation1.typeAnnotation),
},
node: p1,
});
@@ -301,7 +312,7 @@
currentScope = scopes.pop();
}
function addOverload(signature, key, containingNode) {
- key = (key !== null && key !== void 0 ? key : getOverloadKey(signature));
+ key = key !== null && key !== void 0 ? key : getOverloadKey(signature);
if (currentScope &&
(containingNode || signature).parent === currentScope.parent) {
const overloads = currentScope.overloads.get(key);
@@ -328,9 +339,9 @@
TSTypeLiteral: createScope,
// collect overloads
TSDeclareFunction(node) {
- var _a, _b, _c;
+ var _a, _b;
const exportingNode = getExportingNode(node);
- addOverload(node, (_b = (_a = node.id) === null || _a === void 0 ? void 0 : _a.name, (_b !== null && _b !== void 0 ? _b : (_c = exportingNode) === null || _c === void 0 ? void 0 : _c.type)), exportingNode);
+ addOverload(node, (_b = (_a = node.id) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : exportingNode === null || exportingNode === void 0 ? void 0 : exportingNode.type, exportingNode);
},
TSCallSignatureDeclaration: addOverload,
TSConstructSignatureDeclaration: addOverload,
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map
index 395fdf6..ce84d5c 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map
@@ -1 +1 @@
-{"version":3,"file":"unified-signatures.js","sourceRoot":"","sources":["../../src/rules/unified-signatures.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAiDhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,2GAA2G;YAC7G,QAAQ,EAAE,WAAW;YACrB,oCAAoC;YACpC,WAAW,EAAE,KAAK;SACnB;QACD,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE;YACR,qBAAqB,EAAE,+CAA+C;YACtE,uBAAuB,EACrB,oDAAoD;YACtD,yBAAyB,EACvB,wDAAwD;SAC3D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C,wEAAwE;QACxE,UAAU;QACV,wEAAwE;QAExE,SAAS,kBAAkB,CAAC,SAAkB;YAC5C,wEAAwE;YACxE,MAAM,SAAS,GACb,SAAS,KAAK,SAAS;gBACrB,CAAC,CAAC,iBAAiB;gBACnB,CAAC,CAAC,qCAAqC,SAAS,EAAE,CAAC;YACvD,OAAO,GAAG,SAAS,qCAAqC,CAAC;QAC3D,CAAC;QAED,SAAS,WAAW,CAAC,QAAmB;;YACtC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;gBAC9B,MAAM,EAAE,KAAK,EAAE,KAAK,EAA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OAAO,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,UAAU,CAAC;AACjD,CAAC"}
\ No newline at end of file
+{"version":3,"file":"unified-signatures.js","sourceRoot":"","sources":["../../src/rules/unified-signatures.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,8EAG+C;AAC/C,8CAAgC;AAiDhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,2GAA2G;YAC7G,QAAQ,EAAE,WAAW;YACrB,oCAAoC;YACpC,WAAW,EAAE,KAAK;SACnB;QACD,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE;YACR,qBAAqB,EAAE,+CAA+C;YACtE,uBAAuB,EACrB,oDAAoD;YACtD,yBAAyB,EACvB,wDAAwD;SAC3D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C,wEAAwE;QACxE,UAAU;QACV,wEAAwE;QAExE,SAAS,kBAAkB,CAAC,SAAkB;YAC5C,wEAAwE;YACxE,MAAM,SAAS,GACb,SAAS,KAAK,SAAS;gBACrB,CAAC,CAAC,iBAAiB;gBACnB,CAAC,CAAC,qCAAqC,SAAS,EAAE,CAAC;YACvD,OAAO,GAAG,SAAS,qCAAqC,CAAC;QAC3D,CAAC;QAED,SAAS,WAAW,CAAC,QAAmB;YACtC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;gBAC9B,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;gBACjC,QAAQ,KAAK,CAAC,IAAI,EAAE;oBAClB,KAAK,6BAA6B,CAAC,CAAC;wBAClC,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;wBACzB,MAAM,mBAAmB,GAAG,KAA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util/astUtils.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js
index 07fdb69..249bf79 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js
@@ -1,161 +1,15 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __exportStar = (this && this.__exportStar) || function(m, exports) {
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
+};
Object.defineProperty(exports, "__esModule", { value: true });
-const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
-const LINEBREAK_MATCHER = /\r\n|[\r\n\u2028\u2029]/;
-exports.LINEBREAK_MATCHER = LINEBREAK_MATCHER;
-function isOptionalChainPunctuator(token) {
- return token.type === experimental_utils_1.AST_TOKEN_TYPES.Punctuator && token.value === '?.';
-}
-exports.isOptionalChainPunctuator = isOptionalChainPunctuator;
-function isNotOptionalChainPunctuator(token) {
- return !isOptionalChainPunctuator(token);
-}
-exports.isNotOptionalChainPunctuator = isNotOptionalChainPunctuator;
-function isNonNullAssertionPunctuator(token) {
- return token.type === experimental_utils_1.AST_TOKEN_TYPES.Punctuator && token.value === '!';
-}
-exports.isNonNullAssertionPunctuator = isNonNullAssertionPunctuator;
-function isNotNonNullAssertionPunctuator(token) {
- return !isNonNullAssertionPunctuator(token);
-}
-exports.isNotNonNullAssertionPunctuator = isNotNonNullAssertionPunctuator;
-/**
- * Returns true if and only if the node represents: foo?.() or foo.bar?.()
- */
-function isOptionalOptionalChain(node) {
- return (node.type === experimental_utils_1.AST_NODE_TYPES.OptionalCallExpression &&
- // this flag means the call expression itself is option
- // i.e. it is foo.bar?.() and not foo?.bar()
- node.optional);
-}
-exports.isOptionalOptionalChain = isOptionalOptionalChain;
-/**
- * Returns true if and only if the node represents logical OR
- */
-function isLogicalOrOperator(node) {
- return (node.type === experimental_utils_1.AST_NODE_TYPES.LogicalExpression && node.operator === '||');
-}
-exports.isLogicalOrOperator = isLogicalOrOperator;
-/**
- * Determines whether two adjacent tokens are on the same line
- */
-function isTokenOnSameLine(left, right) {
- return left.loc.end.line === right.loc.start.line;
-}
-exports.isTokenOnSameLine = isTokenOnSameLine;
-/**
- * Checks if a node is a type assertion:
- * ```
- * x as foo
- * <foo>x
- * ```
- */
-function isTypeAssertion(node) {
- if (!node) {
- return false;
- }
- return (node.type === experimental_utils_1.AST_NODE_TYPES.TSAsExpression ||
- node.type === experimental_utils_1.AST_NODE_TYPES.TSTypeAssertion);
-}
-exports.isTypeAssertion = isTypeAssertion;
-function isVariableDeclarator(node) {
- var _a;
- return ((_a = node) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.VariableDeclarator;
-}
-exports.isVariableDeclarator = isVariableDeclarator;
-function isFunction(node) {
- if (!node) {
- return false;
- }
- return [
- experimental_utils_1.AST_NODE_TYPES.ArrowFunctionExpression,
- experimental_utils_1.AST_NODE_TYPES.FunctionDeclaration,
- experimental_utils_1.AST_NODE_TYPES.FunctionExpression,
- ].includes(node.type);
-}
-exports.isFunction = isFunction;
-function isFunctionType(node) {
- if (!node) {
- return false;
- }
- return [
- experimental_utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration,
- experimental_utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration,
- experimental_utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,
- experimental_utils_1.AST_NODE_TYPES.TSFunctionType,
- experimental_utils_1.AST_NODE_TYPES.TSMethodSignature,
- ].includes(node.type);
-}
-exports.isFunctionType = isFunctionType;
-function isFunctionOrFunctionType(node) {
- return isFunction(node) || isFunctionType(node);
-}
-exports.isFunctionOrFunctionType = isFunctionOrFunctionType;
-function isTSFunctionType(node) {
- var _a;
- return ((_a = node) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.TSFunctionType;
-}
-exports.isTSFunctionType = isTSFunctionType;
-function isClassOrTypeElement(node) {
- if (!node) {
- return false;
- }
- return [
- // ClassElement
- experimental_utils_1.AST_NODE_TYPES.ClassProperty,
- experimental_utils_1.AST_NODE_TYPES.FunctionExpression,
- experimental_utils_1.AST_NODE_TYPES.MethodDefinition,
- experimental_utils_1.AST_NODE_TYPES.TSAbstractClassProperty,
- experimental_utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition,
- experimental_utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,
- experimental_utils_1.AST_NODE_TYPES.TSIndexSignature,
- // TypeElement
- experimental_utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration,
- experimental_utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration,
- // AST_NODE_TYPES.TSIndexSignature,
- experimental_utils_1.AST_NODE_TYPES.TSMethodSignature,
- experimental_utils_1.AST_NODE_TYPES.TSPropertySignature,
- ].includes(node.type);
-}
-exports.isClassOrTypeElement = isClassOrTypeElement;
-/**
- * Checks if a node is a constructor method.
- */
-function isConstructor(node) {
- var _a;
- return (((_a = node) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.MethodDefinition &&
- node.kind === 'constructor');
-}
-exports.isConstructor = isConstructor;
-/**
- * Checks if a node is a setter method.
- */
-function isSetter(node) {
- return (!!node &&
- (node.type === experimental_utils_1.AST_NODE_TYPES.MethodDefinition ||
- node.type === experimental_utils_1.AST_NODE_TYPES.Property) &&
- node.kind === 'set');
-}
-exports.isSetter = isSetter;
-function isIdentifier(node) {
- var _a;
- return ((_a = node) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.Identifier;
-}
-exports.isIdentifier = isIdentifier;
-/**
- * Checks if a node represents an `await …` expression.
- */
-function isAwaitExpression(node) {
- var _a;
- return ((_a = node) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_NODE_TYPES.AwaitExpression;
-}
-exports.isAwaitExpression = isAwaitExpression;
-/**
- * Checks if a possible token is the `await` keyword.
- */
-function isAwaitKeyword(node) {
- var _a;
- return ((_a = node) === null || _a === void 0 ? void 0 : _a.type) === experimental_utils_1.AST_TOKEN_TYPES.Identifier && node.value === 'await';
-}
-exports.isAwaitKeyword = isAwaitKeyword;
+// deeply re-export, for convenience
+__exportStar(require("@typescript-eslint/experimental-utils/dist/ast-utils"), exports);
//# sourceMappingURL=astUtils.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map
index a203039..872e04e 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map
@@ -1 +1 @@
-{"version":3,"file":"astUtils.js","sourceRoot":"","sources":["../../src/util/astUtils.ts"],"names":[],"mappings":";;AAAA,8EAI+C;AAE/C,MAAM,iBAAiB,GAAG,yBAAyB,CAAC;AA6OlD,8CAAiB;AA3OnB,SAAS,yBAAyB,CAChC,KAAwC;IAExC,OAAO,KAAK,CAAC,IAAI,KAAK,oCAAe,CAAC,UAAU,IAAI,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC;AAC3E,CAAC;AAgOC,8DAAyB;AA/N3B,SAAS,4BAA4B,CACnC,KAAwC;IAExC,OAAO,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC;AAC3C,CAAC;AA0NC,oEAA4B;AAxN9B,SAAS,4BAA4B,CACnC,KAAwC;IAExC,OAAO,KAAK,CAAC,IAAI,KAAK,oCAAe,CAAC,UAAU,IAAI,KAAK,CAAC,KAAK,KAAK,GAAG,CAAC;AAC1E,CAAC;AAkNC,oEAA4B;AAjN9B,SAAS,+BAA+B,CACtC,KAAwC;IAEx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;AAtDtB;;GAEG;AACH,SAAS,aAAa,CACpB,IAA+B;;IAE/B,OAAO,CACL,OAAA,IAAI,0CAAE,IAAI,MAAK,mCAAc,CAAC,gBAAgB;QAC9C,IAAI,CAAC,IAAI,KAAK,aAAa,CAC5B,CAAC;AACJ,CAAC;AA2CC,sCAAa;AAzCf;;GAEG;AACH,SAAS,QAAQ,CACf,IAA+B;IAE/B,OAAO,CACL,CAAC,CAAC,IAAI;QACN,CAAC,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,gBAAgB;YAC5C,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,QAAQ,CAAC;QACxC,IAAI,CAAC,IAAI,KAAK,KAAK,CACpB,CAAC;AACJ,CAAC;AAyCC,4BAAQ;AAvCV,SAAS,YAAY,CACnB,IAA+B;;IAE/B,OAAO,OAAA,IAAI,0CAAE,IAAI,MAAK,mCAAc,CAAC,UAAU,CAAC;AAClD,CAAC;AA4BC,oCAAY;AA1Bd;;GAEG;AACH,SAAS,iBAAiB,CACxB,IAAsC;;IAEtC,OAAO,OAAA,IAAI,0CAAE,IAAI,MAAK,mCAAc,CAAC,eAAe,CAAC;AACvD,CAAC;AAYC,8CAAiB;AAVnB;;GAEG;AACH,SAAS,cAAc,CACrB,IAA0D;;IAE1D,OAAO,OAAA,IAAI,0CAAE,IAAI,MAAK,oCAAe,CAAC,UAAU,IAAI,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;AAC7E,CAAC;AAIC,wCAAc"}
\ No newline at end of file
+{"version":3,"file":"astUtils.js","sourceRoot":"","sources":["../../src/util/astUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAoC;AACpC,uFAAqE"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js
index fc86af0..b7066ab 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js
@@ -1,5 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+exports.createRule = void 0;
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
// note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder
const version = require('../../package.json').version;
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js.map
index 1bbd139..768d51b 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js.map
@@ -1 +1 @@
-{"version":3,"file":"createRule.js","sourceRoot":"","sources":["../../src/util/createRule.ts"],"names":[],"mappings":";;AAAA,8EAAoE;AAEpE,sHAAsH;AACtH,MAAM,OAAO,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC;AAEzC,QAAA,UAAU,GAAG,gCAAW,CAAC,WAAW,CAC/C,IAAI,CAAC,EAAE,CACL,gEAAgE,OAAO,sCAAsC,IAAI,KAAK,CACzH,CAAC"}
\ No newline at end of file
+{"version":3,"file":"createRule.js","sourceRoot":"","sources":["../../src/util/createRule.ts"],"names":[],"mappings":";;;AAAA,8EAAoE;AAEpE,sHAAsH;AACtH,MAAM,OAAO,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC;AAEzC,QAAA,UAAU,GAAG,gCAAW,CAAC,WAAW,CAC/C,IAAI,CAAC,EAAE,CACL,gEAAgE,OAAO,sCAAsC,IAAI,KAAK,CACzH,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js
index f6835a1..ad10249 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js
@@ -1,5 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+exports.isTypedFunctionExpression = exports.doesImmediatelyReturnFunctionExpression = exports.checkFunctionReturnType = exports.checkFunctionExpressionReturnType = void 0;
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
const astUtils_1 = require("./astUtils");
const nullThrows_1 = require("./nullThrows");
@@ -132,6 +133,7 @@
return (body.type === experimental_utils_1.AST_NODE_TYPES.ArrowFunctionExpression ||
body.type === experimental_utils_1.AST_NODE_TYPES.FunctionExpression);
}
+exports.doesImmediatelyReturnFunctionExpression = doesImmediatelyReturnFunctionExpression;
/**
* Checks if a node belongs to:
* ```
@@ -139,8 +141,7 @@
* ```
*/
function isFunctionArgument(parent, callee) {
- return ((parent.type === experimental_utils_1.AST_NODE_TYPES.CallExpression ||
- parent.type === experimental_utils_1.AST_NODE_TYPES.OptionalCallExpression) &&
+ return (parent.type === experimental_utils_1.AST_NODE_TYPES.CallExpression &&
// make sure this isn't an IIFE
parent.callee !== callee);
}
@@ -165,19 +166,8 @@
return false;
}
/**
- * Checks if a function declaration/expression has a return type.
+ * True when the provided function expression is typed.
*/
-function checkFunctionReturnType(node, options, sourceCode, report) {
- if (options.allowHigherOrderFunctions &&
- doesImmediatelyReturnFunctionExpression(node)) {
- return;
- }
- if (node.returnType || astUtils_1.isConstructor(node.parent) || astUtils_1.isSetter(node.parent)) {
- return;
- }
- report(getReporLoc(node, sourceCode));
-}
-exports.checkFunctionReturnType = checkFunctionReturnType;
function isTypedFunctionExpression(node, options) {
const parent = nullThrows_1.nullThrows(node.parent, nullThrows_1.NullThrowsReasons.MissingParent);
if (!options.allowTypedFunctionExpressions) {
@@ -192,11 +182,12 @@
}
exports.isTypedFunctionExpression = isTypedFunctionExpression;
/**
- * Checks if a function declaration/expression has a return type.
+ * Check whether the function expression return type is either typed or valid
+ * with the provided options.
*/
-function checkFunctionExpressionReturnType(node, options, sourceCode, report) {
+function isValidFunctionExpressionReturnType(node, options) {
if (isTypedFunctionExpression(node, options)) {
- return;
+ return true;
}
const parent = nullThrows_1.nullThrows(node.parent, nullThrows_1.NullThrowsReasons.MissingParent);
if (options.allowExpressions &&
@@ -204,12 +195,44 @@
parent.type !== experimental_utils_1.AST_NODE_TYPES.MethodDefinition &&
parent.type !== experimental_utils_1.AST_NODE_TYPES.ExportDefaultDeclaration &&
parent.type !== experimental_utils_1.AST_NODE_TYPES.ClassProperty) {
- return;
+ return true;
}
// https://github.com/typescript-eslint/typescript-eslint/issues/653
if (options.allowDirectConstAssertionInArrowFunctions &&
node.type === experimental_utils_1.AST_NODE_TYPES.ArrowFunctionExpression &&
returnsConstAssertionDirectly(node)) {
+ return true;
+ }
+ return false;
+}
+/**
+ * Check that the function expression or declaration is valid.
+ */
+function isValidFunctionReturnType(node, options) {
+ if (options.allowHigherOrderFunctions &&
+ doesImmediatelyReturnFunctionExpression(node)) {
+ return true;
+ }
+ if (node.returnType || astUtils_1.isConstructor(node.parent) || astUtils_1.isSetter(node.parent)) {
+ return true;
+ }
+ return false;
+}
+/**
+ * Checks if a function declaration/expression has a return type.
+ */
+function checkFunctionReturnType(node, options, sourceCode, report) {
+ if (isValidFunctionReturnType(node, options)) {
+ return;
+ }
+ report(getReporLoc(node, sourceCode));
+}
+exports.checkFunctionReturnType = checkFunctionReturnType;
+/**
+ * Checks if a function declaration/expression has a return type.
+ */
+function checkFunctionExpressionReturnType(node, options, sourceCode, report) {
+ if (isValidFunctionExpressionReturnType(node, options)) {
return;
}
checkFunctionReturnType(node, options, sourceCode, report);
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js.map
index d89a5d4..1dbb920 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js.map
@@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,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,wBAAwB;QACvD,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,aAAa,EAC5C;QACA,OAAO;KACR;IAED,oEAAoE;IACpE,IACE,OAAO,CAAC,yCAAyC;QACjD,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,uBAAuB;QACpD,6BAA6B,CAAC,IAAI,CAAC,EACnC;QACA,OAAO;KACR;IAED,uBAAuB,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;AAC7D,CAAC;AAIC,8EAAiC"}
\ No newline at end of file
+{"version":3,"file":"explicitReturnTypeUtils.js","sourceRoot":"","sources":["../../src/util/explicitReturnTypeUtils.ts"],"names":[],"mappings":";;;AAAA,8EAK+C;AAC/C,yCAAsE;AACtE,6CAA6D;AAO7D;;;;;;;;;;;;;GAaG;AACH,SAAS,WAAW,CAClB,IAAkB,EAClB,UAA+B;IAE/B;;;OAGG;IACH,SAAS,WAAW;QAClB,2BAA2B;QAC3B,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,IACE,MAAM;YACN,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,gBAAgB;gBAC9C,CAAC,MAAM,CAAC,IAAI,KAAK,mCAAc,CAAC,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,EAC7D;YACA,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC;SACzB;QAED,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;IACxB,CAAC;IAED;;;OAGG;IACH,SAAS,SAAS;QAChB,oBAAoB;QACpB,IAAI,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,uBAAuB,EAAE;YACxD,OAAO,UAAU,CAAC,cAAc,CAC9B,IAAI,CAAC,IAAI,EACT,KAAK,CAAC,EAAE,CACN,KAAK,CAAC,IAAI,KAAK,oCAAe,CAAC,UAAU,IAAI,KAAK,CAAC,KAA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aAAa,EAC5C;QACA,OAAO,IAAI,CAAC;KACb;IAED,oEAAoE;IACpE,IACE,OAAO,CAAC,yCAAyC;QACjD,IAAI,CAAC,IAAI,KAAK,mCAAc,CAAC,uBAAuB;QACpD,6BAA6B,CAAC,IAAI,CAAC,EACnC;QACA,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,SAAS,yBAAyB,CAChC,IAAkB,EAClB,OAAgB;IAEhB,IACE,OAAO,CAAC,yBAAyB;QACjC,uCAAuC,CAAC,IAAI,CAAC,EAC7C;QACA,OAAO,IAAI,CAAC;KACb;IAED,IAAI,IAAI,CAAC,UAAU,IAAI,wBAAa,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;QAC1E,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,SAAS,uBAAuB,CAC9B,IAAkB,EAClB,OAAgB,EAChB,UAA+B,EAC/B,MAA8C;IAE9C,IAAI,yBAAyB,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE;QAC5C,OAAO;KACR;IAED,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC;AACxC,CAAC;AAoBC,0DAAuB;AAlBzB;;GAEG;AACH,SAAS,iCAAiC,CACxC,IAAwB,EACxB,OAAgB,EAChB,UAA+B,EAC/B,MAA8C;IAE9C,IAAI,mCAAmC,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE;QACtD,OAAO;KACR;IAED,uBAAuB,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;AAC7D,CAAC;AAGC,8EAAiC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js
index ef8976d..c625d72 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js
@@ -1,15 +1,25 @@
"use strict";
-function __export(m) {
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
-}
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __exportStar = (this && this.__exportStar) || function(m, exports) {
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
+};
Object.defineProperty(exports, "__esModule", { value: true });
+exports.getParserServices = exports.isObjectNotArray = exports.deepMerge = exports.applyDefault = void 0;
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
-__export(require("./astUtils"));
-__export(require("./createRule"));
-__export(require("./isTypeReadonly"));
-__export(require("./misc"));
-__export(require("./nullThrows"));
-__export(require("./types"));
+__exportStar(require("./astUtils"), exports);
+__exportStar(require("./createRule"), exports);
+__exportStar(require("./isTypeReadonly"), exports);
+__exportStar(require("./misc"), exports);
+__exportStar(require("./nullThrows"), exports);
+__exportStar(require("./objectIterators"), exports);
+__exportStar(require("./propertyTypes"), exports);
+__exportStar(require("./types"), exports);
// this is done for convenience - saves migrating all of the old rules
const { applyDefault, deepMerge, isObjectNotArray, getParserServices, } = experimental_utils_1.ESLintUtils;
exports.applyDefault = applyDefault;
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map
index 8079e78..b29dfed 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":";;;;;AAAA,8EAAoE;AAEpE,gCAA2B;AAC3B,kCAA6B;AAC7B,sCAAiC;AACjC,4BAAuB;AACvB,kCAA6B;AAC7B,6BAAwB;AAExB,sEAAsE;AACtE,MAAM,EACJ,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,iBAAiB,GAClB,GAAG,gCAAW,CAAC;AACP,oCAAY;AAAE,8BAAS;AAAE,4CAAgB;AAAE,8CAAiB"}
\ No newline at end of file
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,8EAAoE;AAEpE,6CAA2B;AAC3B,+CAA6B;AAC7B,mDAAiC;AACjC,yCAAuB;AACvB,+CAA6B;AAC7B,oDAAkC;AAClC,kDAAgC;AAChC,0CAAwB;AAExB,sEAAsE;AACtE,MAAM,EACJ,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,iBAAiB,GAClB,GAAG,gCAAW,CAAC;AAOd,oCAAY;AACZ,8BAAS;AACT,4CAAgB;AAChB,8CAAiB"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeReadonly.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeReadonly.js
index 840a5a5..78f5f46 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeReadonly.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeReadonly.js
@@ -1,72 +1,76 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
+exports.isTypeReadonly = void 0;
const tsutils_1 = require("tsutils");
const ts = __importStar(require("typescript"));
const _1 = require(".");
-/**
- * Returns:
- * - null if the type is not an array or tuple,
- * - true if the type is a readonly array or readonly tuple,
- * - false if the type is a mutable array or mutable tuple.
- */
-function isTypeReadonlyArrayOrTuple(checker, type) {
+function isTypeReadonlyArrayOrTuple(checker, type, seenTypes) {
function checkTypeArguments(arrayType) {
const typeArguments = checker.getTypeArguments(arrayType);
+ // this shouldn't happen in reality as:
+ // - tuples require at least 1 type argument
+ // - ReadonlyArray requires at least 1 type argument
/* istanbul ignore if */ if (typeArguments.length === 0) {
- // this shouldn't happen in reality as:
- // - tuples require at least 1 type argument
- // - ReadonlyArray requires at least 1 type argument
- return true;
+ return 3 /* Readonly */;
}
// validate the element types are also readonly
- if (typeArguments.some(typeArg => !isTypeReadonly(checker, typeArg))) {
- return false;
+ if (typeArguments.some(typeArg => isTypeReadonlyRecurser(checker, typeArg, seenTypes) ===
+ 2 /* Mutable */)) {
+ return 2 /* Mutable */;
}
- return true;
+ return 3 /* Readonly */;
}
if (checker.isArrayType(type)) {
const symbol = _1.nullThrows(type.getSymbol(), _1.NullThrowsReasons.MissingToken('symbol', 'array type'));
const escapedName = symbol.getEscapedName();
- if (escapedName === 'Array' && escapedName !== 'ReadonlyArray') {
- return false;
+ if (escapedName === 'Array') {
+ return 2 /* Mutable */;
}
return checkTypeArguments(type);
}
if (checker.isTupleType(type)) {
if (!type.target.readonly) {
- return false;
+ return 2 /* Mutable */;
}
return checkTypeArguments(type);
}
- return null;
+ return 1 /* UnknownType */;
}
-/**
- * Returns:
- * - null if the type is not an object,
- * - true if the type is an object with only readonly props,
- * - false if the type is an object with at least one mutable prop.
- */
-function isTypeReadonlyObject(checker, type) {
+function isTypeReadonlyObject(checker, type, seenTypes) {
function checkIndexSignature(kind) {
const indexInfo = checker.getIndexInfoOfType(type, kind);
if (indexInfo) {
- return indexInfo.isReadonly ? true : false;
+ return indexInfo.isReadonly
+ ? 3 /* Readonly */
+ : 2 /* Mutable */;
}
- return null;
+ return 1 /* UnknownType */;
}
const properties = type.getProperties();
if (properties.length) {
// ensure the properties are marked as readonly
for (const property of properties) {
if (!tsutils_1.isPropertyReadonlyInType(type, property.getEscapedName(), checker)) {
- return false;
+ return 2 /* Mutable */;
}
}
// all properties were readonly
@@ -75,49 +79,62 @@
// as we might be able to bail out early due to a mutable property before
// doing this deep, potentially expensive check.
for (const property of properties) {
- const propertyType = _1.nullThrows(checker.getTypeOfPropertyOfType(type, property.getName()), _1.NullThrowsReasons.MissingToken(`property "${property.name}"`, 'type'));
- if (!isTypeReadonly(checker, propertyType)) {
- return false;
+ const propertyType = _1.nullThrows(_1.getTypeOfPropertyOfType(checker, type, property), _1.NullThrowsReasons.MissingToken(`property "${property.name}"`, 'type'));
+ // handle recursive types.
+ // we only need this simple check, because a mutable recursive type will break via the above prop readonly check
+ if (seenTypes.has(propertyType)) {
+ continue;
+ }
+ if (isTypeReadonlyRecurser(checker, propertyType, seenTypes) ===
+ 2 /* Mutable */) {
+ return 2 /* Mutable */;
}
}
}
const isStringIndexSigReadonly = checkIndexSignature(ts.IndexKind.String);
- if (isStringIndexSigReadonly === false) {
+ if (isStringIndexSigReadonly === 2 /* Mutable */) {
return isStringIndexSigReadonly;
}
const isNumberIndexSigReadonly = checkIndexSignature(ts.IndexKind.Number);
- if (isNumberIndexSigReadonly === false) {
+ if (isNumberIndexSigReadonly === 2 /* Mutable */) {
return isNumberIndexSigReadonly;
}
- return true;
+ return 3 /* Readonly */;
+}
+// a helper function to ensure the seenTypes map is always passed down, except by the external caller
+function isTypeReadonlyRecurser(checker, type, seenTypes) {
+ seenTypes.add(type);
+ if (tsutils_1.isUnionType(type)) {
+ // all types in the union must be readonly
+ const result = tsutils_1.unionTypeParts(type).every(t => isTypeReadonlyRecurser(checker, t, seenTypes));
+ const readonlyness = result ? 3 /* Readonly */ : 2 /* Mutable */;
+ return readonlyness;
+ }
+ // all non-object, non-intersection types are readonly.
+ // this should only be primitive types
+ if (!tsutils_1.isObjectType(type) && !tsutils_1.isUnionOrIntersectionType(type)) {
+ return 3 /* Readonly */;
+ }
+ // pure function types are readonly
+ if (type.getCallSignatures().length > 0 &&
+ type.getProperties().length === 0) {
+ return 3 /* Readonly */;
+ }
+ const isReadonlyArray = isTypeReadonlyArrayOrTuple(checker, type, seenTypes);
+ if (isReadonlyArray !== 1 /* UnknownType */) {
+ return isReadonlyArray;
+ }
+ const isReadonlyObject = isTypeReadonlyObject(checker, type, seenTypes);
+ /* istanbul ignore else */ if (isReadonlyObject !== 1 /* UnknownType */) {
+ return isReadonlyObject;
+ }
+ throw new Error('Unhandled type');
}
/**
* Checks if the given type is readonly
*/
function isTypeReadonly(checker, type) {
- if (tsutils_1.isUnionType(type)) {
- // all types in the union must be readonly
- return tsutils_1.unionTypeParts(type).every(t => isTypeReadonly(checker, t));
- }
- // all non-object, non-intersection types are readonly.
- // this should only be primitive types
- if (!tsutils_1.isObjectType(type) && !tsutils_1.isUnionOrIntersectionType(type)) {
- return true;
- }
- // pure function types are readonly
- if (type.getCallSignatures().length > 0 &&
- type.getProperties().length === 0) {
- return true;
- }
- const isReadonlyArray = isTypeReadonlyArrayOrTuple(checker, type);
- if (isReadonlyArray !== null) {
- return isReadonlyArray;
- }
- const isReadonlyObject = isTypeReadonlyObject(checker, type);
- /* istanbul ignore else */ if (isReadonlyObject !== null) {
- return isReadonlyObject;
- }
- throw new Error('Unhandled type');
+ return (isTypeReadonlyRecurser(checker, type, new Set()) === 3 /* Readonly */);
}
exports.isTypeReadonly = isTypeReadonly;
//# sourceMappingURL=isTypeReadonly.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeReadonly.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeReadonly.js.map
index ec3a1cc..7cfab62 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeReadonly.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/isTypeReadonly.js.map
@@ -1 +1 @@
-{"version":3,"file":"isTypeReadonly.js","sourceRoot":"","sources":["../../src/util/isTypeReadonly.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qCAMiB;AACjB,+CAAiC;AACjC,wBAAkD;AAElD;;;;;GAKG;AACH,SAAS,0BAA0B,CACjC,OAAuB,EACvB,IAAa;IAEb,SAAS,kBAAkB,CAAC,SAA2B;QACrD,MAAM,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;QAC1D,wBAAwB,CAAC,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE;YACvD,uCAAuC;YACvC,4CAA4C;YAC5C,oDAAoD;YACpD,OAAO,IAAI,CAAC;SACb;QAED,+CAA+C;QAC/C,IAAI,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE;YACpE,OAAO,KAAK,CAAC;SACd;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;QAC7B,MAAM,MAAM,GAAG,aAAU,CACvB,IAAI,CAAC,SAAS,EAAE,EAChB,oBAAiB,CAAC,YAAY,CAAC,QAAQ,EAAE,YAAY,CAAC,CACvD,CAAC;QACF,MAAM,WAAW,GAAG,MAAM,CAAC,cAAc,EAAE,CAAC;QAC5C,IAAI,WAAW,KAAK,OAAO,IAAI,WAAW,KAAK,eAAe,EAAE;YAC9D,OAAO,KAAK,CAAC;SACd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gB,CAAC;KACzB;IAED,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;AACpC,CAAC;AAEQ,wCAAc"}
\ No newline at end of file
+{"version":3,"file":"isTypeReadonly.js","sourceRoot":"","sources":["../../src/util/isTypeReadonly.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qCAMiB;AACjB,+CAAiC;AACjC,wBAA2E;AAW3E,SAAS,0BAA0B,CACjC,OAAuB,EACvB,IAAa,EACb,SAAuB;IAEvB,SAAS,kBAAkB,CAAC,SAA2B;QACrD,MAAM,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;QAC1D,uCAAuC;QACvC,4CAA4C;QAC5C,oDAAoD;QACpD,wBAAwB,CAAC,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE;YACvD,wBAA6B;SAC9B;QAED,+CAA+C;QAC/C,IACE,aAAa,CAAC,IAAI,CAChB,OAAO,CAAC,EAAE,CACR,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC;2BAC/B,CACvB,EACD;YACA,uBAA4B;SAC7B;QACD,wBAA6B;IAC/B,CAAC;IAED,IAAI,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;QAC7B,MAAM,MAAM,GAAG,aAAU,CACvB,IAAI,CAAC,SAAS,EAAE,EAChB,oBAAiB,CAAC,YAAY,CAAC,QAAQ,EAAE,YAAY,CAAC,CACvD,CAAC;QACF,MAAM,WAAW,GAAG,MAAM,CAAC,cAAc,EAAE,CAAC;QAC5C,IAAI,WAAW,KAAK,OAAO,EAAE;YAC3B,uBAA4B;SAC7B;QAED,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC;KACjC;IAED,IAAI,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;QAC7B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;YACzB,uBAA4B;SAC7B;QAED,OAAO,kBAAkB,C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C;QACA,OAAO,gBAAgB,CAAC;KACzB;IAED,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;AACpC,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CAAC,OAAuB,EAAE,IAAa;IAC5D,OAAO,CACL,sBAAsB,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,GAAG,EAAE,CAAC,qBAA0B,CAC3E,CAAC;AACJ,CAAC;AAEQ,wCAAc"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js
index d878416..0cb96ca 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js
@@ -3,6 +3,7 @@
* @fileoverview Really small utility functions that didn't deserve their own files
*/
Object.defineProperty(exports, "__esModule", { value: true });
+exports.upperCaseFirst = exports.isDefinitionFile = exports.getNameFromMember = exports.getNameFromIndexSignature = exports.getEnumNames = exports.findFirstResult = exports.arraysAreEqual = void 0;
const experimental_utils_1 = require("@typescript-eslint/experimental-utils");
/**
* Check if the context file name is *.d.ts or *.d.tsx
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map
index db3bfb4..c3a0e48 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map
@@ -1 +1 @@
-{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/util/misc.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAEH,8EAI+C;AAE/C;;GAEG;AACH,SAAS,gBAAgB,CAAC,QAAgB;IACxC,OAAO,aAAa,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;AAC5C,CAAC;AA8HC,4CAAgB;AA5HlB;;GAEG;AACH,SAAS,cAAc,CAAC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,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAQ,CAAC;AACpE,CAAC;AAOC,oCAAY"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/nullThrows.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/nullThrows.js
index ff9eb73..e5507a2 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/nullThrows.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/nullThrows.js
@@ -1,5 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+exports.NullThrowsReasons = exports.nullThrows = void 0;
/**
* A set of common reasons for calling nullThrows
*/
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/nullThrows.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/nullThrows.js.map
index 60ddf86..acc485a 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/nullThrows.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/nullThrows.js.map
@@ -1 +1 @@
-{"version":3,"file":"nullThrows.js","sourceRoot":"","sources":["../../src/util/nullThrows.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAM,iBAAiB,GAAG;IACxB,aAAa,EAAE,iCAAiC;IAChD,YAAY,EAAE,CAAC,KAAa,EAAE,KAAa,EAAE,EAAE,CAC7C,sBAAsB,KAAK,YAAY,KAAK,GAAG;CACzC,CAAC;AAoBU,8CAAiB;AAlBtC;;;GAGG;AACH,SAAS,UAAU,CAAI,KAA2B,EAAE,OAAe;IACjE,oEAAoE;IACpE,4DAA4D;IAC5D,sEAAsE;IAEtE,oCAAoC;IACpC,wBAAwB;IACxB,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;QACzC,MAAM,IAAI,KAAK,CAAC,8BAA8B,OAAO,EAAE,CAAC,CAAC;KAC1D;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAEQ,gCAAU"}
\ No newline at end of file
+{"version":3,"file":"nullThrows.js","sourceRoot":"","sources":["../../src/util/nullThrows.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAM,iBAAiB,GAAG;IACxB,aAAa,EAAE,iCAAiC;IAChD,YAAY,EAAE,CAAC,KAAa,EAAE,KAAa,EAAE,EAAE,CAC7C,sBAAsB,KAAK,YAAY,KAAK,GAAG;CACzC,CAAC;AAoBU,8CAAiB;AAlBtC;;;GAGG;AACH,SAAS,UAAU,CAAI,KAA2B,EAAE,OAAe;IACjE,oEAAoE;IACpE,4DAA4D;IAC5D,sEAAsE;IAEtE,oCAAoC;IACpC,wBAAwB;IACxB,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;QACzC,MAAM,IAAI,KAAK,CAAC,8BAA8B,OAAO,EAAE,CAAC,CAAC;KAC1D;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAEQ,gCAAU"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js
new file mode 100644
index 0000000..16f7336
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js
@@ -0,0 +1,27 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.objectReduceKey = exports.objectMapKey = exports.objectForEachKey = void 0;
+function objectForEachKey(obj, callback) {
+ const keys = Object.keys(obj);
+ for (const key of keys) {
+ callback(key);
+ }
+}
+exports.objectForEachKey = objectForEachKey;
+function objectMapKey(obj, callback) {
+ const values = [];
+ objectForEachKey(obj, key => {
+ values.push(callback(key));
+ });
+ return values;
+}
+exports.objectMapKey = objectMapKey;
+function objectReduceKey(obj, callback, initial) {
+ let accumulator = initial;
+ objectForEachKey(obj, key => {
+ accumulator = callback(accumulator, key);
+ });
+ return accumulator;
+}
+exports.objectReduceKey = objectReduceKey;
+//# sourceMappingURL=objectIterators.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js.map
new file mode 100644
index 0000000..82a35bf
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"objectIterators.js","sourceRoot":"","sources":["../../src/util/objectIterators.ts"],"names":[],"mappings":";;;AAAA,SAAS,gBAAgB,CACvB,GAAM,EACN,QAAgC;IAEhC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;QACtB,QAAQ,CAAC,GAAG,CAAC,CAAC;KACf;AACH,CAAC;AAyBQ,4CAAgB;AAvBzB,SAAS,YAAY,CACnB,GAAM,EACN,QAAmC;IAEnC,MAAM,MAAM,GAAc,EAAE,CAAC;IAC7B,gBAAgB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;QAC1B,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC;AAc0B,oCAAY;AAZvC,SAAS,eAAe,CACtB,GAAM,EACN,QAA2D,EAC3D,OAAqB;IAErB,IAAI,WAAW,GAAG,OAAO,CAAC;IAC1B,gBAAgB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;QAC1B,WAAW,GAAG,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IACH,OAAO,WAAW,CAAC;AACrB,CAAC;AAEwC,0CAAe"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/propertyTypes.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/propertyTypes.js
new file mode 100644
index 0000000..6470d8f
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/propertyTypes.js
@@ -0,0 +1,23 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.getTypeOfPropertyOfType = exports.getTypeOfPropertyOfName = void 0;
+function getTypeOfPropertyOfName(checker, type, name, escapedName) {
+ // Most names are directly usable in the checker and aren't different from escaped names
+ if (!escapedName || !name.startsWith('__')) {
+ return checker.getTypeOfPropertyOfType(type, name);
+ }
+ // Symbolic names may differ in their escaped name compared to their human-readable name
+ // https://github.com/typescript-eslint/typescript-eslint/issues/2143
+ const escapedProperty = type
+ .getProperties()
+ .find(property => property.escapedName === escapedName);
+ return escapedProperty
+ ? checker.getDeclaredTypeOfSymbol(escapedProperty)
+ : undefined;
+}
+exports.getTypeOfPropertyOfName = getTypeOfPropertyOfName;
+function getTypeOfPropertyOfType(checker, type, property) {
+ return getTypeOfPropertyOfName(checker, type, property.getName(), property.getEscapedName());
+}
+exports.getTypeOfPropertyOfType = getTypeOfPropertyOfType;
+//# sourceMappingURL=propertyTypes.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/propertyTypes.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/propertyTypes.js.map
new file mode 100644
index 0000000..06e4a07
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/propertyTypes.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"propertyTypes.js","sourceRoot":"","sources":["../../src/util/propertyTypes.ts"],"names":[],"mappings":";;;AAEA,SAAgB,uBAAuB,CACrC,OAAuB,EACvB,IAAa,EACb,IAAY,EACZ,WAAyB;IAEzB,wFAAwF;IACxF,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;QAC1C,OAAO,OAAO,CAAC,uBAAuB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KACpD;IAED,wFAAwF;IACxF,qEAAqE;IACrE,MAAM,eAAe,GAAG,IAAI;SACzB,aAAa,EAAE;SACf,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,WAAW,KAAK,WAAW,CAAC,CAAC;IAE1D,OAAO,eAAe;QACpB,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC,eAAe,CAAC;QAClD,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC;AApBD,0DAoBC;AAED,SAAgB,uBAAuB,CACrC,OAAuB,EACvB,IAAa,EACb,QAAmB;IAEnB,OAAO,uBAAuB,CAC5B,OAAO,EACP,IAAI,EACJ,QAAQ,CAAC,OAAO,EAAE,EAClB,QAAQ,CAAC,cAAc,EAAE,CAC1B,CAAC;AACJ,CAAC;AAXD,0DAWC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js
index 47b7b58..bb543a3 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js
@@ -1,14 +1,45 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
Object.defineProperty(exports, "__esModule", { value: true });
+exports.getContextualType = exports.isUnsafeAssignment = exports.isAnyOrAnyArrayTypeDiscriminated = exports.isTypeUnknownArrayType = exports.isTypeAnyArrayType = exports.isTypeAnyType = exports.isTypeUnknownType = exports.getTypeArguments = exports.getEqualsKind = exports.getTokenAtPosition = exports.getSourceFileOfNode = exports.typeIsOrHasBaseType = exports.isTypeFlagSet = exports.getTypeFlags = exports.getDeclaration = exports.isNullableType = exports.getConstrainedTypeAtLocation = exports.getTypeName = exports.containsAllTypesByName = exports.isTypeArrayTypeOrUnionOfArrayTypes = void 0;
+const debug_1 = __importDefault(require("debug"));
const tsutils_1 = require("tsutils");
const ts = __importStar(require("typescript"));
+const log = debug_1.default('typescript-eslint:eslint-plugin:utils:types');
+/**
+ * Checks if the given type is either an array type,
+ * or a union made up solely of array types.
+ */
+function isTypeArrayTypeOrUnionOfArrayTypes(type, checker) {
+ for (const t of tsutils_1.unionTypeParts(type)) {
+ if (!checker.isArrayType(t)) {
+ return false;
+ }
+ }
+ return true;
+}
+exports.isTypeArrayTypeOrUnionOfArrayTypes = isTypeArrayTypeOrUnionOfArrayTypes;
/**
* @param type Type being checked by name.
* @param allowedNames Symbol names checking on the type.
@@ -21,8 +52,8 @@
if (tsutils_1.isTypeReference(type)) {
type = type.target;
}
- if (typeof type.symbol !== 'undefined' &&
- allowedNames.has(type.symbol.name)) {
+ const symbol = type.getSymbol();
+ if (symbol && allowedNames.has(symbol.name)) {
return true;
}
if (tsutils_1.isUnionOrIntersectionType(type)) {
@@ -51,9 +82,12 @@
// `type.getConstraint()` method doesn't return the constraint type of
// the type parameter for some reason. So this gets the constraint type
// via AST.
- const node = type.symbol.declarations[0];
- if (node.constraint != null) {
- return getTypeName(typeChecker, typeChecker.getTypeFromTypeNode(node.constraint));
+ const symbol = type.getSymbol();
+ const decls = symbol === null || symbol === void 0 ? void 0 : symbol.getDeclarations();
+ const typeParamDecl = decls === null || decls === void 0 ? void 0 : decls[0];
+ if (ts.isTypeParameterDeclaration(typeParamDecl) &&
+ typeParamDecl.constraint != null) {
+ return getTypeName(typeChecker, typeChecker.getTypeFromTypeNode(typeParamDecl.constraint));
}
}
// If the type is a union and all types in the union are string like,
@@ -83,7 +117,7 @@
function getConstrainedTypeAtLocation(checker, node) {
const nodeType = checker.getTypeAtLocation(node);
const constrained = checker.getBaseConstraintOfType(nodeType);
- return (constrained !== null && constrained !== void 0 ? constrained : nodeType);
+ return constrained !== null && constrained !== void 0 ? constrained : nodeType;
}
exports.getConstrainedTypeAtLocation = getConstrainedTypeAtLocation;
/**
@@ -107,15 +141,13 @@
* Gets the declaration for the given variable
*/
function getDeclaration(checker, node) {
+ var _a;
const symbol = checker.getSymbolAtLocation(node);
if (!symbol) {
return null;
}
- const declarations = symbol.declarations;
- if (!declarations) {
- return null;
- }
- return declarations[0];
+ const declarations = symbol.getDeclarations();
+ return (_a = declarations === null || declarations === void 0 ? void 0 : declarations[0]) !== null && _a !== void 0 ? _a : null;
}
exports.getDeclaration = getDeclaration;
/**
@@ -145,17 +177,18 @@
* @returns Whether a type is an instance of the parent type, including for the parent's base types.
*/
function typeIsOrHasBaseType(type, parentType) {
- if (type.symbol === undefined || parentType.symbol === undefined) {
+ const parentSymbol = parentType.getSymbol();
+ if (!type.getSymbol() || !parentSymbol) {
return false;
}
const typeAndBaseTypes = [type];
const ancestorTypes = type.getBaseTypes();
- if (ancestorTypes !== undefined) {
+ if (ancestorTypes) {
typeAndBaseTypes.push(...ancestorTypes);
}
for (const baseType of typeAndBaseTypes) {
- if (baseType.symbol !== undefined &&
- baseType.symbol.name === parentType.symbol.name) {
+ const baseSymbol = baseType.getSymbol();
+ if (baseSymbol && baseSymbol.name === parentSymbol.name) {
return true;
}
}
@@ -214,7 +247,7 @@
};
case '!==':
return {
- isPositive: true,
+ isPositive: false,
isStrict: true,
};
default:
@@ -222,4 +255,157 @@
}
}
exports.getEqualsKind = getEqualsKind;
+function getTypeArguments(type, checker) {
+ var _a;
+ // getTypeArguments was only added in TS3.7
+ if (checker.getTypeArguments) {
+ return checker.getTypeArguments(type);
+ }
+ return (_a = type.typeArguments) !== null && _a !== void 0 ? _a : [];
+}
+exports.getTypeArguments = getTypeArguments;
+/**
+ * @returns true if the type is `unknown`
+ */
+function isTypeUnknownType(type) {
+ return isTypeFlagSet(type, ts.TypeFlags.Unknown);
+}
+exports.isTypeUnknownType = isTypeUnknownType;
+/**
+ * @returns true if the type is `any`
+ */
+function isTypeAnyType(type) {
+ if (isTypeFlagSet(type, ts.TypeFlags.Any)) {
+ if (type.intrinsicName === 'error') {
+ log('Found an "error" any type');
+ }
+ return true;
+ }
+ return false;
+}
+exports.isTypeAnyType = isTypeAnyType;
+/**
+ * @returns true if the type is `any[]`
+ */
+function isTypeAnyArrayType(type, checker) {
+ return (checker.isArrayType(type) &&
+ isTypeAnyType(
+ // getTypeArguments was only added in TS3.7
+ getTypeArguments(type, checker)[0]));
+}
+exports.isTypeAnyArrayType = isTypeAnyArrayType;
+/**
+ * @returns true if the type is `unknown[]`
+ */
+function isTypeUnknownArrayType(type, checker) {
+ return (checker.isArrayType(type) &&
+ isTypeUnknownType(
+ // getTypeArguments was only added in TS3.7
+ getTypeArguments(type, checker)[0]));
+}
+exports.isTypeUnknownArrayType = isTypeUnknownArrayType;
+/**
+ * @returns `AnyType.Any` if the type is `any`, `AnyType.AnyArray` if the type is `any[]` or `readonly any[]`,
+ * otherwise it returns `AnyType.Safe`.
+ */
+function isAnyOrAnyArrayTypeDiscriminated(node, checker) {
+ const type = checker.getTypeAtLocation(node);
+ if (isTypeAnyType(type)) {
+ return 0 /* Any */;
+ }
+ if (isTypeAnyArrayType(type, checker)) {
+ return 1 /* AnyArray */;
+ }
+ return 2 /* Safe */;
+}
+exports.isAnyOrAnyArrayTypeDiscriminated = isAnyOrAnyArrayTypeDiscriminated;
+/**
+ * Does a simple check to see if there is an any being assigned to a non-any type.
+ *
+ * This also checks generic positions to ensure there's no unsafe sub-assignments.
+ * Note: in the case of generic positions, it makes the assumption that the two types are the same.
+ *
+ * @example See tests for examples
+ *
+ * @returns false if it's safe, or an object with the two types if it's unsafe
+ */
+function isUnsafeAssignment(type, receiver, checker) {
+ var _a, _b;
+ if (isTypeAnyType(type)) {
+ // Allow assignment of any ==> unknown.
+ if (isTypeUnknownType(receiver)) {
+ return false;
+ }
+ if (!isTypeAnyType(receiver)) {
+ return { sender: type, receiver };
+ }
+ }
+ if (tsutils_1.isTypeReference(type) && tsutils_1.isTypeReference(receiver)) {
+ // TODO - figure out how to handle cases like this,
+ // where the types are assignable, but not the same type
+ /*
+ function foo(): ReadonlySet<number> { return new Set<any>(); }
+
+ // and
+
+ type Test<T> = { prop: T }
+ type Test2 = { prop: string }
+ declare const a: Test<any>;
+ const b: Test2 = a;
+ */
+ if (type.target !== receiver.target) {
+ // if the type references are different, assume safe, as we won't know how to compare the two types
+ // the generic positions might not be equivalent for both types
+ return false;
+ }
+ const typeArguments = (_a = type.typeArguments) !== null && _a !== void 0 ? _a : [];
+ const receiverTypeArguments = (_b = receiver.typeArguments) !== null && _b !== void 0 ? _b : [];
+ for (let i = 0; i < typeArguments.length; i += 1) {
+ const arg = typeArguments[i];
+ const receiverArg = receiverTypeArguments[i];
+ const unsafe = isUnsafeAssignment(arg, receiverArg, checker);
+ if (unsafe) {
+ return { sender: type, receiver };
+ }
+ }
+ return false;
+ }
+ return false;
+}
+exports.isUnsafeAssignment = isUnsafeAssignment;
+/**
+ * Returns the contextual type of a given node.
+ * Contextual type is the type of the target the node is going into.
+ * i.e. the type of a called function's parameter, or the defined type of a variable declaration
+ */
+function getContextualType(checker, node) {
+ const parent = node.parent;
+ if (!parent) {
+ return;
+ }
+ if (tsutils_1.isCallExpression(parent) || tsutils_1.isNewExpression(parent)) {
+ if (node === parent.expression) {
+ // is the callee, so has no contextual type
+ return;
+ }
+ }
+ else if (tsutils_1.isVariableDeclaration(parent) ||
+ tsutils_1.isPropertyDeclaration(parent) ||
+ tsutils_1.isParameterDeclaration(parent)) {
+ return parent.type ? checker.getTypeFromTypeNode(parent.type) : undefined;
+ }
+ else if (tsutils_1.isJsxExpression(parent)) {
+ return checker.getContextualType(parent);
+ }
+ else if (tsutils_1.isPropertyAssignment(parent) && tsutils_1.isIdentifier(node)) {
+ return checker.getContextualType(node);
+ }
+ else if (![ts.SyntaxKind.TemplateSpan, ts.SyntaxKind.JsxExpression].includes(parent.kind)) {
+ // parent is not something we know we can get the contextual type of
+ return;
+ }
+ // TODO - support return statement checking
+ return checker.getContextualType(node);
+}
+exports.getContextualType = getContextualType;
//# sourceMappingURL=types.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js.map
index 8d55857..275e1ee 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js.map
+++ b/node_modules/@typescript-eslint/eslint-plugin/dist/util/types.js.map
@@ -1 +1 @@
-{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/util/types.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qCAIiB;AACjB,+CAAiC;AAEjC;;;;GAIG;AACH,SAAgB,sBAAsB,CACpC,IAAa,EACb,QAAiB,EACjB,YAAyB;IAEzB,IAAI,aAAa,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE;QAChE,OAAO,CAAC,QAAQ,CAAC;KAClB;IAED,IAAI,yBAAe,CAAC,IAAI,CAAC,EAAE;QACzB,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;KACpB;IAED,IACE,OAAO,IAAI,CAAC,MAAM,KAAK,WAAW;QAClC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAClC;QACA,OAAO,IAAI,CAAC;KACb;IAED,IAAI,mCAAyB,CAAC,IAAI,CAAC,EAAE;Q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AAC,QAAQ,KAAK,GAAG,IAAI,KAAK,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,EACjE;gBACA,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAClB,MAAM;aACP;SACF;KACF;IACD,OAAO,OAAQ,CAAC;AAClB,CAAC;AA3BD,gDA2BC;AAOD,SAAgB,aAAa,CAAC,QAAgB;IAC5C,QAAQ,QAAQ,EAAE;QAChB,KAAK,IAAI;YACP,OAAO;gBACL,UAAU,EAAE,IAAI;gBAChB,QAAQ,EAAE,KAAK;aAChB,CAAC;QAEJ,KAAK,KAAK;YACR,OAAO;gBACL,UAAU,EAAE,IAAI;gBAChB,QAAQ,EAAE,IAAI;aACf,CAAC;QAEJ,KAAK,IAAI;YACP,OAAO;gBACL,UAAU,EAAE,KAAK;gBACjB,QAAQ,EAAE,KAAK;aAChB,CAAC;QAEJ,KAAK,KAAK;YACR,OAAO;gBACL,UAAU,EAAE,IAAI;gBAChB,QAAQ,EAAE,IAAI;aACf,CAAC;QAEJ;YACE,OAAO,SAAS,CAAC;KACpB;AACH,CAAC;AA7BD,sCA6BC"}
\ No newline at end of file
+{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/util/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,qCAYiB;AACjB,+CAAiC;AAEjC,MAAM,GAAG,GAAG,eAAK,CAAC,6CAA6C,CAAC,CAAC;AAEjE;;;GAGG;AACH,SAAgB,kCAAkC,CAChD,IAAa,EACb,OAAuB;IAEvB,KAAK,MAAM,CAAC,IAAI,wBAAc,CAAC,IAAI,CAAC,EAAE;QACpC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE;YAC3B,OAAO,KAAK,CAAC;SACd;KACF;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAXD,gFAWC;AAED;;;;GAIG;AACH,SAAgB,sBAAsB,CACpC,IAAa,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CAAC,CAAC,QAAQ,CACjE,MAAM,CAAC,IAAI,CACZ,EACD;QACA,oEAAoE;QACpE,OAAO;KACR;IACD,2CAA2C;IAE3C,OAAO,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;AACzC,CAAC;AAnCD,8CAmCC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-comment.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-comment.md
index 58f99dc..2509793 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-comment.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-comment.md
@@ -1,11 +1,12 @@
-# Bans `// @ts-<directive>` comments from being used (`ban-ts-comment`)
+# Bans `// @ts-<directive>` comments from being used or requires descriptions after directive (`ban-ts-comment`)
TypeScript provides several directive comments that can be used to alter how it processes files.
Using these to suppress TypeScript Compiler Errors reduces the effectiveness of TypeScript overall.
The directive comments supported by TypeScript are:
-```
+```ts
+// @ts-expect-error
// @ts-ignore
// @ts-nocheck
// @ts-check
@@ -14,24 +15,30 @@
## Rule Details
This rule lets you set which directive comments you want to allow in your codebase.
-By default, only `@ts-check` is allowed, as it enables rather then suppresses errors.
+By default, only `@ts-check` is allowed, as it enables rather than suppresses errors.
The configuration looks like this:
-```
+```ts
interface Options {
- 'ts-ignore'?: boolean;
- 'ts-nocheck'?: boolean;
- 'ts-check'?: boolean;
+ 'ts-expect-error'?: boolean | 'allow-with-description';
+ 'ts-ignore'?: boolean | 'allow-with-description';
+ 'ts-nocheck'?: boolean | 'allow-with-description';
+ 'ts-check'?: boolean | 'allow-with-description';
+ minimumDescriptionLength?: number;
}
const defaultOptions: Options = {
+ 'ts-expect-error': 'allow-with-description',
'ts-ignore': true,
'ts-nocheck': true,
- 'ts-check': false
-}
+ 'ts-check': false,
+ minimumDescriptionLength: 3,
+};
```
+### `ts-expect-error`, `ts-ignore`, `ts-nocheck`, `ts-check` directives
+
A value of `true` for a particular directive means that this rule will report if it finds any usage of said directive.
For example, with the defaults above the following patterns are considered warnings:
@@ -52,6 +59,50 @@
}
```
+### `allow-with-description`
+
+A value of `'allow-with-description'` for a particular directive means that this rule will report if it finds a directive that does not have a description following the directive (on the same line).
+
+For example, with `{ 'ts-expect-error': 'allow-with-description' }` the following pattern is considered a warning:
+
+```ts
+if (false) {
+ // @ts-expect-error
+ console.log('hello');
+}
+```
+
+The following pattern is not a warning:
+
+```ts
+if (false) {
+ // @ts-expect-error: Unreachable code error
+ console.log('hello');
+}
+```
+
+### `minimumDescriptionLength`
+
+Use `minimumDescriptionLength` to set a minimum length for descriptions when using the `allow-with-description` option for a directive.
+
+For example, with `{ 'ts-expect-error': 'allow-with-description', minimumDescriptionLength: 10 }` the following pattern is considered a warning:
+
+```ts
+if (false) {
+ // @ts-expect-error: TODO
+ console.log('hello');
+}
+```
+
+The following pattern is not a warning:
+
+```ts
+if (false) {
+ // @ts-expect-error The rationale for this override is described in issue #1337 on GitLab
+ console.log('hello');
+}
+```
+
## When Not To Use It
If you want to use all of the TypeScript directives.
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-ignore.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-ignore.md
deleted file mode 100644
index 8f69c86..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-ts-ignore.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# Bans “// @ts-ignore” comments from being used (`ban-ts-ignore`)
-
-This rule has been deprecated in favor of [`ban-ts-comment`](./ban-ts-comment.md)
-
-Suppressing TypeScript Compiler Errors can be hard to discover.
-
-## Rule Details
-
-Does not allow the use of `// @ts-ignore` comments.
-
-The following patterns are considered warnings:
-
-```ts
-if (false) {
- // @ts-ignore: Unreachable code error
- console.log('hello');
-}
-```
-
-The following patterns are not warnings:
-
-```ts
-if (false) {
- // Compiler warns about unreachable code error
- console.log('hello');
-}
-```
-
-## When Not To Use It
-
-If you are sure, compiler errors won't affect functionality and you need to disable them.
-
-## Further Reading
-
-- TypeScript [Type Checking JavaScript Files](https://www.typescriptlang.org/docs/handbook/type-checking-javascript-files.html)
-
-## Compatibility
-
-- TSLint: [ban-ts-ignore](https://palantir.github.io/tslint/rules/ban-ts-ignore/)
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-tslint-comment.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-tslint-comment.md
new file mode 100644
index 0000000..6af168f
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-tslint-comment.md
@@ -0,0 +1,29 @@
+# Bans `// tslint:<rule-flag>` comments from being used (`ban-tslint-comment`)
+
+Useful when migrating from TSLint to ESLint. Once TSLint has been removed, this rule helps locate TSLint annotations (e.g. `// tslint:disable`).
+
+## Rule Details
+
+Examples of **incorrect** code for this rule:
+
+All TSLint [rule flags](https://palantir.github.io/tslint/usage/rule-flags/)
+
+```js
+/* tslint:disable */
+/* tslint:enable */
+/* tslint:disable:rule1 rule2 rule3... */
+/* tslint:enable:rule1 rule2 rule3... */
+// tslint:disable-next-line
+someCode(); // tslint:disable-line
+// tslint:disable-next-line:rule1 rule2 rule3...
+```
+
+Examples of **correct** code for this rule:
+
+```js
+// This is a comment that just happens to mention tslint
+```
+
+## When Not To Use It
+
+If you are still using TSLint.
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md
index e92e57b..ab8320d 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/ban-types.md
@@ -1,93 +1,62 @@
# Bans specific types from being used (`ban-types`)
-This rule bans specific types and can suggest alternatives. It does not ban the
-corresponding runtime objects from being used.
+Some builtin types have aliases, some types are considered dangerous or harmful.
+It's often a good idea to ban certain types to help with consistency and safety.
## Rule Details
-Examples of **incorrect** code for this rule `"String": "Use string instead"`
-
-```ts
-class Foo<F = String> extends Bar<String> implements Baz<String> {
- constructor(foo: String) {}
-
- exit(): Array<String> {
- const foo: String = 1 as String;
- }
-}
-```
-
-Examples of **correct** code for this rule `"String": "Use string instead"`
-
-```ts
-class Foo<F = string> extends Bar<string> implements Baz<string> {
- constructor(foo: string) {}
-
- exit(): Array<string> {
- const foo: string = 1 as string;
- }
-}
-```
+This rule bans specific types and can suggest alternatives.
+Note that it does not ban the corresponding runtime objects from being used.
## Options
-The banned type can either be a type name literal (`Foo`), a type name with generic parameter instantiations(s) (`Foo<Bar>`), or the empty object literal (`{}`).
-
-```CJSON
-{
- "@typescript-eslint/ban-types": ["error", {
- "types": {
- // report usages of the type using the default error message
- "Foo": null,
-
- // add a custom message to help explain why not to use it
- "Bar": "Don't use bar!",
-
- // add a custom message, AND tell the plugin how to fix it
- "String": {
- "message": "Use string instead",
- "fixWith": "string"
- }
-
- "{}": {
- "message": "Use object instead",
- "fixWith": "object"
- }
- }
- }]
-}
+```ts
+type Options = {
+ types?: {
+ [typeName: string]:
+ | false
+ | string
+ | {
+ message: string;
+ fixWith?: string;
+ };
+ };
+ extendDefaults?: boolean;
+};
```
-By default, this rule includes types which are likely to be mistakes, such as `String` and `Number`. If you don't want these enabled, set the `extendDefaults` option to `false`:
+The rule accepts a single object as options, with the following keys:
-```CJSON
-{
- "@typescript-eslint/ban-types": ["error", {
- "types": {
- // add a custom message, AND tell the plugin how to fix it
- "String": {
- "message": "Use string instead",
- "fixWith": "string"
- }
- },
- "extendDefaults": false
- }]
-}
-```
+- `types` - An object whose keys are the types you want to ban, and the values are error messages.
+ - The type can either be a type name literal (`Foo`), a type name with generic parameter instantiation(s) (`Foo<Bar>`), or the empty object literal (`{}`).
+ - The values can be a string, which is the error message to be reported, `false` to specifically disable this type
+ or it can be an object with the following properties:
+ - `message: string` - the message to display when the type is matched.
+ - `fixWith?: string` - a string to replace the banned type with when the fixer is run. If this is omitted, no fix will be done.
+- `extendDefaults` - if you're specifying custom `types`, you can set this to `true` to extend the default `types` configuration.
+ - This is a convenience option to save you copying across the defaults when adding another type.
+ - If this is `false`, the rule will _only_ use the types defined in your configuration.
-### Example
+Example configuration:
-```json
+```jsonc
{
"@typescript-eslint/ban-types": [
"error",
{
"types": {
- "Array": null,
- "Object": "Use {} instead",
+ // add a custom message to help explain why not to use it
+ "Foo": "Don't use Foo because it is unsafe",
+
+ // add a custom message, AND tell the plugin how to fix it
"String": {
"message": "Use string instead",
"fixWith": "string"
+ },
+
+ "{}": {
+ "message": "Use object instead",
+ "fixWith": "object"
}
}
}
@@ -95,6 +64,124 @@
}
```
+### Default Options
+
+The default options provide a set of "best practices", intended to provide safety and standardization in your codebase:
+
+- Don't use the upper-case primitive types, you should use the lower-case types for consistency.
+- Avoid the `Function` type, as it provides little safety for the following reasons:
+ - It provides no type safety when calling the value, which means it's easy to provide the wrong arguments.
+ - It accepts class declarations, which will fail when called, as they are called without the `new` keyword.
+- Avoid the `Object` and `{}` types, as they mean "any non-nullish value".
+ - This is a point of confusion for many developers, who think it means "any object type".
+- Avoid the `object` type, as it is currently hard to use due to not being able to assert that keys exist.
+ - See [microsoft/TypeScript#21732](https://github.com/microsoft/TypeScript/issues/21732).
+
+**_Important note:_** the default options suggest using `Record<string, unknown>`; this was a stylistic decision, as the built-in `Record` type is considered to look cleaner.
+
+<details>
+<summary>Default Options</summary>
+
+```ts
+const defaultTypes = {
+ String: {
+ message: 'Use string instead',
+ fixWith: 'string',
+ },
+ Boolean: {
+ message: 'Use boolean instead',
+ fixWith: 'boolean',
+ },
+ Number: {
+ message: 'Use number instead',
+ fixWith: 'number',
+ },
+ Symbol: {
+ message: 'Use symbol instead',
+ fixWith: 'symbol',
+ },
+
+ Function: {
+ message: [
+ 'The `Function` type accepts any function-like value.',
+ 'It provides no type safety when calling the function, which can be a common source of bugs.',
+ 'It also accepts things like class declarations, which will throw at runtime as they will not be called with `new`.',
+ 'If you are expecting the function to accept certain arguments, you should explicitly define the function shape.',
+ ].join('\n'),
+ },
+
+ // object typing
+ Object: {
+ message: [
+ 'The `Object` type actually means "any non-nullish value", so it is marginally better than `unknown`.',
+ '- If you want a type meaning "any object", you probably want `Record<string, unknown>` instead.',
+ '- If you want a type meaning "any value", you probably want `unknown` instead.',
+ ].join('\n'),
+ },
+ '{}': {
+ message: [
+ '`{}` actually means "any non-nullish value".',
+ '- If you want a type meaning "any object", you probably want `Record<string, unknown>` instead.',
+ '- If you want a type meaning "any value", you probably want `unknown` instead.',
+ ].join('\n'),
+ },
+ object: {
+ message: [
+ 'The `object` type is currently hard to use ([see this issue](https://github.com/microsoft/TypeScript/issues/21732)).',
+ 'Consider using `Record<string, unknown>` instead, as it allows you to more easily inspect and use the keys.',
+ ].join('\n'),
+ },
+};
+```
+
+</details>
+
+### Examples
+
+Examples of **incorrect** code with the default options:
+
+```ts
+// use lower-case primitives for consistency
+const str: String = 'foo';
+const bool: Boolean = true;
+const num: Number = 1;
+const symb: Symbol = Symbol('foo');
+
+// use a proper function type
+const func: Function = () => 1;
+
+// use safer object types
+const lowerObj: object = {};
+
+const capitalObj1: Object = 1;
+const capitalObj2: Object = { a: 'string' };
+
+const curly1: {} = 1;
+const curly2: {} = { a: 'string' };
+```
+
+Examples of **correct** code with the default options:
+
+```ts
+// use lower-case primitives for consistency
+const str: string = 'foo';
+const bool: boolean = true;
+const num: number = 1;
+const symb: symbol = Symbol('foo');
+
+// use a proper function type
+const func: () => number = () => 1;
+
+// use safer object types
+const lowerObj: Record<string, unknown> = {};
+
+const capitalObj1: number = 1;
+const capitalObj2: { a: string } = { a: 'string' };
+
+const curly1: number = 1;
+const curly2: Record<'a', string> = { a: 'string' };
+```
+
## Compatibility
- TSLint: [ban-types](https://palantir.github.io/tslint/rules/ban-types/)
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md
index c8268de..06dfa16 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/brace-style.md
@@ -3,11 +3,11 @@
## Rule Details
This rule extends the base [`eslint/brace-style`](https://eslint.org/docs/rules/brace-style) rule.
-It supports all options and features of the base rule.
+It adds support for `enum`, `interface`, `namespace` and `module` declarations.
## How to use
-```cjson
+```jsonc
{
// note you must disable the base rule as it can report incorrect errors
"brace-style": "off",
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/camelcase.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/camelcase.md
index f0b49d0..cea2822 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/camelcase.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/camelcase.md
@@ -1,298 +1,8 @@
-# Enforce camelCase naming convention (`camelcase`)
+## DEPRECATED
-When it comes to naming variables, style guides generally fall into one of two
-camps: camelCase (`variableName`) and underscores (`variable_name`). This rule
-focuses on using the camelCase approach. If your style guide calls for
-camelCasing your variable names, then this rule is for you!
+This rule has been deprecated in favour of the [`naming-convention`](./naming-convention.md) rule.
-## Rule Details
-
-This rule looks for any underscores (`_`) located within the source code.
-It ignores leading and trailing underscores and only checks those in the middle
-of a variable name. If ESLint decides that the variable is a constant
-(all uppercase), then no warning will be thrown. Otherwise, a warning will be
-thrown. This rule only flags definitions and assignments but not function calls.
-In case of ES6 `import` statements, this rule only targets the name of the
-variable that will be imported into the local module scope.
-
-**_This rule was taken from the ESLint core rule `camelcase`._**
-**_Available options and test cases may vary depending on the version of ESLint installed in the system._**
-
-## Options
-
-```cjson
-{
- // note you must disable the base rule as it can report incorrect errors
- "camelcase": "off",
- "@typescript-eslint/camelcase": ["error", { "properties": "always" }]
-}
-```
-
-This rule has an object option:
-
-- `"properties": "never"` (default) does not check property names
-- `"properties": "always"` enforces camelCase style for property names
-- `"genericType": "never"` (default) does not check generic identifiers
-- `"genericType": "always"` enforces camelCase style for generic identifiers
-- `"ignoreDestructuring": false` (default) enforces camelCase style for destructured identifiers
-- `"ignoreDestructuring": true` does not check destructured identifiers
-- `allow` (`string[]`) list of properties to accept. Accept regex.
-
-### properties: "always"
-
-Examples of **incorrect** code for this rule with the default `{ "properties": "always" }` option:
-
-```js
-/*eslint @typescript-eslint/camelcase: "error"*/
-
-import { no_camelcased } from 'external-module';
-
-var my_favorite_color = '#112C85';
-
-function do_something() {
- // ...
-}
-
-obj.do_something = function() {
- // ...
-};
-
-function foo({ no_camelcased }) {
- // ...
-}
-
-function foo({ isCamelcased: no_camelcased }) {
- // ...
-}
-
-function foo({ no_camelcased = 'default value' }) {
- // ...
-}
-
-var obj = {
- my_pref: 1,
-};
-
-var { category_id = 1 } = query;
-
-var { foo: no_camelcased } = bar;
-
-var { foo: bar_baz = 1 } = quz;
-```
-
-Examples of **correct** code for this rule with the default `{ "properties": "always" }` option:
-
-```js
-/*eslint @typescript-eslint/camelcase: "error"*/
-
-import { no_camelcased as camelCased } from 'external-module';
-
-var myFavoriteColor = '#112C85';
-var _myFavoriteColor = '#112C85';
-var myFavoriteColor_ = '#112C85';
-var MY_FAVORITE_COLOR = '#112C85';
-var foo = bar.baz_boom;
-var foo = { qux: bar.baz_boom };
-
-obj.do_something();
-do_something();
-new do_something();
-
-var { category_id: category } = query;
-
-function foo({ isCamelCased }) {
- // ...
-}
-
-function foo({ isCamelCased: isAlsoCamelCased }) {
- // ...
-}
-
-function foo({ isCamelCased = 'default value' }) {
- // ...
-}
-
-var { categoryId = 1 } = query;
-
-var { foo: isCamelCased } = bar;
-
-var { foo: isCamelCased = 1 } = quz;
-```
-
-### `properties: "never"`
-
-Examples of **correct** code for this rule with the `{ "properties": "never" }` option:
-
-```js
-/*eslint @typescript-eslint/camelcase: ["error", {properties: "never"}]*/
-
-var obj = {
- my_pref: 1,
-};
-```
-
-### `genericType: "always"`
-
-Examples of **incorrect** code for this rule with the default `{ "genericType": "always" }` option:
-
-```typescript
-/* eslint @typescript-eslint/camelcase: ["error", { "genericType": "always" }] */
-
-interface Foo<t_foo> {}
-function foo<t_foo>() {}
-class Foo<t_foo> {}
-type Foo<t_foo> = {};
-class Foo {
- method<t_foo>() {}
-}
-
-interface Foo<t_foo extends object> {}
-function foo<t_foo extends object>() {}
-class Foo<t_foo extends object> {}
-type Foo<t_foo extends object> = {};
-class Foo {
- method<t_foo extends object>() {}
-}
-
-interface Foo<t_foo = object> {}
-function foo<t_foo = object>() {}
-class Foo<t_foo = object> {}
-type Foo<t_foo = object> = {};
-class Foo {
- method<t_foo = object>() {}
-}
-```
-
-Examples of **correct** code for this rule with the default `{ "genericType": "always" }` option:
-
-```typescript
-/* eslint @typescript-eslint/camelcase: ["error", { "genericType": "always" }] */
-
-interface Foo<T> {}
-function foo<t>() {}
-class Foo<T> {}
-type Foo<T> = {};
-class Foo {
- method<T>() {}
-}
-
-interface Foo<T extends object> {}
-function foo<T extends object>() {}
-class Foo<T extends object> {}
-type Foo<T extends object> = {};
-class Foo {
- method<T extends object>() {}
-}
-
-interface Foo<T = object> {}
-function foo<T = object>() {}
-class Foo<T = object> {}
-type Foo<T = object> = {};
-class Foo {
- method<T = object>() {}
-}
-```
-
-### `genericType: "never"`
-
-Examples of **correct** code for this rule with the `{ "genericType": "never" }` option:
-
-```typescript
-/* eslint @typescript-eslint/camelcase: ["error", { "genericType": "never" }] */
-
-interface Foo<t_foo> {}
-function foo<t_foo>() {}
-class Foo<t_foo> {}
-type Foo<t_foo> = {};
-class Foo {
- method<t_foo>() {}
-}
-
-interface Foo<t_foo extends object> {}
-function foo<t_foo extends object>() {}
-class Foo<t_foo extends object> {}
-type Foo<t_foo extends object> = {};
-class Foo {
- method<t_foo extends object>() {}
-}
-
-interface Foo<t_foo = object> {}
-function foo<t_foo = object>() {}
-class Foo<t_foo = object> {}
-type Foo<t_foo = object> = {};
-class Foo {
- method<t_foo = object>() {}
-}
-```
-
-### `ignoreDestructuring: false`
-
-Examples of **incorrect** code for this rule with the default `{ "ignoreDestructuring": false }` option:
-
-```js
-/*eslint @typescript-eslint/camelcase: "error"*/
-
-var { category_id } = query;
-
-var { category_id = 1 } = query;
-
-var { category_id: category_id } = query;
-
-var { category_id: category_alias } = query;
-
-var { category_id: categoryId, ...other_props } = query;
-```
-
-### `ignoreDestructuring: true`
-
-Examples of **incorrect** code for this rule with the `{ "ignoreDestructuring": true }` option:
-
-```js
-/*eslint @typescript-eslint/camelcase: ["error", {ignoreDestructuring: true}]*/
-
-var { category_id: category_alias } = query;
-
-var { category_id, ...other_props } = query;
-```
-
-Examples of **correct** code for this rule with the `{ "ignoreDestructuring": true }` option:
-
-```js
-/*eslint @typescript-eslint/camelcase: ["error", {ignoreDestructuring: true}]*/
-
-var { category_id } = query;
-
-var { category_id = 1 } = query;
-
-var { category_id: category_id } = query;
-```
-
-## allow
-
-Examples of **correct** code for this rule with the `allow` option:
-
-```js
-/*eslint @typescript-eslint/camelcase: ["error", {allow: ["UNSAFE_componentWillMount"]}]*/
-
-function UNSAFE_componentWillMount() {
- // ...
-}
-```
-
-```js
-/*eslint @typescript-eslint/camelcase: ["error", {allow: ["^UNSAFE_"]}]*/
-
-function UNSAFE_componentWillMount() {
- // ...
-}
-
-function UNSAFE_componentWillMount() {
- // ...
-}
-```
-
-## When Not To Use It
-
-If you have established coding standards using a different naming convention (separating words with underscores), turn this rule off.
-
-<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/camelcase.md)</sup>
+<!--
+This doc file has been left on purpose because `camelcase` is a core eslint rule.
+This exists to help direct people to the replacement rule.
+-->
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-literal-property-style.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-literal-property-style.md
new file mode 100644
index 0000000..1bca839
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-literal-property-style.md
@@ -0,0 +1,96 @@
+# Ensures that literals on classes are exposed in a consistent style (`class-literal-property-style`)
+
+When writing TypeScript applications, it's typically safe to store literal values on classes using fields with the `readonly` modifier to prevent them from being reassigned.
+When writing TypeScript libraries that could be used by JavaScript users however, it's typically safer to expose these literals using `getter`s, since the `readonly` modifier is enforced at compile type.
+
+## Rule Details
+
+This rule aims to ensure that literals exposed by classes are done so consistently, in one of the two style described above.
+By default this rule prefers the `fields` style as it means JS doesn't have to setup & teardown a function closure.
+
+Note that this rule only checks for constant _literal_ values (string, template string, number, bigint, boolean, regexp, null). It does not check objects or arrays, because a readonly field behaves differently to a getter in those cases. It also does not check functions, as it is a common pattern to use readonly fields with arrow function values as auto-bound methods.
+This is because these types can be mutated and carry with them more complex implications about their usage.
+
+### The `fields` style
+
+This style checks for any getter methods that return literal values, and requires them to be defined using fields with the `readonly` modifier instead.
+
+Examples of **correct** code with the `fields` style:
+
+```ts
+/* eslint @typescript-eslint/class-literal-property-style: ["error", "fields"] */
+
+class Mx {
+ public readonly myField1 = 1;
+
+ // not a literal
+ public readonly myField2 = [1, 2, 3];
+
+ private readonly ['myField3'] = 'hello world';
+
+ public get myField4() {
+ return `hello from ${window.location.href}`;
+ }
+}
+```
+
+Examples of **incorrect** code with the `fields` style:
+
+```ts
+/* eslint @typescript-eslint/class-literal-property-style: ["error", "fields"] */
+
+class Mx {
+ public static get myField1() {
+ return 1;
+ }
+
+ private get ['myField2']() {
+ return 'hello world';
+ }
+}
+```
+
+### The `getters` style
+
+This style checks for any `readonly` fields that are assigned literal values, and requires them to be defined as getters instead.
+This style pairs well with the [`@typescript-eslint/prefer-readonly`](prefer-readonly.md) rule,
+as it will identify fields that can be `readonly`, and thus should be made into getters.
+
+Examples of **correct** code with the `getters` style:
+
+```ts
+/* eslint @typescript-eslint/class-literal-property-style: ["error", "getters"] */
+
+class Mx {
+ // no readonly modifier
+ public myField1 = 'hello';
+
+ // not a literal
+ public readonly myField2 = [1, 2, 3];
+
+ public static get myField3() {
+ return 1;
+ }
+
+ private get ['myField4']() {
+ return 'hello world';
+ }
+}
+```
+
+Examples of **incorrect** code with the `getters` style:
+
+```ts
+/* eslint @typescript-eslint/class-literal-property-style: ["error", "getters"] */
+
+class Mx {
+ readonly myField1 = 1;
+ readonly myField2 = `hello world`;
+ private readonly myField3 = 'hello world';
+}
+```
+
+## When Not To Use It
+
+When you have no strong preference, or do not wish to enforce a particular style
+for how literal values are exposed by your classes.
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-name-casing.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-name-casing.md
deleted file mode 100644
index 38c3060..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/class-name-casing.md
+++ /dev/null
@@ -1,56 +0,0 @@
-# Require PascalCased class and interface names (`class-name-casing`)
-
-This rule enforces PascalCase names for classes and interfaces.
-
-## Rule Details
-
-This rule aims to make it easy to differentiate classes from regular variables at a glance.
-The `_` prefix is sometimes used to designate a private declaration, so the rule also supports a name
-that might be `_Example` instead of `Example`.
-
-## Options
-
-This rule has an object option:
-
-- `"allowUnderscorePrefix": false`: (default) does not allow the name to have an underscore prefix
-- `"allowUnderscorePrefix": true`: allows the name to optionally have an underscore prefix
-
-## Examples
-
-Examples of **incorrect** code for this rule:
-
-```ts
-class invalidClassName {}
-
-class Another_Invalid_Class_Name {}
-
-var bar = class invalidName {};
-
-interface someInterface {}
-
-class _InternalClass {}
-```
-
-Examples of **correct** code for this rule:
-
-```ts
-class ValidClassName {}
-
-export default class {}
-
-var foo = class {};
-
-interface SomeInterface {}
-
-/* eslint @typescript-eslint/class-name-casing: { "allowUnderscorePrefix": true } */
-class _InternalClass {}
-```
-
-## When Not To Use It
-
-You should turn off this rule if you do not care about class name casing, or if
-you use a different type of casing.
-
-## Further Reading
-
-- [`class-name`](https://palantir.github.io/tslint/rules/class-name/) in [TSLint](https://palantir.github.io/tslint/)
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md
new file mode 100644
index 0000000..bfb40d3
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-dangle.md
@@ -0,0 +1,34 @@
+# Require or disallow trailing comma (`comma-dangle`)
+
+## Rule Details
+
+This rule extends the base [`eslint/comma-dangle`](https://eslint.org/docs/rules/comma-dangle) rule.
+It adds support for TypeScript syntax.
+
+See the [ESLint documentation](https://eslint.org/docs/rules/comma-dangle) for more details on the `comma-dangle` rule.
+
+## Rule Changes
+
+```cjson
+{
+ // note you must disable the base rule as it can report incorrect errors
+ "comma-dangle": "off",
+ "@typescript-eslint/comma-dangle": ["error"]
+}
+```
+
+In addition to the options supported by the `comma-dangle` rule in ESLint core, the rule adds the following options:
+
+## Options
+
+This rule has a string option and an object option.
+
+- Object option:
+
+ - `"enums"` is for trailing comma in enum. (e.g. `enum Foo = {Bar,}`)
+ - `"generics"` is for trailing comma in generic. (e.g. `function foo<T,>() {}`)
+ - `"tuples"` is for trailing comma in tuple. (e.g. `type Foo = [string,]`)
+
+- [See the other options allowed](https://github.com/eslint/eslint/blob/master/docs/rules/comma-dangle.md#options)
+
+<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/comma-dangle.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md
index 145e360..0920180 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/comma-spacing.md
@@ -7,7 +7,7 @@
## How to use
-```cjson
+```jsonc
{
// note you must disable the base rule as it can report incorrect errors
"comma-spacing": "off",
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-assertions.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-assertions.md
index cdf0fb7..43e67b7 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-assertions.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-assertions.md
@@ -8,6 +8,8 @@
In addition to ensuring that type assertions are written in a consistent way, this rule also helps make your codebase more type-safe.
+`const` assertions, [introduced in TypeScript 3.4](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html#const-assertions), is always allowed by this rule. Examples of it include `let x = "hello" as const;` and `let x = <const>"hello";`.
+
## Options
```ts
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-definitions.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-definitions.md
index 1688552..52afd3f 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-definitions.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-definitions.md
@@ -25,10 +25,10 @@
For example:
-```CJSON
+```jsonc
{
- // Use type for object definitions
- "@typescript-eslint/consistent-type-definitions": ["error", "type"]
+ // Use type for object definitions
+ "@typescript-eslint/consistent-type-definitions": ["error", "type"]
}
```
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.md
new file mode 100644
index 0000000..3487bf9
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/consistent-type-imports.md
@@ -0,0 +1,64 @@
+# Enforces consistent usage of type imports (`consistent-type-imports`)
+
+TypeScript 3.8 added support for type-only imports.
+Type-only imports allow you to specify that an import can only be used in a type location, allowing certain optimizations within compilers.
+
+## Rule Details
+
+This rule aims to standardize the use of type imports style across the codebase.
+
+## Options
+
+```ts
+type Options = {
+ prefer: 'type-imports' | 'no-type-imports';
+ disallowTypeAnnotations: boolean;
+};
+
+const defaultOptions: Options = {
+ prefer: 'type-imports',
+ disallowTypeAnnotations: true,
+};
+```
+
+### `prefer`
+
+This option defines the expected import kind for type-only imports. Valid values for `prefer` are:
+
+- `type-imports` will enforce that you always use `import type Foo from '...'`. It is default.
+- `no-type-imports` will enforce that you always use `import Foo from '...'`.
+
+Examples of **correct** code with `{prefer: 'type-imports'}`, and **incorrect** code with `{prefer: 'no-type-imports'}`.
+
+```ts
+import type { Foo } from 'Foo';
+import type Bar from 'Bar';
+type T = Foo;
+const x: Bar = 1;
+```
+
+Examples of **incorrect** code with `{prefer: 'type-imports'}`, and **correct** code with `{prefer: 'no-type-imports'}`.
+
+```ts
+import { Foo } from 'Foo';
+import Bar from 'Bar';
+type T = Foo;
+const x: Bar = 1;
+```
+
+### `disallowTypeAnnotations`
+
+If `true`, type imports in type annotations (`import()`) is not allowed.
+Default is `true`.
+
+Examples of **incorrect** code with `{disallowTypeAnnotations: true}`.
+
+```ts
+type T = import('Foo').Foo;
+const x: import('Bar') = 1;
+```
+
+## When Not To Use It
+
+- If you are not using TypeScript 3.8 (or greater), then you will not be able to use this rule, as type-only imports are not allowed.
+- If you specifically want to use both import kinds for stylistic reasons, you can disable this rule.
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.md
index f3eb9f2..c9c51df 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/default-param-last.md
@@ -2,7 +2,8 @@
## Rule Details
-This rule enforces default or optional parameters to be the last of parameters.
+This rule extends the base [`eslint/default-param-last`](https://eslint.org/docs/rules/default-param-last) rule.
+It adds support for optional parameters.
Examples of **incorrect** code for this rule:
@@ -38,4 +39,18 @@
}
```
+## How to use
+
+```jsonc
+{
+ // note you must disable the base rule as it can report incorrect errors
+ "default-param-last": "off",
+ "@typescript-eslint/default-param-last": ["error"]
+}
+```
+
+## Options
+
+See [`eslint/default-param-last` options](https://eslint.org/docs/rules/default-param-last#options).
+
<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/default-param-last.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.md
new file mode 100644
index 0000000..bd1ea74
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.md
@@ -0,0 +1,46 @@
+# enforce dot notation whenever possible (`dot-notation`)
+
+## Rule Details
+
+This rule extends the base [`eslint/dot-notation`](https://eslint.org/docs/rules/dot-notation) rule.
+It adds support for optionally ignoring computed `private` member access.
+
+## How to use
+
+```jsonc
+{
+ // note you must disable the base rule as it can report incorrect errors
+ "dot-notation": "off",
+ "@typescript-eslint/dot-notation": ["error"]
+}
+```
+
+## Options
+
+See [`eslint/dot-notation`](https://eslint.org/docs/rules/dot-notation#options) options.
+This rule adds the following options:
+
+```ts
+interface Options extends BaseDotNotationOptions {
+ allowPrivateClassPropertyAccess?: boolean;
+}
+const defaultOptions: Options = {
+ ...baseDotNotationDefaultOptions,
+ allowPrivateClassPropertyAccess: false,
+};
+```
+
+### `allowPrivateClassPropertyAccess`
+
+Example of a correct code when `allowPrivateClassPropertyAccess` is set to `true`
+
+```ts
+class X {
+ private priv_prop = 123;
+}
+
+const x = new X();
+x['priv_prop'] = 123;
+```
+
+<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/dot-notation.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.md
index 360fdce..9e5b4c8 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-function-return-type.md
@@ -18,7 +18,7 @@
}
// Should indicate that a number is returned
-var fn = function() {
+var fn = function () {
return 1;
};
@@ -42,7 +42,7 @@
}
// A return value of type number
-var fn = function(): number {
+var fn = function (): number {
return 1;
};
@@ -69,12 +69,18 @@
allowTypedFunctionExpressions?: boolean;
// if true, functions immediately returning another function expression will not be checked
allowHigherOrderFunctions?: boolean;
+ // if true, arrow functions immediately returning a `as const` value will not be checked
+ allowDirectConstAssertionInArrowFunctions?: boolean;
+ // if true, concise arrow functions that start with the void keyword will not be checked
+ allowConciseArrowFunctionExpressionsStartingWithVoid?: boolean;
};
const defaults = {
allowExpressions: false,
allowTypedFunctionExpressions: true,
allowHigherOrderFunctions: true,
+ allowDirectConstAssertionInArrowFunctions: true,
+ allowConciseArrowFunctionExpressionsStartingWithVoid: true,
};
```
@@ -117,7 +123,7 @@
```ts
node.addEventListener('click', () => {});
-node.addEventListener('click', function() {});
+node.addEventListener('click', function () {});
const foo = arr.map(i => i * i);
```
@@ -129,7 +135,7 @@
```ts
let arrowFn = () => 'test';
-let funcExpr = function() {
+let funcExpr = function () {
return 'test';
};
@@ -184,7 +190,7 @@
var arrowFn = () => () => {};
function fn() {
- return function() {};
+ return function () {};
}
```
@@ -194,10 +200,44 @@
var arrowFn = () => (): void => {};
function fn() {
- return function(): void {};
+ return function (): void {};
}
```
+### `allowDirectConstAssertionInArrowFunctions`
+
+Examples of **incorrect** code for this rule with `{ allowDirectConstAssertionInArrowFunctions: true }`:
+
+```ts
+const func = (value: number) => ({ type: 'X', value } as any);
+const func = (value: number) => ({ type: 'X', value } as Action);
+```
+
+Examples of **correct** code for this rule with `{ allowDirectConstAssertionInArrowFunctions: true }`:
+
+```ts
+const func = (value: number) => ({ foo: 'bar', value } as const);
+const func = () => x as const;
+```
+
+### `allowConciseArrowFunctionExpressionsStartingWithVoid`
+
+Examples of **incorrect** code for this rule with `{ allowConciseArrowFunctionExpressionsStartingWithVoid: true }`:
+
+```ts
+var join = (a: string, b: string) => `${a}${b}`;
+
+const log = (message: string) => {
+ console.log(message);
+};
+```
+
+Examples of **correct** code for this rule with `{ allowConciseArrowFunctionExpressionsStartingWithVoid: true }`:
+
+```ts
+var log = (message: string) => void console.log(message);
+```
+
## When Not To Use It
If you don't wish to prevent calling code from using function return values in unexpected ways, then
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-member-accessibility.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-member-accessibility.md
index 9b148d9..cfbb315 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-member-accessibility.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-member-accessibility.md
@@ -258,6 +258,10 @@
class Animal {
constructor(public animalName: string) {}
}
+
+class Animal {
+ constructor(animalName: string) {}
+}
```
e.g. `[ { accessibility: 'off', overrides: { parameterProperties: 'no-public' } } ]`
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-module-boundary-types.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-module-boundary-types.md
index a5327a1..f33a8d5 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-module-boundary-types.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/explicit-module-boundary-types.md
@@ -17,7 +17,7 @@
}
// Should indicate that a number is returned
-export default function() {
+export default function () {
return 1;
}
@@ -26,6 +26,7 @@
// All arguments should be typed
export var arrowFn = (arg): string => `test ${arg}`;
+export var arrowFn = (arg: any): string => `test ${arg}`;
export class Test {
// Should indicate that no value is returned (void)
@@ -44,13 +45,17 @@
}
// A return value of type number
-export var fn = function(): number {
+export var fn = function (): number {
return 1;
};
// A return value of type string
export var arrowFn = (arg: string): string => `test ${arg}`;
+// All arguments should be typed
+export var arrowFn = (arg: string): string => `test ${arg}`;
+export var arrowFn = (arg: unknown): string => `test ${arg}`;
+
// Class is not exported
class Test {
method() {
@@ -66,16 +71,9 @@
```ts
type Options = {
/**
- * If true, type annotations are also allowed on the variable of a function expression
- * rather than on the function arguments/return value directly.
+ * If true, the rule will not report for arguments that are explicitly typed as `any`
*/
- allowTypedFunctionExpressions?: boolean;
- /**
- * If true, functions immediately returning another function expression will not
- * require an explicit return value annotation.
- * You must still type the parameters of the function.
- */
- allowHigherOrderFunctions?: boolean;
+ allowArgumentsExplicitlyTypedAsAny?: boolean;
/**
* If true, body-less arrow functions that return an `as const` type assertion will not
* require an explicit return value annotation.
@@ -86,12 +84,25 @@
* An array of function/method names that will not have their arguments or their return values checked.
*/
allowedNames?: string[];
+ /**
+ * If true, functions immediately returning another function expression will not
+ * require an explicit return value annotation.
+ * You must still type the parameters of the function.
+ */
+ allowHigherOrderFunctions?: boolean;
+ /**
+ * If true, type annotations are also allowed on the variable of a function expression
+ * rather than on the function arguments/return value directly.
+ */
+ allowTypedFunctionExpressions?: boolean;
};
const defaults = {
- allowTypedFunctionExpressions: true,
- allowHigherOrderFunctions: true,
+ allowArgumentsExplicitlyTypedAsAny: false,
+ allowDirectConstAssertionInArrowFunctions: true,
allowedNames: [],
+ allowHigherOrderFunctions: true,
+ allowTypedFunctionExpressions: true,
};
```
@@ -117,83 +128,20 @@
}
```
-### `allowTypedFunctionExpressions`
+### `allowArgumentsExplicitlyTypedAsAny`
-Examples of **incorrect** code for this rule with `{ allowTypedFunctionExpressions: true }`:
+Examples of **incorrect** code for this rule with `{ allowArgumentsExplicitlyTypedAsAny: true }`:
```ts
-export let arrowFn = () => 'test';
-
-export let funcExpr = function() {
- return 'test';
-};
-
-export let objectProp = {
- foo: () => 1,
-};
-
-export const foo = bar => {};
+export const func = (value: any): void => ({ type: 'X', value });
+export function foo(value: any): void {}
```
-Examples of additional **correct** code for this rule with `{ allowTypedFunctionExpressions: true }`:
+Examples of **correct** code for this rule with `{ allowArgumentsExplicitlyTypedAsAny: true }`:
```ts
-type FuncType = () => string;
-
-export let arrowFn: FuncType = () => 'test';
-
-export let funcExpr: FuncType = function() {
- return 'test';
-};
-
-export let asTyped = (() => '') as () => string;
-export let castTyped = <() => string>(() => '');
-
-interface ObjectType {
- foo(): number;
-}
-export let objectProp: ObjectType = {
- foo: () => 1,
-};
-export let objectPropAs = {
- foo: () => 1,
-} as ObjectType;
-export let objectPropCast = <ObjectType>{
- foo: () => 1,
-};
-
-type FooType = (bar: string) => void;
-export const foo: FooType = bar => {};
-```
-
-### `allowHigherOrderFunctions`
-
-Examples of **incorrect** code for this rule with `{ allowHigherOrderFunctions: true }`:
-
-```ts
-export var arrowFn = () => () => {};
-
-export function fn() {
- return function() {};
-}
-
-export function foo(outer) {
- return function(inner): void {};
-}
-```
-
-Examples of **correct** code for this rule with `{ allowHigherOrderFunctions: true }`:
-
-```ts
-export var arrowFn = () => (): void => {};
-
-export function fn() {
- return function(): void {};
-}
-
-export function foo(outer: string) {
- return function(inner: string): void {};
-}
+export const func = (value: number): void => ({ type: 'X', value });
+export function foo(value: number): void {}
```
### `allowDirectConstAssertionInArrowFunctions`
@@ -232,15 +180,94 @@
"@typescript-eslint/explicit-module-boundary-types": [
"error",
{
- "allowedName": ["ignoredFunctionName", "ignoredMethodName"]
+ "allowedNames": ["ignoredFunctionName", "ignoredMethodName"]
}
]
}
```
+### `allowHigherOrderFunctions`
+
+Examples of **incorrect** code for this rule with `{ allowHigherOrderFunctions: true }`:
+
+```ts
+export var arrowFn = () => () => {};
+
+export function fn() {
+ return function () {};
+}
+
+export function foo(outer) {
+ return function (inner): void {};
+}
+```
+
+Examples of **correct** code for this rule with `{ allowHigherOrderFunctions: true }`:
+
+```ts
+export var arrowFn = () => (): void => {};
+
+export function fn() {
+ return function (): void {};
+}
+
+export function foo(outer: string) {
+ return function (inner: string): void {};
+}
+```
+
+### `allowTypedFunctionExpressions`
+
+Examples of **incorrect** code for this rule with `{ allowTypedFunctionExpressions: true }`:
+
+```ts
+export let arrowFn = () => 'test';
+
+export let funcExpr = function () {
+ return 'test';
+};
+
+export let objectProp = {
+ foo: () => 1,
+};
+
+export const foo = bar => {};
+```
+
+Examples of additional **correct** code for this rule with `{ allowTypedFunctionExpressions: true }`:
+
+```ts
+type FuncType = () => string;
+
+export let arrowFn: FuncType = () => 'test';
+
+export let funcExpr: FuncType = function () {
+ return 'test';
+};
+
+export let asTyped = (() => '') as () => string;
+export let castTyped = <() => string>(() => '');
+
+interface ObjectType {
+ foo(): number;
+}
+export let objectProp: ObjectType = {
+ foo: () => 1,
+};
+export let objectPropAs = {
+ foo: () => 1,
+} as ObjectType;
+export let objectPropCast = <ObjectType>{
+ foo: () => 1,
+};
+
+type FooType = (bar: string) => void;
+export const foo: FooType = bar => {};
+```
+
## When Not To Use It
-If you wish to make sure all functions have explicit return types, as opposed to only the module boundaries, you can use [explicit-function-return-type](https://github.com/eslint/eslint/blob/master/docs/rules/explicit-function-return-type.md)
+If you wish to make sure all functions have explicit return types, as opposed to only the module boundaries, you can use [explicit-function-return-type](./explicit-function-return-type.md)
## Further Reading
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md
index aa1d3fd..8aa9e7e 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/func-call-spacing.md
@@ -1,17 +1,13 @@
# Require or disallow spacing between function identifiers and their invocations (`func-call-spacing`)
-When calling a function, developers may insert optional whitespace between the function’s name and the parentheses that invoke it.
-This rule requires or disallows spaces between the function name and the opening parenthesis that calls it.
-
## Rule Details
This rule extends the base [`eslint/func-call-spacing`](https://eslint.org/docs/rules/func-call-spacing) rule.
-It supports all options and features of the base rule.
-This version adds support for generic type parameters on function calls.
+It adds support for generic type parameters on function calls.
## How to use
-```cjson
+```jsonc
{
// note you must disable the base rule as it can report incorrect errors
"func-call-spacing": "off",
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/generic-type-naming.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/generic-type-naming.md
deleted file mode 100644
index 185b381..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/generic-type-naming.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# Enforces naming of generic type variables (`generic-type-naming`)
-
-It can be helpful to enforce a consistent naming style for generic type variables used within a type.
-For example, prefixing them with `T` and ensuring a somewhat descriptive name, or enforcing Hungarian notation.
-
-## Rule Details
-
-This rule allows you to enforce conventions over type variables. By default, it does nothing.
-
-## Options
-
-The rule takes a single string option, which is a regular expression that type variables should match.
-
-Examples of **correct** code with a configuration of `'^T[A-Z][a-zA-Z]+$'`:
-
-```typescript
-type ReadOnly<TType extends object> = {
- readonly [TKey in keyof TType]: TType[TKey];
-};
-
-interface SimpleMap<TValue> {
- [key: string]: TValue;
-}
-```
-
-Examples of **incorrect** code with a configuration of `'^T[A-Z][a-zA-Z]+$'`:
-
-```typescript
-type ReadOnly<T extends object> = { readonly [Key in keyof T]: T[Key] };
-
-interface SimpleMap<T> {
- [key: string]: T;
-}
-```
-
-## When Not To Use It
-
-If you do not want to enforce a naming convention for type variables.
-
-## Further Reading
-
-- [TypeScript Generics](https://www.typescriptlang.org/docs/handbook/generics.html)
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md
index 4636cfe..023c774 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/indent.md
@@ -1,713 +1,24 @@
# Enforce consistent indentation (`indent`)
-There are several common guidelines which require specific indentation of nested blocks and statements, like:
-
-```js
-function hello(indentSize, type) {
- if (indentSize === 4 && type !== 'tab') {
- console.log('Each next indentation will increase on 4 spaces');
- }
-}
-```
-
-These are the most common scenarios recommended in different style guides:
-
-- Two spaces, not longer and no tabs: Google, npm, NodeJS, Idiomatic, Felix
-- Tabs: jQuery
-- Four spaces: Crockford
+## PLEASE READ THIS ISSUE BEFORE USING THIS RULE [#1824](https://github.com/typescript-eslint/typescript-eslint/issues/1824)
## Rule Details
-This rule enforces a consistent indentation style. The default style is `4 spaces`.
+This rule extends the base [`eslint/indent`](https://eslint.org/docs/rules/indent) rule.
+It adds support for TypeScript nodes.
+
+## How to use
+
+```jsonc
+{
+ // note you must disable the base rule as it can report incorrect errors
+ "indent": "off",
+ "@typescript-eslint/indent": ["error"]
+}
+```
## Options
-This rule has a mixed option:
-
-For example, for 2-space indentation:
-
-```cjson
-{
- // note you must disable the base rule as it can report incorrect errors
- "indent": "off",
- "@typescript-eslint/indent": ["error", 2]
-}
-```
-
-Or for tabbed indentation:
-
-```cjson
-{
- // note you must disable the base rule as it can report incorrect errors
- "indent": "off",
- "@typescript-eslint/indent": ["error", "tab"]
-}
-```
-
-Examples of **incorrect** code for this rule with the default options:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: "error"*/
-
-if (a) {
- b=c;
- function foo(d) {
- e=f;
- }
-}
-```
-
-Examples of **correct** code for this rule with the default options:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: "error"*/
-
-if (a) {
- b=c;
- function foo(d) {
- e=f;
- }
-}
-```
-
-This rule has an object option:
-
-- `"SwitchCase"` (default: 0) enforces indentation level for `case` clauses in `switch` statements
-- `"VariableDeclarator"` (default: 1) enforces indentation level for `var` declarators; can also take an object to define separate rules for `var`, `let` and `const` declarations.
-- `"outerIIFEBody"` (default: 1) enforces indentation level for file-level IIFEs.
-- `"MemberExpression"` (default: 1) enforces indentation level for multi-line property chains. This can also be set to `"off"` to disable checking for `MemberExpression` indentation.
-- `"FunctionDeclaration"` takes an object to define rules for function declarations.
- - `parameters` (default: 1) enforces indentation level for parameters in a function declaration. This can either be a number indicating indentation level, or the string `"first"` indicating that all parameters of the declaration must be aligned with the first parameter. This can also be set to `"off"` to disable checking for `FunctionDeclaration` parameters.
- - `body` (default: 1) enforces indentation level for the body of a function declaration.
-- `"FunctionExpression"` takes an object to define rules for function expressions.
- - `parameters` (default: 1) enforces indentation level for parameters in a function expression. This can either be a number indicating indentation level, or the string `"first"` indicating that all parameters of the expression must be aligned with the first parameter. This can also be set to `"off"` to disable checking for `FunctionExpression` parameters.
- - `body` (default: 1) enforces indentation level for the body of a function expression.
-- `"CallExpression"` takes an object to define rules for function call expressions.
- - `arguments` (default: 1) enforces indentation level for arguments in a call expression. This can either be a number indicating indentation level, or the string `"first"` indicating that all arguments of the expression must be aligned with the first argument. This can also be set to `"off"` to disable checking for `CallExpression` arguments.
-- `"ArrayExpression"` (default: 1) enforces indentation level for elements in arrays. It can also be set to the string `"first"`, indicating that all the elements in the array should be aligned with the first element. This can also be set to `"off"` to disable checking for array elements.
-- `"ObjectExpression"` (default: 1) enforces indentation level for properties in objects. It can be set to the string `"first"`, indicating that all properties in the object should be aligned with the first property. This can also be set to `"off"` to disable checking for object properties.
-- `"ImportDeclaration"` (default: 1) enforces indentation level for import statements. It can be set to the string `"first"`, indicating that all imported members from a module should be aligned with the first member in the list. This can also be set to `"off"` to disable checking for imported module members.
-- `"flatTernaryExpressions": true` (`false` by default) requires no indentation for ternary expressions which are nested in other ternary expressions.
-- `"ignoredNodes"` accepts an array of [selectors](https://eslint.org/docs/developer-guide/selectors). If an AST node is matched by any of the selectors, the indentation of tokens which are direct children of that node will be ignored. This can be used as an escape hatch to relax the rule if you disagree with the indentation that it enforces for a particular syntactic pattern.
-- `"ignoreComments"` (default: false) can be used when comments do not need to be aligned with nodes on the previous or next line.
-
-Level of indentation denotes the multiple of the indent specified. Example:
-
-- Indent of 4 spaces with `VariableDeclarator` set to `2` will indent the multi-line variable declarations with 8 spaces.
-- Indent of 2 spaces with `VariableDeclarator` set to `2` will indent the multi-line variable declarations with 4 spaces.
-- Indent of 2 spaces with `VariableDeclarator` set to `{"var": 2, "let": 2, "const": 3}` will indent the multi-line variable declarations with 4 spaces for `var` and `let`, 6 spaces for `const` statements.
-- Indent of tab with `VariableDeclarator` set to `2` will indent the multi-line variable declarations with 2 tabs.
-- Indent of 2 spaces with `SwitchCase` set to `0` will not indent `case` clauses with respect to `switch` statements.
-- Indent of 2 spaces with `SwitchCase` set to `1` will indent `case` clauses with 2 spaces with respect to `switch` statements.
-- Indent of 2 spaces with `SwitchCase` set to `2` will indent `case` clauses with 4 spaces with respect to `switch` statements.
-- Indent of tab with `SwitchCase` set to `2` will indent `case` clauses with 2 tabs with respect to `switch` statements.
-- Indent of 2 spaces with `MemberExpression` set to `0` will indent the multi-line property chains with 0 spaces.
-- Indent of 2 spaces with `MemberExpression` set to `1` will indent the multi-line property chains with 2 spaces.
-- Indent of 2 spaces with `MemberExpression` set to `2` will indent the multi-line property chains with 4 spaces.
-- Indent of 4 spaces with `MemberExpression` set to `0` will indent the multi-line property chains with 0 spaces.
-- Indent of 4 spaces with `MemberExpression` set to `1` will indent the multi-line property chains with 4 spaces.
-- Indent of 4 spaces with `MemberExpression` set to `2` will indent the multi-line property chains with 8 spaces.
-
-### tab
-
-Examples of **incorrect** code for this rule with the `"tab"` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", "tab"]*/
-
-if (a) {
- b=c;
-function foo(d) {
- e=f;
- }
-}
-```
-
-Examples of **correct** code for this rule with the `"tab"` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", "tab"]*/
-
-if (a) {
-/*tab*/b=c;
-/*tab*/function foo(d) {
-/*tab*//*tab*/e=f;
-/*tab*/}
-}
-```
-
-### `SwitchCase`
-
-Examples of **incorrect** code for this rule with the `2, { "SwitchCase": 1 }` options:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "SwitchCase": 1 }]*/
-
-switch(a){
-case "a":
- break;
-case "b":
- break;
-}
-```
-
-Examples of **correct** code for this rule with the `2, { "SwitchCase": 1 }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "SwitchCase": 1 }]*/
-
-switch(a){
- case "a":
- break;
- case "b":
- break;
-}
-```
-
-### `VariableDeclarator`
-
-Examples of **incorrect** code for this rule with the `2, { "VariableDeclarator": 1 }` options:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "VariableDeclarator": 1 }]*/
-/*eslint-env es6*/
-
-var a,
- b,
- c;
-let a,
- b,
- c;
-const a = 1,
- b = 2,
- c = 3;
-```
-
-Examples of **correct** code for this rule with the `2, { "VariableDeclarator": 1 }` options:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "VariableDeclarator": 1 }]*/
-/*eslint-env es6*/
-
-var a,
- b,
- c;
-let a,
- b,
- c;
-const a = 1,
- b = 2,
- c = 3;
-```
-
-Examples of **correct** code for this rule with the `2, { "VariableDeclarator": 2 }` options:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "VariableDeclarator": 2 }]*/
-/*eslint-env es6*/
-
-var a,
- b,
- c;
-let a,
- b,
- c;
-const a = 1,
- b = 2,
- c = 3;
-```
-
-Examples of **correct** code for this rule with the `2, { "VariableDeclarator": { "var": 2, "let": 2, "const": 3 } }` options:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "VariableDeclarator": { "var": 2, "let": 2, "const": 3 } }]*/
-/*eslint-env es6*/
-
-var a,
- b,
- c;
-let a,
- b,
- c;
-const a = 1,
- b = 2,
- c = 3;
-```
-
-### `outerIIFEBody`
-
-Examples of **incorrect** code for this rule with the options `2, { "outerIIFEBody": 0 }`:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "outerIIFEBody": 0 }]*/
-
-(function() {
-
- function foo(x) {
- return x + 1;
- }
-
-})();
-
-
-if(y) {
-console.log('foo');
-}
-```
-
-Examples of **correct** code for this rule with the options `2, {"outerIIFEBody": 0}`:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "outerIIFEBody": 0 }]*/
-
-(function() {
-
-function foo(x) {
- return x + 1;
-}
-
-})();
-
-
-if(y) {
- console.log('foo');
-}
-```
-
-### `MemberExpression`
-
-Examples of **incorrect** code for this rule with the `2, { "MemberExpression": 1 }` options:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "MemberExpression": 1 }]*/
-
-foo
-.bar
-.baz()
-```
-
-Examples of **correct** code for this rule with the `2, { "MemberExpression": 1 }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "MemberExpression": 1 }]*/
-
-foo
- .bar
- .baz();
-```
-
-### `FunctionDeclaration`
-
-Examples of **incorrect** code for this rule with the `2, { "FunctionDeclaration": {"body": 1, "parameters": 2} }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "FunctionDeclaration": {"body": 1, "parameters": 2} }]*/
-
-function foo(bar,
- baz,
- qux) {
- qux();
-}
-```
-
-Examples of **correct** code for this rule with the `2, { "FunctionDeclaration": {"body": 1, "parameters": 2} }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "FunctionDeclaration": {"body": 1, "parameters": 2} }]*/
-
-function foo(bar,
- baz,
- qux) {
- qux();
-}
-```
-
-Examples of **incorrect** code for this rule with the `2, { "FunctionDeclaration": {"parameters": "first"} }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, {"FunctionDeclaration": {"parameters": "first"}}]*/
-
-function foo(bar, baz,
- qux, boop) {
- qux();
-}
-```
-
-Examples of **correct** code for this rule with the `2, { "FunctionDeclaration": {"parameters": "first"} }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, {"FunctionDeclaration": {"parameters": "first"}}]*/
-
-function foo(bar, baz,
- qux, boop) {
- qux();
-}
-```
-
-### `FunctionExpression`
-
-Examples of **incorrect** code for this rule with the `2, { "FunctionExpression": {"body": 1, "parameters": 2} }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "FunctionExpression": {"body": 1, "parameters": 2} }]*/
-
-var foo = function(bar,
- baz,
- qux) {
- qux();
-}
-```
-
-Examples of **correct** code for this rule with the `2, { "FunctionExpression": {"body": 1, "parameters": 2} }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "FunctionExpression": {"body": 1, "parameters": 2} }]*/
-
-var foo = function(bar,
- baz,
- qux) {
- qux();
-}
-```
-
-Examples of **incorrect** code for this rule with the `2, { "FunctionExpression": {"parameters": "first"} }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, {"FunctionExpression": {"parameters": "first"}}]*/
-
-var foo = function(bar, baz,
- qux, boop) {
- qux();
-}
-```
-
-Examples of **correct** code for this rule with the `2, { "FunctionExpression": {"parameters": "first"} }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, {"FunctionExpression": {"parameters": "first"}}]*/
-
-var foo = function(bar, baz,
- qux, boop) {
- qux();
-}
-```
-
-### `CallExpression`
-
-Examples of **incorrect** code for this rule with the `2, { "CallExpression": {"arguments": 1} }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "CallExpression": {"arguments": 1} }]*/
-
-foo(bar,
- baz,
- qux
-);
-```
-
-Examples of **correct** code for this rule with the `2, { "CallExpression": {"arguments": 1} }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "CallExpression": {"arguments": 1} }]*/
-
-foo(bar,
- baz,
- qux
-);
-```
-
-Examples of **incorrect** code for this rule with the `2, { "CallExpression": {"arguments": "first"} }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, {"CallExpression": {"arguments": "first"}}]*/
-
-foo(bar, baz,
- baz, boop, beep);
-```
-
-Examples of **correct** code for this rule with the `2, { "CallExpression": {"arguments": "first"} }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, {"CallExpression": {"arguments": "first"}}]*/
-
-foo(bar, baz,
- baz, boop, beep);
-```
-
-### `ArrayExpression`
-
-Examples of **incorrect** code for this rule with the `2, { "ArrayExpression": 1 }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "ArrayExpression": 1 }]*/
-
-var foo = [
- bar,
-baz,
- qux
-];
-```
-
-Examples of **correct** code for this rule with the `2, { "ArrayExpression": 1 }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "ArrayExpression": 1 }]*/
-
-var foo = [
- bar,
- baz,
- qux
-];
-```
-
-Examples of **incorrect** code for this rule with the `2, { "ArrayExpression": "first" }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, {"ArrayExpression": "first"}]*/
-
-var foo = [bar,
- baz,
- qux
-];
-```
-
-Examples of **correct** code for this rule with the `2, { "ArrayExpression": "first" }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, {"ArrayExpression": "first"}]*/
-
-var foo = [bar,
- baz,
- qux
-];
-```
-
-### `ObjectExpression`
-
-Examples of **incorrect** code for this rule with the `2, { "ObjectExpression": 1 }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "ObjectExpression": 1 }]*/
-
-var foo = {
- bar: 1,
-baz: 2,
- qux: 3
-};
-```
-
-Examples of **correct** code for this rule with the `2, { "ObjectExpression": 1 }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, { "ObjectExpression": 1 }]*/
-
-var foo = {
- bar: 1,
- baz: 2,
- qux: 3
-};
-```
-
-Examples of **incorrect** code for this rule with the `2, { "ObjectExpression": "first" }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, {"ObjectExpression": "first"}]*/
-
-var foo = { bar: 1,
- baz: 2 };
-```
-
-Examples of **correct** code for this rule with the `2, { "ObjectExpression": "first" }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 2, {"ObjectExpression": "first"}]*/
-
-var foo = { bar: 1,
- baz: 2 };
-```
-
-### `ImportDeclaration`
-
-Examples of **correct** code for this rule with the `4, { "ImportDeclaration": 1 }` option (the default):
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 4, { ImportDeclaration: 1 }]*/
-
-import { foo,
- bar,
- baz,
-} from 'qux';
-
-import {
- foo,
- bar,
- baz,
-} from 'qux';
-```
-
-Examples of **incorrect** code for this rule with the `4, { ImportDeclaration: "first" }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 4, { ImportDeclaration: "first" }]*/
-
-import { foo,
- bar,
- baz,
-} from 'qux';
-```
-
-Examples of **correct** code for this rule with the `4, { ImportDeclaration: "first" }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 4, { ImportDeclaration: "first" }]*/
-
-import { foo,
- bar,
- baz,
-} from 'qux';
-```
-
-### `flatTernaryExpressions`
-
-Examples of **incorrect** code for this rule with the default `4, { "flatTernaryExpressions": false }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 4, { "flatTernaryExpressions": false }]*/
-
-var a =
- foo ? bar :
- baz ? qux :
- boop;
-```
-
-Examples of **correct** code for this rule with the default `4, { "flatTernaryExpressions": false }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 4, { "flatTernaryExpressions": false }]*/
-
-var a =
- foo ? bar :
- baz ? qux :
- boop;
-```
-
-Examples of **incorrect** code for this rule with the `4, { "flatTernaryExpressions": true }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 4, { "flatTernaryExpressions": true }]*/
-
-var a =
- foo ? bar :
- baz ? qux :
- boop;
-```
-
-Examples of **correct** code for this rule with the `4, { "flatTernaryExpressions": true }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 4, { "flatTernaryExpressions": true }]*/
-
-var a =
- foo ? bar :
- baz ? qux :
- boop;
-```
-
-### `ignoredNodes`
-
-The following configuration ignores the indentation of `ConditionalExpression` ("ternary expression") nodes:
-
-Examples of **correct** code for this rule with the `4, { "ignoredNodes": ["ConditionalExpression"] }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 4, { "ignoredNodes": ["ConditionalExpression"] }]*/
-
-var a = foo
- ? bar
- : baz;
-
-var a = foo
- ? bar
-: baz;
-```
-
-The following configuration ignores indentation in the body of IIFEs.
-
-Examples of **correct** code for this rule with the `4, { "ignoredNodes": ["CallExpression > FunctionExpression.callee > BlockStatement.body"] }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 4, { "ignoredNodes": ["CallExpression > FunctionExpression.callee > BlockStatement.body"] }]*/
-
-(function() {
-
-foo();
-bar();
-
-})
-```
-
-### `ignoreComments`
-
-Examples of additional **correct** code for this rule with the `4, { "ignoreComments": true }` option:
-
-<!-- prettier-ignore -->
-```js
-/*eslint @typescript-eslint/indent: ["error", 4, { "ignoreComments": true }] */
-
-if (foo) {
- doSomething();
-
-// comment intentionally de-indented
- doSomethingElse();
-}
-```
-
-## Compatibility
-
-- **JSHint**: `indent`
-- **JSCS**: [`validateIndentation`](https://jscs-dev.github.io/rule/validateIndentation)
+See [`eslint/indent` options](https://eslint.org/docs/rules/indent#options).
<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/indent.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.md
new file mode 100644
index 0000000..f83c5bd
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/init-declarations.md
@@ -0,0 +1,22 @@
+# require or disallow initialization in variable declarations (`init-declarations`)
+
+## Rule Details
+
+This rule extends the base [`eslint/init-declarations`](https://eslint.org/docs/rules/init-declarations) rule.
+It adds support for TypeScript's `declare` variables.
+
+## How to use
+
+```jsonc
+{
+ // note you must disable the base rule as it can report incorrect errors
+ "init-declarations": "off",
+ "@typescript-eslint/init-declarations": ["error"]
+}
+```
+
+## Options
+
+See [`eslint/init-declarations` options](https://eslint.org/docs/rules/init-declarations#options).
+
+<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/init-declarations.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/interface-name-prefix.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/interface-name-prefix.md
deleted file mode 100644
index f6439b4..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/interface-name-prefix.md
+++ /dev/null
@@ -1,136 +0,0 @@
-# Require that interface names should or should not prefixed with `I` (`interface-name-prefix`)
-
-Interfaces often represent important software contracts, so it can be helpful to prefix their names with `I`.
-The unprefixed name is then available for a class that provides a standard implementation of the interface.
-Alternatively, the contributor guidelines for the TypeScript repo suggest
-[never prefixing](https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines#names) interfaces with `I`.
-
-## Rule Details
-
-This rule enforces whether or not the `I` prefix is required for interface names.
-The `_` prefix is sometimes used to designate a private declaration, so the rule also supports a private interface
-that might be named `_IAnimal` instead of `IAnimal`.
-
-## Options
-
-This rule has an object option:
-
-- `{ "prefixWithI": "never" }`: (default) disallows all interfaces being prefixed with `"I"` or `"_I"`
-- `{ "prefixWithI": "always" }`: requires all interfaces be prefixed with `"I"` (but does not allow `"_I"`)
-- `{ "prefixWithI": "always", "allowUnderscorePrefix": true }`: requires all interfaces be prefixed with
- either `"I"` or `"_I"`
-
-For backwards compatibility, this rule supports a string option instead:
-
-- `"never"`: Equivalent to `{ "prefixWithI": "never" }`
-- `"always"`: Equivalent to `{ "prefixWithI": "always" }`
-
-## Examples
-
-### never
-
-**Configuration:** `{ "prefixWithI": "never" }`
-
-The following patterns are considered warnings:
-
-```ts
-interface IAnimal {
- name: string;
-}
-
-interface IIguana {
- name: string;
-}
-
-interface _IAnimal {
- name: string;
-}
-```
-
-The following patterns are not warnings:
-
-```ts
-interface Animal {
- name: string;
-}
-
-interface Iguana {
- name: string;
-}
-```
-
-### always
-
-**Configuration:** `{ "prefixWithI": "always" }`
-
-The following patterns are considered warnings:
-
-```ts
-interface Animal {
- name: string;
-}
-
-interface Iguana {
- name: string;
-}
-
-interface _IAnimal {
- name: string;
-}
-```
-
-The following patterns are not warnings:
-
-```ts
-interface IAnimal {
- name: string;
-}
-
-interface IIguana {
- name: string;
-}
-```
-
-### always and allowing underscores
-
-**Configuration:** `{ "prefixWithI": "always", "allowUnderscorePrefix": true }`
-
-The following patterns are considered warnings:
-
-```ts
-interface Animal {
- name: string;
-}
-
-interface Iguana {
- name: string;
-}
-```
-
-The following patterns are not warnings:
-
-```ts
-interface IAnimal {
- name: string;
-}
-
-interface IIguana {
- name: string;
-}
-
-interface _IAnimal {
- name: string;
-}
-```
-
-## When Not To Use It
-
-If you do not want to enforce interface name prefixing.
-
-## Further Reading
-
-TypeScript [Interfaces](https://www.typescriptlang.org/docs/handbook/interfaces.html)
-
-## Compatibility
-
-TSLint: [interface-name](https://palantir.github.io/tslint/rules/interface-name/)
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md
new file mode 100644
index 0000000..3178542
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/keyword-spacing.md
@@ -0,0 +1,22 @@
+# Enforce consistent spacing before and after keywords (`keyword-spacing`)
+
+## Rule Details
+
+This rule extends the base [`eslint/keyword-spacing`](https://eslint.org/docs/rules/keyword-spacing) rule.
+This version adds support for generic type parameters on function calls.
+
+## How to use
+
+```jsonc
+{
+ // note you must disable the base rule as it can report incorrect errors
+ "keyword-spacing": "off",
+ "@typescript-eslint/keyword-spacing": ["error"]
+}
+```
+
+## Options
+
+See [`eslint/keyword-spacing` options](https://eslint.org/docs/rules/keyword-spacing#options).
+
+<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/keyword-spacing.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md
new file mode 100644
index 0000000..e2692bb
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/lines-between-class-members.md
@@ -0,0 +1,73 @@
+# Require or disallow an empty line between class members (`lines-between-class-members`)
+
+This rule improves readability by enforcing lines between class members. It will not check empty lines before the first member and after the last member. This rule require or disallow an empty line between class members.
+
+## Rule Details
+
+This rule extends the base [`eslint/lines-between-class-members`](https://eslint.org/docs/rules/lines-between-class-members) rule.
+It adds support for ignoring overload methods in a class.
+
+See the [ESLint documentation](https://eslint.org/docs/rules/lines-between-class-members) for more details on the `lines-between-class-members` rule.
+
+## Rule Changes
+
+```jsonc
+{
+ // note you must disable the base rule as it can report incorrect errors
+ "lines-between-class-members": "off",
+ "@typescript-eslint/lines-between-class-members": ["error"]
+}
+```
+
+In addition to the options supported by the `lines-between-class-members` rule in ESLint core, the rule adds the following options:
+
+## Options
+
+This rule has a string option and an object option.
+
+- Object option:
+
+ - `"exceptAfterOverload": true` (default) - Skip checking empty lines after overload class members
+ - `"exceptAfterOverload": false` - **do not** skip checking empty lines after overload class members
+
+- [See the other options allowed](https://github.com/eslint/eslint/blob/master/docs/rules/lines-between-class-members.md#options)
+
+### `exceptAfterOverload: true`
+
+Examples of **correct** code for the `{ "exceptAfterOverload": true }` option:
+
+```ts
+/*eslint @typescript-eslint/lines-between-class-members: ["error", "always", { "exceptAfterOverload": true }]*/
+
+class foo {
+ bar(a: string): void;
+ bar(a: string, b: string): void;
+ bar(a: string, b: string) {}
+
+ baz() {}
+
+ qux() {}
+}
+```
+
+### `exceptAfterOverload: false`
+
+Examples of **correct** code for the `{ "exceptAfterOverload": false }` option:
+
+```ts
+/*eslint @typescript-eslint/lines-between-class-members: ["error", "always", { "exceptAfterOverload": false }]*/
+
+class foo {
+ bar(a: string): void;
+
+ bar(a: string, b: string): void;
+
+ bar(a: string, b: string) {}
+
+ baz() {}
+
+ qux() {}
+}
+```
+
+<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/lines-between-class-members.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-naming.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-naming.md
deleted file mode 100644
index e12f4f2..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-naming.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# Enforces naming conventions for class members by visibility (`member-naming`)
-
-It can be helpful to enforce naming conventions for `private` (and sometimes `protected`) members of an object. For example, prefixing private properties with a `_` allows them to be easily discerned when being inspected by tools that do not have knowledge of TypeScript (such as most debuggers).
-
-## Rule Details
-
-This rule allows you to enforce conventions for class property and method names by their visibility. By default, it enforces nothing.
-
-> Note: constructors are explicitly ignored regardless of the the regular expression options provided
-
-## Options
-
-You can specify a regular expression to test the names of properties for each visibility level: `public`, `protected`, `private`.
-
-Examples of **correct** code with `{ "private": "^_" }` specified:
-
-```ts
-class HappyClass {
- private _foo: string;
- private _bar = 123;
- private _fizz() {}
-}
-```
-
-Examples of **incorrect** code with `{ "private": "^_" }` specified:
-
-```ts
-class SadClass {
- private foo: string;
- private bar = 123;
- private fizz() {}
-}
-```
-
-## When Not To Use It
-
-If you do not want to enforce per-visibility naming rules for member properties.
-
-## Further Reading
-
-- ESLint's [`camelcase` rule](https://eslint.org/docs/rules/camelcase)
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md
index d028d84..eda1c57 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md
@@ -1,64 +1,95 @@
# Require a consistent member declaration order (`member-ordering`)
-A consistent ordering of fields, methods and constructors can make interfaces, type literals, classes and class
-expressions easier to read, navigate and edit.
+A consistent ordering of fields, methods and constructors can make interfaces, type literals, classes and class expressions easier to read, navigate and edit.
## Rule Details
-This rule aims to standardize the way class declarations, class expressions, interfaces and type literals are structured.
+This rule aims to standardize the way class declarations, class expressions, interfaces and type literals are structured and ordered.
-It allows to group members by their type (e.g. `public-static-field`, `protected-static-field`, `private-static-field`, `public-instance-field`, ...). By default, their order is the same inside `classes`, `classExpressions`, `interfaces` and `typeLiterals` (note: not all member types apply to `interfaces` and `typeLiterals`). It is possible to define the order for any of those individually or to change the default order for all of them by setting the `default` option.
+### Grouping and sorting member groups
+
+It allows to group members by their type (e.g. `public-static-field`, `protected-static-field`, `private-static-field`, `public-instance-field`, ...) and enforce a certain order for these groups. By default, their order is the same inside `classes`, `classExpressions`, `interfaces` and `typeLiterals` (note: not all member types apply to `interfaces` and `typeLiterals`). It is possible to define the order for any of those individually or to change the default order for all of them by setting the `default` option.
+
+### Sorting members
+
+Besides grouping the members and sorting their groups, this rule also allows to sort the members themselves (e.g. `a`, `b`, `c`, ...). You have 2 options: Sort all of them while ignoring their type or sort them while respecting their types (e.g. sort all fields in an interface alphabetically).
## Options
-```ts
-{
- default?: Array<MemberType> | never
- classes?: Array<MemberType> | never
- classExpressions?: Array<MemberType> | never
+These options allow to specify how to group the members and sort their groups.
- interfaces?: ['signature' | 'field' | 'method' | 'constructor'] | never
- typeLiterals?: ['signature' | 'field' | 'method' | 'constructor'] | never
+- Sort groups, don't enforce member order: Use `memberTypes`
+- Sort members, don't enforce group order: Use `order`
+- Sort members within groups: Use `memberTypes` and `order`
+
+```ts
+type TypeOptions<T> =
+ | {
+ memberTypes: Array<T> | 'never',
+ order?: 'alphabetically' | 'as-written',
+ }
+ | {
+ order: 'alphabetically',
+ };
+
+{
+ default?: TypeOptions<MemberTypes>,
+
+ classes?: TypeOptions<MemberTypes>,
+ classExpressions?: TypeOptions<MemberTypes>,
+
+ interfaces?: TypeOptions<'signature' | 'field' | 'method' | 'constructor'>,
+ typeLiterals?: TypeOptions<'signature' | 'field' | 'method' | 'constructor'>,
}
```
See below for the possible definitions of `MemberType`.
+### Deprecated syntax
+
+Note: There is a deprecated syntax to specify the member types as an array.
+
### Member types (granular form)
There are multiple ways to specify the member types. The most explicit and granular form is the following:
-```json5
+```jsonc
[
// Index signature
- 'signature',
+ "signature",
// Fields
- 'public-static-field',
- 'protected-static-field',
- 'private-static-field',
- 'public-instance-field',
- 'protected-instance-field',
- 'private-instance-field',
- 'public-abstract-field',
- 'protected-abstract-field',
- 'private-abstract-field',
+ "public-static-field",
+ "protected-static-field",
+ "private-static-field",
+ "public-decorated-field",
+ "protected-decorated-field",
+ "private-decorated-field",
+ "public-instance-field",
+ "protected-instance-field",
+ "private-instance-field",
+ "public-abstract-field",
+ "protected-abstract-field",
+ "private-abstract-field",
// Constructors
- 'public-constructor',
- 'protected-constructor',
- 'private-constructor',
+ "public-constructor",
+ "protected-constructor",
+ "private-constructor",
// Methods
- 'public-static-method',
- 'protected-static-method',
- 'private-static-method',
- 'public-instance-method',
- 'protected-instance-method',
- 'private-instance-method',
- 'public-abstract-method',
- 'protected-abstract-method',
- 'private-abstract-method',
+ "public-static-method",
+ "protected-static-method",
+ "private-static-method",
+ "public-decorated-method",
+ "protected-decorated-method",
+ "private-decorated-method",
+ "public-instance-method",
+ "protected-instance-method",
+ "private-instance-method",
+ "public-abstract-method",
+ "protected-abstract-method",
+ "private-abstract-method"
]
```
@@ -68,23 +99,51 @@
It is also possible to group member types by their accessibility (`static`, `instance`, `abstract`), ignoring their scope.
-```json5
+```jsonc
[
// Index signature
// No accessibility for index signature. See above.
// Fields
- 'public-field', // = ['public-static-field', 'public-instance-field'])
- 'protected-field', // = ['protected-static-field', 'protected-instance-field'])
- 'private-field', // = ['private-static-field', 'private-instance-field'])
+ "public-field", // = ["public-static-field", "public-instance-field"]
+ "protected-field", // = ["protected-static-field", "protected-instance-field"]
+ "private-field", // = ["private-static-field", "private-instance-field"]
// Constructors
// Only the accessibility of constructors is configurable. See below.
// Methods
- 'public-method', // = ['public-static-method', 'public-instance-method'])
- 'protected-method', // = ['protected-static-method', 'protected-instance-method'])
- 'private-method', // = ['private-static-method', 'private-instance-method'])
+ "public-method", // = ["public-static-method", "public-instance-method"]
+ "protected-method", // = ["protected-static-method", "protected-instance-method"]
+ "private-method" // = ["private-static-method", "private-instance-method"]
+]
+```
+
+### Member group types (with accessibility and a decorator)
+
+It is also possible to group methods or fields with a decorator separately, optionally specifying
+their accessibility.
+
+```jsonc
+[
+ // Index signature
+ // No decorators for index signature.
+
+ // Fields
+ "public-decorated-field",
+ "protected-decorated-field",
+ "private-decorated-field",
+
+ "decorated-field", // = ["public-decorated-field", "protected-decorated-field", "private-decorated-field"]
+
+ // Constructors
+ // There are no decorators for constructors.
+
+ "public-decorated-method",
+ "protected-decorated-method",
+ "private-decorated-method",
+
+ "decorated-method" // = ["public-decorated-method", "protected-decorated-method", "private-decorated-method"]
]
```
@@ -92,23 +151,23 @@
Another option is to group the member types by their scope (`public`, `protected`, `private`), ignoring their accessibility.
-```json5
+```jsonc
[
// Index signature
// No scope for index signature. See above.
// Fields
- 'static-field', // = ['public-static-field', 'protected-static-field', 'private-static-field'])
- 'instance-field', // = ['public-instance-field', 'protected-instance-field', 'private-instance-field'])
- 'abstract-field', // = ['public-abstract-field', 'protected-abstract-field', 'private-abstract-field'])
+ "static-field", // = ["public-static-field", "protected-static-field", "private-static-field"]
+ "instance-field", // = ["public-instance-field", "protected-instance-field", "private-instance-field"]
+ "abstract-field", // = ["public-abstract-field", "protected-abstract-field", "private-abstract-field"]
// Constructors
- 'constructor', // = ['public-constructor', 'protected-constructor', 'private-constructor'])
+ "constructor", // = ["public-constructor", "protected-constructor", "private-constructor"]
// Methods
- 'static-method', // = ['public-static-method', 'protected-static-method', 'private-static-method'])
- 'instance-method', // = ['public-instance-method', 'protected-instance-method', 'private-instance-method'])
- 'abstract-method', // = ['public-abstract-method', 'protected-abstract-method', 'private-abstract-method'])
+ "static-method", // = ["public-static-method", "protected-static-method", "private-static-method"]
+ "instance-method", // = ["public-instance-method", "protected-instance-method", "private-instance-method"]
+ "abstract-method" // = ["public-abstract-method", "protected-abstract-method", "private-abstract-method"]
]
```
@@ -116,21 +175,21 @@
The third grouping option is to ignore both scope and accessibility.
-```json5
+```jsonc
[
// Index signature
// No grouping for index signature. See above.
// Fields
- 'field', // = ['public-static-field', 'protected-static-field', 'private-static-field', 'public-instance-field', 'protected-instance-field', 'private-instance-field',
- // 'public-abstract-field', 'protected-abstract-field', private-abstract-field'])
+ "field", // = ["public-static-field", "protected-static-field", "private-static-field", "public-instance-field", "protected-instance-field", "private-instance-field",
+ // "public-abstract-field", "protected-abstract-field", private-abstract-field"]
// Constructors
// Only the accessibility of constructors is configurable. See above.
// Methods
- 'method', // = ['public-static-method', 'protected-static-method', 'private-static-method', 'public-instance-method', 'protected-instance-method', 'private-instance-method',
- // 'public-abstract-method', 'protected-abstract-method', 'private-abstract-method'])
+ "method" // = ["public-static-method", "protected-static-method", "private-static-method", "public-instance-method", "protected-instance-method", "private-instance-method",
+ // "public-abstract-method", "protected-abstract-method", "private-abstract-method"]
]
```
@@ -138,15 +197,21 @@
The default configuration looks as follows:
-```json
+```jsonc
{
"default": [
+ // Index signature
"signature",
+ // Fields
"public-static-field",
"protected-static-field",
"private-static-field",
+ "public-decorated-field",
+ "protected-decorated-field",
+ "private-decorated-field",
+
"public-instance-field",
"protected-instance-field",
"private-instance-field",
@@ -163,14 +228,26 @@
"instance-field",
"abstract-field",
+ "decorated-field",
+
"field",
+ // Constructors
+ "public-constructor",
+ "protected-constructor",
+ "private-constructor",
+
"constructor",
+ // Methods
"public-static-method",
"protected-static-method",
"private-static-method",
+ "public-decorated-method",
+ "protected-decorated-method",
+ "private-decorated-method",
+
"public-instance-method",
"protected-instance-method",
"private-instance-method",
@@ -187,6 +264,8 @@
"instance-method",
"abstract-method",
+ "decorated-method",
+
"method"
]
}
@@ -194,6 +273,8 @@
Note: The default configuration contains member group types which contain other member types (see above). This is intentional to provide better error messages.
+Note: By default, the members are not sorted. If you want to sort them alphabetically, you have to provide a custom configuration.
+
## Examples
### Custom `default` configuration
@@ -448,7 +529,7 @@
};
```
-Issue: Public static fields should come first, followed by static fields and instance fields.
+Note: Public static fields should come first, followed by static fields and instance fields.
##### Correct examples
@@ -542,21 +623,19 @@
##### Correct example
-Examples of **correct** code for `{ "classes": [...] }` option:
-
```ts
class Foo {
private C: string; // (irrelevant)
public D: string; // (irrelevant)
- public static E: string; // -> public static field
+ public B(): void {} // -> public instance method
constructor() {} // (irrelevant)
public static A(): void {} // (irrelevant)
- public B(): void {} // -> public instance method
+ public static E: string; // -> public static field
}
```
@@ -712,6 +791,73 @@
};
```
+### Sorting alphabetically within member groups
+
+It is possible to sort all members within a group alphabetically.
+
+#### Configuration: `{ "default": { "memberTypes": <Default Order>, "order": "alphabetically" } }`
+
+This will apply the default order (see above) and enforce an alphabetic order within each group.
+
+##### Incorrect examples
+
+```ts
+interface Foo {
+ a: x;
+ b: x;
+ c: x;
+
+ new (): Bar;
+ (): Baz;
+
+ a(): void;
+ b(): void;
+ c(): void;
+
+ // Wrong group order, should be placed before all field definitions
+ [a: string]: number;
+}
+```
+
+```ts
+interface Foo {
+ [a: string]: number;
+
+ a: x;
+ b: x;
+ c: x;
+
+ new (): Bar;
+ (): Baz;
+
+ // Wrong alphabetic order within group
+ c(): void;
+ b(): void;
+ a(): void;
+}
+```
+
+### Sorting alphabetically while ignoring member groups
+
+It is also possible to sort all members and ignore the member groups completely.
+
+#### Configuration: `{ "default": { "memberTypes": "never", "order": "alphabetically" } }`
+
+##### Incorrect example
+
+```ts
+interface Foo {
+ b(): void;
+ a: b;
+
+ [a: string]: number; // Order doesn't matter (no sortable identifier)
+ new (): Bar; // Order doesn't matter (no sortable identifier)
+ (): Baz; // Order doesn't matter (no sortable identifier)
+}
+```
+
+Note: Wrong alphabetic order `b(): void` should come after `a: b`.
+
## When Not To Use It
If you don't care about the general structure of your classes and interfaces, then you will not need this rule.
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/method-signature-style.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/method-signature-style.md
new file mode 100644
index 0000000..4358ee3
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/method-signature-style.md
@@ -0,0 +1,94 @@
+# Enforces using a particular method signature syntax. (`method-signature-style`)
+
+There are two ways to define an object/interface function property.
+
+```ts
+// method shorthand syntax
+interface T1 {
+ func(arg: string): number;
+}
+
+// regular property with function type
+interface T2 {
+ func: (arg: string) => number;
+}
+```
+
+A good practice is to use the TypeScript's `strict` option (which implies `strictFunctionTypes`) which enables correct typechecking for function properties only (method signatures get old behavior).
+
+TypeScript FAQ:
+
+> A method and a function property of the same type behave differently.
+> Methods are always bivariant in their argument, while function properties are contravariant in their argument under `strictFunctionTypes`.
+
+See the reasoning behind that in the [TypeScript PR for the compiler option](https://github.com/microsoft/TypeScript/pull/18654).
+
+## Options
+
+This rule accepts one string option:
+
+- `"property"`: Enforce using property signature for functions. Use this to enforce maximum correctness together with TypeScript's strict mode.
+- `"method"`: Enforce using method signature for functions. Use this if you aren't using TypeScript's strict mode and prefer this style.
+
+The default is `"property"`.
+
+## Rule Details
+
+Examples of **incorrect** code with `property` option.
+
+```ts
+interface T1 {
+ func(arg: string): number;
+}
+type T2 = {
+ func(arg: boolean): void;
+};
+interface T3 {
+ func(arg: number): void;
+ func(arg: string): void;
+ func(arg: boolean): void;
+}
+```
+
+Examples of **correct** code with `property` option.
+
+```ts
+interface T1 {
+ func: (arg: string) => number;
+}
+type T2 = {
+ func: (arg: boolean) => void;
+};
+// this is equivalent to the overload
+interface T3 {
+ func: ((arg: number) => void) &
+ ((arg: string) => void) &
+ ((arg: boolean) => void);
+}
+```
+
+Examples of **incorrect** code with `method` option.
+
+```ts
+interface T1 {
+ func: (arg: string) => number;
+}
+type T2 = {
+ func: (arg: boolean) => void;
+};
+```
+
+Examples of **correct** code with `method` option.
+
+```ts
+interface T1 {
+ func(arg: string): number;
+}
+type T2 = {
+ func(arg: boolean): void;
+};
+```
+
+## When Not To Use It
+
+If you don't want to enforce a particular style for object/interface function types, and/or if you don't use `strictFunctionTypes`, then you don't need this rule.
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.md
index 7766123..d57bc1c 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/naming-convention.md
@@ -1,7 +1,7 @@
# Enforces naming conventions for everything across a codebase (`naming-convention`)
Enforcing naming conventions helps keep the codebase consistent, and reduces overhead when thinking about how to name a variable.
-Additionally, a well designed style guide can help communicate intent, such as by enforcing all private properties begin with an `_`, and all global-level constants are written in `UPPER_CASE`.
+Additionally, a well-designed style guide can help communicate intent, such as by enforcing all private properties begin with an `_`, and all global-level constants are written in `UPPER_CASE`.
There are many different rules that have existed over time, but they have had the problem of not having enough granularity, meaning it was hard to have a well defined style guide, and most of the time you needed 3 or more rules at once to enforce different conventions, hoping they didn't conflict.
@@ -39,7 +39,7 @@
suffix?: string[];
// selector options
- selector: Selector;
+ selector: Selector | Selector[];
filter?:
| string
| {
@@ -51,7 +51,7 @@
types?: Types<Selector>[];
}[];
-// the default config essentially does the same thing as ESLint's camelcase rule
+// the default config is similar to ESLint's camelcase rule but more strict
const defaultOptions: Options = [
{
selector: 'default',
@@ -150,9 +150,13 @@
If these are provided, the identifier must start with one of the provided values. For example, if you provide `{ prefix: ['IFace', 'Class', 'Type'] }`, then the following names are valid: `IFaceFoo`, `ClassBar`, `TypeBaz`, but the name `Bang` is not valid, as it contains none of the prefixes.
+**Note:** As [documented above](#format-options), the prefix is trimmed before format is validated, therefore PascalCase must be used to allow variables such as `isEnabled` using the prefix `is`.
+
### Selector Options
- `selector` (see "Allowed Selectors, Modifiers and Types" below).
+ - Accepts one or array of selectors to define an option block that applies to one or multiple selectors.
+ - For example, if you provide `{ selector: ['variable', 'function'] }`, then it will apply the same option to variable and function nodes.
- `modifiers` allows you to specify which modifiers to granularly apply to, such as the accessibility (`private`/`public`/`protected`), or if the thing is `static`, etc.
- The name must match _all_ of the modifiers.
- For example, if you provide `{ modifiers: ['private', 'static', 'readonly'] }`, then it will only match something that is `private static readonly`, and something that is just `private` will not match.
@@ -174,7 +178,7 @@
[
/* 1 */ { selector: 'default', format: ['camelCase'] },
/* 2 */ { selector: 'variable', format: ['snake_case'] },
- /* 3 */ { selector: 'variable', type: ['boolean'], format: ['UPPER_CASE'] },
+ /* 3 */ { selector: 'variable', types: ['boolean'], format: ['UPPER_CASE'] },
/* 4 */ { selector: 'variableLike', format: ['PascalCase'] },
];
```
@@ -190,7 +194,7 @@
Individual Selectors match specific, well-defined sets. There is no overlap between each of the individual selectors.
- `variable` - matches any `var` / `let` / `const` variable name.
- - Allowed `modifiers`: none.
+ - Allowed `modifiers`: `const`.
- Allowed `types`: `boolean`, `string`, `number`, `function`, `array`.
- `function` - matches any named function declaration or named function expression.
- Allowed `modifiers`: none.
@@ -277,6 +281,8 @@
### Enforce that boolean variables are prefixed with an allowed verb
+**Note:** As [documented above](#format-options), the prefix is trimmed before format is validated, thus PascalCase must be used to allow variables such as `isEnabled`.
+
```json
{
"@typescript-eslint/naming-convention": [
@@ -305,8 +311,25 @@
}
```
+### Enforce that all const variables are in UPPER_CASE
+
+```json
+{
+ "@typescript-eslint/naming-convention": [
+ "error",
+ {
+ "selector": "variable",
+ "modifiers": ["const"],
+ "format": ["UPPER_CASE"]
+ }
+ ]
+}
+```
+
### Enforce that type parameters (generics) are prefixed with `T`
+This allows you to emulate the old `generic-type-naming` rule.
+
```json
{
"@typescript-eslint/naming-convention": [
@@ -320,10 +343,91 @@
}
```
+### Enforce that interface names do not begin with an `I`
+
+This allows you to emulate the old `interface-name-prefix` rule.
+
+```json
+{
+ "@typescript-eslint/naming-convention": [
+ "error",
+ {
+ "selector": "interface",
+ "format": ["PascalCase"],
+ "custom": {
+ "regex": "^I[A-Z]",
+ "match": false
+ }
+ }
+ ]
+}
+```
+
+### Enforce that variable and function names are in camelCase
+
+This allows you to lint multiple type with same pattern.
+
+```json
+{
+ "@typescript-eslint/naming-convention": [
+ "error",
+ {
+ "selector": ["variable", "function"],
+ "format": ["camelCase"],
+ "leadingUnderscore": "allow"
+ }
+ ]
+}
+```
+
+### Ignore properties that require quotes
+
+Sometimes you have to use a quoted name that breaks the convention (for example, HTTP headers).
+If this is a common thing in your codebase, then you can use the `filter` option in one of two ways:
+
+You can use the `filter` option to ignore specific names only:
+
+```jsonc
+{
+ "@typescript-eslint/naming-convention": [
+ "error",
+ {
+ "selector": "property",
+ "format": ["strictCamelCase"],
+ "filter": {
+ // you can expand this regex to add more allowed names
+ "regex": "^(Property-Name-One|Property-Name-Two)$",
+ "match": false
+ }
+ }
+ ]
+}
+```
+
+You can use the `filter` option to ignore names that require quoting:
+
+```jsonc
+{
+ "@typescript-eslint/naming-convention": [
+ "error",
+ {
+ "selector": "property",
+ "format": ["strictCamelCase"],
+ "filter": {
+ // you can expand this regex as you find more cases that require quoting that you want to allow
+ "regex": "[- ]",
+ "match": false
+ }
+ }
+ ]
+}
+```
+
### Enforce the codebase follows ESLint's `camelcase` conventions
```json
{
+ "camelcase": "off",
"@typescript-eslint/naming-convention": [
"error",
{
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.md
index 3ab59cb..fb9a68e 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-array-constructor.md
@@ -1,10 +1,9 @@
# Disallow generic `Array` constructors (`no-array-constructor`)
-Use of the `Array` constructor to construct a new array is generally discouraged in favor of array literal notation because of the single-argument pitfall and because the `Array` global may be redefined. Two exceptions are when the Array constructor is used to intentionally create sparse arrays of a specified size by giving the constructor a single numeric argument, or when using TypeScript type parameters to specify the type of the items of the array (`new Array<Foo>()`).
-
## Rule Details
-This rule disallows `Array` constructors.
+This rule extends the base [`eslint/no-array-constructor`](https://eslint.org/docs/rules/no-array-constructor) rule.
+It adds support for the generically typed `Array` constructor (`new Array<Foo>()`).
Examples of **incorrect** code for this rule:
@@ -27,8 +26,18 @@
new Array(someOtherArray.length);
```
-## When Not To Use It
+## How to use
-This rule enforces a nearly universal stylistic concern. That being said, this rule may be disabled if the constructor style is preferred.
+```jsonc
+{
+ // note you must disable the base rule as it can report incorrect errors
+ "no-array-constructor": "off",
+ "@typescript-eslint/no-array-constructor": ["error"]
+}
+```
-<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/7685fed33b15763ee3cf7dbe1facfc5ba85173f3/docs/rules/no-array-constructor.md)</sup>
+## Options
+
+See [`eslint/no-array-constructor` options](https://eslint.org/docs/rules/no-array-constructor#options).
+
+<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/no-array-constructor.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.md
index 4050047..f1c2aba 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-base-to-string.md
@@ -1,13 +1,13 @@
# Requires that `.toString()` is only called on objects which provide useful information when stringified (`no-base-to-string`)
-JavaScript will call `toString()` on an object when it is converted to a string, such as when `+` adding to a string or in <code>`${}`</code> template literals.
+JavaScript will call `toString()` on an object when it is converted to a string, such as when `+` adding to a string or in `${}` template literals.
The default Object `.toString()` returns `"[object Object]"`, so this rule requires stringified objects define a more useful `.toString()` method.
Note that `Function` provides its own `.toString()` that returns the function's code.
Functions are not flagged by this rule.
-This rule has some overlap with with [`restrict-plus-operands`](./restrict-plus-operands.md) and [`restrict-template-expressions`](./restrict-template-expressions.md).
+This rule has some overlap with [`restrict-plus-operands`](./restrict-plus-operands.md) and [`restrict-template-expressions`](./restrict-template-expressions.md).
## Rule Details
@@ -52,6 +52,34 @@
`Value: ${literalWithToString}`;
```
+## Options
+
+```ts
+type Options = {
+ ignoredTypeNames?: string[];
+};
+
+const defaultOptions: Options = {
+ ignoredTypeNames: ['RegExp'],
+};
+```
+
+### `ignoredTypeNames`
+
+A string array of type names to ignore, this is useful for types missing `toString()` (but actually has `toString()`).
+There are some types missing `toString()` in old version TypeScript, like `RegExp`, `URL`, `URLSearchParams` etc.
+
+The following patterns are considered correct with the default options `{ ignoredTypeNames: ["RegExp"] }`:
+
+```ts
+`${/regex/}`;
+'' + /regex/;
+/regex/.toString();
+let value = /regex/;
+value.toString();
+let text = `${value}`;
+```
+
## When Not To Use It
If you don't mind `"[object Object]"` in your strings, then you will not need this rule.
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-non-null-assertion.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-non-null-assertion.md
new file mode 100644
index 0000000..a61f6a8
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-confusing-non-null-assertion.md
@@ -0,0 +1,46 @@
+# Disallow non-null assertion in locations that may be confusing (`no-confusing-non-null-assertion`)
+
+## Rule Details
+
+Using a non-null assertion (`!`) next to an assign or equals check (`=` or `==` or `===`) creates code that is confusing as it looks similar to a not equals check (`!=` `!==`).
+
+```typescript
+a! == b; // a non-null assertions(`!`) and an equals test(`==`)
+a !== b; // not equals test(`!==`)
+a! === b; // a non-null assertions(`!`) and an triple equals test(`===`)
+```
+
+Examples of **incorrect** code for this rule:
+
+```ts
+interface Foo {
+ bar?: string;
+ num?: number;
+}
+
+const foo: Foo = getFoo();
+const isEqualsBar = foo.bar! == 'hello';
+const isEqualsNum = 1 + foo.num! == 2;
+```
+
+Examples of **correct** code for this rule:
+
+<!-- prettier-ignore -->
+```ts
+interface Foo {
+ bar?: string;
+ num?: number;
+}
+
+const foo: Foo = getFoo();
+const isEqualsBar = foo.bar == 'hello';
+const isEqualsNum = (1 + foo.num!) == 2;
+```
+
+## When Not To Use It
+
+If you don't care about this confusion, then you will not need this rule.
+
+## Further Reading
+
+- [`Issue: Easy misunderstanding: "! ==="`](https://github.com/microsoft/TypeScript/issues/37837) in [TypeScript repo](https://github.com/microsoft/TypeScript)
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.md
index d0b3b57..ddfc1b9 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-dupe-class-members.md
@@ -7,7 +7,7 @@
## How to use
-```cjson
+```jsonc
{
// note you must disable the base rule as it can report incorrect errors
"no-dupe-class-members": "off",
@@ -15,4 +15,8 @@
}
```
+## Options
+
+See [`eslint/no-dupe-class-members` options](https://eslint.org/docs/rules/no-dupe-class-members#options).
+
<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/no-dupe-class-members.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.md
index 17628cb..356700d 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-empty-function.md
@@ -1,80 +1,90 @@
# Disallow empty functions (`no-empty-function`)
-Empty functions can reduce readability because readers need to guess whether it’s intentional or not. So writing a clear comment for empty functions is a good practice.
-
## Rule Details
-The `@typescript-eslint/no-empty-function` rule extends the `no-empty-function` rule from ESLint core, and adds support for handling TypeScript specific code that would otherwise trigger the rule.
+This rule extends the base [`eslint/no-empty-function`](https://eslint.org/docs/rules/no-empty-function) rule.
+It adds support for handling TypeScript specific code that would otherwise trigger the rule.
-One example of valid TypeScript specific code that would otherwise trigger the `no-empty-function` rule is the use of [parameter properties](https://www.typescriptlang.org/docs/handbook/classes.html#parameter-properties) in constructor functions:
+One example of valid TypeScript specific code that would otherwise trigger the `no-empty-function` rule is the use of [parameter properties](https://www.typescriptlang.org/docs/handbook/classes.html#parameter-properties) in constructor functions.
-```typescript
-class Person {
- constructor(private firstName: string, private surname: string) {}
-}
-```
+## How to use
-The above code is functionally equivalent to:
-
-```typescript
-class Person {
- private firstName: string;
- private surname: string;
-
- constructor(firstName: string, surname: string) {
- this.firstName = firstName;
- this.surname = surname;
- }
-}
-```
-
-Parameter properties enable both the _declaration_ and _initialization_ of member properties in a single location, avoiding the boilerplate & duplication that is common when initializing member properties from parameter values in a constructor function.
-
-In these cases, although the constructor has an empty function body, it is technically valid and should not trigger an error.
-
-See the [ESLint documentation](https://eslint.org/docs/rules/no-empty-function) for more details on the `no-empty-function` rule.
-
-## Rule Changes
-
-```cjson
+```jsonc
{
- // note you must disable the base rule as it can report incorrect errors
- "no-empty-function": "off",
- "@typescript-eslint/no-empty-function": "error"
+ // note you must disable the base rule as it can report incorrect errors
+ "no-empty-function": "off",
+ "@typescript-eslint/no-empty-function": ["error"]
}
```
## Options
-This rule has an object option:
-
-- `allow` (`string[]`)
- - `"protected-constructors"` - Protected class constructors.
- - `"private-constructors"` - Private class constructors.
- - [See the other options allowed](https://github.com/eslint/eslint/blob/master/docs/rules/no-empty-function.md#options)
-
-#### allow: protected-constructors
-
-Examples of **correct** code for the `{ "allow": ["protected-constructors"] }` option:
+See [`eslint/no-empty-function` options](https://eslint.org/docs/rules/no-empty-function#options).
+This rule adds the following options:
```ts
-/*eslint @typescript-eslint/no-empty-function: ["error", { "allow": ["protected-constructors"] }]*/
+type AdditionalAllowOptionEntries =
+ | 'private-constructors'
+ | 'protected-constructors'
+ | 'decoratedFunctions';
+type AllowOptionEntries =
+ | BaseNoEmptyFunctionAllowOptionEntries
+ | AdditionalAllowOptionEntries;
+
+interface Options extends BaseNoEmptyFunctionOptions {
+ allow?: Array<AllowOptionEntries>;
+}
+const defaultOptions: Options = {
+ ...baseNoEmptyFunctionDefaultOptions,
+ allow: [],
+};
+```
+
+### allow: `private-constructors`
+
+Examples of correct code for the `{ "allow": ["private-constructors"] }` option:
+
+```ts
+class Foo {
+ private constructor() {}
+}
+```
+
+### allow: `protected-constructors`
+
+Examples of correct code for the `{ "allow": ["protected-constructors"] }` option:
+
+```ts
class Foo {
protected constructor() {}
}
```
-#### allow: private-constructors
+### allow: `decoratedFunctions`
-Examples of **correct** code for the `{ "allow": ["private-constructors"] }` option:
+Examples of correct code for the `{ "allow": ["decoratedFunctions"] }` option:
```ts
-/*eslint @typescript-eslint/no-empty-function: ["error", { "allow": ["private-constructors"] }]*/
+@decorator()
+function foo() {}
class Foo {
- private constructor() {}
+ @decorator()
+ foo() {}
}
```
+## How to use
+
+```jsonc
+{
+ // note you must disable the base rule as it can report incorrect errors
+ "no-empty-function": "off",
+ "@typescript-eslint/no-empty-function": ["error"]
+}
+```
+
+---
+
<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/no-empty-function.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-explicit-any.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-explicit-any.md
index 0c27139..7aeb465 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-explicit-any.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-explicit-any.md
@@ -119,30 +119,23 @@
function foo3(...args: Array<any>): void {}
function foo4(...args: ReadonlyArray<any>): void {}
-const bar1 = (...args: any[]): void {}
-const bar2 = (...args: readonly any[]): void {}
-const bar3 = (...args: Array<any>): void {}
-const bar4 = (...args: ReadonlyArray<any>): void {}
+declare function bar(...args: any[]): void;
-const baz1 = function (...args: any[]) {}
-const baz2 = function (...args: readonly any[]) {}
-const baz3 = function (...args: Array<any>) {}
-const baz4 = function (...args: ReadonlyArray<any>) {}
+const baz = (...args: any[]) => {};
+const qux = function (...args: any[]) {};
-interface Qux1 { (...args: any[]): void; }
-interface Qux2 { (...args: readonly any[]): void; }
-interface Qux3 { (...args: Array<any>): void; }
-interface Qux4 { (...args: ReadonlyArray<any>): void; }
+type Quux = (...args: any[]) => void;
+type Quuz = new (...args: any[]) => void;
-function quux1(fn: (...args: any[]) => void): void {}
-function quux2(fn: (...args: readonly any[]) => void): void {}
-function quux3(fn: (...args: Array<any>) => void): void {}
-function quux4(fn: (...args: ReadonlyArray<any>) => void): void {}
-
-function quuz1(): ((...args: any[]) => void) {}
-function quuz2(): ((...args: readonly any[]) => void) {}
-function quuz3(): ((...args: Array<any>) => void) {}
-function quuz4(): ((...args: ReadonlyArray<any>) => void) {}
+interface Grault {
+ (...args: any[]): void;
+}
+interface Corge {
+ new (...args: any[]): void;
+}
+interface Garply {
+ f(...args: any[]): void;
+}
```
Examples of **correct** code for the `{ "ignoreRestArgs": true }` option:
@@ -155,30 +148,23 @@
function foo3(...args: Array<any>): void {}
function foo4(...args: ReadonlyArray<any>): void {}
-const bar1 = (...args: any[]): void {}
-const bar2 = (...args: readonly any[]): void {}
-const bar3 = (...args: Array<any>): void {}
-const bar4 = (...args: ReadonlyArray<any>): void {}
+declare function bar(...args: any[]): void;
-const baz1 = function (...args: any[]) {}
-const baz2 = function (...args: readonly any[]) {}
-const baz3 = function (...args: Array<any>) {}
-const baz4 = function (...args: ReadonlyArray<any>) {}
+const baz = (...args: any[]) => {};
+const qux = function (...args: any[]) {};
-interface Qux1 { (...args: any[]): void; }
-interface Qux2 { (...args: readonly any[]): void; }
-interface Qux3 { (...args: Array<any>): void; }
-interface Qux4 { (...args: ReadonlyArray<any>): void; }
+type Quux = (...args: any[]) => void;
+type Quuz = new (...args: any[]) => void;
-function quux1(fn: (...args: any[]) => void): void {}
-function quux2(fn: (...args: readonly any[]) => void): void {}
-function quux3(fn: (...args: Array<any>) => void): void {}
-function quux4(fn: (...args: ReadonlyArray<any>) => void): void {}
-
-function quuz1(): ((...args: any[]) => void) {}
-function quuz2(): ((...args: readonly any[]) => void) {}
-function quuz3(): ((...args: Array<any>) => void) {}
-function quuz4(): ((...args: ReadonlyArray<any>) => void) {}
+interface Grault {
+ (...args: any[]): void;
+}
+interface Corge {
+ new (...args: any[]): void;
+}
+interface Garply {
+ f(...args: any[]): void;
+}
```
## When Not To Use It
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md
index bcb21de..8173b2e 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-parens.md
@@ -1,22 +1,22 @@
# Disallow unnecessary parentheses (`no-extra-parens`)
-This rule restricts the use of parentheses to only where they are necessary.
-
## Rule Details
This rule extends the base [`eslint/no-extra-parens`](https://eslint.org/docs/rules/no-extra-parens) rule.
-It supports all options and features of the base rule plus TS type assertions.
+It adds support for TypeScript type assertions.
## How to use
-```cjson
+```jsonc
{
- // note you must disable the base rule as it can report incorrect errors
- "no-extra-parens": "off",
- "@typescript-eslint/no-extra-parens": ["error"]
+ // note you must disable the base rule as it can report incorrect errors
+ "no-extra-parens": "off",
+ "@typescript-eslint/no-extra-parens": ["error"]
}
```
## Options
See [`eslint/no-extra-parens` options](https://eslint.org/docs/rules/no-extra-parens#options).
+
+<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/no-extra-parens.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md
index bed5e29..f6865bd 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md
@@ -3,10 +3,11 @@
## Rule Details
This rule extends the base [`eslint/no-extra-semi`](https://eslint.org/docs/rules/no-extra-semi) rule.
+It adds support for class properties.
## How to use
-```cjson
+```jsonc
{
// note you must disable the base rule as it can report incorrect errors
"no-extra-semi": "off",
@@ -14,4 +15,8 @@
}
```
+## Options
+
+See [`eslint/no-extra-semi` options](https://eslint.org/docs/rules/no-extra-semi#options).
+
<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/no-extra-semi.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extraneous-class.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extraneous-class.md
index b387d67..abc84f2 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extraneous-class.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extraneous-class.md
@@ -58,7 +58,7 @@
allowEmpty?: boolean;
// allow extraneous classes if they only contain static members
allowStaticOnly?: boolean;
- // allow extraneous classes if they are have a decorator
+ // allow extraneous classes if they have a decorator
allowWithDecorator?: boolean;
};
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.md
index ffaa542..bda8c26 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.md
@@ -51,16 +51,20 @@
type Options = {
// if true, checking void expressions will be skipped
ignoreVoid?: boolean;
+ // if true, checking for async iife will be skipped
+ ignoreIIFE?: boolean;
};
const defaults = {
- ignoreVoid: false,
+ ignoreVoid: true,
+ ignoreIIFE: false,
};
```
### `ignoreVoid`
-This allows to easily suppress false-positives with void operator.
+This allows you to stop the rule reporting promises consumed with void operator.
+This can be a good way to explicitly mark a promise as intentionally not awaited.
Examples of **correct** code for this rule with `{ ignoreVoid: true }`:
@@ -73,10 +77,27 @@
void Promise.reject('value');
```
+With this option set to `true`, and if you are using `no-void`, you should turn on the [`allowAsAStatement`](https://eslint.org/docs/rules/no-void#allowasstatement) option.
+
+### `ignoreIIFE`
+
+This allows you to skip checking of async iife
+
+Examples of **correct** code for this rule with `{ ignoreIIFE: true }`:
+
+```ts
+await(async function () {
+ await res(1);
+})();
+
+(async function () {
+ await res(1);
+})();
+```
+
## When Not To Use It
-If you do not use Promise-like values in your codebase or want to allow them to
-remain unhandled.
+If you do not use Promise-like values in your codebase, or want to allow them to remain unhandled.
## Related to
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implicit-any-catch.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implicit-any-catch.md
new file mode 100644
index 0000000..8ef946b
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implicit-any-catch.md
@@ -0,0 +1,76 @@
+# Disallow usage of the implicit `any` type in catch clauses (`no-implicit-any-catch`)
+
+TypeScript 4.0 added support for adding an explicit `any` or `unknown` type annotation on a catch clause variable.
+
+By default, TypeScript will type a catch clause variable as `any`, so explicitly annotating it as `unknown` can add a lot of safety to your codebase.
+
+The `noImplicitAny` flag in TypeScript does not cover this for backwards compatibility reasons.
+
+## Rule Details
+
+This rule requires an explicit type to be declared on a catch clause variable.
+
+The following pattern is considered a warning:
+
+```ts
+try {
+ // ...
+} catch (e) {
+ // ...
+}
+```
+
+The following pattern is **_not_** considered a warning:
+
+<!-- TODO: prettier currently removes the type annotations, re-enable this once prettier is updated -->
+<!-- prettier-ignore-start -->
+
+```ts
+try {
+ // ...
+} catch (e: unknown) {
+ // ...
+}
+```
+
+<!-- prettier-ignore-end -->
+
+## Options
+
+The rule accepts an options object with the following properties:
+
+```ts
+type Options = {
+ // if false, disallow specifying `: any` as the error type as well. See also `no-explicit-any`
+ allowExplicitAny: boolean;
+};
+
+const defaults = {
+ allowExplicitAny: false,
+};
+```
+
+### `allowExplicitAny`
+
+The follow is is **_not_** considered a warning with `{ allowExplicitAny: true }`
+
+<!-- TODO: prettier currently removes the type annotations, re-enable this once prettier is updated -->
+<!-- prettier-ignore-start -->
+
+```ts
+try {
+ // ...
+} catch (e: any) {
+ // ...
+}
+```
+
+<!-- prettier-ignore-end -->
+
+## When Not To Use It
+
+If you are not using TypeScript 4.0 (or greater), then you will not be able to use this rule, annotations on catch clauses is not supported.
+
+## Further Reading
+
+- [TypeScript 4.0 Beta Release Notes](https://devblogs.microsoft.com/typescript/announcing-typescript-4-0-beta/#unknown-on-catch)
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implied-eval.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implied-eval.md
index a16844a..a03ce72 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implied-eval.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-implied-eval.md
@@ -56,19 +56,19 @@
```ts
/* eslint @typescript-eslint/no-implied-eval: "error" */
-setTimeout(function() {
+setTimeout(function () {
alert('Hi!');
}, 100);
-setInterval(function() {
+setInterval(function () {
alert('Hi!');
}, 100);
-setImmediate(function() {
+setImmediate(function () {
alert('Hi!');
});
-execScript(function() {
+execScript(function () {
alert('Hi!');
});
@@ -76,7 +76,7 @@
setTimeout(fn, 100);
const foo = {
- fn: function() {},
+ fn: function () {},
};
setTimeout(foo.fn, 100);
setTimeout(foo.fn.bind(this), 100);
@@ -88,6 +88,16 @@
setTimeout(Foo.fn, 100);
```
+## How to use
+
+```jsonc
+{
+ // note you must disable the base rule as it can report incorrect errors
+ "no-implied-eval": "off",
+ "@typescript-eslint/no-implied-eval": ["error"]
+}
+```
+
## When Not To Use It
If you want to allow `new Function()` or `setTimeout()`, `setInterval()`, `setImmediate()` and `execScript()` with string arguments, then you can safely disable this rule.
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.md
new file mode 100644
index 0000000..728c42b
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-this.md
@@ -0,0 +1,26 @@
+# disallow `this` keywords outside of classes or class-like objects (`no-invalid-this`)
+
+## Rule Details
+
+This rule extends the base [`eslint/no-invalid-this`](https://eslint.org/docs/rules/no-invalid-this) rule.
+It adds support for TypeScript's `this` parameters.
+
+## How to use
+
+```jsonc
+{
+ // note you must disable the base rule as it can report incorrect errors
+ "no-invalid-this": "off",
+ "@typescript-eslint/no-invalid-this": ["error"]
+}
+```
+
+## Options
+
+See [`eslint/no-invalid-this` options](https://eslint.org/docs/rules/no-invalid-this#options).
+
+## When Not To Use It
+
+When you are indifferent as to how your variables are initialized.
+
+<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/no-invalid-this.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-void-type.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-void-type.md
new file mode 100644
index 0000000..567d9c0
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-invalid-void-type.md
@@ -0,0 +1,126 @@
+# Disallows usage of `void` type outside of generic or return types (`no-invalid-void-type`)
+
+Disallows usage of `void` type outside of return types or generic type arguments.
+If `void` is used as return type, it shouldn’t be a part of intersection/union type with most other types.
+
+## Rationale
+
+The `void` type means “nothing” or that a function does not return any value,
+in contrast with implicit `undefined` type which means that a function returns a value `undefined`.
+So “nothing” cannot be mixed with any other types, other than `never`, which accepts all types.
+If you need this - use the `undefined` type instead.
+
+## Rule Details
+
+This rule aims to ensure that the `void` type is only used in valid places.
+
+The following patterns are considered warnings:
+
+```ts
+type PossibleValues = string | number | void;
+type MorePossibleValues = string | ((number & any) | (string | void));
+
+function logSomething(thing: void) {}
+function printArg<T = void>(arg: T) {}
+
+logAndReturn<void>(undefined);
+
+interface Interface {
+ lambda: () => void;
+ prop: void;
+}
+
+class MyClass {
+ private readonly propName: void;
+}
+```
+
+The following patterns are not considered warnings:
+
+```ts
+type NoOp = () => void;
+
+function noop(): void {}
+
+let trulyUndefined = void 0;
+
+async function promiseMeSomething(): Promise<void> {}
+
+type stillVoid = void | never;
+```
+
+### Options
+
+```ts
+interface Options {
+ allowInGenericTypeArguments?: boolean | string[];
+ allowAsThisParameter?: boolean;
+}
+
+const defaultOptions: Options = {
+ allowInGenericTypeArguments: true,
+ allowAsThisParameter: false,
+};
+```
+
+#### `allowInGenericTypeArguments`
+
+This option lets you control if `void` can be used as a valid value for generic type parameters.
+
+Alternatively, you can provide an array of strings which whitelist which types may accept `void` as a generic type parameter.
+
+Any types considered valid by this option will be considered valid as part of a union type with `void`.
+
+This option is `true` by default.
+
+The following patterns are considered warnings with `{ allowInGenericTypeArguments: false }`:
+
+```ts
+logAndReturn<void>(undefined);
+
+let voidPromise: Promise<void> = new Promise<void>(() => {});
+let voidMap: Map<string, void> = new Map<string, void>();
+```
+
+The following patterns are considered warnings with `{ allowInGenericTypeArguments: ['Ex.Mx.Tx'] }`:
+
+```ts
+logAndReturn<void>(undefined);
+
+type NotAllowedVoid1 = Mx.Tx<void>;
+type NotAllowedVoid2 = Tx<void>;
+type NotAllowedVoid3 = Promise<void>;
+```
+
+The following patterns are not considered warnings with `{ allowInGenericTypeArguments: ['Ex.Mx.Tx'] }`:
+
+```ts
+type AllowedVoid = Ex.Mx.Tx<void>;
+type AllowedVoidUnion = void | Ex.Mx.Tx<void>;
+```
+
+#### `allowAsThisParameter`
+
+This option allows specifying a `this` parameter of a function to be `void` when set to `true`.
+This pattern can be useful to explicitly label function types that do not use a `this` argument. [See the TypeScript docs for more information](https://www.typescriptlang.org/docs/handbook/functions.html#this-parameters-in-callbacks).
+
+This option is `false` by default.
+
+The following patterns are considered warnings with `{ allowAsThisParameter: false }` but valid with `{ allowAsThisParameter: true }`:
+
+```ts
+function doThing(this: void) {}
+class Example {
+ static helper(this: void) {}
+ callback(this: void) {}
+}
+```
+
+## When Not To Use It
+
+If you don't care about if `void` is used with other types,
+or in invalid places, then you don't need this rule.
+
+## Compatibility
+
+- TSLint: [invalid-void](https://palantir.github.io/tslint/rules/invalid-void/)
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.md
new file mode 100644
index 0000000..d4e66d6
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loop-func.md
@@ -0,0 +1,22 @@
+# Disallow function declarations that contain unsafe references inside loop statements (`no-loop-func`)
+
+## Rule Details
+
+This rule extends the base [`eslint/no-loop-func`](https://eslint.org/docs/rules/no-loop-func) rule.
+It adds support for TypeScript types.
+
+## How to use
+
+```jsonc
+{
+ // note you must disable the base rule as it can report incorrect errors
+ "no-loop-func": "off",
+ "@typescript-eslint/no-loop-func": ["error"]
+}
+```
+
+## Options
+
+See [`eslint/no-loop-func` options](https://eslint.org/docs/rules/no-loop-func#options).
+
+<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/no-loop-func.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.md
new file mode 100644
index 0000000..d6cf7b7
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-loss-of-precision.md
@@ -0,0 +1,19 @@
+# Disallow literal numbers that lose precision (`no-loss-of-precision`)
+
+## Rule Details
+
+This rule extends the base [`eslint/no-loss-of-precision`](https://eslint.org/docs/rules/no-loss-of-precision) rule.
+It adds support for [numeric separators](https://github.com/tc39/proposal-numeric-separator).
+Note that this rule requires ESLint v7.
+
+## How to use
+
+```jsonc
+{
+ // note you must disable the base rule as it can report incorrect errors
+ "no-loss-of-precision": "off",
+ "@typescript-eslint/no-loss-of-precision": ["error"]
+}
+```
+
+<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/no-loss-of-precision.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.md
index 377e927..f41204c 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-magic-numbers.md
@@ -1,25 +1,72 @@
# Disallow magic numbers (`no-magic-numbers`)
-'Magic numbers' are numbers that occur multiple times in code without an explicit meaning.
-They should preferably be replaced by named constants.
-
## Rule Details
-The `@typescript-eslint/no-magic-numbers` rule extends the `no-magic-numbers` rule from ESLint core, and adds support for handling TypeScript specific code that would otherwise trigger the rule.
+This rule extends the base [`eslint/no-magic-numbers`](https://eslint.org/docs/rules/no-magic-numbers) rule.
+It adds support for:
-See the [ESLint documentation](https://eslint.org/docs/rules/no-magic-numbers) for more details on the `no-magic-numbers` rule.
+- numeric literal types (`type T = 1`),
+- `enum` members (`enum Foo { bar = 1 }`),
+- `readonly` class properties (`class Foo { readonly bar = 1 }`).
-## Rule Changes
+## How to use
-```cjson
+```jsonc
{
- // note you must disable the base rule as it can report incorrect errors
- "no-magic-numbers": "off",
- "@typescript-eslint/no-magic-numbers": ["error", { "ignoreNumericLiteralTypes": true }]
+ // note you must disable the base rule as it can report incorrect errors
+ "no-magic-numbers": "off",
+ "@typescript-eslint/no-magic-numbers": [
+ "error",
+ {
+ /* options */
+ }
+ ]
}
```
-In addition to the options supported by the `no-magic-numbers` rule in ESLint core, the rule adds the following options:
+## Options
+
+See [`eslint/no-magic-numbers` options](https://eslint.org/docs/rules/no-magic-numbers#options).
+This rule adds the following options:
+
+```ts
+interface Options extends BaseNoMagicNumbersOptions {
+ ignoreEnums?: boolean;
+ ignoreNumericLiteralTypes?: boolean;
+ ignoreReadonlyClassProperties?: boolean;
+}
+
+const defaultOptions: Options = {
+ ...baseNoMagicNumbersDefaultOptions,
+ ignoreEnums: false,
+ ignoreNumericLiteralTypes: false,
+ ignoreReadonlyClassProperties: false,
+};
+```
+
+### `ignoreEnums`
+
+A boolean to specify if enums used in TypeScript are considered okay. `false` by default.
+
+Examples of **incorrect** code for the `{ "ignoreEnums": false }` option:
+
+```ts
+/*eslint @typescript-eslint/no-magic-numbers: ["error", { "ignoreEnums": false }]*/
+
+enum foo = {
+ SECOND = 1000,
+}
+```
+
+Examples of **correct** code for the `{ "ignoreEnums": true }` option:
+
+```ts
+/*eslint @typescript-eslint/no-magic-numbers: ["error", { "ignoreEnums": true }]*/
+
+enum foo = {
+ SECOND = 1000,
+}
+```
### `ignoreNumericLiteralTypes`
@@ -69,28 +116,4 @@
}
```
-### `ignoreEnums`
-
-A boolean to specify if enums used in TypeScript are considered okay. `false` by default.
-
-Examples of **incorrect** code for the `{ "ignoreEnums": false }` option:
-
-```ts
-/*eslint @typescript-eslint/no-magic-numbers: ["error", { "ignoreEnums": false }]*/
-
-enum foo = {
- SECOND = 1000,
-}
-```
-
-Examples of **correct** code for the `{ "ignoreEnums": true }` option:
-
-```ts
-/*eslint @typescript-eslint/no-magic-numbers: ["error", { "ignoreEnums": true }]*/
-
-enum foo = {
- SECOND = 1000,
-}
-```
-
<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/no-magic-numbers.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.md
index 3bcb1a3..b155c2a 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-namespace.md
@@ -16,7 +16,7 @@
- `allowDeclarations` set to `true` will allow you to `declare` custom TypeScript modules and namespaces (Default: `false`).
- `allowDefinitionFiles` set to `true` will allow you to `declare` and use custom TypeScript modules and namespaces
- inside definition files (Default: `false`).
+ inside definition files (Default: `true`).
Examples of **incorrect** code for the default `{ "allowDeclarations": false, "allowDefinitionFiles": false }` options:
@@ -51,6 +51,14 @@
declare module 'foo' {}
declare module foo {}
declare namespace foo {}
+
+declare global {
+ namespace foo {}
+}
+
+declare module foo {
+ namespace foo {}
+}
```
Examples of **incorrect** code for the `{ "allowDeclarations": false }` option:
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.md
index 95ee927..fdb2a8a 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.md
@@ -11,8 +11,12 @@
/* eslint @typescript-eslint/no-non-null-asserted-optional-chain: "error" */
foo?.bar!;
-foo?.bar!.baz;
foo?.bar()!;
+
+// Prior to TS3.9, foo?.bar!.baz meant (foo?.bar).baz - i.e. the non-null assertion is applied to the entire chain so far.
+// For TS3.9 and greater, the non-null assertion is only applied to the property itself, so it's safe.
+// The following is incorrect code if you're using less than TS3.9
+foo?.bar!.baz;
foo?.bar!();
foo?.bar!().baz;
```
@@ -27,6 +31,11 @@
foo?.bar();
foo?.bar();
foo?.bar().baz;
+
+// The following is correct code if you're using TS3.9 or greater
+foo?.bar!.baz;
+foo?.bar!();
+foo?.bar!().baz;
```
## When Not To Use It
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.md
index 5241a43..04de576 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-non-null-assertion.md
@@ -23,7 +23,7 @@
}
const foo: Foo = getFoo();
-const includesBaz: boolean = foo.bar && foo.bar.includes('baz');
+const includesBaz: boolean = foo.bar?.includes('baz') ?? false;
```
## When Not To Use It
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.md
new file mode 100644
index 0000000..4b5164d
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-redeclare.md
@@ -0,0 +1,79 @@
+# Disallow variable redeclaration (`no-redeclare`)
+
+## Rule Details
+
+This rule extends the base [`eslint/no-redeclare`](https://eslint.org/docs/rules/no-redeclare) rule.
+It adds support for TypeScript function overloads, and declaration merging.
+
+## How to use
+
+```jsonc
+{
+ // note you must disable the base rule as it can report incorrect errors
+ "no-redeclare": "off",
+ "@typescript-eslint/no-redeclare": ["error"]
+}
+```
+
+## Options
+
+See [`eslint/no-redeclare` options](https://eslint.org/docs/rules/no-redeclare#options).
+This rule adds the following options:
+
+```ts
+interface Options extends BaseNoRedeclareOptions {
+ ignoreDeclarationMerge?: boolean;
+}
+
+const defaultOptions: Options = {
+ ...baseNoRedeclareDefaultOptions,
+ ignoreDeclarationMerge: true,
+};
+```
+
+### `ignoreDeclarationMerge`
+
+When set to `true`, the rule will ignore declaration merges between the following sets:
+
+- interface + interface
+- namespace + namespace
+- class + interface
+- class + namespace
+- class + interface + namespace
+- function + namespace
+
+Examples of **correct** code with `{ ignoreDeclarationMerge: true }`:
+
+```ts
+interface A {
+ prop1: 1;
+}
+interface A {
+ prop2: 2;
+}
+
+namespace Foo {
+ export const a = 1;
+}
+namespace Foo {
+ export const b = 2;
+}
+
+class Bar {}
+namespace Bar {}
+
+function Baz() {}
+namespace Baz {}
+```
+
+**Note:** Even with this option set to true, this rule will report if you name a type and a variable the same name. **_This is intentional_**.
+Declaring a variable and a type and a variable the same is usually an accident, and it can lead to hard-to-understand code.
+If you have a rare case where you're intentionally naming a type the same name as a variable, use a disable comment. For example:
+
+```ts
+type something = string;
+// eslint-disable-next-line @typescript-eslint/no-redeclare -- intentionally naming the variable the same as the type
+const something = 2;
+```
+
+<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/no-redeclare.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md
new file mode 100644
index 0000000..ed241b8
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-shadow.md
@@ -0,0 +1,87 @@
+# Disallow variable declarations from shadowing variables declared in the outer scope (`no-shadow`)
+
+## Rule Details
+
+This rule extends the base [`eslint/no-shadow`](https://eslint.org/docs/rules/no-shadow) rule.
+It adds support for TypeScript's `this` parameters, and adds options for TypeScript features.
+
+## How to use
+
+```jsonc
+{
+ // note you must disable the base rule as it can report incorrect errors
+ "no-shadow": "off",
+ "@typescript-eslint/no-shadow": ["error"]
+}
+```
+
+## Options
+
+See [`eslint/no-shadow` options](https://eslint.org/docs/rules/no-shadow#options).
+This rule adds the following options:
+
+```ts
+interface Options extends BaseNoShadowOptions {
+ ignoreTypeValueShadow?: boolean;
+ ignoreFunctionTypeParameterNameValueShadow?: boolean;
+}
+
+const defaultOptions: Options = {
+ ...baseNoShadowDefaultOptions,
+ ignoreTypeValueShadow: true,
+ ignoreFunctionTypeParameterNameValueShadow: true,
+};
+```
+
+### `ignoreTypeValueShadow`
+
+When set to `true`, the rule will ignore the case when you name a type the same as a variable.
+
+TypeScript allows types and variables to shadow one-another. This is generally safe because you cannot use variables in type locations without a `typeof` operator, so there's little risk of confusion.
+
+Examples of **correct** code with `{ ignoreTypeValueShadow: true }`:
+
+```ts
+type Foo = number;
+const Foo = 1;
+
+interface Bar {
+ prop: number;
+}
+const Bar = 'test';
+```
+
+### `ignoreFunctionTypeParameterNameValueShadow`
+
+When set to `true`, the rule will ignore the case when you name a function type argument the same as a variable.
+
+Each of a function type's arguments creates a value variable within the scope of the function type. This is done so that you can reference the type later using the `typeof` operator:
+
+```ts
+type Func = (test: string) => typeof test;
+
+declare const fn: Func;
+const result = fn('str'); // typeof result === string
+```
+
+This means that function type arguments shadow value variable names in parent scopes:
+
+```ts
+let test = 1;
+type TestType = typeof test; // === number
+type Func = (test: string) => typeof test; // this "test" references the argument, not the variable
+
+declare const fn: Func;
+const result = fn('str'); // typeof result === string
+```
+
+If you do not use the `typeof` operator in a function type return type position, you can safely turn this option on.
+
+Examples of **correct** code with `{ ignoreFunctionTypeParameterNameValueShadow: true }`:
+
+```ts
+const test = 1;
+type Func = (test: string) => typeof test;
+```
+
+<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/no-shadow.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-this-alias.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-this-alias.md
index 7f5ee71..324929e 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-this-alias.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-this-alias.md
@@ -14,7 +14,7 @@
> ```js
> const self = this;
>
-> setTimeout(function() {
+> setTimeout(function () {
> self.doWork();
> });
> ```
@@ -39,15 +39,15 @@
You can pass an object option:
-```json5
+```jsonc
{
- '@typescript-eslint/no-this-alias': [
- 'error',
+ "@typescript-eslint/no-this-alias": [
+ "error",
{
- allowDestructuring: true, // Allow `const { props, state } = this`; false by default
- allowedNames: ['self'], // Allow `const self = this`; `[]` by default
- },
- ],
+ "allowDestructuring": true, // Allow `const { props, state } = this`; false by default
+ "allowedNames": ["self"] // Allow `const self = this`; `[]` by default
+ }
+ ]
}
```
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-throw-literal.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-throw-literal.md
index 3b7ee9c..0b89f10 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-throw-literal.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-throw-literal.md
@@ -79,6 +79,16 @@
throw new CustomError();
```
+## How to use
+
+```jsonc
+{
+ // note you must disable the base rule as it can report incorrect errors
+ "no-throw-literal": "off",
+ "@typescript-eslint/no-throw-literal": ["error"]
+}
+```
+
---
<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/no-throw-literal.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-type-alias.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-type-alias.md
index 9d7f1d4..5b720b2 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-type-alias.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-type-alias.md
@@ -69,7 +69,7 @@
- Debug your code: interfaces create a new name, so is easy to identify the base type of an object
while debugging the application.
-Finally, mapping types is an advance technique, leaving it open can quickly become a pain point
+Finally, mapping types is an advanced technique and leaving it open can quickly become a pain point
in your application.
## Rule Details
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md
index 81b4a5c..d600bb7 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md
@@ -8,6 +8,12 @@
A comparison is considered unnecessary if it checks a boolean literal against any variable with just the `boolean` type.
A comparison is **_not_** considered unnecessary if the type is a union of booleans (`string | boolean`, `someObject | boolean`).
+**Note**: Throughout this page, only strict equality (`===` and `!==`) are
+used in the examples. However, the implementation of the rule does not
+distinguish between strict and loose equality. Any example below that uses
+`===` would be treated the same way if `==` was used, and any example below
+that uses `!==` would be treated the same way if `!=` was used.
+
Examples of **incorrect** code for this rule:
```ts
@@ -30,12 +36,99 @@
declare const someStringBoolean: boolean | string;
if (someStringBoolean === true) {
}
+```
+## Options
+
+The rule accepts an options object with the following properties.
+
+```ts
+type Options = {
+ // if false, comparisons between a nullable boolean variable to `true` will be checked and fixed
+ allowComparingNullableBooleansToTrue?: boolean;
+ // if false, comparisons between a nullable boolean variable to `false` will be checked and fixed
+ allowComparingNullableBooleansToFalse?: boolean;
+};
+```
+
+### Defaults
+
+This rule always checks comparisons between a boolean variable and a boolean
+literal. Comparisons between nullable boolean variables and boolean literals
+are **not** checked by default.
+
+```ts
+const defaults = {
+ allowComparingNullableBooleansToTrue: true,
+ allowComparingNullableBooleansToFalse: true,
+};
+```
+
+### `allowComparingNullableBooleansToTrue`
+
+Examples of **incorrect** code for this rule with `{ allowComparingNullableBooleansToTrue: false }`:
+
+```ts
+declare const someUndefinedCondition: boolean | undefined;
+if (someUndefinedCondition === true) {
+}
+
+declare const someNullCondition: boolean | null;
+if (someNullCondition !== true) {
+}
+```
+
+Examples of **correct** code for this rule with `{ allowComparingNullableBooleansToTrue: false }`:
+
+```ts
+declare const someUndefinedCondition: boolean | undefined;
+if (someUndefinedCondition) {
+}
+
+declare const someNullCondition: boolean | null;
+if (!someNullCondition) {
+}
+```
+
+### `allowComparingNullableBooleansToFalse`
+
+Examples of **incorrect** code for this rule with `{ allowComparingNullableBooleansToFalse: false }`:
+
+```ts
declare const someUndefinedCondition: boolean | undefined;
if (someUndefinedCondition === false) {
}
+
+declare const someNullCondition: boolean | null;
+if (someNullCondition !== false) {
+}
```
+Examples of **correct** code for this rule with `{ allowComparingNullableBooleansToFalse: false }`:
+
+```ts
+declare const someUndefinedCondition: boolean | undefined;
+if (someUndefinedCondition ?? true) {
+}
+
+declare const someNullCondition: boolean | null;
+if (!(someNullCondition ?? true)) {
+}
+```
+
+## Fixer
+
+| Comparison | Fixer Output | Notes |
+| :----------------------------: | ------------------------------- | ----------------------------------------------------------------------------------- |
+| `booleanVar === true` | `booleanLiteral` | |
+| `booleanVar !== true` | `!booleanLiteral` | |
+| `booleanVar === false` | `!booleanLiteral` | |
+| `booleanVar !== false` | `booleanLiteral` | |
+| `nullableBooleanVar === true` | `nullableBooleanVar` | Only checked/fixed if the `allowComparingNullableBooleansToTrue` option is `false` |
+| `nullableBooleanVar !== true` | `!nullableBooleanVar` | Only checked/fixed if the `allowComparingNullableBooleansToTrue` option is `false` |
+| `nullableBooleanVar === false` | `nullableBooleanVar ?? true` | Only checked/fixed if the `allowComparingNullableBooleansToFalse` option is `false` |
+| `nullableBooleanVar !== false` | `!(nullableBooleanVar ?? true)` | Only checked/fixed if the `allowComparingNullableBooleansToFalse` option is `false` |
+
## Related to
- TSLint: [no-boolean-literal-compare](https://palantir.github.io/tslint/rules/no-boolean-literal-compare)
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.md
index f2bea6f..bff0f54 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.md
@@ -28,6 +28,12 @@
// arg can never be nullish, so ?. is unnecessary
return arg?.length;
}
+
+// Checks array predicate return types, where possible
+[
+ [1, 2],
+ [3, 4],
+].filter(t => t); // number[] is always truthy
```
Examples of **correct** code for this rule:
@@ -50,23 +56,29 @@
// Necessary, since arg might be nullish
return arg?.length;
}
+
+[0, 1, 2, 3].filter(t => t); // number can be truthy or falsy
```
## Options
-Accepts an object with the following options:
-
-- `ignoreRhs` (default `false`) - doesn't check if the right-hand side of `&&` and `||` is a necessary condition. For example, the following code is valid with this option on:
-
```ts
-function head<T>(items: T[]) {
- return items.length && items[0].toUpperCase();
-}
+type Options = {
+ // if true, the rule will ignore constant loop conditions
+ allowConstantLoopConditions?: boolean;
+ // if true, the rule will not error when running with a tsconfig that has strictNullChecks turned **off**
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
+};
+
+const defaultOptions: Options = {
+ allowConstantLoopConditions: false,
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
+};
```
-- `allowConstantLoopConditions` (default `false`) - allows constant expressions in loops.
+### `allowConstantLoopConditions`
-Example of correct code for when `allowConstantLoopConditions` is `true`:
+Example of correct code for `{ allowConstantLoopConditions: true }`:
```ts
while (true) {}
@@ -74,18 +86,15 @@
do {} while (true);
```
-- `checkArrayPredicates` (default: `false`) - if set checks that the return value from certain array method callbacks (`filter`, `find`, `some`, `every`) is necessarily conditional.
+### `allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing`
-```ts
-// Valid: numbers can be truthy or falsy.
-[0, 1, 2, 3].filter(t => t);
+If this is set to `false`, then the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`.
-// Invalid: arrays are always falsy.
-[
- [1, 2],
- [3, 4],
-].filter(t => t);
-```
+Without `strictNullChecks`, TypeScript essentially erases `undefined` and `null` from the types. This means when this rule inspects the types from a variable, **it will not be able to tell that the variable might be `null` or `undefined`**, which essentially makes this rule useless.
+
+You should be using `strictNullChecks` to ensure complete type-safety in your codebase.
+
+If for some reason you cannot turn on `strictNullChecks`, but still want to use this rule - you can use this option to allow it - but know that the behavior of this rule is _undefined_ with the compiler option turned off. We will not accept bug reports if you are using this option.
## When Not To Use It
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-assertion.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-assertion.md
index 14819c5..4464b64 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-assertion.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-assertion.md
@@ -44,6 +44,10 @@
```
```ts
+const foo = 'foo' as const;
+```
+
+```ts
function foo(x: number | undefined): number {
return x!;
}
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-assignment.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-assignment.md
new file mode 100644
index 0000000..64207e5
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-assignment.md
@@ -0,0 +1,72 @@
+# Disallows assigning any to variables and properties (`no-unsafe-assignment`)
+
+Despite your best intentions, the `any` type can sometimes leak into your codebase.
+Assigning an `any` typed value to a variable can be hard to pick up on, particularly if it leaks in from an external library. Operations on the variable will not be checked at all by TypeScript, so it creates a potential safety hole, and source of bugs in your codebase.
+
+## Rule Details
+
+This rule disallows assigning `any` to a variable, and assigning `any[]` to an array destructuring.
+This rule also compares the assigned type to the variable's type to ensure you don't assign an unsafe `any` in a generic position to a receiver that's expecting a specific type. For example, it will error if you assign `Set<any>` to a variable declared as `Set<string>`.
+
+Examples of **incorrect** code for this rule:
+
+```ts
+const x = 1 as any,
+ y = 1 as any;
+const [x] = 1 as any;
+const [x] = [] as any[];
+const [x] = [1 as any];
+[x] = [1] as [any];
+
+function foo(a = 1 as any) {}
+class Foo {
+ constructor(private a = 1 as any) {}
+}
+class Foo {
+ private a = 1 as any;
+}
+
+// generic position examples
+const x: Set<string> = new Set<any>();
+const x: Map<string, string> = new Map<string, any>();
+const x: Set<string[]> = new Set<any[]>();
+const x: Set<Set<Set<string>>> = new Set<Set<Set<any>>>();
+```
+
+Examples of **correct** code for this rule:
+
+```ts
+const x = 1,
+ y = 1;
+const [x] = [1];
+[x] = [1] as [number];
+
+function foo(a = 1) {}
+class Foo {
+ constructor(private a = 1) {}
+}
+class Foo {
+ private a = 1;
+}
+
+// generic position examples
+const x: Set<string> = new Set<string>();
+const x: Map<string, string> = new Map<string, string>();
+const x: Set<string[]> = new Set<string[]>();
+const x: Set<Set<Set<string>>> = new Set<Set<Set<string>>>();
+```
+
+There are cases where the rule allows assignment of `any` to `unknown`.
+
+Example of `any` to `unknown` assignment that are allowed.
+
+```ts
+const x: unknown = y as any;
+const x: unknown[] = y as any[];
+const x: Set<unknown> = y as Set<any>;
+```
+
+## Related to
+
+- [`no-explicit-any`](./no-explicit-any.md)
+- TSLint: [`no-unsafe-any`](https://palantir.github.io/tslint/rules/no-unsafe-any/)
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.md
new file mode 100644
index 0000000..1000e59
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.md
@@ -0,0 +1,48 @@
+# Disallows calling an any type value (`no-unsafe-call`)
+
+Despite your best intentions, the `any` type can sometimes leak into your codebase.
+The arguments to, and return value of calling an `any` typed variable are not checked at all by TypeScript, so it creates a potential safety hole, and source of bugs in your codebase.
+
+## Rule Details
+
+This rule disallows calling any variable that is typed as `any`.
+
+Examples of **incorrect** code for this rule:
+
+```ts
+declare const anyVar: any;
+declare const nestedAny: { prop: any };
+
+anyVar();
+anyVar.a.b();
+
+nestedAny.prop();
+nestedAny.prop['a']();
+
+new anyVar();
+new nestedAny.prop();
+
+anyVar`foo`;
+nestedAny.prop`foo`;
+```
+
+Examples of **correct** code for this rule:
+
+```ts
+declare const typedVar: () => void;
+declare const typedNested: { prop: { a: () => void } };
+
+typedVar();
+typedNested.prop.a();
+
+(() => {})();
+
+new Map();
+
+String.raw`foo`;
+```
+
+## Related to
+
+- [`no-explicit-any`](./no-explicit-any.md)
+- TSLint: [`no-unsafe-any`](https://palantir.github.io/tslint/rules/no-unsafe-any/)
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-member-access.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-member-access.md
new file mode 100644
index 0000000..e64294f
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-member-access.md
@@ -0,0 +1,54 @@
+# Disallows member access on any typed variables (`no-unsafe-member-access`)
+
+Despite your best intentions, the `any` type can sometimes leak into your codebase.
+Member access on `any` typed variables is not checked at all by TypeScript, so it creates a potential safety hole, and source of bugs in your codebase.
+
+## Rule Details
+
+This rule disallows member access on any variable that is typed as `any`.
+
+Examples of **incorrect** code for this rule:
+
+```ts
+declare const anyVar: any;
+declare const nestedAny: { prop: any };
+
+anyVar.a;
+anyVar.a.b;
+anyVar['a'];
+anyVar['a']['b'];
+
+nestedAny.prop.a;
+nestedAny.prop['a'];
+
+const key = 'a';
+nestedAny.prop[key];
+
+// Using an any to access a member is unsafe
+const arr = [1, 2, 3];
+arr[anyVar];
+nestedAny[anyVar];
+```
+
+Examples of **correct** code for this rule:
+
+```ts
+declare const properlyTyped: { prop: { a: string } };
+
+properlyTyped.prop.a;
+properlyTyped.prop['a'];
+
+const key = 'a';
+properlyTyped.prop[key];
+
+const arr = [1, 2, 3];
+arr[1];
+const idx = 1;
+arr[idx];
+arr[idx++];
+```
+
+## Related to
+
+- [`no-explicit-any`](./no-explicit-any.md)
+- TSLint: [`no-unsafe-any`](https://palantir.github.io/tslint/rules/no-unsafe-any/)
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-return.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-return.md
new file mode 100644
index 0000000..9810be3
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-return.md
@@ -0,0 +1,89 @@
+# Disallows returning any from a function (`no-unsafe-return`)
+
+Despite your best intentions, the `any` type can sometimes leak into your codebase.
+Returned `any` typed values not checked at all by TypeScript, so it creates a potential safety hole, and source of bugs in your codebase.
+
+## Rule Details
+
+This rule disallows returning `any` or `any[]` from a function.
+This rule also compares the return type to the function's declared/inferred return type to ensure you don't return an unsafe `any` in a generic position to a receiver that's expecting a specific type. For example, it will error if you return `Set<any>` from a function declared as returning `Set<string>`.
+
+Examples of **incorrect** code for this rule:
+
+```ts
+function foo1() {
+ return 1 as any;
+}
+function foo2() {
+ return Object.create(null);
+}
+const foo3 = () => {
+ return 1 as any;
+};
+const foo4 = () => Object.create(null);
+
+function foo5() {
+ return [] as any[];
+}
+function foo6() {
+ return [] as Array<any>;
+}
+function foo7() {
+ return [] as readonly any[];
+}
+function foo8() {
+ return [] as Readonly<any[]>;
+}
+const foo9 = () => {
+ return [] as any[];
+};
+const foo10 = () => [] as any[];
+
+const foo11 = (): string[] => [1, 2, 3] as any[];
+
+// generic position examples
+function assignability1(): Set<string> {
+ return new Set<any>([1]);
+}
+type TAssign = () => Set<string>;
+const assignability2: TAssign = () => new Set<any>([true]);
+```
+
+Examples of **correct** code for this rule:
+
+```ts
+function foo1() {
+ return 1;
+}
+function foo2() {
+ return Object.create(null) as Record<string, unknown>;
+}
+
+const foo3 = () => [];
+const foo4 = () => ['a'];
+
+function assignability1(): Set<string> {
+ return new Set<string>(['foo']);
+}
+type TAssign = () => Set<string>;
+const assignability2: TAssign = () => new Set(['foo']);
+```
+
+There are cases where the rule allows to return `any` to `unknown`.
+
+Examples of `any` to `unknown` return that are allowed.
+
+```ts
+function foo1(): unknown {
+ return JSON.parse(singleObjString); // Return type for JSON.parse is any.
+}
+
+function foo2(): unknown[] {
+ return [] as any[];
+}
+```
+
+## Related to
+
+- [`no-explicit-any`](./no-explicit-any.md)
+- TSLint: [`no-unsafe-any`](https://palantir.github.io/tslint/rules/no-unsafe-any/)
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-untyped-public-signature.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-untyped-public-signature.md
deleted file mode 100644
index 87a1789..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-untyped-public-signature.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# Disallow untyped public methods (`no-untyped-public-signature`)
-
-public methods are meant to be used by code outside of your class. By typing both the parameters and the return type of public methods they will be more readable and easy to use.
-
-## Rule Details
-
-This rule aims to ensure that only typed public methods are declared in the code.
-
-The following patterns are considered warnings:
-
-```ts
-// untyped parameter
-public foo(param1): void {
-}
-
-// untyped parameter
-public foo(param1: any): void {
-}
-
-// untyped return type
-public foo(param1: string) {
-}
-
-// untyped return type
-public foo(param1: string): any {
-}
-```
-
-The following patterns are not warnings:
-
-```ts
-// typed public method
-public foo(param1: string): void {
-}
-
-// untyped private method
-private foo(param1) {
-}
-```
-
-## Options
-
-This rule, in its default state, does not require any argument.
-
-### `ignoredMethods`
-
-You may pass method names you would like this rule to ignore, like so:
-
-```cjson
-{
- "@typescript-eslint/no-untyped-public-signature": ["error", { "ignoredMethods": ["ignoredMethodName"] }]
-}
-```
-
-## When Not To Use It
-
-If you don't wish to type public methods.
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.md
index 6367412..cb61c2e 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-expressions.md
@@ -1,16 +1,13 @@
# Disallow unused expressions (`no-unused-expressions`)
-This rule aims to eliminate unused expressions which have no effect on the state of the program.
-
## Rule Details
This rule extends the base [`eslint/no-unused-expressions`](https://eslint.org/docs/rules/no-unused-expressions) rule.
-It supports all options and features of the base rule.
-This version adds support for numerous typescript features.
+It adds support for optional call expressions `x?.()`, and directive in module declarations.
## How to use
-```cjson
+```jsonc
{
// note you must disable the base rule as it can report incorrect errors
"no-unused-expressions": "off",
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.md
index a84b436..5eaf167 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unused-vars.md
@@ -1,305 +1,22 @@
# Disallow unused variables (`no-unused-vars`)
-Variables that are declared and not used anywhere in the code are most likely an error due to incomplete refactoring. Such variables take up space in the code and can lead to confusion by readers.
-
## Rule Details
-This rule is aimed at eliminating unused variables, functions, and parameters of functions.
+This rule extends the base [`eslint/no-unused-vars`](https://eslint.org/docs/rules/no-unused-vars) rule.
+It adds support for TypeScript features, such as types.
-A variable is considered to be used if any of the following are true:
+## How to use
-- It represents a function that is called (`doSomething()`)
-- It is read (`var y = x`)
-- It is passed into a function as an argument (`doSomething(x)`)
-- It is read inside of a function that is passed to another function (`doSomething(function() { foo(); })`)
-
-A variable is _not_ considered to be used if it is only ever assigned to (`var x = 5`) or declared.
-
-Examples of **incorrect** code for this rule:
-
-```js
-/*eslint no-unused-vars: "error"*/
-/*global some_unused_var*/
-
-// It checks variables you have defined as global
-some_unused_var = 42;
-
-var x;
-
-// Write-only variables are not considered as used.
-var y = 10;
-y = 5;
-
-// A read for a modification of itself is not considered as used.
-var z = 0;
-z = z + 1;
-
-// By default, unused arguments cause warnings.
-(function(foo) {
- return 5;
-})();
-
-// Unused recursive functions also cause warnings.
-function fact(n) {
- if (n < 2) return 1;
- return n * fact(n - 1);
+```jsonc
+{
+ // note you must disable the base rule as it can report incorrect errors
+ "no-unused-vars": "off",
+ "@typescript-eslint/no-unused-vars": ["error"]
}
-
-// When a function definition destructures an array, unused entries from the array also cause warnings.
-function getY([x, y]) {
- return y;
-}
-```
-
-Examples of **correct** code for this rule:
-
-```js
-/*eslint no-unused-vars: "error"*/
-
-var x = 10;
-alert(x);
-
-// foo is considered used here
-myFunc(
- function foo() {
- // ...
- }.bind(this),
-);
-
-(function(foo) {
- return foo;
-})();
-
-var myFunc;
-myFunc = setTimeout(function() {
- // myFunc is considered used
- myFunc();
-}, 50);
-
-// Only the second argument from the destructured array is used.
-function getY([, y]) {
- return y;
-}
-```
-
-### exported
-
-In environments outside of CommonJS or ECMAScript modules, you may use `var` to create a global variable that may be used by other scripts. You can use the `/* exported variableName */` comment block to indicate that this variable is being exported and therefore should not be considered unused.
-
-Note that `/* exported */` has no effect for any of the following:
-
-- when the environment is `node` or `commonjs`
-- when `parserOptions.sourceType` is `module`
-- when `ecmaFeatures.globalReturn` is `true`
-
-The line comment `// exported variableName` will not work as `exported` is not line-specific.
-
-Examples of **correct** code for `/* exported variableName */` operation:
-
-```js
-/* exported global_var */
-
-var global_var = 42;
```
## Options
-This rule takes one argument which can be a string or an object. The string settings are the same as those of the `vars` property (explained below).
-
-By default this rule is enabled with `all` option for variables and `after-used` for arguments.
-
-```CJSON
-{
- "rules": {
- // note you must disable the base rule as it can report incorrect errors
- "no-unused-vars": "off",
- "@typescript-eslint/no-unused-vars": ["error", {
- "vars": "all",
- "args": "after-used",
- "ignoreRestSiblings": false
- }]
- }
-}
-```
-
-### `vars`
-
-The `vars` option has two settings:
-
-- `all` checks all variables for usage, including those in the global scope. This is the default setting.
-- `local` checks only that locally-declared variables are used but will allow global variables to be unused.
-
-#### `vars: local`
-
-Examples of **correct** code for the `{ "vars": "local" }` option:
-
-```js
-/*eslint no-unused-vars: ["error", { "vars": "local" }]*/
-/*global some_unused_var */
-
-some_unused_var = 42;
-```
-
-### `varsIgnorePattern`
-
-The `varsIgnorePattern` option specifies exceptions not to check for usage: variables whose names match a regexp pattern. For example, variables whose names contain `ignored` or `Ignored`.
-
-Examples of **correct** code for the `{ "varsIgnorePattern": "[iI]gnored" }` option:
-
-```js
-/*eslint no-unused-vars: ["error", { "varsIgnorePattern": "[iI]gnored" }]*/
-
-var firstVarIgnored = 1;
-var secondVar = 2;
-console.log(secondVar);
-```
-
-### `args`
-
-The `args` option has three settings:
-
-- `after-used` - unused positional arguments that occur before the last used argument will not be checked, but all named arguments and all positional arguments after the last used argument will be checked.
-- `all` - all named arguments must be used.
-- `none` - do not check arguments.
-
-#### `args: after-used`
-
-Examples of **incorrect** code for the default `{ "args": "after-used" }` option:
-
-```js
-/*eslint no-unused-vars: ["error", { "args": "after-used" }]*/
-
-// 2 errors, for the parameters after the last used parameter (bar)
-// "baz" is defined but never used
-// "qux" is defined but never used
-(function(foo, bar, baz, qux) {
- return bar;
-})();
-```
-
-Examples of **correct** code for the default `{ "args": "after-used" }` option:
-
-```js
-/*eslint no-unused-vars: ["error", {"args": "after-used"}]*/
-
-(function(foo, bar, baz, qux) {
- return qux;
-})();
-```
-
-#### `args: all`
-
-Examples of **incorrect** code for the `{ "args": "all" }` option:
-
-```js
-/*eslint no-unused-vars: ["error", { "args": "all" }]*/
-
-// 2 errors
-// "foo" is defined but never used
-// "baz" is defined but never used
-(function(foo, bar, baz) {
- return bar;
-})();
-```
-
-#### `args: none`
-
-Examples of **correct** code for the `{ "args": "none" }` option:
-
-```js
-/*eslint no-unused-vars: ["error", { "args": "none" }]*/
-
-(function(foo, bar, baz) {
- return bar;
-})();
-```
-
-### `ignoreRestSiblings`
-
-The `ignoreRestSiblings` option is a boolean (default: `false`). Using a [Rest Property](https://github.com/tc39/proposal-object-rest-spread) it is possible to "omit" properties from an object, but by default the sibling properties are marked as "unused". With this option enabled the rest property's siblings are ignored.
-
-Examples of **correct** code for the `{ "ignoreRestSiblings": true }` option:
-
-```js
-/*eslint no-unused-vars: ["error", { "ignoreRestSiblings": true }]*/
-// 'type' is ignored because it has a rest property sibling.
-var { type, ...coords } = data;
-```
-
-### `argsIgnorePattern`
-
-The `argsIgnorePattern` option specifies exceptions not to check for usage: arguments whose names match a regexp pattern. For example, variables whose names begin with an underscore.
-
-Examples of **correct** code for the `{ "argsIgnorePattern": "^_" }` option:
-
-```js
-/*eslint no-unused-vars: ["error", { "argsIgnorePattern": "^_" }]*/
-
-function foo(x, _y) {
- return x + 1;
-}
-foo();
-```
-
-### `caughtErrors`
-
-The `caughtErrors` option is used for `catch` block arguments validation.
-
-It has two settings:
-
-- `none` - do not check error objects. This is the default setting.
-- `all` - all named arguments must be used.
-
-#### `caughtErrors: none`
-
-Not specifying this rule is equivalent of assigning it to `none`.
-
-Examples of **correct** code for the `{ "caughtErrors": "none" }` option:
-
-```js
-/*eslint no-unused-vars: ["error", { "caughtErrors": "none" }]*/
-
-try {
- //...
-} catch (err) {
- console.error('errors');
-}
-```
-
-#### `caughtErrors: all`
-
-Examples of **incorrect** code for the `{ "caughtErrors": "all" }` option:
-
-```js
-/*eslint no-unused-vars: ["error", { "caughtErrors": "all" }]*/
-
-// 1 error
-// "err" is defined but never used
-try {
- //...
-} catch (err) {
- console.error('errors');
-}
-```
-
-### `caughtErrorsIgnorePattern`
-
-The `caughtErrorsIgnorePattern` option specifies exceptions not to check for usage: catch arguments whose names match a regexp pattern. For example, variables whose names begin with a string 'ignore'.
-
-Examples of **correct** code for the `{ "caughtErrorsIgnorePattern": "^ignore" }` option:
-
-```js
-/*eslint no-unused-vars: ["error", { "caughtErrorsIgnorePattern": "^ignore" }]*/
-
-try {
- //...
-} catch (ignoreErr) {
- console.error('errors');
-}
-```
-
-## When Not To Use It
-
-If you don't want to be notified about unused variables or function arguments, you can safely turn this rule off.
+See [`eslint/no-unused-vars` options](https://eslint.org/docs/rules/no-unused-vars#options).
<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/no-unused-vars.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.md
index e6acf60..dfdab4d 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-use-before-define.md
@@ -1,164 +1,56 @@
# Disallow the use of variables before they are defined (`no-use-before-define`)
-In JavaScript, prior to ES6, variable and function declarations are hoisted to the top of a scope, so it's possible to use identifiers before their formal declarations in code. This can be confusing and some believe it is best to always declare variables and functions before using them.
-
-In ES6, block-level bindings (`let` and `const`) introduce a "temporal dead zone" where a `ReferenceError` will be thrown with any attempt to access the variable before its declaration.
+## PLEASE READ THIS ISSUE BEFORE USING THIS RULE [#1856](https://github.com/typescript-eslint/typescript-eslint/issues/1856)
## Rule Details
-This rule will warn when it encounters a reference to an identifier that has not yet been declared.
+This rule extends the base [`eslint/no-use-before-define`](https://eslint.org/docs/rules/no-use-before-define) rule.
+It adds support for `type`, `interface` and `enum` declarations.
-Examples of **incorrect** code for this rule:
+## How to use
-```ts
-/*eslint no-use-before-define: "error"*/
-/*eslint-env es6*/
-
-alert(a);
-var a = 10;
-
-f();
-function f() {}
-
-function g() {
- return b;
-}
-var b = 1;
-
-// With blockBindings: true
+```jsonc
{
- alert(c);
- let c = 1;
+ // note you must disable the base rule as it can report incorrect errors
+ "no-use-before-define": "off",
+ "@typescript-eslint/no-use-before-define": ["error"]
}
-
-let myVar: StringOrNumber;
-type StringOrNumber = string | number;
-```
-
-Examples of **correct** code for this rule:
-
-```ts
-/*eslint no-use-before-define: "error"*/
-/*eslint-env es6*/
-
-var a;
-a = 10;
-alert(a);
-
-function f() {}
-f(1);
-
-var b = 1;
-function g() {
- return b;
-}
-
-// With blockBindings: true
-{
- let C;
- c++;
-}
-
-type StringOrNumber = string | number;
-let myVar: StringOrNumber;
```
## Options
-```json
-{
- "no-use-before-define": ["error", { "functions": true, "classes": true }]
-}
-```
+See [`eslint/no-use-before-define` options](https://eslint.org/docs/rules/no-use-before-define#options).
+This rule adds the following options:
-- `functions` (`boolean`) -
- The flag which shows whether or not this rule checks function declarations.
- If this is `true`, this rule warns every reference to a function before the function declaration.
- Otherwise, ignores those references.
- Function declarations are hoisted, so it's safe.
- Default is `true`.
-- `classes` (`boolean`) -
- The flag which shows whether or not this rule checks class declarations of upper scopes.
- If this is `true`, this rule warns every reference to a class before the class declaration.
- Otherwise, ignores those references if the declaration is in upper function scopes.
- Class declarations are not hoisted, so it might be danger.
- Default is `true`.
-- `enums` (`boolean`) -
- The flag which shows whether or not this rule checks enum declarations of upper scopes.
- If this is `true`, this rule warns every reference to a enum before the enum declaration.
- Otherwise, ignores those references.
- Default is `true`.
-- `variables` (`boolean`) -
- This flag determines whether or not the rule checks variable declarations in upper scopes.
- If this is `true`, the rule warns every reference to a variable before the variable declaration.
- Otherwise, the rule ignores a reference if the declaration is in an upper scope, while still reporting the reference if it's in the same scope as the declaration.
- Default is `true`.
-- `typedefs` (`boolean`, **added** in `@typescript-eslint/eslint-plugin`) -
- The flag which shows whether or not this rule checks type declarations.
- If this is `true`, this rule warns every reference to a type before the type declaration.
- Otherwise, ignores those references.
- Type declarations are hoisted, so it's safe.
- Default is `true`.
-
-This rule accepts `"nofunc"` string as an option.
-`"nofunc"` is the same as `{ "functions": false, "classes": true }`.
-
-### `functions`
-
-Examples of **correct** code for the `{ "functions": false }` option:
-
-```js
-/*eslint no-use-before-define: ["error", { "functions": false }]*/
-
-f();
-function f() {}
-```
-
-### `classes`
-
-Examples of **incorrect** code for the `{ "classes": false }` option:
-
-```js
-/*eslint no-use-before-define: ["error", { "classes": false }]*/
-/*eslint-env es6*/
-
-new A();
-class A {}
-```
-
-Examples of **correct** code for the `{ "classes": false }` option:
-
-```js
-/*eslint no-use-before-define: ["error", { "classes": false }]*/
-/*eslint-env es6*/
-
-function foo() {
- return new A();
+```ts
+interface Options extends BaseNoUseBeforeDefineOptions {
+ enums?: boolean;
+ typedefs?: boolean;
+ ignoreTypeReferences?: boolean;
}
-class A {}
+const defaultOptions: Options = {
+ ...baseNoUseBeforeDefineDefaultOptions,
+ enums: true,
+ typedefs: true,
+ ignoreTypeReferences: true,
+};
```
### `enums`
-Examples of **incorrect** code for the `{ "enums": true }` option:
+If this is `true`, this rule warns every reference to a enum before the enum declaration.
+If this is `false`, this rule will ignore references to enums, when the reference is in a child scope.
+
+Examples of **incorrect** code for the `{ "enums": false }` option:
```ts
-/*eslint no-use-before-define: ["error", { "enums": true }]*/
+/*eslint no-use-before-define: ["error", { "enums": false }]*/
-function foo() {
- return Foo.FOO;
-}
-
-class Test {
- foo() {
- return Foo.FOO;
- }
-}
+const x = Foo.FOO;
enum Foo {
FOO,
- BAR,
}
```
@@ -176,31 +68,11 @@
}
```
-### `variables`
-
-Examples of **incorrect** code for the `{ "variables": false }` option:
-
-```js
-/*eslint no-use-before-define: ["error", { "variables": false }]*/
-
-console.log(foo);
-var foo = 1;
-```
-
-Examples of **correct** code for the `{ "variables": false }` option:
-
-```js
-/*eslint no-use-before-define: ["error", { "variables": false }]*/
-
-function baz() {
- console.log(foo);
-}
-
-var foo = 1;
-```
-
### `typedefs`
+If this is `true`, this rule warns every reference to a type before the type declaration.
+If this is `false`, this rule will ignore references to types.
+
Examples of **correct** code for the `{ "typedefs": false }` option:
```ts
@@ -210,4 +82,25 @@
type StringOrNumber = string | number;
```
-Copied from [the original ESLint rule docs](https://github.com/eslint/eslint/blob/a113cd3/docs/rules/no-use-before-define.md)
+### `ignoreTypeReferences`
+
+If this is `true`, this rule ignores all type references, such as in type annotations and assertions.
+If this is `false`, this will will check all type references.
+
+Examples of **correct** code for the `{ "ignoreTypeReferences": true }` option:
+
+```ts
+/*eslint no-use-before-define: ["error", { "ignoreTypeReferences": true }]*/
+
+let var1: StringOrNumber;
+type StringOrNumber = string | number;
+
+let var2: Enum;
+enum Enum {}
+```
+
+### Other Options
+
+See [`eslint/no-use-before-define` options](https://eslint.org/docs/rules/no-use-before-define#options).
+
+<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/no-use-before-define.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.md
index 757ae5d..524ad4b 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-useless-constructor.md
@@ -1,88 +1,26 @@
# Disallow unnecessary constructors (`no-useless-constructor`)
-ES2015 provides a default class constructor if one is not specified. As such, it is unnecessary to provide an empty constructor or one that simply delegates into its parent class, as in the following examples:
-
-```js
-class A {
- constructor() {}
-}
-
-class A extends B {
- constructor(value) {
- super(value);
- }
-}
-```
-
## Rule Details
-This rule flags class constructors that can be safely removed without changing how the class works.
+This rule extends the base [`eslint/no-useless-constructor`](https://eslint.org/docs/rules/no-useless-constructor) rule.
+It adds support for:
-## Examples
+- constructors marked as `protected` / `private` (i.e. marking a constructor as non-public),
+- `public` constructors when there is no superclass,
+- constructors with only parameter properties.
-Examples of **incorrect** code for this rule:
+## How to use
-```js
-/*eslint @typescript-eslint/no-useless-constructor: "error"*/
-
-class A {
- constructor() {}
-}
-
-class A extends B {
- constructor(...args) {
- super(...args);
- }
-}
-```
-
-Examples of **correct** code for this rule:
-
-```js
-/*eslint @typescript-eslint/no-useless-constructor: "error"*/
-
-class A {}
-
-class A {
- constructor() {
- doSomething();
- }
-}
-
-class A extends B {
- constructor() {
- super('foo');
- }
-}
-
-class A extends B {
- constructor() {
- super();
- doSomething();
- }
-}
-
-class A extends B {
- constructor(protected name: string) {}
-}
-
-class A extends B {
- protected constructor() {}
-}
-```
-
-## Rule Changes
-
-```cjson
+```jsonc
{
- // note you must disable the base rule as it can report incorrect errors
- "no-useless-constructor": "off",
- "@typescript-eslint/no-useless-constructor": "error",
+ // note you must disable the base rule as it can report incorrect errors
+ "no-useless-constructor": "off",
+ "@typescript-eslint/no-useless-constructor": ["error"]
}
```
-## When Not To Use It
+## Options
-If you don't want to be notified about unnecessary constructors, you can safely disable this rule.
+See [`eslint/no-useless-constructor` options](https://eslint.org/docs/rules/no-useless-constructor#options).
<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/no-useless-constructor.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-as-const.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-as-const.md
index bb28819..b710a82 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-as-const.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-as-const.md
@@ -25,4 +25,4 @@
## When Not To Use It
-If you are using typescript < 3.4
+If you are using TypeScript < 3.4
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-enum-initializers.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-enum-initializers.md
new file mode 100644
index 0000000..1e8f568
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-enum-initializers.md
@@ -0,0 +1,70 @@
+# Prefer initializing each enums member value (`prefer-enum-initializers`)
+
+This rule recommends having each `enum`s member value explicitly initialized.
+
+`enum`s are a practical way to organize semantically related constant values. However, by implicitly defining values, `enum`s can lead to unexpected bugs if it's modified without paying attention to the order of its items.
+
+## Rule Details
+
+`enum`s infers sequential numbers automatically when initializers are omitted:
+
+```ts
+enum Status {
+ Open, // infer 0
+ Closed, // infer 1
+}
+```
+
+If a new member is added to the top of `Status`, both `Open` and `Closed` would have its values altered:
+
+```ts
+enum Status {
+ Pending, // infer 0
+ Open, // infer 1
+ Closed, // infer 2
+}
+```
+
+Examples of **incorrect** code for this rule:
+
+```ts
+enum Status {
+ Open = 1,
+ Close,
+}
+
+enum Direction {
+ Up,
+ Down,
+}
+
+enum Color {
+ Red,
+ Green = 'Green'
+ Blue = 'Blue',
+}
+```
+
+Examples of **correct** code for this rule:
+
+```ts
+enum Status {
+ Open = 'Open',
+ Close = 'Close',
+}
+
+enum Direction {
+ Up = 1,
+ Down = 2,
+}
+
+enum Color {
+ Red = 'Red',
+ Green = 'Green',
+ Blue = 'Blue',
+}
+```
+
+## When Not To Use It
+
+If you don't care about `enum`s having implicit values you can safely disable this rule.
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.md
index a3210a1..5c3bc55 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-function-type.md
@@ -24,6 +24,13 @@
}
```
+```ts
+interface MixinMethod {
+ // returns the function itself, not the `this` argument.
+ (arg: string): this;
+}
+```
+
Examples of **correct** code for this rule:
```ts
@@ -48,6 +55,23 @@
}
```
+```ts
+// returns the `this` argument of function, retaining it's type.
+type MixinMethod = <TSelf>(this: TSelf, arg: string) => TSelf;
+// a function that returns itself is much clearer in this form.
+type ReturnsSelf = (arg: string) => ReturnsSelf;
+```
+
+```ts
+// multiple call signatures (overloads) is allowed:
+interface Overloaded {
+ (data: string): number;
+ (id: number): string;
+}
+// this is equivelent to Overloaded interface.
+type Intersection = ((data: string) => number) & ((id: number) => string);
+```
+
## When Not To Use It
If you specifically want to use an interface or type literal with a single call signature for stylistic reasons, you can disable this rule.
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-literal-enum-member.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-literal-enum-member.md
new file mode 100644
index 0000000..e2350f3
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-literal-enum-member.md
@@ -0,0 +1,51 @@
+# Require that all enum members be literal values to prevent unintended enum member name shadow issues (`prefer-literal-enum-member`)
+
+TypeScript allows the value of an enum member to be many different kinds of valid JavaScript expressions. However, because enums create their own scope whereby each enum member becomes a variable in that scope, unexpected values could be used at runtime. Example:
+
+```ts
+const imOutside = 2;
+const b = 2;
+enum Foo {
+ outer = imOutside,
+ a = 1,
+ b = a,
+ c = b,
+ // does c == Foo.b == Foo.c == 1?
+ // or does c == b == 2?
+}
+```
+
+The answer is that `Foo.c` will be `1` at runtime. The [playground](https://www.typescriptlang.org/play/#src=const%20imOutside%20%3D%202%3B%0D%0Aconst%20b%20%3D%202%3B%0D%0Aenum%20Foo%20%7B%0D%0A%20%20%20%20outer%20%3D%20imOutside%2C%0D%0A%20%20%20%20a%20%3D%201%2C%0D%0A%20%20%20%20b%20%3D%20a%2C%0D%0A%20%20%20%20c%20%3D%20b%2C%0D%0A%20%20%20%20%2F%2F%20does%20c%20%3D%3D%20Foo.b%20%3D%3D%20Foo.c%20%3D%3D%201%3F%0D%0A%20%20%20%20%2F%2F%20or%20does%20c%20%3D%3D%20b%20%3D%3D%202%3F%0D%0A%7D) illustrates this quite nicely.
+
+## Rule Details
+
+This rule is meant to prevent unexpected results in code by requiring the use of literal values as enum members to prevent unexpected runtime behavior. Template literals, arrays, objects, constructors, and all other expression types can end up using a variable from its scope or the parent scope, which can result in the same unexpected behavior at runtime.
+
+Examples of **incorrect** code for this rule:
+
+```ts
+const str = 'Test';
+enum Invalid {
+ A = str, // Variable assignment
+ B = {}, // Object assignment
+ C = `A template literal string`, // Template literal
+ D = new Set(1, 2, 3), // Constructor in assignment
+ E = 2 + 2, // Expression assignment
+}
+```
+
+Examples of **correct** code for this rule:
+
+```ts
+enum Valid {
+ A,
+ B = 'TestStr', // A regular string
+ C = 4, // A number
+ D = null,
+ E = /some_regex/,
+}
+```
+
+## When Not To Use It
+
+If you want use anything other than simple literals as an enum value.
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.md
index 5b99e5c..bb32c02 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.md
@@ -46,7 +46,6 @@
{
ignoreConditionalTests?: boolean;
ignoreMixedLogicalExpressions?: boolean;
- forceSuggestionFixer?: boolean;
},
];
@@ -54,7 +53,6 @@
{
ignoreConditionalTests: true,
ignoreMixedLogicalExpressions: true,
- forceSuggestionFixer: false,
},
];
```
@@ -133,12 +131,6 @@
**_NOTE:_** Errors for this specific case will be presented as suggestions (see below), instead of fixes. This is because it is not always safe to automatically convert `||` to `??` within a mixed logical expression, as we cannot tell the intended precedence of the operator. Note that by design, `??` requires parentheses when used with `&&` or `||` in the same expression.
-### `forceSuggestionFixer`
-
-Setting this option to `true` will cause the rule to use ESLint's "suggested fix" mode for all fixes. _This option is provided as to aid in transitioning your codebase onto this rule_.
-
-Suggestion fixes cannot be automatically applied via the `--fix` CLI command, but can be _manually_ chosen to be applied one at a time via an IDE or similar. This makes it safe to run autofixers on an existing codebase without worrying about potential runtime behavior changes from this rule's fixer.
-
## When Not To Use It
If you are not using TypeScript 3.7 (or greater), then you will not be able to use this rule, as the operator is not supported.
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-optional-chain.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-optional-chain.md
index 9a046b3..6505c93 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-optional-chain.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-optional-chain.md
@@ -70,6 +70,8 @@
foo?.a?.b?.c?.d?.e;
```
+**Note:** there are a few edge cases where this rule will false positive. Use your best judgement when evaluating reported errors.
+
## When Not To Use It
If you are not using TypeScript 3.7 (or greater), then you will not be able to use this rule, as the operator is not supported.
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md
index c69b3b2..74697f2 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md
@@ -74,7 +74,8 @@
interface CustomArrayType extends ReadonlyArray<string> {
readonly prop: string;
}
-function custom1(arg: CustomArrayType) {}
+function custom1(arg: Readonly<CustomArrayType>) {}
+// interfaces that extend the array types are not considered arrays, and thus must be made readonly.
interface CustomFunction {
(): void;
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly.md
index 6731a75..9ce16a8 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-readonly.md
@@ -52,9 +52,9 @@
You may pass `"onlyInlineLambdas": true` as a rule option within an object to restrict checking only to members immediately assigned a lambda value.
-```cjson
+```jsonc
{
- "@typescript-eslint/prefer-readonly": ["error", { "onlyInlineLambdas": true }]
+ "@typescript-eslint/prefer-readonly": ["error", { "onlyInlineLambdas": true }]
}
```
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-reduce-type-parameter.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-reduce-type-parameter.md
new file mode 100644
index 0000000..d6f6802
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-reduce-type-parameter.md
@@ -0,0 +1,54 @@
+# Prefer using type parameter when calling `Array#reduce` instead of casting (`prefer-reduce-type-parameter`)
+
+It's common to call `Array#reduce` with a generic type, such as an array or object, as the initial value.
+Since these values are empty, their types are not usable:
+
+- `[]` has type `never[]`, which can't have items pushed into it as nothing is type `never`
+- `{}` has type `{}`, which doesn't have an index signature and so can't have properties added to it
+
+A common solution to this problem is to cast the initial value. While this will work, it's not the most optimal
+solution as casting has subtle effects on the underlying types that can allow bugs to slip in.
+
+A better (and lesser known) solution is to pass the type in as a generic parameter to `Array#reduce` explicitly.
+This means that TypeScript doesn't have to try to infer the type, and avoids the common pitfalls that come with casting.
+
+## Rule Details
+
+This rule looks for calls to `Array#reduce`, and warns if an initial value is being passed & casted,
+suggesting instead to pass the cast type to `Array#reduce` as its generic parameter.
+
+Examples of **incorrect** code for this rule:
+
+```ts
+[1, 2, 3].reduce((arr, num) => arr.concat(num * 2), [] as number[]);
+
+['a', 'b'].reduce(
+ (accum, name) => ({
+ ...accum,
+ [name]: true,
+ }),
+ {} as Record<string, boolean>,
+);
+```
+
+Examples of **correct** code for this rule:
+
+```ts
+[1, 2, 3].reduce<number[]>((arr, num) => arr.concat(num * 2), []);
+
+['a', 'b'].reduce<Record<string, boolean>>(
+ (accum, name) => ({
+ ...accum,
+ [name]: true,
+ }),
+ {},
+);
+```
+
+## Options
+
+There are no options.
+
+## When Not To Use It
+
+If you don't want to use typechecking in your linting, you can't use this rule.
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-ts-expect-error.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-ts-expect-error.md
new file mode 100644
index 0000000..60fdf79
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-ts-expect-error.md
@@ -0,0 +1,65 @@
+# Recommends using `@ts-expect-error` over `@ts-ignore` (`prefer-ts-expect-error`)
+
+TypeScript allows you to suppress all errors on a line by placing a single-line comment or a comment block line starting with `@ts-ignore` immediately before the erroring line.
+While powerful, there is no way to know if a `@ts-ignore` is actually suppressing an error without manually investigating what happens when the `@ts-ignore` is removed.
+
+This means its easy for `@ts-ignore`s to be forgotten about, and remain in code even after the error they were suppressing is fixed.
+This is dangerous, as if a new error arises on that line it'll be suppressed by the forgotten about `@ts-ignore`, and so be missed.
+
+To address this, TS3.9 ships with a new single-line comment directive: `// @ts-expect-error`.
+
+This directive operates in the same manner as `@ts-ignore`, but will error if the line it's meant to be suppressing doesn't actually contain an error, making it a lot safer.
+
+## Rule Details
+
+This rule looks for usages of `@ts-ignore`, and flags them to be replaced with `@ts-expect-error`.
+
+Examples of **incorrect** code for this rule:
+
+```ts
+// @ts-ignore
+const str: string = 1;
+
+/**
+ * Explaining comment
+ *
+ * @ts-ignore */
+const multiLine: number = 'value';
+
+/** @ts-ignore */
+const block: string = 1;
+
+const isOptionEnabled = (key: string): boolean => {
+ // @ts-ignore: if key isn't in globalOptions it'll be undefined which is false
+ return !!globalOptions[key];
+};
+```
+
+Examples of **correct** code for this rule:
+
+```ts
+// @ts-expect-error
+const str: string = 1;
+
+/**
+ * Explaining comment
+ *
+ * @ts-expect-error */
+const multiLine: number = 'value';
+
+/** @ts-expect-error */
+const block: string = 1;
+
+const isOptionEnabled = (key: string): boolean => {
+ // @ts-expect-error: if key isn't in globalOptions it'll be undefined which is false
+ return !!globalOptions[key];
+};
+```
+
+## When Not To Use It
+
+If you are **NOT** using TypeScript 3.9 (or greater), then you will not be able to use this rule, as the directive is not supported
+
+## Further Reading
+
+- [Original Implementing PR](https://github.com/microsoft/TypeScript/pull/36014)
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md
index e9c37df..6b63587 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/quotes.md
@@ -3,11 +3,11 @@
## Rule Details
This rule extends the base [`eslint/quotes`](https://eslint.org/docs/rules/quotes) rule.
-It supports all options and features of the base rule.
+It adds support for TypeScript features which allow quoted names, but not backtick quoted names.
## How to use
-```cjson
+```jsonc
{
// note you must disable the base rule as it can report incorrect errors
"quotes": "off",
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.md
index 3a939f7..78de198 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-array-sort-compare.md
@@ -45,7 +45,40 @@
## Options
-None.
+The rule accepts an options object with the following properties:
+
+```ts
+type Options = {
+ /**
+ * If true, an array which all elements are string is ignored.
+ */
+ ignoreStringArrays?: boolean;
+};
+
+const defaults = {
+ ignoreStringArrays: false,
+};
+```
+
+### `ignoreStringArrays`
+
+Examples of **incorrect** code for this rule with `{ ignoreStringArrays: true }`:
+
+```ts
+const one = 1;
+const two = 2;
+const three = 3;
+[one, two, three].sort();
+```
+
+Examples of **correct** code for this rule with `{ ignoreStringArrays: true }`:
+
+```ts
+const one = '1';
+const two = '2';
+const three = '3';
+[one, two, three].sort();
+```
## When Not To Use It
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.md
index 23160dc..2d8ad41 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/require-await.md
@@ -1,49 +1,32 @@
# Disallow async functions which have no `await` expression (`require-await`)
-Asynchronous functions that don’t use `await` might not need to be asynchronous functions and could be the unintentional result of refactoring.
-
## Rule Details
-The `@typescript-eslint/require-await` rule extends the `require-await` rule from ESLint core, and allows for cases where the additional typing information can prevent false positives that would otherwise trigger the rule.
+This rule extends the base [`eslint/require-await`](https://eslint.org/docs/rules/require-await) rule.
+It uses type information to add support for `async` functions that return a `Promise`.
-One example is when a function marked as `async` returns a value that is:
+Examples of **correct** code for this rule:
-1. already a promise; or
-2. the result of calling another `async` function
-
-```typescript
-async function numberOne(): Promise<number> {
+```ts
+async function returnsPromise1() {
return Promise.resolve(1);
}
-async function getDataFromApi(endpoint: string): Promise<Response> {
- return fetch(endpoint);
-}
+const returnsPromise2 = () => returnsPromise1();
```
-In the above examples, the core `require-await` triggers the following warnings:
+## How to use
-```
-async function 'numberOne' has no 'await' expression
-async function 'getDataFromApi' has no 'await' expression
-```
-
-One way to resolve these errors is to remove the `async` keyword. However doing so can cause a conflict with the [`@typescript-eslint/promise-function-async`](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/promise-function-async.md) rule (if enabled), which requires any function returning a promise to be marked as `async`.
-
-Another way to resolve these errors is to add an `await` keyword to the return statements. However doing so can cause a conflict with the [`no-return-await`](https://eslint.org/docs/rules/no-return-await) rule (if enabled), which warns against using `return await` since the return value of an `async` function is always wrapped in `Promise.resolve` anyway.
-
-With the additional typing information available in TypeScript code, this extension to the `require-await` rule is able to look at the _actual_ return types of an `async` function (before being implicitly wrapped in `Promise.resolve`), and avoid the need for an `await` expression when the return value is already a promise.
-
-See the [ESLint documentation](https://eslint.org/docs/rules/require-await) for more details on the `require-await` rule.
-
-## Rule Changes
-
-```cjson
+```jsonc
{
- // note you must disable the base rule as it can report incorrect errors
- "require-await": "off",
- "@typescript-eslint/require-await": "error"
+ // note you must disable the base rule as it can report incorrect errors
+ "require-await": "off",
+ "@typescript-eslint/require-await": "error"
}
```
+## Options
+
+See [`eslint/require-await` options](https://eslint.org/docs/rules/require-await#options).
+
<sup>Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/require-await.md)</sup>
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md
index 549da98..0ee7427 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/restrict-template-expressions.md
@@ -6,6 +6,9 @@
const arg = 'foo';
const msg1 = `arg = ${arg}`;
const msg2 = `arg = ${arg || 'default'}`;
+
+const stringWithKindProp: string & { _kind?: 'MyString' } = 'foo';
+const msg3 = `stringWithKindProp = ${stringWithKindProp}`;
```
Examples of **incorrect** code:
@@ -28,14 +31,17 @@
allowNumber?: boolean;
// if true, also allow boolean type in template expressions
allowBoolean?: boolean;
+ // if true, also allow any in template expressions
+ allowAny?: boolean;
// if true, also allow null and undefined in template expressions
- allowNullable?: boolean;
+ allowNullish?: boolean;
};
const defaults = {
- allowNumber: false,
+ allowNumber: true,
allowBoolean: false,
- allowNullable: false,
+ allowAny: false,
+ allowNullish: false,
};
```
@@ -59,9 +65,19 @@
const msg2 = `arg = ${arg || 'not truthy'}`;
```
-### `allowNullable`
+### `allowAny`
-Examples of additional **correct** code for this rule with `{ allowNullable: true }`:
+Examples of additional **correct** code for this rule with `{ allowAny: true }`:
+
+```ts
+const user = JSON.parse('{ "name": "foo" }');
+const msg1 = `arg = ${user.name}`;
+const msg2 = `arg = ${user.name || 'the user with no name'}`;
+```
+
+### `allowNullish`
+
+Examples of additional **correct** code for this rule with `{ allowNullish: true }`:
```ts
const arg = condition ? 'ok' : null;
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/return-await.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/return-await.md
index c00c2be..3c621d2 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/return-await.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/return-await.md
@@ -4,65 +4,40 @@
## Rule Details
-The `@typescript-eslint/return-await` rule specifies that awaiting a returned non-promise is never allowed. By default, the rule requires awaiting a returned promise in a `try-catch-finally` block and disallows returning an awaited promise in any other context. Optionally, the rule can require awaiting returned promises in all contexts, or disallow them in all contexts.
+This rule builds on top of the [`eslint/no-return-await`](https://eslint.org/docs/rules/no-return-await) rule.
+It expands upon the base rule to add support for optionally requiring `return await` in certain cases.
-## Options
+## How to use
-`in-try-catch` (default): `await`-ing a returned promise is required in `try-catch-finally` blocks and disallowed elsewhere.
-
-`always`: `await`-ing a returned promise is required everywhere.
-
-`never`: `await`-ing a returned promise is disallowed everywhere.
-
-```typescript
-// valid in-try-catch
-async function validInTryCatch1() {
- try {
- return await Promise.resolve('try');
- } catch (e) {}
-}
-
-async function validInTryCatch2() {
- return Promise.resolve('try');
-}
-
-async function validInTryCatch3() {
- return 'value';
-}
-
-// valid always
-async function validAlways1() {
- try {
- return await Promise.resolve('try');
- } catch (e) {}
-}
-
-async function validAlways2() {
- return await Promise.resolve('try');
-}
-
-async function validAlways3() {
- return 'value';
-}
-
-// valid never
-async function validNever1() {
- try {
- return Promise.resolve('try');
- } catch (e) {}
-}
-
-async function validNever2() {
- return Promise.resolve('try');
-}
-
-async function validNever3() {
- return 'value';
+```jsonc
+{
+ // note you must disable the base rule as it can report incorrect errors
+ "no-return-await": "off",
+ "@typescript-eslint/return-await": "error"
}
```
-```typescript
-// invalid in-try-catch
+## Options
+
+```ts
+type Options = 'in-try-catch' | 'always' | 'never';
+
+const defaultOptions: Options = 'in-try-catch';
+```
+
+### `in-try-catch`
+
+Requires that a returned promise must be `await`ed in `try-catch-finally` blocks, and disallows it elsewhere.
+Specifically:
+
+- if you `return` a promise within a `try`, then it must be `await`ed.
+- if you `return` a promise within a `catch`, and there **_is no_** `finally`, then it **_must not_** be `await`ed.
+- if you `return` a promise within a `catch`, and there **_is a_** `finally`, then it **_must_** be `await`ed.
+- if you `return` a promise within a `finally`, then it **_must not_** be `await`ed.
+
+Examples of **incorrect** code with `in-try-catch`:
+
+```ts
async function invalidInTryCatch1() {
try {
return Promise.resolve('try');
@@ -70,14 +45,95 @@
}
async function invalidInTryCatch2() {
- return await Promise.resolve('try');
+ try {
+ throw new Error('error');
+ } catch (e) {
+ return await Promise.resolve('catch');
+ }
}
async function invalidInTryCatch3() {
- return await 'value';
+ try {
+ throw new Error('error');
+ } catch (e) {
+ return Promise.resolve('catch');
+ } finally {
+ console.log('cleanup');
+ }
}
-// invalid always
+async function invalidInTryCatch4() {
+ try {
+ throw new Error('error');
+ } catch (e) {
+ throw new Error('error2');
+ } finally {
+ return await Promise.resolve('finally');
+ }
+}
+
+async function invalidInTryCatch5() {
+ return await Promise.resolve('try');
+}
+
+async function invalidInTryCatch6() {
+ return await 'value';
+}
+```
+
+Examples of **correct** code with `in-try-catch`:
+
+```ts
+async function validInTryCatch1() {
+ try {
+ return await Promise.resolve('try');
+ } catch (e) {}
+}
+
+async function validInTryCatch2() {
+ try {
+ throw new Error('error');
+ } catch (e) {
+ return Promise.resolve('catch');
+ }
+}
+
+async function validInTryCatch3() {
+ try {
+ throw new Error('error');
+ } catch (e) {
+ return await Promise.resolve('catch');
+ } finally {
+ console.log('cleanup');
+ }
+}
+
+async function validInTryCatch4() {
+ try {
+ throw new Error('error');
+ } catch (e) {
+ throw new Error('error2');
+ } finally {
+ return Promise.resolve('finally');
+ }
+}
+
+async function validInTryCatch5() {
+ return Promise.resolve('try');
+}
+
+async function validInTryCatch6() {
+ return 'value';
+}
+```
+
+### `always`
+
+Requires that all returned promises are `await`ed.
+
+Examples of **incorrect** code with `always`:
+
+```ts
async function invalidAlways1() {
try {
return Promise.resolve('try');
@@ -91,8 +147,33 @@
async function invalidAlways3() {
return await 'value';
}
+```
-// invalid never
+Examples of **correct** code with `always`:
+
+```ts
+async function validAlways1() {
+ try {
+ return await Promise.resolve('try');
+ } catch (e) {}
+}
+
+async function validAlways2() {
+ return await Promise.resolve('try');
+}
+
+async function validAlways3() {
+ return 'value';
+}
+```
+
+### `never`
+
+Disallows all `await`ing any returned promises.
+
+Examples of **incorrect** code with `never`:
+
+```ts
async function invalidNever1() {
try {
return await Promise.resolve('try');
@@ -108,16 +189,20 @@
}
```
-The rule also applies to `finally` blocks. So the following would be invalid with default options:
+Examples of **correct** code with `never`:
-```typescript
-async function invalid() {
+```ts
+async function validNever1() {
try {
- return await Promise.resolve('try');
- } catch (e) {
- return Promise.resolve('catch');
- } finally {
- // cleanup
- }
+ return Promise.resolve('try');
+ } catch (e) {}
+}
+
+async function validNever2() {
+ return Promise.resolve('try');
+}
+
+async function validNever3() {
+ return 'value';
}
```
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md
index bbb3154..c233d35 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/semi.md
@@ -5,15 +5,13 @@
## Rule Details
This rule extends the base [`eslint/semi`](https://eslint.org/docs/rules/semi) rule.
-It supports all options and features of the base rule.
-This version adds support for numerous typescript features.
+It adds support for TypeScript features that require semicolons.
-See also the [`@typescript-eslint/member-delimiter-style`](member-delimiter-style.md) rule,
-which allows you to specify the delimiter for `type` and `interface` members.
+See also the [`@typescript-eslint/member-delimiter-style`](member-delimiter-style.md) rule, which allows you to specify the delimiter for `type` and `interface` members.
## How to use
-```cjson
+```jsonc
{
// note you must disable the base rule as it can report incorrect errors
"semi": "off",
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md
index bfbcb22..db2579e 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/space-before-function-paren.md
@@ -1,33 +1,13 @@
# Enforces consistent spacing before function parenthesis (`space-before-function-paren`)
-When formatting a function, whitespace is allowed between the function name or `function` keyword and the opening parenthesis. Named functions also require a space between the `function` keyword and the function name, but anonymous functions require no whitespace. For example:
-
-<!-- prettier-ignore -->
-```ts
-function withoutSpace(x) {
- // ...
-}
-
-function withSpace (x) {
- // ...
-}
-
-var anonymousWithoutSpace = function() {};
-
-var anonymousWithSpace = function () {};
-```
-
-Style guides may require a space after the `function` keyword for anonymous functions, while others specify no whitespace. Similarly, the space after a function name may or may not be required.
-
## Rule Details
This rule extends the base [`eslint/space-before-function-paren`](https://eslint.org/docs/rules/space-before-function-paren) rule.
-It supports all options and features of the base rule.
-This version adds support for generic type parameters on function calls.
+It adds support for generic type parameters on function calls.
## How to use
-```cjson
+```jsonc
{
// note you must disable the base rule as it can report incorrect errors
"space-before-function-paren": "off",
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.md
index cec6215..243d54f 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/strict-boolean-expressions.md
@@ -1,67 +1,162 @@
# Restricts the types allowed in boolean expressions (`strict-boolean-expressions`)
-Requires that any boolean expression is limited to true booleans rather than
-casting another primitive to a boolean at runtime.
+Forbids usage of non-boolean types in expressions where a boolean is expected.
+`boolean` and `never` types are always allowed.
+Additional types which are considered safe in a boolean context can be configured via options.
-It is useful to be explicit, for example, if you were trying to check if a
-number was defined. Doing `if (number)` would evaluate to `false` if `number`
-was defined and `0`. This rule forces these expressions to be explicit and to
-strictly use booleans.
+The following nodes are considered boolean expressions and their type is checked:
-The following nodes are checked:
-
-- Arguments to the `!`, `&&`, and `||` operators
-- The condition in a conditional expression `(cond ? x : y)`
+- Argument to the logical negation operator (`!arg`).
+- The condition in a conditional expression (`cond ? x : y`).
- Conditions for `if`, `for`, `while`, and `do-while` statements.
+- Operands of logical binary operators (`lhs || rhs` and `lhs && rhs`).
+ - Right-hand side operand is ignored when it's not a descendant of another boolean expression.
+ This is to allow usage of boolean operators for their short-circuiting behavior.
+
+## Examples
Examples of **incorrect** code for this rule:
```ts
-const number = 0;
-if (number) {
- return;
+// nullable numbers are considered unsafe by default
+let num: number | undefined = 0;
+if (num) {
+ console.log('num is defined');
}
-let foo = bar || 'foobar';
+// nullable strings are considered unsafe by default
+let str: string | null = null;
+if (!str) {
+ console.log('str is empty');
+}
-let undefinedItem;
-let foo = undefinedItem ? 'foo' : 'bar';
+// nullable booleans are considered unsafe by default
+function foo(bool?: boolean) {
+ if (bool) {
+ bar();
+ }
+}
-let str = 'foo';
-while (str) {
- break;
+// `any`, unconstrained generics and unions of more than one primitive type are disallowed
+const foo = <T>(arg: T) => (arg ? 1 : 0);
+
+// always-truthy and always-falsy types are disallowed
+let obj = {};
+while (obj) {
+ obj = getObj();
}
```
Examples of **correct** code for this rule:
-```ts
-const number = 0;
-if (typeof number !== 'undefined') {
- return;
+```tsx
+// Using logical operators for their side effects is allowed
+const Component = () => {
+ const entry = map.get('foo') || {};
+ return entry && <p>Name: {entry.name}</p>;
+};
+
+// nullable values should be checked explicitly against null or undefined
+let num: number | undefined = 0;
+if (num != null) {
+ console.log('num is defined');
}
-let foo = typeof bar !== 'undefined' ? bar : 'foobar';
-
-let undefinedItem;
-let foo = typeof undefinedItem !== 'undefined' ? 'foo' : 'bar';
-
-let str = 'foo';
-while (typeof str !== 'undefined') {
- break;
+let str: string | null = null;
+if (str != null && !str) {
+ console.log('str is empty');
}
+
+function foo(bool?: boolean) {
+ if (bool ?? false) {
+ bar();
+ }
+}
+
+// `any` types should be cast to boolean explicitly
+const foo = (arg: any) => (Boolean(arg) ? 1 : 0);
```
## Options
-Options may be provided as an object with:
+```ts
+type Options = {
+ allowString?: boolean;
+ allowNumber?: boolean;
+ allowNullableObject?: boolean;
+ allowNullableBoolean?: boolean;
+ allowNullableString?: boolean;
+ allowNullableNumber?: boolean;
+ allowAny?: boolean;
+};
-- `allowNullable` to allow `undefined` and `null` in addition to `boolean` as a type of all boolean expressions. (`false` by default).
-- `allowSafe` to allow non-falsy types (i.e. non string / number / boolean) in addition to `boolean` as a type of all boolean expressions. (`false` by default).
-- `ignoreRhs` to skip the check on the right hand side of expressions like `a && b` or `a || b` - allows these operators to be used for their short-circuiting behavior. (`false` by default).
+const defaultOptions: Options = {
+ allowString: true,
+ allowNumber: true,
+ allowNullableObject: true,
+ allowNullableBoolean: false,
+ allowNullableString: false,
+ allowNullableNumber: false,
+ allowAny: false,
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
+};
+```
+
+### `allowString`
+
+Allows `string` in a boolean context.
+This is safe because strings have only one falsy value (`""`).
+Set this to `false` if you prefer the explicit `str != ""` or `str.length > 0` style.
+
+### `allowNumber`
+
+Allows `number` in a boolean context.
+This is safe because numbers have only two falsy values (`0` and `NaN`).
+Set this to `false` if you prefer the explicit `num != 0` and `!Number.isNaN(num)` style.
+
+### `allowNullableObject`
+
+Allows `object | function | symbol | null | undefined` in a boolean context.
+This is safe because objects, functions and symbols don't have falsy values.
+Set this to `false` if you prefer the explicit `obj != null` style.
+
+### `allowNullableBoolean`
+
+Allows `boolean | null | undefined` in a boolean context.
+This is unsafe because nullable booleans can be either `false` or nullish.
+Set this to `false` if you want to enforce explicit `bool ?? false` or `bool ?? true` style.
+Set this to `true` if you don't mind implicitly treating false the same as a nullish value.
+
+### `allowNullableString`
+
+Allows `string | null | undefined` in a boolean context.
+This is unsafe because nullable strings can be either an empty string or nullish.
+Set this to `true` if you don't mind implicitly treating an empty string the same as a nullish value.
+
+### `allowNullableNumber`
+
+Allows `number | null | undefined` in a boolean context.
+This is unsafe because nullable numbers can be either a falsy number or nullish.
+Set this to `true` if you don't mind implicitly treating zero or NaN the same as a nullish value.
+
+### `allowAny`
+
+Allows `any` in a boolean context.
+This is unsafe for obvious reasons.
+Set this to `true` at your own risk.
+
+### `allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing`
+
+If this is set to `false`, then the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`.
+
+Without `strictNullChecks`, TypeScript essentially erases `undefined` and `null` from the types. This means when this rule inspects the types from a variable, **it will not be able to tell that the variable might be `null` or `undefined`**, which essentially makes this rule a lot less useful.
+
+You should be using `strictNullChecks` to ensure complete type-safety in your codebase.
+
+If for some reason you cannot turn on `strictNullChecks`, but still want to use this rule - you can use this option to allow it - but know that the behavior of this rule is _undefined_ with the compiler option turned off. We will not accept bug reports if you are using this option.
## Related To
- TSLint: [strict-boolean-expressions](https://palantir.github.io/tslint/rules/strict-boolean-expressions)
-- [no-unnecessary-condition](./no-unnecessary-condition.md) - essentially a less opinionated alternative to this rule. `strict-boolean-expressions` enforces a specific code style, while `no-unnecessary-condition` is about correctness.
+- [no-unnecessary-condition](./no-unnecessary-condition.md) - Similar rule which reports always-truthy and always-falsy values in conditions
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/type-annotation-spacing.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/type-annotation-spacing.md
index a7c43a7..32b7b65 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/type-annotation-spacing.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/type-annotation-spacing.md
@@ -69,6 +69,8 @@
name : string;
}
+type Foo = ()=>{};
+type Foo = () =>{};
type Foo = ()=> {};
```
@@ -113,6 +115,8 @@
name : string;
}
+type Foo = ()=>{};
+type Foo = () =>{};
type Foo = () => {};
```
@@ -156,6 +160,10 @@
class Foo {
name :string;
}
+
+type Foo = ()=>{};
+type Foo = () =>{};
+type Foo = ()=> {};
```
Examples of **correct** code for this rule with `{ "before": true, "after": true }` options:
@@ -169,6 +177,8 @@
class Foo {
name : string;
}
+
+type Foo = () => {};
```
### overrides - colon
@@ -197,12 +207,12 @@
name :string;
}
-type Foo = {
- name: (name:string) => string;
-}
+type Foo = () =>{};
+type Foo = ()=> {};
+type Foo = () => {};
```
-Examples of **correct** code for this rule with `{ "before": true, "after": true, overrides: { colon: { before: true, after: true }} }` options:
+Examples of **correct** code for this rule with `{ "before": false, "after": false, overrides: { colon: { before: true, after: true }} }` options:
<!-- prettier-ignore -->
```ts
@@ -217,6 +227,8 @@
type Foo = {
name: (name : string)=>string;
}
+
+type Foo = ()=>{};
```
### overrides - arrow
@@ -245,17 +257,9 @@
name :string;
}
-type Foo = {
- name: (name : string)=>string;
-}
-
-type Foo = {
- name: (name : string) =>string;
-}
-
-type Foo = {
- name: (name : string)=> string;
-}
+type Foo = ()=>{};
+type Foo = () =>{};
+type Foo = ()=> {};
```
Examples of **correct** code for this rule with `{ "before": false, "after": false, overrides: { arrow: { before: true, after: true }} }` options:
@@ -270,9 +274,7 @@
name:string;
}
-type Foo = {
- name: (name:string) => string;
-}
+type Foo = () => {};
```
## When Not To Use It
diff --git a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/typedef.md b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/typedef.md
index 07f4bb1..6c96fa0 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/docs/rules/typedef.md
+++ b/node_modules/@typescript-eslint/eslint-plugin/docs/rules/typedef.md
@@ -16,29 +16,43 @@
}
```
-> Note: requiring type annotations unnecessarily can be cumbersome to maintain and generally reduces code readability.
-> TypeScript is often better at inferring types than easily written type annotations would allow.
-> Instead of enabling `typedef`, it is generally recommended to use the `--noImplicitAny` and/or `--strictPropertyInitialization` compiler options to enforce type annotations only when useful.
+**_Note:_** requiring type annotations unnecessarily can be cumbersome to maintain and generally reduces code readability.
+TypeScript is often better at inferring types than easily written type annotations would allow.
+
+**Instead of enabling `typedef`, it is generally recommended to use the `--noImplicitAny` and `--strictPropertyInitialization` compiler options to enforce type annotations only when useful.**
## Rule Details
This rule can enforce type annotations in locations regardless of whether they're required.
This is typically used to maintain consistency for element types that sometimes require them.
-> To enforce type definitions existing on call signatures as per TSLint's `arrow-call-signature` and `call-signature` options, use `explicit-function-return-type`.
+> To enforce type definitions existing on call signatures as per TSLint's `arrow-call-signature` and `call-signature` options, use `explicit-function-return-type`, or `explicit-module-boundary-types`.
## Options
-This rule has an object option that may receive any of the following as booleans:
+```ts
+type Options = {
+ arrayDestructuring?: boolean;
+ arrowParameter?: boolean;
+ memberVariableDeclaration?: boolean;
+ objectDestructuring?: boolean;
+ parameter?: boolean;
+ propertyDeclaration?: boolean;
+ variableDeclaration?: boolean;
+ variableDeclarationIgnoreFunction?: boolean;
+};
-- `"arrayDestructuring"`
-- `"arrowParameter"`: `true` by default
-- `"memberVariableDeclaration"`: `true` by default
-- `"objectDestructuring"`
-- `"parameter"`: `true` by default
-- `"propertyDeclaration"`: `true` by default
-- `"variableDeclaration"`,
-- `"variableDeclarationIgnoreFunction"`
+const defaultOptions: Options = {
+ arrayDestructuring: false,
+ arrowParameter: false,
+ memberVariableDeclaration: false,
+ objectDestructuring: false,
+ parameter: false,
+ propertyDeclaration: false,
+ variableDeclaration: false,
+ variableDeclarationIgnoreFunction: false,
+};
+```
For example, with the following configuration:
@@ -48,7 +62,7 @@
"@typescript-eslint/typedef": [
"error",
{
- "arrowParameter": false,
+ "arrowParameter": true,
"variableDeclaration": true
}
]
@@ -56,9 +70,8 @@
}
```
-- Type annotations on arrow function parameters are not required
+- Type annotations on arrow function parameters are required
- Type annotations on variables are required
-- Options otherwise adhere to the defaults
### `arrayDestructuring`
@@ -164,7 +177,7 @@
console.log(size);
}
-const doublesSize = function(size): number {
+const doublesSize = function (size): number {
return size * 2;
};
@@ -172,7 +185,7 @@
curriesSize(size): number {
return size;
},
- dividesSize: function(size): number {
+ dividesSize: function (size): number {
return size / 2;
},
};
@@ -192,7 +205,7 @@
console.log(size);
}
-const doublesSize = function(size: number): number {
+const doublesSize = function (size: number): number {
return size * 2;
};
@@ -200,7 +213,7 @@
curriesSize(size: number): number {
return size;
},
- dividesSize: function(size: number): number {
+ dividesSize: function (size: number): number {
return size / 2;
},
};
diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/.bin/eslint b/node_modules/@typescript-eslint/eslint-plugin/node_modules/.bin/eslint
new file mode 120000
index 0000000..da97b4e
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/.bin/eslint
@@ -0,0 +1 @@
+../../../../eslint/bin/eslint.js
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/.bin/semver b/node_modules/@typescript-eslint/eslint-plugin/node_modules/.bin/semver
new file mode 120000
index 0000000..bb49af1
--- /dev/null
+++ b/node_modules/@typescript-eslint/eslint-plugin/node_modules/.bin/semver
@@ -0,0 +1 @@
+../../../../jest-circus/node_modules/semver/bin/semver.js
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/LICENSE b/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/LICENSE
deleted file mode 100644
index 883ee1f..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2018 Toru Nagashima
-
-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/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/README.md b/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/README.md
deleted file mode 100644
index 0358380..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/README.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# eslint-utils
-
-[](https://www.npmjs.com/package/eslint-utils)
-[](http://www.npmtrends.com/eslint-utils)
-[](https://github.com/mysticatea/eslint-utils/actions)
-[](https://codecov.io/gh/mysticatea/eslint-utils)
-[](https://david-dm.org/mysticatea/eslint-utils)
-
-## 🏁 Goal
-
-This package provides utility functions and classes for make ESLint custom rules.
-
-For examples:
-
-- [getStaticValue](https://eslint-utils.mysticatea.dev/api/ast-utils.html#getstaticvalue) evaluates static value on AST.
-- [PatternMatcher](https://eslint-utils.mysticatea.dev/api/ast-utils.html#patternmatcher-class) finds a regular expression pattern as handling escape sequences.
-- [ReferenceTracker](https://eslint-utils.mysticatea.dev/api/scope-utils.html#referencetracker-class) checks the members of modules/globals as handling assignments and destructuring.
-
-## 📖 Usage
-
-See [documentation](https://eslint-utils.mysticatea.dev/).
-
-## 📰 Changelog
-
-See [releases](https://github.com/mysticatea/eslint-utils/releases).
-
-## ❤️ Contributing
-
-Welcome contributing!
-
-Please use GitHub's Issues/PRs.
-
-### Development Tools
-
-- `npm test` runs tests and measures coverage.
-- `npm run clean` removes the coverage result of `npm test` command.
-- `npm run coverage` shows the coverage result of the last `npm test` command.
-- `npm run lint` runs ESLint.
-- `npm run watch` runs tests on each file change.
diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/index.js
deleted file mode 100644
index f5d3f3e..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/index.js
+++ /dev/null
@@ -1,1827 +0,0 @@
-/*! @author Toru Nagashima <https://github.com/mysticatea> */
-'use strict';
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
-
-var evk = _interopDefault(require('eslint-visitor-keys'));
-
-/**
- * Get the innermost scope which contains a given location.
- * @param {Scope} initialScope The initial scope to search.
- * @param {Node} node The location to search.
- * @returns {Scope} The innermost scope.
- */
-function getInnermostScope(initialScope, node) {
- const location = node.range[0];
-
- let scope = initialScope;
- let found = false;
- do {
- found = false;
- for (const childScope of scope.childScopes) {
- const range = childScope.block.range;
-
- if (range[0] <= location && location < range[1]) {
- scope = childScope;
- found = true;
- break
- }
- }
- } while (found)
-
- return scope
-}
-
-/**
- * Find the variable of a given name.
- * @param {Scope} initialScope The scope to start finding.
- * @param {string|Node} nameOrNode The variable name to find. If this is a Node object then it should be an Identifier node.
- * @returns {Variable|null} The found variable or null.
- */
-function findVariable(initialScope, nameOrNode) {
- let name = "";
- let scope = initialScope;
-
- if (typeof nameOrNode === "string") {
- name = nameOrNode;
- } else {
- name = nameOrNode.name;
- scope = getInnermostScope(scope, nameOrNode);
- }
-
- while (scope != null) {
- const variable = scope.set.get(name);
- if (variable != null) {
- return variable
- }
- scope = scope.upper;
- }
-
- return null
-}
-
-/**
- * Negate the result of `this` calling.
- * @param {Token} token The token to check.
- * @returns {boolean} `true` if the result of `this(token)` is `false`.
- */
-function negate0(token) {
- return !this(token) //eslint-disable-line no-invalid-this
-}
-
-/**
- * Creates the negate function of the given function.
- * @param {function(Token):boolean} f - The function to negate.
- * @returns {function(Token):boolean} Negated function.
- */
-function negate(f) {
- return negate0.bind(f)
-}
-
-/**
- * Checks if the given token is an arrow token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is an arrow token.
- */
-function isArrowToken(token) {
- return token.value === "=>" && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is a comma token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is a comma token.
- */
-function isCommaToken(token) {
- return token.value === "," && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is a semicolon token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is a semicolon token.
- */
-function isSemicolonToken(token) {
- return token.value === ";" && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is a colon token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is a colon token.
- */
-function isColonToken(token) {
- return token.value === ":" && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is an opening parenthesis token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is an opening parenthesis token.
- */
-function isOpeningParenToken(token) {
- return token.value === "(" && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is a closing parenthesis token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is a closing parenthesis token.
- */
-function isClosingParenToken(token) {
- return token.value === ")" && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is an opening square bracket token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is an opening square bracket token.
- */
-function isOpeningBracketToken(token) {
- return token.value === "[" && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is a closing square bracket token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is a closing square bracket token.
- */
-function isClosingBracketToken(token) {
- return token.value === "]" && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is an opening brace token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is an opening brace token.
- */
-function isOpeningBraceToken(token) {
- return token.value === "{" && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is a closing brace token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is a closing brace token.
- */
-function isClosingBraceToken(token) {
- return token.value === "}" && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is a comment token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is a comment token.
- */
-function isCommentToken(token) {
- return (
- token.type === "Line" ||
- token.type === "Block" ||
- token.type === "Shebang"
- )
-}
-
-const isNotArrowToken = negate(isArrowToken);
-const isNotCommaToken = negate(isCommaToken);
-const isNotSemicolonToken = negate(isSemicolonToken);
-const isNotColonToken = negate(isColonToken);
-const isNotOpeningParenToken = negate(isOpeningParenToken);
-const isNotClosingParenToken = negate(isClosingParenToken);
-const isNotOpeningBracketToken = negate(isOpeningBracketToken);
-const isNotClosingBracketToken = negate(isClosingBracketToken);
-const isNotOpeningBraceToken = negate(isOpeningBraceToken);
-const isNotClosingBraceToken = negate(isClosingBraceToken);
-const isNotCommentToken = negate(isCommentToken);
-
-/**
- * Get the `(` token of the given function node.
- * @param {Node} node - The function node to get.
- * @param {SourceCode} sourceCode - The source code object to get tokens.
- * @returns {Token} `(` token.
- */
-function getOpeningParenOfParams(node, sourceCode) {
- return node.id
- ? sourceCode.getTokenAfter(node.id, isOpeningParenToken)
- : sourceCode.getFirstToken(node, isOpeningParenToken)
-}
-
-/**
- * Get the location of the given function node for reporting.
- * @param {Node} node - The function node to get.
- * @param {SourceCode} sourceCode - The source code object to get tokens.
- * @returns {string} The location of the function node for reporting.
- */
-function getFunctionHeadLocation(node, sourceCode) {
- const parent = node.parent;
- let start = null;
- let end = null;
-
- if (node.type === "ArrowFunctionExpression") {
- const arrowToken = sourceCode.getTokenBefore(node.body, isArrowToken);
-
- start = arrowToken.loc.start;
- end = arrowToken.loc.end;
- } else if (
- parent.type === "Property" ||
- parent.type === "MethodDefinition"
- ) {
- start = parent.loc.start;
- end = getOpeningParenOfParams(node, sourceCode).loc.start;
- } else {
- start = node.loc.start;
- end = getOpeningParenOfParams(node, sourceCode).loc.start;
- }
-
- return {
- start: Object.assign({}, start),
- end: Object.assign({}, end),
- }
-}
-
-/* globals BigInt, globalThis, global, self, window */
-
-const globalObject =
- typeof globalThis !== "undefined"
- ? globalThis
- : typeof self !== "undefined"
- ? self
- : typeof window !== "undefined"
- ? window
- : typeof global !== "undefined"
- ? global
- : {};
-
-const builtinNames = Object.freeze(
- new Set([
- "Array",
- "ArrayBuffer",
- "BigInt",
- "BigInt64Array",
- "BigUint64Array",
- "Boolean",
- "DataView",
- "Date",
- "decodeURI",
- "decodeURIComponent",
- "encodeURI",
- "encodeURIComponent",
- "escape",
- "Float32Array",
- "Float64Array",
- "Function",
- "Infinity",
- "Int16Array",
- "Int32Array",
- "Int8Array",
- "isFinite",
- "isNaN",
- "isPrototypeOf",
- "JSON",
- "Map",
- "Math",
- "NaN",
- "Number",
- "Object",
- "parseFloat",
- "parseInt",
- "Promise",
- "Proxy",
- "Reflect",
- "RegExp",
- "Set",
- "String",
- "Symbol",
- "Uint16Array",
- "Uint32Array",
- "Uint8Array",
- "Uint8ClampedArray",
- "undefined",
- "unescape",
- "WeakMap",
- "WeakSet",
- ])
-);
-const callAllowed = new Set(
- [
- Array.isArray,
- typeof BigInt === "function" ? BigInt : undefined,
- Boolean,
- Date,
- Date.parse,
- decodeURI,
- decodeURIComponent,
- encodeURI,
- encodeURIComponent,
- escape,
- isFinite,
- isNaN,
- isPrototypeOf,
- ...Object.getOwnPropertyNames(Math)
- .map(k => Math[k])
- .filter(f => typeof f === "function"),
- Number,
- Number.isFinite,
- Number.isNaN,
- Number.parseFloat,
- Number.parseInt,
- Object,
- Object.entries,
- Object.is,
- Object.isExtensible,
- Object.isFrozen,
- Object.isSealed,
- Object.keys,
- Object.values,
- parseFloat,
- parseInt,
- RegExp,
- String,
- String.fromCharCode,
- String.fromCodePoint,
- String.raw,
- Symbol,
- Symbol.for,
- Symbol.keyFor,
- unescape,
- ].filter(f => typeof f === "function")
-);
-const callPassThrough = new Set([
- Object.freeze,
- Object.preventExtensions,
- Object.seal,
-]);
-
-/**
- * Get the property descriptor.
- * @param {object} object The object to get.
- * @param {string|number|symbol} name The property name to get.
- */
-function getPropertyDescriptor(object, name) {
- let x = object;
- while ((typeof x === "object" || typeof x === "function") && x !== null) {
- const d = Object.getOwnPropertyDescriptor(x, name);
- if (d) {
- return d
- }
- x = Object.getPrototypeOf(x);
- }
- return null
-}
-
-/**
- * Check if a property is getter or not.
- * @param {object} object The object to check.
- * @param {string|number|symbol} name The property name to check.
- */
-function isGetter(object, name) {
- const d = getPropertyDescriptor(object, name);
- return d != null && d.get != null
-}
-
-/**
- * Get the element values of a given node list.
- * @param {Node[]} nodeList The node list to get values.
- * @param {Scope|undefined} initialScope The initial scope to find variables.
- * @returns {any[]|null} The value list if all nodes are constant. Otherwise, null.
- */
-function getElementValues(nodeList, initialScope) {
- const valueList = [];
-
- for (let i = 0; i < nodeList.length; ++i) {
- const elementNode = nodeList[i];
-
- if (elementNode == null) {
- valueList.length = i + 1;
- } else if (elementNode.type === "SpreadElement") {
- const argument = getStaticValueR(elementNode.argument, initialScope);
- if (argument == null) {
- return null
- }
- valueList.push(...argument.value);
- } else {
- const element = getStaticValueR(elementNode, initialScope);
- if (element == null) {
- return null
- }
- valueList.push(element.value);
- }
- }
-
- return valueList
-}
-
-const operations = Object.freeze({
- ArrayExpression(node, initialScope) {
- const elements = getElementValues(node.elements, initialScope);
- return elements != null ? { value: elements } : null
- },
-
- AssignmentExpression(node, initialScope) {
- if (node.operator === "=") {
- return getStaticValueR(node.right, initialScope)
- }
- return null
- },
-
- //eslint-disable-next-line complexity
- BinaryExpression(node, initialScope) {
- if (node.operator === "in" || node.operator === "instanceof") {
- // Not supported.
- return null
- }
-
- const left = getStaticValueR(node.left, initialScope);
- const right = getStaticValueR(node.right, initialScope);
- if (left != null && right != null) {
- switch (node.operator) {
- case "==":
- return { value: left.value == right.value } //eslint-disable-line eqeqeq
- case "!=":
- return { value: left.value != right.value } //eslint-disable-line eqeqeq
- case "===":
- return { value: left.value === right.value }
- case "!==":
- return { value: left.value !== right.value }
- case "<":
- return { value: left.value < right.value }
- case "<=":
- return { value: left.value <= right.value }
- case ">":
- return { value: left.value > right.value }
- case ">=":
- return { value: left.value >= right.value }
- case "<<":
- return { value: left.value << right.value }
- case ">>":
- return { value: left.value >> right.value }
- case ">>>":
- return { value: left.value >>> right.value }
- case "+":
- return { value: left.value + right.value }
- case "-":
- return { value: left.value - right.value }
- case "*":
- return { value: left.value * right.value }
- case "/":
- return { value: left.value / right.value }
- case "%":
- return { value: left.value % right.value }
- case "**":
- return { value: Math.pow(left.value, right.value) }
- case "|":
- return { value: left.value | right.value }
- case "^":
- return { value: left.value ^ right.value }
- case "&":
- return { value: left.value & right.value }
-
- // no default
- }
- }
-
- return null
- },
-
- CallExpression(node, initialScope) {
- const calleeNode = node.callee;
- const args = getElementValues(node.arguments, initialScope);
-
- if (args != null) {
- if (calleeNode.type === "MemberExpression") {
- const object = getStaticValueR(calleeNode.object, initialScope);
- const property = calleeNode.computed
- ? getStaticValueR(calleeNode.property, initialScope)
- : { value: calleeNode.property.name };
-
- if (object != null && property != null) {
- const receiver = object.value;
- const methodName = property.value;
- if (callAllowed.has(receiver[methodName])) {
- return { value: receiver[methodName](...args) }
- }
- if (callPassThrough.has(receiver[methodName])) {
- return { value: args[0] }
- }
- }
- } else {
- const callee = getStaticValueR(calleeNode, initialScope);
- if (callee != null) {
- const func = callee.value;
- if (callAllowed.has(func)) {
- return { value: func(...args) }
- }
- if (callPassThrough.has(func)) {
- return { value: args[0] }
- }
- }
- }
- }
-
- return null
- },
-
- ConditionalExpression(node, initialScope) {
- const test = getStaticValueR(node.test, initialScope);
- if (test != null) {
- return test.value
- ? getStaticValueR(node.consequent, initialScope)
- : getStaticValueR(node.alternate, initialScope)
- }
- return null
- },
-
- ExpressionStatement(node, initialScope) {
- return getStaticValueR(node.expression, initialScope)
- },
-
- Identifier(node, initialScope) {
- if (initialScope != null) {
- const variable = findVariable(initialScope, node);
-
- // Built-in globals.
- if (
- variable != null &&
- variable.defs.length === 0 &&
- builtinNames.has(variable.name) &&
- variable.name in globalObject
- ) {
- return { value: globalObject[variable.name] }
- }
-
- // Constants.
- if (variable != null && variable.defs.length === 1) {
- const def = variable.defs[0];
- if (
- def.parent &&
- def.parent.kind === "const" &&
- // TODO(mysticatea): don't support destructuring here.
- def.node.id.type === "Identifier"
- ) {
- return getStaticValueR(def.node.init, initialScope)
- }
- }
- }
- return null
- },
-
- Literal(node) {
- //istanbul ignore if : this is implementation-specific behavior.
- if ((node.regex != null || node.bigint != null) && node.value == null) {
- // It was a RegExp/BigInt literal, but Node.js didn't support it.
- return null
- }
- return { value: node.value }
- },
-
- LogicalExpression(node, initialScope) {
- const left = getStaticValueR(node.left, initialScope);
- if (left != null) {
- if (
- (node.operator === "||" && Boolean(left.value) === true) ||
- (node.operator === "&&" && Boolean(left.value) === false)
- ) {
- return left
- }
-
- const right = getStaticValueR(node.right, initialScope);
- if (right != null) {
- return right
- }
- }
-
- return null
- },
-
- MemberExpression(node, initialScope) {
- const object = getStaticValueR(node.object, initialScope);
- const property = node.computed
- ? getStaticValueR(node.property, initialScope)
- : { value: node.property.name };
-
- if (
- object != null &&
- property != null &&
- !isGetter(object.value, property.value)
- ) {
- return { value: object.value[property.value] }
- }
- return null
- },
-
- NewExpression(node, initialScope) {
- const callee = getStaticValueR(node.callee, initialScope);
- const args = getElementValues(node.arguments, initialScope);
-
- if (callee != null && args != null) {
- const Func = callee.value;
- if (callAllowed.has(Func)) {
- return { value: new Func(...args) }
- }
- }
-
- return null
- },
-
- ObjectExpression(node, initialScope) {
- const object = {};
-
- for (const propertyNode of node.properties) {
- if (propertyNode.type === "Property") {
- if (propertyNode.kind !== "init") {
- return null
- }
- const key = propertyNode.computed
- ? getStaticValueR(propertyNode.key, initialScope)
- : { value: propertyNode.key.name };
- const value = getStaticValueR(propertyNode.value, initialScope);
- if (key == null || value == null) {
- return null
- }
- object[key.value] = value.value;
- } else if (
- propertyNode.type === "SpreadElement" ||
- propertyNode.type === "ExperimentalSpreadProperty"
- ) {
- const argument = getStaticValueR(
- propertyNode.argument,
- initialScope
- );
- if (argument == null) {
- return null
- }
- Object.assign(object, argument.value);
- } else {
- return null
- }
- }
-
- return { value: object }
- },
-
- SequenceExpression(node, initialScope) {
- const last = node.expressions[node.expressions.length - 1];
- return getStaticValueR(last, initialScope)
- },
-
- TaggedTemplateExpression(node, initialScope) {
- const tag = getStaticValueR(node.tag, initialScope);
- const expressions = getElementValues(
- node.quasi.expressions,
- initialScope
- );
-
- if (tag != null && expressions != null) {
- const func = tag.value;
- const strings = node.quasi.quasis.map(q => q.value.cooked);
- strings.raw = node.quasi.quasis.map(q => q.value.raw);
-
- if (func === String.raw) {
- return { value: func(strings, ...expressions) }
- }
- }
-
- return null
- },
-
- TemplateLiteral(node, initialScope) {
- const expressions = getElementValues(node.expressions, initialScope);
- if (expressions != null) {
- let value = node.quasis[0].value.cooked;
- for (let i = 0; i < expressions.length; ++i) {
- value += expressions[i];
- value += node.quasis[i + 1].value.cooked;
- }
- return { value }
- }
- return null
- },
-
- UnaryExpression(node, initialScope) {
- if (node.operator === "delete") {
- // Not supported.
- return null
- }
- if (node.operator === "void") {
- return { value: undefined }
- }
-
- const arg = getStaticValueR(node.argument, initialScope);
- if (arg != null) {
- switch (node.operator) {
- case "-":
- return { value: -arg.value }
- case "+":
- return { value: +arg.value } //eslint-disable-line no-implicit-coercion
- case "!":
- return { value: !arg.value }
- case "~":
- return { value: ~arg.value }
- case "typeof":
- return { value: typeof arg.value }
-
- // no default
- }
- }
-
- return null
- },
-});
-
-/**
- * Get the value of a given node if it's a static value.
- * @param {Node} node The node to get.
- * @param {Scope|undefined} initialScope The scope to start finding variable.
- * @returns {{value:any}|null} The static value of the node, or `null`.
- */
-function getStaticValueR(node, initialScope) {
- if (node != null && Object.hasOwnProperty.call(operations, node.type)) {
- return operations[node.type](node, initialScope)
- }
- return null
-}
-
-/**
- * Get the value of a given node if it's a static value.
- * @param {Node} node The node to get.
- * @param {Scope} [initialScope] The scope to start finding variable. Optional. If this scope was given, this tries to resolve identifier references which are in the given node as much as possible.
- * @returns {{value:any}|null} The static value of the node, or `null`.
- */
-function getStaticValue(node, initialScope = null) {
- try {
- return getStaticValueR(node, initialScope)
- } catch (_error) {
- return null
- }
-}
-
-/**
- * Get the value of a given node if it's a literal or a template literal.
- * @param {Node} node The node to get.
- * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is an Identifier node and this scope was given, this checks the variable of the identifier, and returns the value of it if the variable is a constant.
- * @returns {string|null} The value of the node, or `null`.
- */
-function getStringIfConstant(node, initialScope = null) {
- // Handle the literals that the platform doesn't support natively.
- if (node && node.type === "Literal" && node.value === null) {
- if (node.regex) {
- return `/${node.regex.pattern}/${node.regex.flags}`
- }
- if (node.bigint) {
- return node.bigint
- }
- }
-
- const evaluated = getStaticValue(node, initialScope);
- return evaluated && String(evaluated.value)
-}
-
-/**
- * Get the property name from a MemberExpression node or a Property node.
- * @param {Node} node The node to get.
- * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it.
- * @returns {string|null} The property name of the node.
- */
-function getPropertyName(node, initialScope) {
- switch (node.type) {
- case "MemberExpression":
- if (node.computed) {
- return getStringIfConstant(node.property, initialScope)
- }
- return node.property.name
-
- case "Property":
- case "MethodDefinition":
- if (node.computed) {
- return getStringIfConstant(node.key, initialScope)
- }
- if (node.key.type === "Literal") {
- return String(node.key.value)
- }
- return node.key.name
-
- // no default
- }
-
- return null
-}
-
-/**
- * Get the name and kind of the given function node.
- * @param {ASTNode} node - The function node to get.
- * @returns {string} The name and kind of the function node.
- */
-function getFunctionNameWithKind(node) {
- const parent = node.parent;
- const tokens = [];
-
- if (parent.type === "MethodDefinition" && parent.static) {
- tokens.push("static");
- }
- if (node.async) {
- tokens.push("async");
- }
- if (node.generator) {
- tokens.push("generator");
- }
-
- if (node.type === "ArrowFunctionExpression") {
- tokens.push("arrow", "function");
- } else if (
- parent.type === "Property" ||
- parent.type === "MethodDefinition"
- ) {
- if (parent.kind === "constructor") {
- return "constructor"
- }
- if (parent.kind === "get") {
- tokens.push("getter");
- } else if (parent.kind === "set") {
- tokens.push("setter");
- } else {
- tokens.push("method");
- }
- } else {
- tokens.push("function");
- }
-
- if (node.id) {
- tokens.push(`'${node.id.name}'`);
- } else {
- const name = getPropertyName(parent);
-
- if (name) {
- tokens.push(`'${name}'`);
- }
- }
-
- return tokens.join(" ")
-}
-
-const typeConversionBinaryOps = Object.freeze(
- new Set([
- "==",
- "!=",
- "<",
- "<=",
- ">",
- ">=",
- "<<",
- ">>",
- ">>>",
- "+",
- "-",
- "*",
- "/",
- "%",
- "|",
- "^",
- "&",
- "in",
- ])
-);
-const typeConversionUnaryOps = Object.freeze(new Set(["-", "+", "!", "~"]));
-const visitor = Object.freeze(
- Object.assign(Object.create(null), {
- $visit(node, options, visitorKeys) {
- const { type } = node;
-
- if (typeof this[type] === "function") {
- return this[type](node, options, visitorKeys)
- }
-
- return this.$visitChildren(node, options, visitorKeys)
- },
-
- $visitChildren(node, options, visitorKeys) {
- const { type } = node;
-
- for (const key of visitorKeys[type] || evk.getKeys(node)) {
- const value = node[key];
-
- if (Array.isArray(value)) {
- for (const element of value) {
- if (
- element &&
- this.$visit(element, options, visitorKeys)
- ) {
- return true
- }
- }
- } else if (value && this.$visit(value, options, visitorKeys)) {
- return true
- }
- }
-
- return false
- },
-
- ArrowFunctionExpression() {
- return false
- },
- AssignmentExpression() {
- return true
- },
- AwaitExpression() {
- return true
- },
- BinaryExpression(node, options, visitorKeys) {
- if (
- options.considerImplicitTypeConversion &&
- typeConversionBinaryOps.has(node.operator) &&
- (node.left.type !== "Literal" || node.right.type !== "Literal")
- ) {
- return true
- }
- return this.$visitChildren(node, options, visitorKeys)
- },
- CallExpression() {
- return true
- },
- FunctionExpression() {
- return false
- },
- ImportExpression() {
- return true
- },
- MemberExpression(node, options, visitorKeys) {
- if (options.considerGetters) {
- return true
- }
- if (
- options.considerImplicitTypeConversion &&
- node.computed &&
- node.property.type !== "Literal"
- ) {
- return true
- }
- return this.$visitChildren(node, options, visitorKeys)
- },
- MethodDefinition(node, options, visitorKeys) {
- if (
- options.considerImplicitTypeConversion &&
- node.computed &&
- node.key.type !== "Literal"
- ) {
- return true
- }
- return this.$visitChildren(node, options, visitorKeys)
- },
- NewExpression() {
- return true
- },
- Property(node, options, visitorKeys) {
- if (
- options.considerImplicitTypeConversion &&
- node.computed &&
- node.key.type !== "Literal"
- ) {
- return true
- }
- return this.$visitChildren(node, options, visitorKeys)
- },
- UnaryExpression(node, options, visitorKeys) {
- if (node.operator === "delete") {
- return true
- }
- if (
- options.considerImplicitTypeConversion &&
- typeConversionUnaryOps.has(node.operator) &&
- node.argument.type !== "Literal"
- ) {
- return true
- }
- return this.$visitChildren(node, options, visitorKeys)
- },
- UpdateExpression() {
- return true
- },
- YieldExpression() {
- return true
- },
- })
-);
-
-/**
- * Check whether a given node has any side effect or not.
- * @param {Node} node The node to get.
- * @param {SourceCode} sourceCode The source code object.
- * @param {object} [options] The option object.
- * @param {boolean} [options.considerGetters=false] If `true` then it considers member accesses as the node which has side effects.
- * @param {boolean} [options.considerImplicitTypeConversion=false] If `true` then it considers implicit type conversion as the node which has side effects.
- * @param {object} [options.visitorKeys=evk.KEYS] The keys to traverse nodes. Use `context.getSourceCode().visitorKeys`.
- * @returns {boolean} `true` if the node has a certain side effect.
- */
-function hasSideEffect(
- node,
- sourceCode,
- { considerGetters = false, considerImplicitTypeConversion = false } = {}
-) {
- return visitor.$visit(
- node,
- { considerGetters, considerImplicitTypeConversion },
- sourceCode.visitorKeys || evk.KEYS
- )
-}
-
-/**
- * Get the left parenthesis of the parent node syntax if it exists.
- * E.g., `if (a) {}` then the `(`.
- * @param {Node} node The AST node to check.
- * @param {SourceCode} sourceCode The source code object to get tokens.
- * @returns {Token|null} The left parenthesis of the parent node syntax
- */
-function getParentSyntaxParen(node, sourceCode) {
- const parent = node.parent;
-
- switch (parent.type) {
- case "CallExpression":
- case "NewExpression":
- if (parent.arguments.length === 1 && parent.arguments[0] === node) {
- return sourceCode.getTokenAfter(
- parent.callee,
- isOpeningParenToken
- )
- }
- return null
-
- case "DoWhileStatement":
- if (parent.test === node) {
- return sourceCode.getTokenAfter(
- parent.body,
- isOpeningParenToken
- )
- }
- return null
-
- case "IfStatement":
- case "WhileStatement":
- if (parent.test === node) {
- return sourceCode.getFirstToken(parent, 1)
- }
- return null
-
- case "ImportExpression":
- if (parent.source === node) {
- return sourceCode.getFirstToken(parent, 1)
- }
- return null
-
- case "SwitchStatement":
- if (parent.discriminant === node) {
- return sourceCode.getFirstToken(parent, 1)
- }
- return null
-
- case "WithStatement":
- if (parent.object === node) {
- return sourceCode.getFirstToken(parent, 1)
- }
- return null
-
- default:
- return null
- }
-}
-
-/**
- * Check whether a given node is parenthesized or not.
- * @param {number} times The number of parantheses.
- * @param {Node} node The AST node to check.
- * @param {SourceCode} sourceCode The source code object to get tokens.
- * @returns {boolean} `true` if the node is parenthesized the given times.
- */
-/**
- * Check whether a given node is parenthesized or not.
- * @param {Node} node The AST node to check.
- * @param {SourceCode} sourceCode The source code object to get tokens.
- * @returns {boolean} `true` if the node is parenthesized.
- */
-function isParenthesized(
- timesOrNode,
- nodeOrSourceCode,
- optionalSourceCode
-) {
- let times, node, sourceCode, maybeLeftParen, maybeRightParen;
- if (typeof timesOrNode === "number") {
- times = timesOrNode | 0;
- node = nodeOrSourceCode;
- sourceCode = optionalSourceCode;
- if (!(times >= 1)) {
- throw new TypeError("'times' should be a positive integer.")
- }
- } else {
- times = 1;
- node = timesOrNode;
- sourceCode = nodeOrSourceCode;
- }
-
- if (node == null) {
- return false
- }
-
- maybeLeftParen = maybeRightParen = node;
- do {
- maybeLeftParen = sourceCode.getTokenBefore(maybeLeftParen);
- maybeRightParen = sourceCode.getTokenAfter(maybeRightParen);
- } while (
- maybeLeftParen != null &&
- maybeRightParen != null &&
- isOpeningParenToken(maybeLeftParen) &&
- isClosingParenToken(maybeRightParen) &&
- // Avoid false positive such as `if (a) {}`
- maybeLeftParen !== getParentSyntaxParen(node, sourceCode) &&
- --times > 0
- )
-
- return times === 0
-}
-
-/**
- * @author Toru Nagashima <https://github.com/mysticatea>
- * See LICENSE file in root directory for full license.
- */
-
-const placeholder = /\$(?:[$&`']|[1-9][0-9]?)/gu;
-
-/** @type {WeakMap<PatternMatcher, {pattern:RegExp,escaped:boolean}>} */
-const internal = new WeakMap();
-
-/**
- * Check whether a given character is escaped or not.
- * @param {string} str The string to check.
- * @param {number} index The location of the character to check.
- * @returns {boolean} `true` if the character is escaped.
- */
-function isEscaped(str, index) {
- let escaped = false;
- for (let i = index - 1; i >= 0 && str.charCodeAt(i) === 0x5c; --i) {
- escaped = !escaped;
- }
- return escaped
-}
-
-/**
- * Replace a given string by a given matcher.
- * @param {PatternMatcher} matcher The pattern matcher.
- * @param {string} str The string to be replaced.
- * @param {string} replacement The new substring to replace each matched part.
- * @returns {string} The replaced string.
- */
-function replaceS(matcher, str, replacement) {
- const chunks = [];
- let index = 0;
-
- /** @type {RegExpExecArray} */
- let match = null;
-
- /**
- * @param {string} key The placeholder.
- * @returns {string} The replaced string.
- */
- function replacer(key) {
- switch (key) {
- case "$$":
- return "$"
- case "$&":
- return match[0]
- case "$`":
- return str.slice(0, match.index)
- case "$'":
- return str.slice(match.index + match[0].length)
- default: {
- const i = key.slice(1);
- if (i in match) {
- return match[i]
- }
- return key
- }
- }
- }
-
- for (match of matcher.execAll(str)) {
- chunks.push(str.slice(index, match.index));
- chunks.push(replacement.replace(placeholder, replacer));
- index = match.index + match[0].length;
- }
- chunks.push(str.slice(index));
-
- return chunks.join("")
-}
-
-/**
- * Replace a given string by a given matcher.
- * @param {PatternMatcher} matcher The pattern matcher.
- * @param {string} str The string to be replaced.
- * @param {(...strs[])=>string} replace The function to replace each matched part.
- * @returns {string} The replaced string.
- */
-function replaceF(matcher, str, replace) {
- const chunks = [];
- let index = 0;
-
- for (const match of matcher.execAll(str)) {
- chunks.push(str.slice(index, match.index));
- chunks.push(String(replace(...match, match.index, match.input)));
- index = match.index + match[0].length;
- }
- chunks.push(str.slice(index));
-
- return chunks.join("")
-}
-
-/**
- * The class to find patterns as considering escape sequences.
- */
-class PatternMatcher {
- /**
- * Initialize this matcher.
- * @param {RegExp} pattern The pattern to match.
- * @param {{escaped:boolean}} options The options.
- */
- constructor(pattern, { escaped = false } = {}) {
- if (!(pattern instanceof RegExp)) {
- throw new TypeError("'pattern' should be a RegExp instance.")
- }
- if (!pattern.flags.includes("g")) {
- throw new Error("'pattern' should contains 'g' flag.")
- }
-
- internal.set(this, {
- pattern: new RegExp(pattern.source, pattern.flags),
- escaped: Boolean(escaped),
- });
- }
-
- /**
- * Find the pattern in a given string.
- * @param {string} str The string to find.
- * @returns {IterableIterator<RegExpExecArray>} The iterator which iterate the matched information.
- */
- *execAll(str) {
- const { pattern, escaped } = internal.get(this);
- let match = null;
- let lastIndex = 0;
-
- pattern.lastIndex = 0;
- while ((match = pattern.exec(str)) != null) {
- if (escaped || !isEscaped(str, match.index)) {
- lastIndex = pattern.lastIndex;
- yield match;
- pattern.lastIndex = lastIndex;
- }
- }
- }
-
- /**
- * Check whether the pattern is found in a given string.
- * @param {string} str The string to check.
- * @returns {boolean} `true` if the pattern was found in the string.
- */
- test(str) {
- const it = this.execAll(str);
- const ret = it.next();
- return !ret.done
- }
-
- /**
- * Replace a given string.
- * @param {string} str The string to be replaced.
- * @param {(string|((...strs:string[])=>string))} replacer The string or function to replace. This is the same as the 2nd argument of `String.prototype.replace`.
- * @returns {string} The replaced string.
- */
- [Symbol.replace](str, replacer) {
- return typeof replacer === "function"
- ? replaceF(this, String(str), replacer)
- : replaceS(this, String(str), String(replacer))
- }
-}
-
-const IMPORT_TYPE = /^(?:Import|Export(?:All|Default|Named))Declaration$/u;
-const has = Function.call.bind(Object.hasOwnProperty);
-
-const READ = Symbol("read");
-const CALL = Symbol("call");
-const CONSTRUCT = Symbol("construct");
-const ESM = Symbol("esm");
-
-const requireCall = { require: { [CALL]: true } };
-
-/**
- * Check whether a given variable is modified or not.
- * @param {Variable} variable The variable to check.
- * @returns {boolean} `true` if the variable is modified.
- */
-function isModifiedGlobal(variable) {
- return (
- variable == null ||
- variable.defs.length !== 0 ||
- variable.references.some(r => r.isWrite())
- )
-}
-
-/**
- * Check if the value of a given node is passed through to the parent syntax as-is.
- * For example, `a` and `b` in (`a || b` and `c ? a : b`) are passed through.
- * @param {Node} node A node to check.
- * @returns {boolean} `true` if the node is passed through.
- */
-function isPassThrough(node) {
- const parent = node.parent;
-
- switch (parent && parent.type) {
- case "ConditionalExpression":
- return parent.consequent === node || parent.alternate === node
- case "LogicalExpression":
- return true
- case "SequenceExpression":
- return parent.expressions[parent.expressions.length - 1] === node
-
- default:
- return false
- }
-}
-
-/**
- * The reference tracker.
- */
-class ReferenceTracker {
- /**
- * Initialize this tracker.
- * @param {Scope} globalScope The global scope.
- * @param {object} [options] The options.
- * @param {"legacy"|"strict"} [options.mode="strict"] The mode to determine the ImportDeclaration's behavior for CJS modules.
- * @param {string[]} [options.globalObjectNames=["global","self","window"]] The variable names for Global Object.
- */
- constructor(
- globalScope,
- {
- mode = "strict",
- globalObjectNames = ["global", "self", "window"],
- } = {}
- ) {
- this.variableStack = [];
- this.globalScope = globalScope;
- this.mode = mode;
- this.globalObjectNames = globalObjectNames.slice(0);
- }
-
- /**
- * Iterate the references of global variables.
- * @param {object} traceMap The trace map.
- * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
- */
- *iterateGlobalReferences(traceMap) {
- for (const key of Object.keys(traceMap)) {
- const nextTraceMap = traceMap[key];
- const path = [key];
- const variable = this.globalScope.set.get(key);
-
- if (isModifiedGlobal(variable)) {
- continue
- }
-
- yield* this._iterateVariableReferences(
- variable,
- path,
- nextTraceMap,
- true
- );
- }
-
- for (const key of this.globalObjectNames) {
- const path = [];
- const variable = this.globalScope.set.get(key);
-
- if (isModifiedGlobal(variable)) {
- continue
- }
-
- yield* this._iterateVariableReferences(
- variable,
- path,
- traceMap,
- false
- );
- }
- }
-
- /**
- * Iterate the references of CommonJS modules.
- * @param {object} traceMap The trace map.
- * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
- */
- *iterateCjsReferences(traceMap) {
- for (const { node } of this.iterateGlobalReferences(requireCall)) {
- const key = getStringIfConstant(node.arguments[0]);
- if (key == null || !has(traceMap, key)) {
- continue
- }
-
- const nextTraceMap = traceMap[key];
- const path = [key];
-
- if (nextTraceMap[READ]) {
- yield {
- node,
- path,
- type: READ,
- info: nextTraceMap[READ],
- };
- }
- yield* this._iteratePropertyReferences(node, path, nextTraceMap);
- }
- }
-
- /**
- * Iterate the references of ES modules.
- * @param {object} traceMap The trace map.
- * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
- */
- *iterateEsmReferences(traceMap) {
- const programNode = this.globalScope.block;
-
- for (const node of programNode.body) {
- if (!IMPORT_TYPE.test(node.type) || node.source == null) {
- continue
- }
- const moduleId = node.source.value;
-
- if (!has(traceMap, moduleId)) {
- continue
- }
- const nextTraceMap = traceMap[moduleId];
- const path = [moduleId];
-
- if (nextTraceMap[READ]) {
- yield { node, path, type: READ, info: nextTraceMap[READ] };
- }
-
- if (node.type === "ExportAllDeclaration") {
- for (const key of Object.keys(nextTraceMap)) {
- const exportTraceMap = nextTraceMap[key];
- if (exportTraceMap[READ]) {
- yield {
- node,
- path: path.concat(key),
- type: READ,
- info: exportTraceMap[READ],
- };
- }
- }
- } else {
- for (const specifier of node.specifiers) {
- const esm = has(nextTraceMap, ESM);
- const it = this._iterateImportReferences(
- specifier,
- path,
- esm
- ? nextTraceMap
- : this.mode === "legacy"
- ? Object.assign(
- { default: nextTraceMap },
- nextTraceMap
- )
- : { default: nextTraceMap }
- );
-
- if (esm) {
- yield* it;
- } else {
- for (const report of it) {
- report.path = report.path.filter(exceptDefault);
- if (
- report.path.length >= 2 ||
- report.type !== READ
- ) {
- yield report;
- }
- }
- }
- }
- }
- }
- }
-
- /**
- * Iterate the references for a given variable.
- * @param {Variable} variable The variable to iterate that references.
- * @param {string[]} path The current path.
- * @param {object} traceMap The trace map.
- * @param {boolean} shouldReport = The flag to report those references.
- * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
- */
- *_iterateVariableReferences(variable, path, traceMap, shouldReport) {
- if (this.variableStack.includes(variable)) {
- return
- }
- this.variableStack.push(variable);
- try {
- for (const reference of variable.references) {
- if (!reference.isRead()) {
- continue
- }
- const node = reference.identifier;
-
- if (shouldReport && traceMap[READ]) {
- yield { node, path, type: READ, info: traceMap[READ] };
- }
- yield* this._iteratePropertyReferences(node, path, traceMap);
- }
- } finally {
- this.variableStack.pop();
- }
- }
-
- /**
- * Iterate the references for a given AST node.
- * @param rootNode The AST node to iterate references.
- * @param {string[]} path The current path.
- * @param {object} traceMap The trace map.
- * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
- */
- //eslint-disable-next-line complexity
- *_iteratePropertyReferences(rootNode, path, traceMap) {
- let node = rootNode;
- while (isPassThrough(node)) {
- node = node.parent;
- }
-
- const parent = node.parent;
- if (parent.type === "MemberExpression") {
- if (parent.object === node) {
- const key = getPropertyName(parent);
- if (key == null || !has(traceMap, key)) {
- return
- }
-
- path = path.concat(key); //eslint-disable-line no-param-reassign
- const nextTraceMap = traceMap[key];
- if (nextTraceMap[READ]) {
- yield {
- node: parent,
- path,
- type: READ,
- info: nextTraceMap[READ],
- };
- }
- yield* this._iteratePropertyReferences(
- parent,
- path,
- nextTraceMap
- );
- }
- return
- }
- if (parent.type === "CallExpression") {
- if (parent.callee === node && traceMap[CALL]) {
- yield { node: parent, path, type: CALL, info: traceMap[CALL] };
- }
- return
- }
- if (parent.type === "NewExpression") {
- if (parent.callee === node && traceMap[CONSTRUCT]) {
- yield {
- node: parent,
- path,
- type: CONSTRUCT,
- info: traceMap[CONSTRUCT],
- };
- }
- return
- }
- if (parent.type === "AssignmentExpression") {
- if (parent.right === node) {
- yield* this._iterateLhsReferences(parent.left, path, traceMap);
- yield* this._iteratePropertyReferences(parent, path, traceMap);
- }
- return
- }
- if (parent.type === "AssignmentPattern") {
- if (parent.right === node) {
- yield* this._iterateLhsReferences(parent.left, path, traceMap);
- }
- return
- }
- if (parent.type === "VariableDeclarator") {
- if (parent.init === node) {
- yield* this._iterateLhsReferences(parent.id, path, traceMap);
- }
- }
- }
-
- /**
- * Iterate the references for a given Pattern node.
- * @param {Node} patternNode The Pattern node to iterate references.
- * @param {string[]} path The current path.
- * @param {object} traceMap The trace map.
- * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
- */
- *_iterateLhsReferences(patternNode, path, traceMap) {
- if (patternNode.type === "Identifier") {
- const variable = findVariable(this.globalScope, patternNode);
- if (variable != null) {
- yield* this._iterateVariableReferences(
- variable,
- path,
- traceMap,
- false
- );
- }
- return
- }
- if (patternNode.type === "ObjectPattern") {
- for (const property of patternNode.properties) {
- const key = getPropertyName(property);
-
- if (key == null || !has(traceMap, key)) {
- continue
- }
-
- const nextPath = path.concat(key);
- const nextTraceMap = traceMap[key];
- if (nextTraceMap[READ]) {
- yield {
- node: property,
- path: nextPath,
- type: READ,
- info: nextTraceMap[READ],
- };
- }
- yield* this._iterateLhsReferences(
- property.value,
- nextPath,
- nextTraceMap
- );
- }
- return
- }
- if (patternNode.type === "AssignmentPattern") {
- yield* this._iterateLhsReferences(patternNode.left, path, traceMap);
- }
- }
-
- /**
- * Iterate the references for a given ModuleSpecifier node.
- * @param {Node} specifierNode The ModuleSpecifier node to iterate references.
- * @param {string[]} path The current path.
- * @param {object} traceMap The trace map.
- * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
- */
- *_iterateImportReferences(specifierNode, path, traceMap) {
- const type = specifierNode.type;
-
- if (type === "ImportSpecifier" || type === "ImportDefaultSpecifier") {
- const key =
- type === "ImportDefaultSpecifier"
- ? "default"
- : specifierNode.imported.name;
- if (!has(traceMap, key)) {
- return
- }
-
- path = path.concat(key); //eslint-disable-line no-param-reassign
- const nextTraceMap = traceMap[key];
- if (nextTraceMap[READ]) {
- yield {
- node: specifierNode,
- path,
- type: READ,
- info: nextTraceMap[READ],
- };
- }
- yield* this._iterateVariableReferences(
- findVariable(this.globalScope, specifierNode.local),
- path,
- nextTraceMap,
- false
- );
-
- return
- }
-
- if (type === "ImportNamespaceSpecifier") {
- yield* this._iterateVariableReferences(
- findVariable(this.globalScope, specifierNode.local),
- path,
- traceMap,
- false
- );
- return
- }
-
- if (type === "ExportSpecifier") {
- const key = specifierNode.local.name;
- if (!has(traceMap, key)) {
- return
- }
-
- path = path.concat(key); //eslint-disable-line no-param-reassign
- const nextTraceMap = traceMap[key];
- if (nextTraceMap[READ]) {
- yield {
- node: specifierNode,
- path,
- type: READ,
- info: nextTraceMap[READ],
- };
- }
- }
- }
-}
-
-ReferenceTracker.READ = READ;
-ReferenceTracker.CALL = CALL;
-ReferenceTracker.CONSTRUCT = CONSTRUCT;
-ReferenceTracker.ESM = ESM;
-
-/**
- * This is a predicate function for Array#filter.
- * @param {string} name A name part.
- * @param {number} index The index of the name.
- * @returns {boolean} `false` if it's default.
- */
-function exceptDefault(name, index) {
- return !(index === 1 && name === "default")
-}
-
-var index = {
- CALL,
- CONSTRUCT,
- ESM,
- findVariable,
- getFunctionHeadLocation,
- getFunctionNameWithKind,
- getInnermostScope,
- getPropertyName,
- getStaticValue,
- getStringIfConstant,
- hasSideEffect,
- isArrowToken,
- isClosingBraceToken,
- isClosingBracketToken,
- isClosingParenToken,
- isColonToken,
- isCommaToken,
- isCommentToken,
- isNotArrowToken,
- isNotClosingBraceToken,
- isNotClosingBracketToken,
- isNotClosingParenToken,
- isNotColonToken,
- isNotCommaToken,
- isNotCommentToken,
- isNotOpeningBraceToken,
- isNotOpeningBracketToken,
- isNotOpeningParenToken,
- isNotSemicolonToken,
- isOpeningBraceToken,
- isOpeningBracketToken,
- isOpeningParenToken,
- isParenthesized,
- isSemicolonToken,
- PatternMatcher,
- READ,
- ReferenceTracker,
-};
-
-exports.CALL = CALL;
-exports.CONSTRUCT = CONSTRUCT;
-exports.ESM = ESM;
-exports.PatternMatcher = PatternMatcher;
-exports.READ = READ;
-exports.ReferenceTracker = ReferenceTracker;
-exports.default = index;
-exports.findVariable = findVariable;
-exports.getFunctionHeadLocation = getFunctionHeadLocation;
-exports.getFunctionNameWithKind = getFunctionNameWithKind;
-exports.getInnermostScope = getInnermostScope;
-exports.getPropertyName = getPropertyName;
-exports.getStaticValue = getStaticValue;
-exports.getStringIfConstant = getStringIfConstant;
-exports.hasSideEffect = hasSideEffect;
-exports.isArrowToken = isArrowToken;
-exports.isClosingBraceToken = isClosingBraceToken;
-exports.isClosingBracketToken = isClosingBracketToken;
-exports.isClosingParenToken = isClosingParenToken;
-exports.isColonToken = isColonToken;
-exports.isCommaToken = isCommaToken;
-exports.isCommentToken = isCommentToken;
-exports.isNotArrowToken = isNotArrowToken;
-exports.isNotClosingBraceToken = isNotClosingBraceToken;
-exports.isNotClosingBracketToken = isNotClosingBracketToken;
-exports.isNotClosingParenToken = isNotClosingParenToken;
-exports.isNotColonToken = isNotColonToken;
-exports.isNotCommaToken = isNotCommaToken;
-exports.isNotCommentToken = isNotCommentToken;
-exports.isNotOpeningBraceToken = isNotOpeningBraceToken;
-exports.isNotOpeningBracketToken = isNotOpeningBracketToken;
-exports.isNotOpeningParenToken = isNotOpeningParenToken;
-exports.isNotSemicolonToken = isNotSemicolonToken;
-exports.isOpeningBraceToken = isOpeningBraceToken;
-exports.isOpeningBracketToken = isOpeningBracketToken;
-exports.isOpeningParenToken = isOpeningParenToken;
-exports.isParenthesized = isParenthesized;
-exports.isSemicolonToken = isSemicolonToken;
-//# sourceMappingURL=index.js.map
diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/index.js.map
deleted file mode 100644
index de4dd42..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sources":["src/get-innermost-scope.js","src/find-variable.js","src/token-predicate.js","src/get-function-head-location.js","src/get-static-value.js","src/get-string-if-constant.js","src/get-property-name.js","src/get-function-name-with-kind.js","src/has-side-effect.js","src/is-parenthesized.js","src/pattern-matcher.js","src/reference-tracker.js","src/index.js"],"sourcesContent":["/**\n * Get the innermost scope which contains a given location.\n * @param {Scope} initialScope The initial scope to search.\n * @param {Node} node The location to search.\n * @returns {Scope} The innermost scope.\n */\nexport function getInnermostScope(initialScope, node) {\n const location = node.range[0]\n\n let scope = initialScope\n let found = false\n do {\n found = false\n for (const childScope of scope.childScopes) {\n const range = childScope.block.range\n\n if (range[0] <= location && location < range[1]) {\n scope = childScope\n found = true\n break\n }\n }\n } while (found)\n\n return scope\n}\n","import { getInnermostScope } from \"./get-innermost-scope\"\n\n/**\n * Find the variable of a given name.\n * @param {Scope} initialScope The scope to start finding.\n * @param {string|Node} nameOrNode The variable name to find. If this is a Node object then it should be an Identifier node.\n * @returns {Variable|null} The found variable or null.\n */\nexport function findVariable(initialScope, nameOrNode) {\n let name = \"\"\n let scope = initialScope\n\n if (typeof nameOrNode === \"string\") {\n name = nameOrNode\n } else {\n name = nameOrNode.name\n scope = getInnermostScope(scope, nameOrNode)\n }\n\n while (scope != null) {\n const variable = scope.set.get(name)\n if (variable != null) {\n return variable\n }\n scope = scope.upper\n }\n\n return null\n}\n","/**\n * Negate the result of `this` calling.\n * @param {Token} token The token to check.\n * @returns {boolean} `true` if the result of `this(token)` is `false`.\n */\nfunction negate0(token) {\n return !this(token) //eslint-disable-line no-invalid-this\n}\n\n/**\n * Creates the negate function of the given function.\n * @param {function(Token):boolean} f - The function to negate.\n * @returns {function(Token):boolean} Negated function.\n */\nfunction negate(f) {\n return negate0.bind(f)\n}\n\n/**\n * Checks if the given token is an arrow token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an arrow token.\n */\nexport function isArrowToken(token) {\n return token.value === \"=>\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is a comma token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a comma token.\n */\nexport function isCommaToken(token) {\n return token.value === \",\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is a semicolon token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a semicolon token.\n */\nexport function isSemicolonToken(token) {\n return token.value === \";\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is a colon token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a colon token.\n */\nexport function isColonToken(token) {\n return token.value === \":\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is an opening parenthesis token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an opening parenthesis token.\n */\nexport function isOpeningParenToken(token) {\n return token.value === \"(\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is a closing parenthesis token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a closing parenthesis token.\n */\nexport function isClosingParenToken(token) {\n return token.value === \")\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is an opening square bracket token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an opening square bracket token.\n */\nexport function isOpeningBracketToken(token) {\n return token.value === \"[\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is a closing square bracket token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a closing square bracket token.\n */\nexport function isClosingBracketToken(token) {\n return token.value === \"]\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is an opening brace token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an opening brace token.\n */\nexport function isOpeningBraceToken(token) {\n return token.value === \"{\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is a closing brace token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a closing brace token.\n */\nexport function isClosingBraceToken(token) {\n return token.value === \"}\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is a comment token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a comment token.\n */\nexport function isCommentToken(token) {\n return (\n token.type === \"Line\" ||\n token.type === \"Block\" ||\n token.type === \"Shebang\"\n )\n}\n\nexport const isNotArrowToken = negate(isArrowToken)\nexport const isNotCommaToken = negate(isCommaToken)\nexport const isNotSemicolonToken = negate(isSemicolonToken)\nexport const isNotColonToken = negate(isColonToken)\nexport const isNotOpeningParenToken = negate(isOpeningParenToken)\nexport const isNotClosingParenToken = negate(isClosingParenToken)\nexport const isNotOpeningBracketToken = negate(isOpeningBracketToken)\nexport const isNotClosingBracketToken = negate(isClosingBracketToken)\nexport const isNotOpeningBraceToken = negate(isOpeningBraceToken)\nexport const isNotClosingBraceToken = negate(isClosingBraceToken)\nexport const isNotCommentToken = negate(isCommentToken)\n","import { isArrowToken, isOpeningParenToken } from \"./token-predicate\"\n\n/**\n * Get the `(` token of the given function node.\n * @param {Node} node - The function node to get.\n * @param {SourceCode} sourceCode - The source code object to get tokens.\n * @returns {Token} `(` token.\n */\nfunction getOpeningParenOfParams(node, sourceCode) {\n return node.id\n ? sourceCode.getTokenAfter(node.id, isOpeningParenToken)\n : sourceCode.getFirstToken(node, isOpeningParenToken)\n}\n\n/**\n * Get the location of the given function node for reporting.\n * @param {Node} node - The function node to get.\n * @param {SourceCode} sourceCode - The source code object to get tokens.\n * @returns {string} The location of the function node for reporting.\n */\nexport function getFunctionHeadLocation(node, sourceCode) {\n const parent = node.parent\n let start = null\n let end = null\n\n if (node.type === \"ArrowFunctionExpression\") {\n const arrowToken = sourceCode.getTokenBefore(node.body, isArrowToken)\n\n start = arrowToken.loc.start\n end = arrowToken.loc.end\n } else if (\n parent.type === \"Property\" ||\n parent.type === \"MethodDefinition\"\n ) {\n start = parent.loc.start\n end = getOpeningParenOfParams(node, sourceCode).loc.start\n } else {\n start = node.loc.start\n end = getOpeningParenOfParams(node, sourceCode).loc.start\n }\n\n return {\n start: Object.assign({}, start),\n end: Object.assign({}, end),\n }\n}\n","/* globals BigInt, globalThis, global, self, window */\n\nimport { findVariable } from \"./find-variable\"\n\nconst globalObject =\n typeof globalThis !== \"undefined\"\n ? globalThis\n : typeof self !== \"undefined\"\n ? self\n : typeof window !== \"undefined\"\n ? window\n : typeof global !== \"undefined\"\n ? global\n : {}\n\nconst builtinNames = Object.freeze(\n new Set([\n \"Array\",\n \"ArrayBuffer\",\n \"BigInt\",\n \"BigInt64Array\",\n \"BigUint64Array\",\n \"Boolean\",\n \"DataView\",\n \"Date\",\n \"decodeURI\",\n \"decodeURIComponent\",\n \"encodeURI\",\n \"encodeURIComponent\",\n \"escape\",\n \"Float32Array\",\n \"Float64Array\",\n \"Function\",\n \"Infinity\",\n \"Int16Array\",\n \"Int32Array\",\n \"Int8Array\",\n \"isFinite\",\n \"isNaN\",\n \"isPrototypeOf\",\n \"JSON\",\n \"Map\",\n \"Math\",\n \"NaN\",\n \"Number\",\n \"Object\",\n \"parseFloat\",\n \"parseInt\",\n \"Promise\",\n \"Proxy\",\n \"Reflect\",\n \"RegExp\",\n \"Set\",\n \"String\",\n \"Symbol\",\n \"Uint16Array\",\n \"Uint32Array\",\n \"Uint8Array\",\n \"Uint8ClampedArray\",\n \"undefined\",\n \"unescape\",\n \"WeakMap\",\n \"WeakSet\",\n ])\n)\nconst callAllowed = new Set(\n [\n Array.isArray,\n typeof BigInt === \"function\" ? BigInt : undefined,\n Boolean,\n Date,\n Date.parse,\n decodeURI,\n decodeURIComponent,\n encodeURI,\n encodeURIComponent,\n escape,\n isFinite,\n isNaN,\n isPrototypeOf,\n ...Object.getOwnPropertyNames(Math)\n .map(k => Math[k])\n .filter(f => typeof f === \"function\"),\n Number,\n Number.isFinite,\n Number.isNaN,\n Number.parseFloat,\n Number.parseInt,\n Object,\n Object.entries,\n Object.is,\n Object.isExtensible,\n Object.isFrozen,\n Object.isSealed,\n Object.keys,\n Object.values,\n parseFloat,\n parseInt,\n RegExp,\n String,\n String.fromCharCode,\n String.fromCodePoint,\n String.raw,\n Symbol,\n Symbol.for,\n Symbol.keyFor,\n unescape,\n ].filter(f => typeof f === \"function\")\n)\nconst callPassThrough = new Set([\n Object.freeze,\n Object.preventExtensions,\n Object.seal,\n])\n\n/**\n * Get the property descriptor.\n * @param {object} object The object to get.\n * @param {string|number|symbol} name The property name to get.\n */\nfunction getPropertyDescriptor(object, name) {\n let x = object\n while ((typeof x === \"object\" || typeof x === \"function\") && x !== null) {\n const d = Object.getOwnPropertyDescriptor(x, name)\n if (d) {\n return d\n }\n x = Object.getPrototypeOf(x)\n }\n return null\n}\n\n/**\n * Check if a property is getter or not.\n * @param {object} object The object to check.\n * @param {string|number|symbol} name The property name to check.\n */\nfunction isGetter(object, name) {\n const d = getPropertyDescriptor(object, name)\n return d != null && d.get != null\n}\n\n/**\n * Get the element values of a given node list.\n * @param {Node[]} nodeList The node list to get values.\n * @param {Scope|undefined} initialScope The initial scope to find variables.\n * @returns {any[]|null} The value list if all nodes are constant. Otherwise, null.\n */\nfunction getElementValues(nodeList, initialScope) {\n const valueList = []\n\n for (let i = 0; i < nodeList.length; ++i) {\n const elementNode = nodeList[i]\n\n if (elementNode == null) {\n valueList.length = i + 1\n } else if (elementNode.type === \"SpreadElement\") {\n const argument = getStaticValueR(elementNode.argument, initialScope)\n if (argument == null) {\n return null\n }\n valueList.push(...argument.value)\n } else {\n const element = getStaticValueR(elementNode, initialScope)\n if (element == null) {\n return null\n }\n valueList.push(element.value)\n }\n }\n\n return valueList\n}\n\nconst operations = Object.freeze({\n ArrayExpression(node, initialScope) {\n const elements = getElementValues(node.elements, initialScope)\n return elements != null ? { value: elements } : null\n },\n\n AssignmentExpression(node, initialScope) {\n if (node.operator === \"=\") {\n return getStaticValueR(node.right, initialScope)\n }\n return null\n },\n\n //eslint-disable-next-line complexity\n BinaryExpression(node, initialScope) {\n if (node.operator === \"in\" || node.operator === \"instanceof\") {\n // Not supported.\n return null\n }\n\n const left = getStaticValueR(node.left, initialScope)\n const right = getStaticValueR(node.right, initialScope)\n if (left != null && right != null) {\n switch (node.operator) {\n case \"==\":\n return { value: left.value == right.value } //eslint-disable-line eqeqeq\n case \"!=\":\n return { value: left.value != right.value } //eslint-disable-line eqeqeq\n case \"===\":\n return { value: left.value === right.value }\n case \"!==\":\n return { value: left.value !== right.value }\n case \"<\":\n return { value: left.value < right.value }\n case \"<=\":\n return { value: left.value <= right.value }\n case \">\":\n return { value: left.value > right.value }\n case \">=\":\n return { value: left.value >= right.value }\n case \"<<\":\n return { value: left.value << right.value }\n case \">>\":\n return { value: left.value >> right.value }\n case \">>>\":\n return { value: left.value >>> right.value }\n case \"+\":\n return { value: left.value + right.value }\n case \"-\":\n return { value: left.value - right.value }\n case \"*\":\n return { value: left.value * right.value }\n case \"/\":\n return { value: left.value / right.value }\n case \"%\":\n return { value: left.value % right.value }\n case \"**\":\n return { value: Math.pow(left.value, right.value) }\n case \"|\":\n return { value: left.value | right.value }\n case \"^\":\n return { value: left.value ^ right.value }\n case \"&\":\n return { value: left.value & right.value }\n\n // no default\n }\n }\n\n return null\n },\n\n CallExpression(node, initialScope) {\n const calleeNode = node.callee\n const args = getElementValues(node.arguments, initialScope)\n\n if (args != null) {\n if (calleeNode.type === \"MemberExpression\") {\n const object = getStaticValueR(calleeNode.object, initialScope)\n const property = calleeNode.computed\n ? getStaticValueR(calleeNode.property, initialScope)\n : { value: calleeNode.property.name }\n\n if (object != null && property != null) {\n const receiver = object.value\n const methodName = property.value\n if (callAllowed.has(receiver[methodName])) {\n return { value: receiver[methodName](...args) }\n }\n if (callPassThrough.has(receiver[methodName])) {\n return { value: args[0] }\n }\n }\n } else {\n const callee = getStaticValueR(calleeNode, initialScope)\n if (callee != null) {\n const func = callee.value\n if (callAllowed.has(func)) {\n return { value: func(...args) }\n }\n if (callPassThrough.has(func)) {\n return { value: args[0] }\n }\n }\n }\n }\n\n return null\n },\n\n ConditionalExpression(node, initialScope) {\n const test = getStaticValueR(node.test, initialScope)\n if (test != null) {\n return test.value\n ? getStaticValueR(node.consequent, initialScope)\n : getStaticValueR(node.alternate, initialScope)\n }\n return null\n },\n\n ExpressionStatement(node, initialScope) {\n return getStaticValueR(node.expression, initialScope)\n },\n\n Identifier(node, initialScope) {\n if (initialScope != null) {\n const variable = findVariable(initialScope, node)\n\n // Built-in globals.\n if (\n variable != null &&\n variable.defs.length === 0 &&\n builtinNames.has(variable.name) &&\n variable.name in globalObject\n ) {\n return { value: globalObject[variable.name] }\n }\n\n // Constants.\n if (variable != null && variable.defs.length === 1) {\n const def = variable.defs[0]\n if (\n def.parent &&\n def.parent.kind === \"const\" &&\n // TODO(mysticatea): don't support destructuring here.\n def.node.id.type === \"Identifier\"\n ) {\n return getStaticValueR(def.node.init, initialScope)\n }\n }\n }\n return null\n },\n\n Literal(node) {\n //istanbul ignore if : this is implementation-specific behavior.\n if ((node.regex != null || node.bigint != null) && node.value == null) {\n // It was a RegExp/BigInt literal, but Node.js didn't support it.\n return null\n }\n return { value: node.value }\n },\n\n LogicalExpression(node, initialScope) {\n const left = getStaticValueR(node.left, initialScope)\n if (left != null) {\n if (\n (node.operator === \"||\" && Boolean(left.value) === true) ||\n (node.operator === \"&&\" && Boolean(left.value) === false)\n ) {\n return left\n }\n\n const right = getStaticValueR(node.right, initialScope)\n if (right != null) {\n return right\n }\n }\n\n return null\n },\n\n MemberExpression(node, initialScope) {\n const object = getStaticValueR(node.object, initialScope)\n const property = node.computed\n ? getStaticValueR(node.property, initialScope)\n : { value: node.property.name }\n\n if (\n object != null &&\n property != null &&\n !isGetter(object.value, property.value)\n ) {\n return { value: object.value[property.value] }\n }\n return null\n },\n\n NewExpression(node, initialScope) {\n const callee = getStaticValueR(node.callee, initialScope)\n const args = getElementValues(node.arguments, initialScope)\n\n if (callee != null && args != null) {\n const Func = callee.value\n if (callAllowed.has(Func)) {\n return { value: new Func(...args) }\n }\n }\n\n return null\n },\n\n ObjectExpression(node, initialScope) {\n const object = {}\n\n for (const propertyNode of node.properties) {\n if (propertyNode.type === \"Property\") {\n if (propertyNode.kind !== \"init\") {\n return null\n }\n const key = propertyNode.computed\n ? getStaticValueR(propertyNode.key, initialScope)\n : { value: propertyNode.key.name }\n const value = getStaticValueR(propertyNode.value, initialScope)\n if (key == null || value == null) {\n return null\n }\n object[key.value] = value.value\n } else if (\n propertyNode.type === \"SpreadElement\" ||\n propertyNode.type === \"ExperimentalSpreadProperty\"\n ) {\n const argument = getStaticValueR(\n propertyNode.argument,\n initialScope\n )\n if (argument == null) {\n return null\n }\n Object.assign(object, argument.value)\n } else {\n return null\n }\n }\n\n return { value: object }\n },\n\n SequenceExpression(node, initialScope) {\n const last = node.expressions[node.expressions.length - 1]\n return getStaticValueR(last, initialScope)\n },\n\n TaggedTemplateExpression(node, initialScope) {\n const tag = getStaticValueR(node.tag, initialScope)\n const expressions = getElementValues(\n node.quasi.expressions,\n initialScope\n )\n\n if (tag != null && expressions != null) {\n const func = tag.value\n const strings = node.quasi.quasis.map(q => q.value.cooked)\n strings.raw = node.quasi.quasis.map(q => q.value.raw)\n\n if (func === String.raw) {\n return { value: func(strings, ...expressions) }\n }\n }\n\n return null\n },\n\n TemplateLiteral(node, initialScope) {\n const expressions = getElementValues(node.expressions, initialScope)\n if (expressions != null) {\n let value = node.quasis[0].value.cooked\n for (let i = 0; i < expressions.length; ++i) {\n value += expressions[i]\n value += node.quasis[i + 1].value.cooked\n }\n return { value }\n }\n return null\n },\n\n UnaryExpression(node, initialScope) {\n if (node.operator === \"delete\") {\n // Not supported.\n return null\n }\n if (node.operator === \"void\") {\n return { value: undefined }\n }\n\n const arg = getStaticValueR(node.argument, initialScope)\n if (arg != null) {\n switch (node.operator) {\n case \"-\":\n return { value: -arg.value }\n case \"+\":\n return { value: +arg.value } //eslint-disable-line no-implicit-coercion\n case \"!\":\n return { value: !arg.value }\n case \"~\":\n return { value: ~arg.value }\n case \"typeof\":\n return { value: typeof arg.value }\n\n // no default\n }\n }\n\n return null\n },\n})\n\n/**\n * Get the value of a given node if it's a static value.\n * @param {Node} node The node to get.\n * @param {Scope|undefined} initialScope The scope to start finding variable.\n * @returns {{value:any}|null} The static value of the node, or `null`.\n */\nfunction getStaticValueR(node, initialScope) {\n if (node != null && Object.hasOwnProperty.call(operations, node.type)) {\n return operations[node.type](node, initialScope)\n }\n return null\n}\n\n/**\n * Get the value of a given node if it's a static value.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If this scope was given, this tries to resolve identifier references which are in the given node as much as possible.\n * @returns {{value:any}|null} The static value of the node, or `null`.\n */\nexport function getStaticValue(node, initialScope = null) {\n try {\n return getStaticValueR(node, initialScope)\n } catch (_error) {\n return null\n }\n}\n","import { getStaticValue } from \"./get-static-value\"\n\n/**\n * Get the value of a given node if it's a literal or a template literal.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is an Identifier node and this scope was given, this checks the variable of the identifier, and returns the value of it if the variable is a constant.\n * @returns {string|null} The value of the node, or `null`.\n */\nexport function getStringIfConstant(node, initialScope = null) {\n // Handle the literals that the platform doesn't support natively.\n if (node && node.type === \"Literal\" && node.value === null) {\n if (node.regex) {\n return `/${node.regex.pattern}/${node.regex.flags}`\n }\n if (node.bigint) {\n return node.bigint\n }\n }\n\n const evaluated = getStaticValue(node, initialScope)\n return evaluated && String(evaluated.value)\n}\n","import { getStringIfConstant } from \"./get-string-if-constant\"\n\n/**\n * Get the property name from a MemberExpression node or a Property node.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it.\n * @returns {string|null} The property name of the node.\n */\nexport function getPropertyName(node, initialScope) {\n switch (node.type) {\n case \"MemberExpression\":\n if (node.computed) {\n return getStringIfConstant(node.property, initialScope)\n }\n return node.property.name\n\n case \"Property\":\n case \"MethodDefinition\":\n if (node.computed) {\n return getStringIfConstant(node.key, initialScope)\n }\n if (node.key.type === \"Literal\") {\n return String(node.key.value)\n }\n return node.key.name\n\n // no default\n }\n\n return null\n}\n","import { getPropertyName } from \"./get-property-name\"\n\n/**\n * Get the name and kind of the given function node.\n * @param {ASTNode} node - The function node to get.\n * @returns {string} The name and kind of the function node.\n */\nexport function getFunctionNameWithKind(node) {\n const parent = node.parent\n const tokens = []\n\n if (parent.type === \"MethodDefinition\" && parent.static) {\n tokens.push(\"static\")\n }\n if (node.async) {\n tokens.push(\"async\")\n }\n if (node.generator) {\n tokens.push(\"generator\")\n }\n\n if (node.type === \"ArrowFunctionExpression\") {\n tokens.push(\"arrow\", \"function\")\n } else if (\n parent.type === \"Property\" ||\n parent.type === \"MethodDefinition\"\n ) {\n if (parent.kind === \"constructor\") {\n return \"constructor\"\n }\n if (parent.kind === \"get\") {\n tokens.push(\"getter\")\n } else if (parent.kind === \"set\") {\n tokens.push(\"setter\")\n } else {\n tokens.push(\"method\")\n }\n } else {\n tokens.push(\"function\")\n }\n\n if (node.id) {\n tokens.push(`'${node.id.name}'`)\n } else {\n const name = getPropertyName(parent)\n\n if (name) {\n tokens.push(`'${name}'`)\n }\n }\n\n return tokens.join(\" \")\n}\n","import evk from \"eslint-visitor-keys\"\n\nconst typeConversionBinaryOps = Object.freeze(\n new Set([\n \"==\",\n \"!=\",\n \"<\",\n \"<=\",\n \">\",\n \">=\",\n \"<<\",\n \">>\",\n \">>>\",\n \"+\",\n \"-\",\n \"*\",\n \"/\",\n \"%\",\n \"|\",\n \"^\",\n \"&\",\n \"in\",\n ])\n)\nconst typeConversionUnaryOps = Object.freeze(new Set([\"-\", \"+\", \"!\", \"~\"]))\nconst visitor = Object.freeze(\n Object.assign(Object.create(null), {\n $visit(node, options, visitorKeys) {\n const { type } = node\n\n if (typeof this[type] === \"function\") {\n return this[type](node, options, visitorKeys)\n }\n\n return this.$visitChildren(node, options, visitorKeys)\n },\n\n $visitChildren(node, options, visitorKeys) {\n const { type } = node\n\n for (const key of visitorKeys[type] || evk.getKeys(node)) {\n const value = node[key]\n\n if (Array.isArray(value)) {\n for (const element of value) {\n if (\n element &&\n this.$visit(element, options, visitorKeys)\n ) {\n return true\n }\n }\n } else if (value && this.$visit(value, options, visitorKeys)) {\n return true\n }\n }\n\n return false\n },\n\n ArrowFunctionExpression() {\n return false\n },\n AssignmentExpression() {\n return true\n },\n AwaitExpression() {\n return true\n },\n BinaryExpression(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n typeConversionBinaryOps.has(node.operator) &&\n (node.left.type !== \"Literal\" || node.right.type !== \"Literal\")\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n CallExpression() {\n return true\n },\n FunctionExpression() {\n return false\n },\n ImportExpression() {\n return true\n },\n MemberExpression(node, options, visitorKeys) {\n if (options.considerGetters) {\n return true\n }\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.property.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n MethodDefinition(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.key.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n NewExpression() {\n return true\n },\n Property(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.key.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n UnaryExpression(node, options, visitorKeys) {\n if (node.operator === \"delete\") {\n return true\n }\n if (\n options.considerImplicitTypeConversion &&\n typeConversionUnaryOps.has(node.operator) &&\n node.argument.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n UpdateExpression() {\n return true\n },\n YieldExpression() {\n return true\n },\n })\n)\n\n/**\n * Check whether a given node has any side effect or not.\n * @param {Node} node The node to get.\n * @param {SourceCode} sourceCode The source code object.\n * @param {object} [options] The option object.\n * @param {boolean} [options.considerGetters=false] If `true` then it considers member accesses as the node which has side effects.\n * @param {boolean} [options.considerImplicitTypeConversion=false] If `true` then it considers implicit type conversion as the node which has side effects.\n * @param {object} [options.visitorKeys=evk.KEYS] The keys to traverse nodes. Use `context.getSourceCode().visitorKeys`.\n * @returns {boolean} `true` if the node has a certain side effect.\n */\nexport function hasSideEffect(\n node,\n sourceCode,\n { considerGetters = false, considerImplicitTypeConversion = false } = {}\n) {\n return visitor.$visit(\n node,\n { considerGetters, considerImplicitTypeConversion },\n sourceCode.visitorKeys || evk.KEYS\n )\n}\n","import { isClosingParenToken, isOpeningParenToken } from \"./token-predicate\"\n\n/**\n * Get the left parenthesis of the parent node syntax if it exists.\n * E.g., `if (a) {}` then the `(`.\n * @param {Node} node The AST node to check.\n * @param {SourceCode} sourceCode The source code object to get tokens.\n * @returns {Token|null} The left parenthesis of the parent node syntax\n */\nfunction getParentSyntaxParen(node, sourceCode) {\n const parent = node.parent\n\n switch (parent.type) {\n case \"CallExpression\":\n case \"NewExpression\":\n if (parent.arguments.length === 1 && parent.arguments[0] === node) {\n return sourceCode.getTokenAfter(\n parent.callee,\n isOpeningParenToken\n )\n }\n return null\n\n case \"DoWhileStatement\":\n if (parent.test === node) {\n return sourceCode.getTokenAfter(\n parent.body,\n isOpeningParenToken\n )\n }\n return null\n\n case \"IfStatement\":\n case \"WhileStatement\":\n if (parent.test === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n case \"ImportExpression\":\n if (parent.source === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n case \"SwitchStatement\":\n if (parent.discriminant === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n case \"WithStatement\":\n if (parent.object === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n default:\n return null\n }\n}\n\n/**\n * Check whether a given node is parenthesized or not.\n * @param {number} times The number of parantheses.\n * @param {Node} node The AST node to check.\n * @param {SourceCode} sourceCode The source code object to get tokens.\n * @returns {boolean} `true` if the node is parenthesized the given times.\n */\n/**\n * Check whether a given node is parenthesized or not.\n * @param {Node} node The AST node to check.\n * @param {SourceCode} sourceCode The source code object to get tokens.\n * @returns {boolean} `true` if the node is parenthesized.\n */\nexport function isParenthesized(\n timesOrNode,\n nodeOrSourceCode,\n optionalSourceCode\n) {\n let times, node, sourceCode, maybeLeftParen, maybeRightParen\n if (typeof timesOrNode === \"number\") {\n times = timesOrNode | 0\n node = nodeOrSourceCode\n sourceCode = optionalSourceCode\n if (!(times >= 1)) {\n throw new TypeError(\"'times' should be a positive integer.\")\n }\n } else {\n times = 1\n node = timesOrNode\n sourceCode = nodeOrSourceCode\n }\n\n if (node == null) {\n return false\n }\n\n maybeLeftParen = maybeRightParen = node\n do {\n maybeLeftParen = sourceCode.getTokenBefore(maybeLeftParen)\n maybeRightParen = sourceCode.getTokenAfter(maybeRightParen)\n } while (\n maybeLeftParen != null &&\n maybeRightParen != null &&\n isOpeningParenToken(maybeLeftParen) &&\n isClosingParenToken(maybeRightParen) &&\n // Avoid false positive such as `if (a) {}`\n maybeLeftParen !== getParentSyntaxParen(node, sourceCode) &&\n --times > 0\n )\n\n return times === 0\n}\n","/**\n * @author Toru Nagashima <https://github.com/mysticatea>\n * See LICENSE file in root directory for full license.\n */\n\nconst placeholder = /\\$(?:[$&`']|[1-9][0-9]?)/gu\n\n/** @type {WeakMap<PatternMatcher, {pattern:RegExp,escaped:boolean}>} */\nconst internal = new WeakMap()\n\n/**\n * Check whether a given character is escaped or not.\n * @param {string} str The string to check.\n * @param {number} index The location of the character to check.\n * @returns {boolean} `true` if the character is escaped.\n */\nfunction isEscaped(str, index) {\n let escaped = false\n for (let i = index - 1; i >= 0 && str.charCodeAt(i) === 0x5c; --i) {\n escaped = !escaped\n }\n return escaped\n}\n\n/**\n * Replace a given string by a given matcher.\n * @param {PatternMatcher} matcher The pattern matcher.\n * @param {string} str The string to be replaced.\n * @param {string} replacement The new substring to replace each matched part.\n * @returns {string} The replaced string.\n */\nfunction replaceS(matcher, str, replacement) {\n const chunks = []\n let index = 0\n\n /** @type {RegExpExecArray} */\n let match = null\n\n /**\n * @param {string} key The placeholder.\n * @returns {string} The replaced string.\n */\n function replacer(key) {\n switch (key) {\n case \"$$\":\n return \"$\"\n case \"$&\":\n return match[0]\n case \"$`\":\n return str.slice(0, match.index)\n case \"$'\":\n return str.slice(match.index + match[0].length)\n default: {\n const i = key.slice(1)\n if (i in match) {\n return match[i]\n }\n return key\n }\n }\n }\n\n for (match of matcher.execAll(str)) {\n chunks.push(str.slice(index, match.index))\n chunks.push(replacement.replace(placeholder, replacer))\n index = match.index + match[0].length\n }\n chunks.push(str.slice(index))\n\n return chunks.join(\"\")\n}\n\n/**\n * Replace a given string by a given matcher.\n * @param {PatternMatcher} matcher The pattern matcher.\n * @param {string} str The string to be replaced.\n * @param {(...strs[])=>string} replace The function to replace each matched part.\n * @returns {string} The replaced string.\n */\nfunction replaceF(matcher, str, replace) {\n const chunks = []\n let index = 0\n\n for (const match of matcher.execAll(str)) {\n chunks.push(str.slice(index, match.index))\n chunks.push(String(replace(...match, match.index, match.input)))\n index = match.index + match[0].length\n }\n chunks.push(str.slice(index))\n\n return chunks.join(\"\")\n}\n\n/**\n * The class to find patterns as considering escape sequences.\n */\nexport class PatternMatcher {\n /**\n * Initialize this matcher.\n * @param {RegExp} pattern The pattern to match.\n * @param {{escaped:boolean}} options The options.\n */\n constructor(pattern, { escaped = false } = {}) {\n if (!(pattern instanceof RegExp)) {\n throw new TypeError(\"'pattern' should be a RegExp instance.\")\n }\n if (!pattern.flags.includes(\"g\")) {\n throw new Error(\"'pattern' should contains 'g' flag.\")\n }\n\n internal.set(this, {\n pattern: new RegExp(pattern.source, pattern.flags),\n escaped: Boolean(escaped),\n })\n }\n\n /**\n * Find the pattern in a given string.\n * @param {string} str The string to find.\n * @returns {IterableIterator<RegExpExecArray>} The iterator which iterate the matched information.\n */\n *execAll(str) {\n const { pattern, escaped } = internal.get(this)\n let match = null\n let lastIndex = 0\n\n pattern.lastIndex = 0\n while ((match = pattern.exec(str)) != null) {\n if (escaped || !isEscaped(str, match.index)) {\n lastIndex = pattern.lastIndex\n yield match\n pattern.lastIndex = lastIndex\n }\n }\n }\n\n /**\n * Check whether the pattern is found in a given string.\n * @param {string} str The string to check.\n * @returns {boolean} `true` if the pattern was found in the string.\n */\n test(str) {\n const it = this.execAll(str)\n const ret = it.next()\n return !ret.done\n }\n\n /**\n * Replace a given string.\n * @param {string} str The string to be replaced.\n * @param {(string|((...strs:string[])=>string))} replacer The string or function to replace. This is the same as the 2nd argument of `String.prototype.replace`.\n * @returns {string} The replaced string.\n */\n [Symbol.replace](str, replacer) {\n return typeof replacer === \"function\"\n ? replaceF(this, String(str), replacer)\n : replaceS(this, String(str), String(replacer))\n }\n}\n","import { findVariable } from \"./find-variable\"\nimport { getPropertyName } from \"./get-property-name\"\nimport { getStringIfConstant } from \"./get-string-if-constant\"\n\nconst IMPORT_TYPE = /^(?:Import|Export(?:All|Default|Named))Declaration$/u\nconst has = Function.call.bind(Object.hasOwnProperty)\n\nexport const READ = Symbol(\"read\")\nexport const CALL = Symbol(\"call\")\nexport const CONSTRUCT = Symbol(\"construct\")\nexport const ESM = Symbol(\"esm\")\n\nconst requireCall = { require: { [CALL]: true } }\n\n/**\n * Check whether a given variable is modified or not.\n * @param {Variable} variable The variable to check.\n * @returns {boolean} `true` if the variable is modified.\n */\nfunction isModifiedGlobal(variable) {\n return (\n variable == null ||\n variable.defs.length !== 0 ||\n variable.references.some(r => r.isWrite())\n )\n}\n\n/**\n * Check if the value of a given node is passed through to the parent syntax as-is.\n * For example, `a` and `b` in (`a || b` and `c ? a : b`) are passed through.\n * @param {Node} node A node to check.\n * @returns {boolean} `true` if the node is passed through.\n */\nfunction isPassThrough(node) {\n const parent = node.parent\n\n switch (parent && parent.type) {\n case \"ConditionalExpression\":\n return parent.consequent === node || parent.alternate === node\n case \"LogicalExpression\":\n return true\n case \"SequenceExpression\":\n return parent.expressions[parent.expressions.length - 1] === node\n\n default:\n return false\n }\n}\n\n/**\n * The reference tracker.\n */\nexport class ReferenceTracker {\n /**\n * Initialize this tracker.\n * @param {Scope} globalScope The global scope.\n * @param {object} [options] The options.\n * @param {\"legacy\"|\"strict\"} [options.mode=\"strict\"] The mode to determine the ImportDeclaration's behavior for CJS modules.\n * @param {string[]} [options.globalObjectNames=[\"global\",\"self\",\"window\"]] The variable names for Global Object.\n */\n constructor(\n globalScope,\n {\n mode = \"strict\",\n globalObjectNames = [\"global\", \"self\", \"window\"],\n } = {}\n ) {\n this.variableStack = []\n this.globalScope = globalScope\n this.mode = mode\n this.globalObjectNames = globalObjectNames.slice(0)\n }\n\n /**\n * Iterate the references of global variables.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *iterateGlobalReferences(traceMap) {\n for (const key of Object.keys(traceMap)) {\n const nextTraceMap = traceMap[key]\n const path = [key]\n const variable = this.globalScope.set.get(key)\n\n if (isModifiedGlobal(variable)) {\n continue\n }\n\n yield* this._iterateVariableReferences(\n variable,\n path,\n nextTraceMap,\n true\n )\n }\n\n for (const key of this.globalObjectNames) {\n const path = []\n const variable = this.globalScope.set.get(key)\n\n if (isModifiedGlobal(variable)) {\n continue\n }\n\n yield* this._iterateVariableReferences(\n variable,\n path,\n traceMap,\n false\n )\n }\n }\n\n /**\n * Iterate the references of CommonJS modules.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *iterateCjsReferences(traceMap) {\n for (const { node } of this.iterateGlobalReferences(requireCall)) {\n const key = getStringIfConstant(node.arguments[0])\n if (key == null || !has(traceMap, key)) {\n continue\n }\n\n const nextTraceMap = traceMap[key]\n const path = [key]\n\n if (nextTraceMap[READ]) {\n yield {\n node,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iteratePropertyReferences(node, path, nextTraceMap)\n }\n }\n\n /**\n * Iterate the references of ES modules.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *iterateEsmReferences(traceMap) {\n const programNode = this.globalScope.block\n\n for (const node of programNode.body) {\n if (!IMPORT_TYPE.test(node.type) || node.source == null) {\n continue\n }\n const moduleId = node.source.value\n\n if (!has(traceMap, moduleId)) {\n continue\n }\n const nextTraceMap = traceMap[moduleId]\n const path = [moduleId]\n\n if (nextTraceMap[READ]) {\n yield { node, path, type: READ, info: nextTraceMap[READ] }\n }\n\n if (node.type === \"ExportAllDeclaration\") {\n for (const key of Object.keys(nextTraceMap)) {\n const exportTraceMap = nextTraceMap[key]\n if (exportTraceMap[READ]) {\n yield {\n node,\n path: path.concat(key),\n type: READ,\n info: exportTraceMap[READ],\n }\n }\n }\n } else {\n for (const specifier of node.specifiers) {\n const esm = has(nextTraceMap, ESM)\n const it = this._iterateImportReferences(\n specifier,\n path,\n esm\n ? nextTraceMap\n : this.mode === \"legacy\"\n ? Object.assign(\n { default: nextTraceMap },\n nextTraceMap\n )\n : { default: nextTraceMap }\n )\n\n if (esm) {\n yield* it\n } else {\n for (const report of it) {\n report.path = report.path.filter(exceptDefault)\n if (\n report.path.length >= 2 ||\n report.type !== READ\n ) {\n yield report\n }\n }\n }\n }\n }\n }\n }\n\n /**\n * Iterate the references for a given variable.\n * @param {Variable} variable The variable to iterate that references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @param {boolean} shouldReport = The flag to report those references.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *_iterateVariableReferences(variable, path, traceMap, shouldReport) {\n if (this.variableStack.includes(variable)) {\n return\n }\n this.variableStack.push(variable)\n try {\n for (const reference of variable.references) {\n if (!reference.isRead()) {\n continue\n }\n const node = reference.identifier\n\n if (shouldReport && traceMap[READ]) {\n yield { node, path, type: READ, info: traceMap[READ] }\n }\n yield* this._iteratePropertyReferences(node, path, traceMap)\n }\n } finally {\n this.variableStack.pop()\n }\n }\n\n /**\n * Iterate the references for a given AST node.\n * @param rootNode The AST node to iterate references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n //eslint-disable-next-line complexity\n *_iteratePropertyReferences(rootNode, path, traceMap) {\n let node = rootNode\n while (isPassThrough(node)) {\n node = node.parent\n }\n\n const parent = node.parent\n if (parent.type === \"MemberExpression\") {\n if (parent.object === node) {\n const key = getPropertyName(parent)\n if (key == null || !has(traceMap, key)) {\n return\n }\n\n path = path.concat(key) //eslint-disable-line no-param-reassign\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: parent,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iteratePropertyReferences(\n parent,\n path,\n nextTraceMap\n )\n }\n return\n }\n if (parent.type === \"CallExpression\") {\n if (parent.callee === node && traceMap[CALL]) {\n yield { node: parent, path, type: CALL, info: traceMap[CALL] }\n }\n return\n }\n if (parent.type === \"NewExpression\") {\n if (parent.callee === node && traceMap[CONSTRUCT]) {\n yield {\n node: parent,\n path,\n type: CONSTRUCT,\n info: traceMap[CONSTRUCT],\n }\n }\n return\n }\n if (parent.type === \"AssignmentExpression\") {\n if (parent.right === node) {\n yield* this._iterateLhsReferences(parent.left, path, traceMap)\n yield* this._iteratePropertyReferences(parent, path, traceMap)\n }\n return\n }\n if (parent.type === \"AssignmentPattern\") {\n if (parent.right === node) {\n yield* this._iterateLhsReferences(parent.left, path, traceMap)\n }\n return\n }\n if (parent.type === \"VariableDeclarator\") {\n if (parent.init === node) {\n yield* this._iterateLhsReferences(parent.id, path, traceMap)\n }\n }\n }\n\n /**\n * Iterate the references for a given Pattern node.\n * @param {Node} patternNode The Pattern node to iterate references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *_iterateLhsReferences(patternNode, path, traceMap) {\n if (patternNode.type === \"Identifier\") {\n const variable = findVariable(this.globalScope, patternNode)\n if (variable != null) {\n yield* this._iterateVariableReferences(\n variable,\n path,\n traceMap,\n false\n )\n }\n return\n }\n if (patternNode.type === \"ObjectPattern\") {\n for (const property of patternNode.properties) {\n const key = getPropertyName(property)\n\n if (key == null || !has(traceMap, key)) {\n continue\n }\n\n const nextPath = path.concat(key)\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: property,\n path: nextPath,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iterateLhsReferences(\n property.value,\n nextPath,\n nextTraceMap\n )\n }\n return\n }\n if (patternNode.type === \"AssignmentPattern\") {\n yield* this._iterateLhsReferences(patternNode.left, path, traceMap)\n }\n }\n\n /**\n * Iterate the references for a given ModuleSpecifier node.\n * @param {Node} specifierNode The ModuleSpecifier node to iterate references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *_iterateImportReferences(specifierNode, path, traceMap) {\n const type = specifierNode.type\n\n if (type === \"ImportSpecifier\" || type === \"ImportDefaultSpecifier\") {\n const key =\n type === \"ImportDefaultSpecifier\"\n ? \"default\"\n : specifierNode.imported.name\n if (!has(traceMap, key)) {\n return\n }\n\n path = path.concat(key) //eslint-disable-line no-param-reassign\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: specifierNode,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iterateVariableReferences(\n findVariable(this.globalScope, specifierNode.local),\n path,\n nextTraceMap,\n false\n )\n\n return\n }\n\n if (type === \"ImportNamespaceSpecifier\") {\n yield* this._iterateVariableReferences(\n findVariable(this.globalScope, specifierNode.local),\n path,\n traceMap,\n false\n )\n return\n }\n\n if (type === \"ExportSpecifier\") {\n const key = specifierNode.local.name\n if (!has(traceMap, key)) {\n return\n }\n\n path = path.concat(key) //eslint-disable-line no-param-reassign\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: specifierNode,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n }\n }\n}\n\nReferenceTracker.READ = READ\nReferenceTracker.CALL = CALL\nReferenceTracker.CONSTRUCT = CONSTRUCT\nReferenceTracker.ESM = ESM\n\n/**\n * This is a predicate function for Array#filter.\n * @param {string} name A name part.\n * @param {number} index The index of the name.\n * @returns {boolean} `false` if it's default.\n */\nfunction exceptDefault(name, index) {\n return !(index === 1 && name === \"default\")\n}\n","import { findVariable } from \"./find-variable\"\nimport { getFunctionHeadLocation } from \"./get-function-head-location\"\nimport { getFunctionNameWithKind } from \"./get-function-name-with-kind\"\nimport { getInnermostScope } from \"./get-innermost-scope\"\nimport { getPropertyName } from \"./get-property-name\"\nimport { getStaticValue } from \"./get-static-value\"\nimport { getStringIfConstant } from \"./get-string-if-constant\"\nimport { hasSideEffect } from \"./has-side-effect\"\nimport { isParenthesized } from \"./is-parenthesized\"\nimport { PatternMatcher } from \"./pattern-matcher\"\nimport {\n CALL,\n CONSTRUCT,\n ESM,\n READ,\n ReferenceTracker,\n} from \"./reference-tracker\"\nimport {\n isArrowToken,\n isClosingBraceToken,\n isClosingBracketToken,\n isClosingParenToken,\n isColonToken,\n isCommaToken,\n isCommentToken,\n isNotArrowToken,\n isNotClosingBraceToken,\n isNotClosingBracketToken,\n isNotClosingParenToken,\n isNotColonToken,\n isNotCommaToken,\n isNotCommentToken,\n isNotOpeningBraceToken,\n isNotOpeningBracketToken,\n isNotOpeningParenToken,\n isNotSemicolonToken,\n isOpeningBraceToken,\n isOpeningBracketToken,\n isOpeningParenToken,\n isSemicolonToken,\n} from \"./token-predicate\"\n\nexport default {\n CALL,\n CONSTRUCT,\n ESM,\n findVariable,\n getFunctionHeadLocation,\n getFunctionNameWithKind,\n getInnermostScope,\n getPropertyName,\n getStaticValue,\n getStringIfConstant,\n hasSideEffect,\n isArrowToken,\n isClosingBraceToken,\n isClosingBracketToken,\n isClosingParenToken,\n isColonToken,\n isCommaToken,\n isCommentToken,\n isNotArrowToken,\n isNotClosingBraceToken,\n isNotClosingBracketToken,\n isNotClosingParenToken,\n isNotColonToken,\n isNotCommaToken,\n isNotCommentToken,\n isNotOpeningBraceToken,\n isNotOpeningBracketToken,\n isNotOpeningParenToken,\n isNotSemicolonToken,\n isOpeningBraceToken,\n isOpeningBracketToken,\n isOpeningParenToken,\n isParenthesized,\n isSemicolonToken,\n PatternMatcher,\n READ,\n ReferenceTracker,\n}\nexport {\n CALL,\n CONSTRUCT,\n ESM,\n findVariable,\n getFunctionHeadLocation,\n getFunctionNameWithKind,\n getInnermostScope,\n getPropertyName,\n getStaticValue,\n getStringIfConstant,\n hasSideEffect,\n isArrowToken,\n isClosingBraceToken,\n isClosingBracketToken,\n isClosingParenToken,\n isColonToken,\n isCommaToken,\n isCommentToken,\n isNotArrowToken,\n isNotClosingBraceToken,\n isNotClosingBracketToken,\n isNotClosingParenToken,\n isNotColonToken,\n isNotCommaToken,\n isNotCommentToken,\n isNotOpeningBraceToken,\n isNotOpeningBracketToken,\n isNotOpeningParenToken,\n isNotSemicolonToken,\n isOpeningBraceToken,\n isOpeningBracketToken,\n isOpeningParenToken,\n isParenthesized,\n isSemicolonToken,\n PatternMatcher,\n READ,\n ReferenceTracker,\n}\n"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;AAMA,AAAO,SAAS,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE;IAClD,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAC;;IAE9B,IAAI,KAAK,GAAG,aAAY;IACxB,IAAI,KAAK,GAAG,MAAK;IACjB,GAAG;QACC,KAAK,GAAG,MAAK;QACb,KAAK,MAAM,UAAU,IAAI,KAAK,CAAC,WAAW,EAAE;YACxC,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,MAAK;;YAEpC,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,QAA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;;;;;;;;;;;;;;;"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/index.mjs b/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/index.mjs
deleted file mode 100644
index 4b2a20e..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/index.mjs
+++ /dev/null
@@ -1,1785 +0,0 @@
-/*! @author Toru Nagashima <https://github.com/mysticatea> */
-import evk from 'eslint-visitor-keys';
-
-/**
- * Get the innermost scope which contains a given location.
- * @param {Scope} initialScope The initial scope to search.
- * @param {Node} node The location to search.
- * @returns {Scope} The innermost scope.
- */
-function getInnermostScope(initialScope, node) {
- const location = node.range[0];
-
- let scope = initialScope;
- let found = false;
- do {
- found = false;
- for (const childScope of scope.childScopes) {
- const range = childScope.block.range;
-
- if (range[0] <= location && location < range[1]) {
- scope = childScope;
- found = true;
- break
- }
- }
- } while (found)
-
- return scope
-}
-
-/**
- * Find the variable of a given name.
- * @param {Scope} initialScope The scope to start finding.
- * @param {string|Node} nameOrNode The variable name to find. If this is a Node object then it should be an Identifier node.
- * @returns {Variable|null} The found variable or null.
- */
-function findVariable(initialScope, nameOrNode) {
- let name = "";
- let scope = initialScope;
-
- if (typeof nameOrNode === "string") {
- name = nameOrNode;
- } else {
- name = nameOrNode.name;
- scope = getInnermostScope(scope, nameOrNode);
- }
-
- while (scope != null) {
- const variable = scope.set.get(name);
- if (variable != null) {
- return variable
- }
- scope = scope.upper;
- }
-
- return null
-}
-
-/**
- * Negate the result of `this` calling.
- * @param {Token} token The token to check.
- * @returns {boolean} `true` if the result of `this(token)` is `false`.
- */
-function negate0(token) {
- return !this(token) //eslint-disable-line no-invalid-this
-}
-
-/**
- * Creates the negate function of the given function.
- * @param {function(Token):boolean} f - The function to negate.
- * @returns {function(Token):boolean} Negated function.
- */
-function negate(f) {
- return negate0.bind(f)
-}
-
-/**
- * Checks if the given token is an arrow token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is an arrow token.
- */
-function isArrowToken(token) {
- return token.value === "=>" && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is a comma token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is a comma token.
- */
-function isCommaToken(token) {
- return token.value === "," && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is a semicolon token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is a semicolon token.
- */
-function isSemicolonToken(token) {
- return token.value === ";" && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is a colon token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is a colon token.
- */
-function isColonToken(token) {
- return token.value === ":" && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is an opening parenthesis token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is an opening parenthesis token.
- */
-function isOpeningParenToken(token) {
- return token.value === "(" && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is a closing parenthesis token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is a closing parenthesis token.
- */
-function isClosingParenToken(token) {
- return token.value === ")" && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is an opening square bracket token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is an opening square bracket token.
- */
-function isOpeningBracketToken(token) {
- return token.value === "[" && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is a closing square bracket token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is a closing square bracket token.
- */
-function isClosingBracketToken(token) {
- return token.value === "]" && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is an opening brace token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is an opening brace token.
- */
-function isOpeningBraceToken(token) {
- return token.value === "{" && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is a closing brace token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is a closing brace token.
- */
-function isClosingBraceToken(token) {
- return token.value === "}" && token.type === "Punctuator"
-}
-
-/**
- * Checks if the given token is a comment token or not.
- * @param {Token} token - The token to check.
- * @returns {boolean} `true` if the token is a comment token.
- */
-function isCommentToken(token) {
- return (
- token.type === "Line" ||
- token.type === "Block" ||
- token.type === "Shebang"
- )
-}
-
-const isNotArrowToken = negate(isArrowToken);
-const isNotCommaToken = negate(isCommaToken);
-const isNotSemicolonToken = negate(isSemicolonToken);
-const isNotColonToken = negate(isColonToken);
-const isNotOpeningParenToken = negate(isOpeningParenToken);
-const isNotClosingParenToken = negate(isClosingParenToken);
-const isNotOpeningBracketToken = negate(isOpeningBracketToken);
-const isNotClosingBracketToken = negate(isClosingBracketToken);
-const isNotOpeningBraceToken = negate(isOpeningBraceToken);
-const isNotClosingBraceToken = negate(isClosingBraceToken);
-const isNotCommentToken = negate(isCommentToken);
-
-/**
- * Get the `(` token of the given function node.
- * @param {Node} node - The function node to get.
- * @param {SourceCode} sourceCode - The source code object to get tokens.
- * @returns {Token} `(` token.
- */
-function getOpeningParenOfParams(node, sourceCode) {
- return node.id
- ? sourceCode.getTokenAfter(node.id, isOpeningParenToken)
- : sourceCode.getFirstToken(node, isOpeningParenToken)
-}
-
-/**
- * Get the location of the given function node for reporting.
- * @param {Node} node - The function node to get.
- * @param {SourceCode} sourceCode - The source code object to get tokens.
- * @returns {string} The location of the function node for reporting.
- */
-function getFunctionHeadLocation(node, sourceCode) {
- const parent = node.parent;
- let start = null;
- let end = null;
-
- if (node.type === "ArrowFunctionExpression") {
- const arrowToken = sourceCode.getTokenBefore(node.body, isArrowToken);
-
- start = arrowToken.loc.start;
- end = arrowToken.loc.end;
- } else if (
- parent.type === "Property" ||
- parent.type === "MethodDefinition"
- ) {
- start = parent.loc.start;
- end = getOpeningParenOfParams(node, sourceCode).loc.start;
- } else {
- start = node.loc.start;
- end = getOpeningParenOfParams(node, sourceCode).loc.start;
- }
-
- return {
- start: Object.assign({}, start),
- end: Object.assign({}, end),
- }
-}
-
-/* globals BigInt, globalThis, global, self, window */
-
-const globalObject =
- typeof globalThis !== "undefined"
- ? globalThis
- : typeof self !== "undefined"
- ? self
- : typeof window !== "undefined"
- ? window
- : typeof global !== "undefined"
- ? global
- : {};
-
-const builtinNames = Object.freeze(
- new Set([
- "Array",
- "ArrayBuffer",
- "BigInt",
- "BigInt64Array",
- "BigUint64Array",
- "Boolean",
- "DataView",
- "Date",
- "decodeURI",
- "decodeURIComponent",
- "encodeURI",
- "encodeURIComponent",
- "escape",
- "Float32Array",
- "Float64Array",
- "Function",
- "Infinity",
- "Int16Array",
- "Int32Array",
- "Int8Array",
- "isFinite",
- "isNaN",
- "isPrototypeOf",
- "JSON",
- "Map",
- "Math",
- "NaN",
- "Number",
- "Object",
- "parseFloat",
- "parseInt",
- "Promise",
- "Proxy",
- "Reflect",
- "RegExp",
- "Set",
- "String",
- "Symbol",
- "Uint16Array",
- "Uint32Array",
- "Uint8Array",
- "Uint8ClampedArray",
- "undefined",
- "unescape",
- "WeakMap",
- "WeakSet",
- ])
-);
-const callAllowed = new Set(
- [
- Array.isArray,
- typeof BigInt === "function" ? BigInt : undefined,
- Boolean,
- Date,
- Date.parse,
- decodeURI,
- decodeURIComponent,
- encodeURI,
- encodeURIComponent,
- escape,
- isFinite,
- isNaN,
- isPrototypeOf,
- ...Object.getOwnPropertyNames(Math)
- .map(k => Math[k])
- .filter(f => typeof f === "function"),
- Number,
- Number.isFinite,
- Number.isNaN,
- Number.parseFloat,
- Number.parseInt,
- Object,
- Object.entries,
- Object.is,
- Object.isExtensible,
- Object.isFrozen,
- Object.isSealed,
- Object.keys,
- Object.values,
- parseFloat,
- parseInt,
- RegExp,
- String,
- String.fromCharCode,
- String.fromCodePoint,
- String.raw,
- Symbol,
- Symbol.for,
- Symbol.keyFor,
- unescape,
- ].filter(f => typeof f === "function")
-);
-const callPassThrough = new Set([
- Object.freeze,
- Object.preventExtensions,
- Object.seal,
-]);
-
-/**
- * Get the property descriptor.
- * @param {object} object The object to get.
- * @param {string|number|symbol} name The property name to get.
- */
-function getPropertyDescriptor(object, name) {
- let x = object;
- while ((typeof x === "object" || typeof x === "function") && x !== null) {
- const d = Object.getOwnPropertyDescriptor(x, name);
- if (d) {
- return d
- }
- x = Object.getPrototypeOf(x);
- }
- return null
-}
-
-/**
- * Check if a property is getter or not.
- * @param {object} object The object to check.
- * @param {string|number|symbol} name The property name to check.
- */
-function isGetter(object, name) {
- const d = getPropertyDescriptor(object, name);
- return d != null && d.get != null
-}
-
-/**
- * Get the element values of a given node list.
- * @param {Node[]} nodeList The node list to get values.
- * @param {Scope|undefined} initialScope The initial scope to find variables.
- * @returns {any[]|null} The value list if all nodes are constant. Otherwise, null.
- */
-function getElementValues(nodeList, initialScope) {
- const valueList = [];
-
- for (let i = 0; i < nodeList.length; ++i) {
- const elementNode = nodeList[i];
-
- if (elementNode == null) {
- valueList.length = i + 1;
- } else if (elementNode.type === "SpreadElement") {
- const argument = getStaticValueR(elementNode.argument, initialScope);
- if (argument == null) {
- return null
- }
- valueList.push(...argument.value);
- } else {
- const element = getStaticValueR(elementNode, initialScope);
- if (element == null) {
- return null
- }
- valueList.push(element.value);
- }
- }
-
- return valueList
-}
-
-const operations = Object.freeze({
- ArrayExpression(node, initialScope) {
- const elements = getElementValues(node.elements, initialScope);
- return elements != null ? { value: elements } : null
- },
-
- AssignmentExpression(node, initialScope) {
- if (node.operator === "=") {
- return getStaticValueR(node.right, initialScope)
- }
- return null
- },
-
- //eslint-disable-next-line complexity
- BinaryExpression(node, initialScope) {
- if (node.operator === "in" || node.operator === "instanceof") {
- // Not supported.
- return null
- }
-
- const left = getStaticValueR(node.left, initialScope);
- const right = getStaticValueR(node.right, initialScope);
- if (left != null && right != null) {
- switch (node.operator) {
- case "==":
- return { value: left.value == right.value } //eslint-disable-line eqeqeq
- case "!=":
- return { value: left.value != right.value } //eslint-disable-line eqeqeq
- case "===":
- return { value: left.value === right.value }
- case "!==":
- return { value: left.value !== right.value }
- case "<":
- return { value: left.value < right.value }
- case "<=":
- return { value: left.value <= right.value }
- case ">":
- return { value: left.value > right.value }
- case ">=":
- return { value: left.value >= right.value }
- case "<<":
- return { value: left.value << right.value }
- case ">>":
- return { value: left.value >> right.value }
- case ">>>":
- return { value: left.value >>> right.value }
- case "+":
- return { value: left.value + right.value }
- case "-":
- return { value: left.value - right.value }
- case "*":
- return { value: left.value * right.value }
- case "/":
- return { value: left.value / right.value }
- case "%":
- return { value: left.value % right.value }
- case "**":
- return { value: Math.pow(left.value, right.value) }
- case "|":
- return { value: left.value | right.value }
- case "^":
- return { value: left.value ^ right.value }
- case "&":
- return { value: left.value & right.value }
-
- // no default
- }
- }
-
- return null
- },
-
- CallExpression(node, initialScope) {
- const calleeNode = node.callee;
- const args = getElementValues(node.arguments, initialScope);
-
- if (args != null) {
- if (calleeNode.type === "MemberExpression") {
- const object = getStaticValueR(calleeNode.object, initialScope);
- const property = calleeNode.computed
- ? getStaticValueR(calleeNode.property, initialScope)
- : { value: calleeNode.property.name };
-
- if (object != null && property != null) {
- const receiver = object.value;
- const methodName = property.value;
- if (callAllowed.has(receiver[methodName])) {
- return { value: receiver[methodName](...args) }
- }
- if (callPassThrough.has(receiver[methodName])) {
- return { value: args[0] }
- }
- }
- } else {
- const callee = getStaticValueR(calleeNode, initialScope);
- if (callee != null) {
- const func = callee.value;
- if (callAllowed.has(func)) {
- return { value: func(...args) }
- }
- if (callPassThrough.has(func)) {
- return { value: args[0] }
- }
- }
- }
- }
-
- return null
- },
-
- ConditionalExpression(node, initialScope) {
- const test = getStaticValueR(node.test, initialScope);
- if (test != null) {
- return test.value
- ? getStaticValueR(node.consequent, initialScope)
- : getStaticValueR(node.alternate, initialScope)
- }
- return null
- },
-
- ExpressionStatement(node, initialScope) {
- return getStaticValueR(node.expression, initialScope)
- },
-
- Identifier(node, initialScope) {
- if (initialScope != null) {
- const variable = findVariable(initialScope, node);
-
- // Built-in globals.
- if (
- variable != null &&
- variable.defs.length === 0 &&
- builtinNames.has(variable.name) &&
- variable.name in globalObject
- ) {
- return { value: globalObject[variable.name] }
- }
-
- // Constants.
- if (variable != null && variable.defs.length === 1) {
- const def = variable.defs[0];
- if (
- def.parent &&
- def.parent.kind === "const" &&
- // TODO(mysticatea): don't support destructuring here.
- def.node.id.type === "Identifier"
- ) {
- return getStaticValueR(def.node.init, initialScope)
- }
- }
- }
- return null
- },
-
- Literal(node) {
- //istanbul ignore if : this is implementation-specific behavior.
- if ((node.regex != null || node.bigint != null) && node.value == null) {
- // It was a RegExp/BigInt literal, but Node.js didn't support it.
- return null
- }
- return { value: node.value }
- },
-
- LogicalExpression(node, initialScope) {
- const left = getStaticValueR(node.left, initialScope);
- if (left != null) {
- if (
- (node.operator === "||" && Boolean(left.value) === true) ||
- (node.operator === "&&" && Boolean(left.value) === false)
- ) {
- return left
- }
-
- const right = getStaticValueR(node.right, initialScope);
- if (right != null) {
- return right
- }
- }
-
- return null
- },
-
- MemberExpression(node, initialScope) {
- const object = getStaticValueR(node.object, initialScope);
- const property = node.computed
- ? getStaticValueR(node.property, initialScope)
- : { value: node.property.name };
-
- if (
- object != null &&
- property != null &&
- !isGetter(object.value, property.value)
- ) {
- return { value: object.value[property.value] }
- }
- return null
- },
-
- NewExpression(node, initialScope) {
- const callee = getStaticValueR(node.callee, initialScope);
- const args = getElementValues(node.arguments, initialScope);
-
- if (callee != null && args != null) {
- const Func = callee.value;
- if (callAllowed.has(Func)) {
- return { value: new Func(...args) }
- }
- }
-
- return null
- },
-
- ObjectExpression(node, initialScope) {
- const object = {};
-
- for (const propertyNode of node.properties) {
- if (propertyNode.type === "Property") {
- if (propertyNode.kind !== "init") {
- return null
- }
- const key = propertyNode.computed
- ? getStaticValueR(propertyNode.key, initialScope)
- : { value: propertyNode.key.name };
- const value = getStaticValueR(propertyNode.value, initialScope);
- if (key == null || value == null) {
- return null
- }
- object[key.value] = value.value;
- } else if (
- propertyNode.type === "SpreadElement" ||
- propertyNode.type === "ExperimentalSpreadProperty"
- ) {
- const argument = getStaticValueR(
- propertyNode.argument,
- initialScope
- );
- if (argument == null) {
- return null
- }
- Object.assign(object, argument.value);
- } else {
- return null
- }
- }
-
- return { value: object }
- },
-
- SequenceExpression(node, initialScope) {
- const last = node.expressions[node.expressions.length - 1];
- return getStaticValueR(last, initialScope)
- },
-
- TaggedTemplateExpression(node, initialScope) {
- const tag = getStaticValueR(node.tag, initialScope);
- const expressions = getElementValues(
- node.quasi.expressions,
- initialScope
- );
-
- if (tag != null && expressions != null) {
- const func = tag.value;
- const strings = node.quasi.quasis.map(q => q.value.cooked);
- strings.raw = node.quasi.quasis.map(q => q.value.raw);
-
- if (func === String.raw) {
- return { value: func(strings, ...expressions) }
- }
- }
-
- return null
- },
-
- TemplateLiteral(node, initialScope) {
- const expressions = getElementValues(node.expressions, initialScope);
- if (expressions != null) {
- let value = node.quasis[0].value.cooked;
- for (let i = 0; i < expressions.length; ++i) {
- value += expressions[i];
- value += node.quasis[i + 1].value.cooked;
- }
- return { value }
- }
- return null
- },
-
- UnaryExpression(node, initialScope) {
- if (node.operator === "delete") {
- // Not supported.
- return null
- }
- if (node.operator === "void") {
- return { value: undefined }
- }
-
- const arg = getStaticValueR(node.argument, initialScope);
- if (arg != null) {
- switch (node.operator) {
- case "-":
- return { value: -arg.value }
- case "+":
- return { value: +arg.value } //eslint-disable-line no-implicit-coercion
- case "!":
- return { value: !arg.value }
- case "~":
- return { value: ~arg.value }
- case "typeof":
- return { value: typeof arg.value }
-
- // no default
- }
- }
-
- return null
- },
-});
-
-/**
- * Get the value of a given node if it's a static value.
- * @param {Node} node The node to get.
- * @param {Scope|undefined} initialScope The scope to start finding variable.
- * @returns {{value:any}|null} The static value of the node, or `null`.
- */
-function getStaticValueR(node, initialScope) {
- if (node != null && Object.hasOwnProperty.call(operations, node.type)) {
- return operations[node.type](node, initialScope)
- }
- return null
-}
-
-/**
- * Get the value of a given node if it's a static value.
- * @param {Node} node The node to get.
- * @param {Scope} [initialScope] The scope to start finding variable. Optional. If this scope was given, this tries to resolve identifier references which are in the given node as much as possible.
- * @returns {{value:any}|null} The static value of the node, or `null`.
- */
-function getStaticValue(node, initialScope = null) {
- try {
- return getStaticValueR(node, initialScope)
- } catch (_error) {
- return null
- }
-}
-
-/**
- * Get the value of a given node if it's a literal or a template literal.
- * @param {Node} node The node to get.
- * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is an Identifier node and this scope was given, this checks the variable of the identifier, and returns the value of it if the variable is a constant.
- * @returns {string|null} The value of the node, or `null`.
- */
-function getStringIfConstant(node, initialScope = null) {
- // Handle the literals that the platform doesn't support natively.
- if (node && node.type === "Literal" && node.value === null) {
- if (node.regex) {
- return `/${node.regex.pattern}/${node.regex.flags}`
- }
- if (node.bigint) {
- return node.bigint
- }
- }
-
- const evaluated = getStaticValue(node, initialScope);
- return evaluated && String(evaluated.value)
-}
-
-/**
- * Get the property name from a MemberExpression node or a Property node.
- * @param {Node} node The node to get.
- * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it.
- * @returns {string|null} The property name of the node.
- */
-function getPropertyName(node, initialScope) {
- switch (node.type) {
- case "MemberExpression":
- if (node.computed) {
- return getStringIfConstant(node.property, initialScope)
- }
- return node.property.name
-
- case "Property":
- case "MethodDefinition":
- if (node.computed) {
- return getStringIfConstant(node.key, initialScope)
- }
- if (node.key.type === "Literal") {
- return String(node.key.value)
- }
- return node.key.name
-
- // no default
- }
-
- return null
-}
-
-/**
- * Get the name and kind of the given function node.
- * @param {ASTNode} node - The function node to get.
- * @returns {string} The name and kind of the function node.
- */
-function getFunctionNameWithKind(node) {
- const parent = node.parent;
- const tokens = [];
-
- if (parent.type === "MethodDefinition" && parent.static) {
- tokens.push("static");
- }
- if (node.async) {
- tokens.push("async");
- }
- if (node.generator) {
- tokens.push("generator");
- }
-
- if (node.type === "ArrowFunctionExpression") {
- tokens.push("arrow", "function");
- } else if (
- parent.type === "Property" ||
- parent.type === "MethodDefinition"
- ) {
- if (parent.kind === "constructor") {
- return "constructor"
- }
- if (parent.kind === "get") {
- tokens.push("getter");
- } else if (parent.kind === "set") {
- tokens.push("setter");
- } else {
- tokens.push("method");
- }
- } else {
- tokens.push("function");
- }
-
- if (node.id) {
- tokens.push(`'${node.id.name}'`);
- } else {
- const name = getPropertyName(parent);
-
- if (name) {
- tokens.push(`'${name}'`);
- }
- }
-
- return tokens.join(" ")
-}
-
-const typeConversionBinaryOps = Object.freeze(
- new Set([
- "==",
- "!=",
- "<",
- "<=",
- ">",
- ">=",
- "<<",
- ">>",
- ">>>",
- "+",
- "-",
- "*",
- "/",
- "%",
- "|",
- "^",
- "&",
- "in",
- ])
-);
-const typeConversionUnaryOps = Object.freeze(new Set(["-", "+", "!", "~"]));
-const visitor = Object.freeze(
- Object.assign(Object.create(null), {
- $visit(node, options, visitorKeys) {
- const { type } = node;
-
- if (typeof this[type] === "function") {
- return this[type](node, options, visitorKeys)
- }
-
- return this.$visitChildren(node, options, visitorKeys)
- },
-
- $visitChildren(node, options, visitorKeys) {
- const { type } = node;
-
- for (const key of visitorKeys[type] || evk.getKeys(node)) {
- const value = node[key];
-
- if (Array.isArray(value)) {
- for (const element of value) {
- if (
- element &&
- this.$visit(element, options, visitorKeys)
- ) {
- return true
- }
- }
- } else if (value && this.$visit(value, options, visitorKeys)) {
- return true
- }
- }
-
- return false
- },
-
- ArrowFunctionExpression() {
- return false
- },
- AssignmentExpression() {
- return true
- },
- AwaitExpression() {
- return true
- },
- BinaryExpression(node, options, visitorKeys) {
- if (
- options.considerImplicitTypeConversion &&
- typeConversionBinaryOps.has(node.operator) &&
- (node.left.type !== "Literal" || node.right.type !== "Literal")
- ) {
- return true
- }
- return this.$visitChildren(node, options, visitorKeys)
- },
- CallExpression() {
- return true
- },
- FunctionExpression() {
- return false
- },
- ImportExpression() {
- return true
- },
- MemberExpression(node, options, visitorKeys) {
- if (options.considerGetters) {
- return true
- }
- if (
- options.considerImplicitTypeConversion &&
- node.computed &&
- node.property.type !== "Literal"
- ) {
- return true
- }
- return this.$visitChildren(node, options, visitorKeys)
- },
- MethodDefinition(node, options, visitorKeys) {
- if (
- options.considerImplicitTypeConversion &&
- node.computed &&
- node.key.type !== "Literal"
- ) {
- return true
- }
- return this.$visitChildren(node, options, visitorKeys)
- },
- NewExpression() {
- return true
- },
- Property(node, options, visitorKeys) {
- if (
- options.considerImplicitTypeConversion &&
- node.computed &&
- node.key.type !== "Literal"
- ) {
- return true
- }
- return this.$visitChildren(node, options, visitorKeys)
- },
- UnaryExpression(node, options, visitorKeys) {
- if (node.operator === "delete") {
- return true
- }
- if (
- options.considerImplicitTypeConversion &&
- typeConversionUnaryOps.has(node.operator) &&
- node.argument.type !== "Literal"
- ) {
- return true
- }
- return this.$visitChildren(node, options, visitorKeys)
- },
- UpdateExpression() {
- return true
- },
- YieldExpression() {
- return true
- },
- })
-);
-
-/**
- * Check whether a given node has any side effect or not.
- * @param {Node} node The node to get.
- * @param {SourceCode} sourceCode The source code object.
- * @param {object} [options] The option object.
- * @param {boolean} [options.considerGetters=false] If `true` then it considers member accesses as the node which has side effects.
- * @param {boolean} [options.considerImplicitTypeConversion=false] If `true` then it considers implicit type conversion as the node which has side effects.
- * @param {object} [options.visitorKeys=evk.KEYS] The keys to traverse nodes. Use `context.getSourceCode().visitorKeys`.
- * @returns {boolean} `true` if the node has a certain side effect.
- */
-function hasSideEffect(
- node,
- sourceCode,
- { considerGetters = false, considerImplicitTypeConversion = false } = {}
-) {
- return visitor.$visit(
- node,
- { considerGetters, considerImplicitTypeConversion },
- sourceCode.visitorKeys || evk.KEYS
- )
-}
-
-/**
- * Get the left parenthesis of the parent node syntax if it exists.
- * E.g., `if (a) {}` then the `(`.
- * @param {Node} node The AST node to check.
- * @param {SourceCode} sourceCode The source code object to get tokens.
- * @returns {Token|null} The left parenthesis of the parent node syntax
- */
-function getParentSyntaxParen(node, sourceCode) {
- const parent = node.parent;
-
- switch (parent.type) {
- case "CallExpression":
- case "NewExpression":
- if (parent.arguments.length === 1 && parent.arguments[0] === node) {
- return sourceCode.getTokenAfter(
- parent.callee,
- isOpeningParenToken
- )
- }
- return null
-
- case "DoWhileStatement":
- if (parent.test === node) {
- return sourceCode.getTokenAfter(
- parent.body,
- isOpeningParenToken
- )
- }
- return null
-
- case "IfStatement":
- case "WhileStatement":
- if (parent.test === node) {
- return sourceCode.getFirstToken(parent, 1)
- }
- return null
-
- case "ImportExpression":
- if (parent.source === node) {
- return sourceCode.getFirstToken(parent, 1)
- }
- return null
-
- case "SwitchStatement":
- if (parent.discriminant === node) {
- return sourceCode.getFirstToken(parent, 1)
- }
- return null
-
- case "WithStatement":
- if (parent.object === node) {
- return sourceCode.getFirstToken(parent, 1)
- }
- return null
-
- default:
- return null
- }
-}
-
-/**
- * Check whether a given node is parenthesized or not.
- * @param {number} times The number of parantheses.
- * @param {Node} node The AST node to check.
- * @param {SourceCode} sourceCode The source code object to get tokens.
- * @returns {boolean} `true` if the node is parenthesized the given times.
- */
-/**
- * Check whether a given node is parenthesized or not.
- * @param {Node} node The AST node to check.
- * @param {SourceCode} sourceCode The source code object to get tokens.
- * @returns {boolean} `true` if the node is parenthesized.
- */
-function isParenthesized(
- timesOrNode,
- nodeOrSourceCode,
- optionalSourceCode
-) {
- let times, node, sourceCode, maybeLeftParen, maybeRightParen;
- if (typeof timesOrNode === "number") {
- times = timesOrNode | 0;
- node = nodeOrSourceCode;
- sourceCode = optionalSourceCode;
- if (!(times >= 1)) {
- throw new TypeError("'times' should be a positive integer.")
- }
- } else {
- times = 1;
- node = timesOrNode;
- sourceCode = nodeOrSourceCode;
- }
-
- if (node == null) {
- return false
- }
-
- maybeLeftParen = maybeRightParen = node;
- do {
- maybeLeftParen = sourceCode.getTokenBefore(maybeLeftParen);
- maybeRightParen = sourceCode.getTokenAfter(maybeRightParen);
- } while (
- maybeLeftParen != null &&
- maybeRightParen != null &&
- isOpeningParenToken(maybeLeftParen) &&
- isClosingParenToken(maybeRightParen) &&
- // Avoid false positive such as `if (a) {}`
- maybeLeftParen !== getParentSyntaxParen(node, sourceCode) &&
- --times > 0
- )
-
- return times === 0
-}
-
-/**
- * @author Toru Nagashima <https://github.com/mysticatea>
- * See LICENSE file in root directory for full license.
- */
-
-const placeholder = /\$(?:[$&`']|[1-9][0-9]?)/gu;
-
-/** @type {WeakMap<PatternMatcher, {pattern:RegExp,escaped:boolean}>} */
-const internal = new WeakMap();
-
-/**
- * Check whether a given character is escaped or not.
- * @param {string} str The string to check.
- * @param {number} index The location of the character to check.
- * @returns {boolean} `true` if the character is escaped.
- */
-function isEscaped(str, index) {
- let escaped = false;
- for (let i = index - 1; i >= 0 && str.charCodeAt(i) === 0x5c; --i) {
- escaped = !escaped;
- }
- return escaped
-}
-
-/**
- * Replace a given string by a given matcher.
- * @param {PatternMatcher} matcher The pattern matcher.
- * @param {string} str The string to be replaced.
- * @param {string} replacement The new substring to replace each matched part.
- * @returns {string} The replaced string.
- */
-function replaceS(matcher, str, replacement) {
- const chunks = [];
- let index = 0;
-
- /** @type {RegExpExecArray} */
- let match = null;
-
- /**
- * @param {string} key The placeholder.
- * @returns {string} The replaced string.
- */
- function replacer(key) {
- switch (key) {
- case "$$":
- return "$"
- case "$&":
- return match[0]
- case "$`":
- return str.slice(0, match.index)
- case "$'":
- return str.slice(match.index + match[0].length)
- default: {
- const i = key.slice(1);
- if (i in match) {
- return match[i]
- }
- return key
- }
- }
- }
-
- for (match of matcher.execAll(str)) {
- chunks.push(str.slice(index, match.index));
- chunks.push(replacement.replace(placeholder, replacer));
- index = match.index + match[0].length;
- }
- chunks.push(str.slice(index));
-
- return chunks.join("")
-}
-
-/**
- * Replace a given string by a given matcher.
- * @param {PatternMatcher} matcher The pattern matcher.
- * @param {string} str The string to be replaced.
- * @param {(...strs[])=>string} replace The function to replace each matched part.
- * @returns {string} The replaced string.
- */
-function replaceF(matcher, str, replace) {
- const chunks = [];
- let index = 0;
-
- for (const match of matcher.execAll(str)) {
- chunks.push(str.slice(index, match.index));
- chunks.push(String(replace(...match, match.index, match.input)));
- index = match.index + match[0].length;
- }
- chunks.push(str.slice(index));
-
- return chunks.join("")
-}
-
-/**
- * The class to find patterns as considering escape sequences.
- */
-class PatternMatcher {
- /**
- * Initialize this matcher.
- * @param {RegExp} pattern The pattern to match.
- * @param {{escaped:boolean}} options The options.
- */
- constructor(pattern, { escaped = false } = {}) {
- if (!(pattern instanceof RegExp)) {
- throw new TypeError("'pattern' should be a RegExp instance.")
- }
- if (!pattern.flags.includes("g")) {
- throw new Error("'pattern' should contains 'g' flag.")
- }
-
- internal.set(this, {
- pattern: new RegExp(pattern.source, pattern.flags),
- escaped: Boolean(escaped),
- });
- }
-
- /**
- * Find the pattern in a given string.
- * @param {string} str The string to find.
- * @returns {IterableIterator<RegExpExecArray>} The iterator which iterate the matched information.
- */
- *execAll(str) {
- const { pattern, escaped } = internal.get(this);
- let match = null;
- let lastIndex = 0;
-
- pattern.lastIndex = 0;
- while ((match = pattern.exec(str)) != null) {
- if (escaped || !isEscaped(str, match.index)) {
- lastIndex = pattern.lastIndex;
- yield match;
- pattern.lastIndex = lastIndex;
- }
- }
- }
-
- /**
- * Check whether the pattern is found in a given string.
- * @param {string} str The string to check.
- * @returns {boolean} `true` if the pattern was found in the string.
- */
- test(str) {
- const it = this.execAll(str);
- const ret = it.next();
- return !ret.done
- }
-
- /**
- * Replace a given string.
- * @param {string} str The string to be replaced.
- * @param {(string|((...strs:string[])=>string))} replacer The string or function to replace. This is the same as the 2nd argument of `String.prototype.replace`.
- * @returns {string} The replaced string.
- */
- [Symbol.replace](str, replacer) {
- return typeof replacer === "function"
- ? replaceF(this, String(str), replacer)
- : replaceS(this, String(str), String(replacer))
- }
-}
-
-const IMPORT_TYPE = /^(?:Import|Export(?:All|Default|Named))Declaration$/u;
-const has = Function.call.bind(Object.hasOwnProperty);
-
-const READ = Symbol("read");
-const CALL = Symbol("call");
-const CONSTRUCT = Symbol("construct");
-const ESM = Symbol("esm");
-
-const requireCall = { require: { [CALL]: true } };
-
-/**
- * Check whether a given variable is modified or not.
- * @param {Variable} variable The variable to check.
- * @returns {boolean} `true` if the variable is modified.
- */
-function isModifiedGlobal(variable) {
- return (
- variable == null ||
- variable.defs.length !== 0 ||
- variable.references.some(r => r.isWrite())
- )
-}
-
-/**
- * Check if the value of a given node is passed through to the parent syntax as-is.
- * For example, `a` and `b` in (`a || b` and `c ? a : b`) are passed through.
- * @param {Node} node A node to check.
- * @returns {boolean} `true` if the node is passed through.
- */
-function isPassThrough(node) {
- const parent = node.parent;
-
- switch (parent && parent.type) {
- case "ConditionalExpression":
- return parent.consequent === node || parent.alternate === node
- case "LogicalExpression":
- return true
- case "SequenceExpression":
- return parent.expressions[parent.expressions.length - 1] === node
-
- default:
- return false
- }
-}
-
-/**
- * The reference tracker.
- */
-class ReferenceTracker {
- /**
- * Initialize this tracker.
- * @param {Scope} globalScope The global scope.
- * @param {object} [options] The options.
- * @param {"legacy"|"strict"} [options.mode="strict"] The mode to determine the ImportDeclaration's behavior for CJS modules.
- * @param {string[]} [options.globalObjectNames=["global","self","window"]] The variable names for Global Object.
- */
- constructor(
- globalScope,
- {
- mode = "strict",
- globalObjectNames = ["global", "self", "window"],
- } = {}
- ) {
- this.variableStack = [];
- this.globalScope = globalScope;
- this.mode = mode;
- this.globalObjectNames = globalObjectNames.slice(0);
- }
-
- /**
- * Iterate the references of global variables.
- * @param {object} traceMap The trace map.
- * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
- */
- *iterateGlobalReferences(traceMap) {
- for (const key of Object.keys(traceMap)) {
- const nextTraceMap = traceMap[key];
- const path = [key];
- const variable = this.globalScope.set.get(key);
-
- if (isModifiedGlobal(variable)) {
- continue
- }
-
- yield* this._iterateVariableReferences(
- variable,
- path,
- nextTraceMap,
- true
- );
- }
-
- for (const key of this.globalObjectNames) {
- const path = [];
- const variable = this.globalScope.set.get(key);
-
- if (isModifiedGlobal(variable)) {
- continue
- }
-
- yield* this._iterateVariableReferences(
- variable,
- path,
- traceMap,
- false
- );
- }
- }
-
- /**
- * Iterate the references of CommonJS modules.
- * @param {object} traceMap The trace map.
- * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
- */
- *iterateCjsReferences(traceMap) {
- for (const { node } of this.iterateGlobalReferences(requireCall)) {
- const key = getStringIfConstant(node.arguments[0]);
- if (key == null || !has(traceMap, key)) {
- continue
- }
-
- const nextTraceMap = traceMap[key];
- const path = [key];
-
- if (nextTraceMap[READ]) {
- yield {
- node,
- path,
- type: READ,
- info: nextTraceMap[READ],
- };
- }
- yield* this._iteratePropertyReferences(node, path, nextTraceMap);
- }
- }
-
- /**
- * Iterate the references of ES modules.
- * @param {object} traceMap The trace map.
- * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
- */
- *iterateEsmReferences(traceMap) {
- const programNode = this.globalScope.block;
-
- for (const node of programNode.body) {
- if (!IMPORT_TYPE.test(node.type) || node.source == null) {
- continue
- }
- const moduleId = node.source.value;
-
- if (!has(traceMap, moduleId)) {
- continue
- }
- const nextTraceMap = traceMap[moduleId];
- const path = [moduleId];
-
- if (nextTraceMap[READ]) {
- yield { node, path, type: READ, info: nextTraceMap[READ] };
- }
-
- if (node.type === "ExportAllDeclaration") {
- for (const key of Object.keys(nextTraceMap)) {
- const exportTraceMap = nextTraceMap[key];
- if (exportTraceMap[READ]) {
- yield {
- node,
- path: path.concat(key),
- type: READ,
- info: exportTraceMap[READ],
- };
- }
- }
- } else {
- for (const specifier of node.specifiers) {
- const esm = has(nextTraceMap, ESM);
- const it = this._iterateImportReferences(
- specifier,
- path,
- esm
- ? nextTraceMap
- : this.mode === "legacy"
- ? Object.assign(
- { default: nextTraceMap },
- nextTraceMap
- )
- : { default: nextTraceMap }
- );
-
- if (esm) {
- yield* it;
- } else {
- for (const report of it) {
- report.path = report.path.filter(exceptDefault);
- if (
- report.path.length >= 2 ||
- report.type !== READ
- ) {
- yield report;
- }
- }
- }
- }
- }
- }
- }
-
- /**
- * Iterate the references for a given variable.
- * @param {Variable} variable The variable to iterate that references.
- * @param {string[]} path The current path.
- * @param {object} traceMap The trace map.
- * @param {boolean} shouldReport = The flag to report those references.
- * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
- */
- *_iterateVariableReferences(variable, path, traceMap, shouldReport) {
- if (this.variableStack.includes(variable)) {
- return
- }
- this.variableStack.push(variable);
- try {
- for (const reference of variable.references) {
- if (!reference.isRead()) {
- continue
- }
- const node = reference.identifier;
-
- if (shouldReport && traceMap[READ]) {
- yield { node, path, type: READ, info: traceMap[READ] };
- }
- yield* this._iteratePropertyReferences(node, path, traceMap);
- }
- } finally {
- this.variableStack.pop();
- }
- }
-
- /**
- * Iterate the references for a given AST node.
- * @param rootNode The AST node to iterate references.
- * @param {string[]} path The current path.
- * @param {object} traceMap The trace map.
- * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
- */
- //eslint-disable-next-line complexity
- *_iteratePropertyReferences(rootNode, path, traceMap) {
- let node = rootNode;
- while (isPassThrough(node)) {
- node = node.parent;
- }
-
- const parent = node.parent;
- if (parent.type === "MemberExpression") {
- if (parent.object === node) {
- const key = getPropertyName(parent);
- if (key == null || !has(traceMap, key)) {
- return
- }
-
- path = path.concat(key); //eslint-disable-line no-param-reassign
- const nextTraceMap = traceMap[key];
- if (nextTraceMap[READ]) {
- yield {
- node: parent,
- path,
- type: READ,
- info: nextTraceMap[READ],
- };
- }
- yield* this._iteratePropertyReferences(
- parent,
- path,
- nextTraceMap
- );
- }
- return
- }
- if (parent.type === "CallExpression") {
- if (parent.callee === node && traceMap[CALL]) {
- yield { node: parent, path, type: CALL, info: traceMap[CALL] };
- }
- return
- }
- if (parent.type === "NewExpression") {
- if (parent.callee === node && traceMap[CONSTRUCT]) {
- yield {
- node: parent,
- path,
- type: CONSTRUCT,
- info: traceMap[CONSTRUCT],
- };
- }
- return
- }
- if (parent.type === "AssignmentExpression") {
- if (parent.right === node) {
- yield* this._iterateLhsReferences(parent.left, path, traceMap);
- yield* this._iteratePropertyReferences(parent, path, traceMap);
- }
- return
- }
- if (parent.type === "AssignmentPattern") {
- if (parent.right === node) {
- yield* this._iterateLhsReferences(parent.left, path, traceMap);
- }
- return
- }
- if (parent.type === "VariableDeclarator") {
- if (parent.init === node) {
- yield* this._iterateLhsReferences(parent.id, path, traceMap);
- }
- }
- }
-
- /**
- * Iterate the references for a given Pattern node.
- * @param {Node} patternNode The Pattern node to iterate references.
- * @param {string[]} path The current path.
- * @param {object} traceMap The trace map.
- * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
- */
- *_iterateLhsReferences(patternNode, path, traceMap) {
- if (patternNode.type === "Identifier") {
- const variable = findVariable(this.globalScope, patternNode);
- if (variable != null) {
- yield* this._iterateVariableReferences(
- variable,
- path,
- traceMap,
- false
- );
- }
- return
- }
- if (patternNode.type === "ObjectPattern") {
- for (const property of patternNode.properties) {
- const key = getPropertyName(property);
-
- if (key == null || !has(traceMap, key)) {
- continue
- }
-
- const nextPath = path.concat(key);
- const nextTraceMap = traceMap[key];
- if (nextTraceMap[READ]) {
- yield {
- node: property,
- path: nextPath,
- type: READ,
- info: nextTraceMap[READ],
- };
- }
- yield* this._iterateLhsReferences(
- property.value,
- nextPath,
- nextTraceMap
- );
- }
- return
- }
- if (patternNode.type === "AssignmentPattern") {
- yield* this._iterateLhsReferences(patternNode.left, path, traceMap);
- }
- }
-
- /**
- * Iterate the references for a given ModuleSpecifier node.
- * @param {Node} specifierNode The ModuleSpecifier node to iterate references.
- * @param {string[]} path The current path.
- * @param {object} traceMap The trace map.
- * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.
- */
- *_iterateImportReferences(specifierNode, path, traceMap) {
- const type = specifierNode.type;
-
- if (type === "ImportSpecifier" || type === "ImportDefaultSpecifier") {
- const key =
- type === "ImportDefaultSpecifier"
- ? "default"
- : specifierNode.imported.name;
- if (!has(traceMap, key)) {
- return
- }
-
- path = path.concat(key); //eslint-disable-line no-param-reassign
- const nextTraceMap = traceMap[key];
- if (nextTraceMap[READ]) {
- yield {
- node: specifierNode,
- path,
- type: READ,
- info: nextTraceMap[READ],
- };
- }
- yield* this._iterateVariableReferences(
- findVariable(this.globalScope, specifierNode.local),
- path,
- nextTraceMap,
- false
- );
-
- return
- }
-
- if (type === "ImportNamespaceSpecifier") {
- yield* this._iterateVariableReferences(
- findVariable(this.globalScope, specifierNode.local),
- path,
- traceMap,
- false
- );
- return
- }
-
- if (type === "ExportSpecifier") {
- const key = specifierNode.local.name;
- if (!has(traceMap, key)) {
- return
- }
-
- path = path.concat(key); //eslint-disable-line no-param-reassign
- const nextTraceMap = traceMap[key];
- if (nextTraceMap[READ]) {
- yield {
- node: specifierNode,
- path,
- type: READ,
- info: nextTraceMap[READ],
- };
- }
- }
- }
-}
-
-ReferenceTracker.READ = READ;
-ReferenceTracker.CALL = CALL;
-ReferenceTracker.CONSTRUCT = CONSTRUCT;
-ReferenceTracker.ESM = ESM;
-
-/**
- * This is a predicate function for Array#filter.
- * @param {string} name A name part.
- * @param {number} index The index of the name.
- * @returns {boolean} `false` if it's default.
- */
-function exceptDefault(name, index) {
- return !(index === 1 && name === "default")
-}
-
-var index = {
- CALL,
- CONSTRUCT,
- ESM,
- findVariable,
- getFunctionHeadLocation,
- getFunctionNameWithKind,
- getInnermostScope,
- getPropertyName,
- getStaticValue,
- getStringIfConstant,
- hasSideEffect,
- isArrowToken,
- isClosingBraceToken,
- isClosingBracketToken,
- isClosingParenToken,
- isColonToken,
- isCommaToken,
- isCommentToken,
- isNotArrowToken,
- isNotClosingBraceToken,
- isNotClosingBracketToken,
- isNotClosingParenToken,
- isNotColonToken,
- isNotCommaToken,
- isNotCommentToken,
- isNotOpeningBraceToken,
- isNotOpeningBracketToken,
- isNotOpeningParenToken,
- isNotSemicolonToken,
- isOpeningBraceToken,
- isOpeningBracketToken,
- isOpeningParenToken,
- isParenthesized,
- isSemicolonToken,
- PatternMatcher,
- READ,
- ReferenceTracker,
-};
-
-export default index;
-export { CALL, CONSTRUCT, ESM, PatternMatcher, READ, ReferenceTracker, findVariable, getFunctionHeadLocation, getFunctionNameWithKind, getInnermostScope, getPropertyName, getStaticValue, getStringIfConstant, hasSideEffect, isArrowToken, isClosingBraceToken, isClosingBracketToken, isClosingParenToken, isColonToken, isCommaToken, isCommentToken, isNotArrowToken, isNotClosingBraceToken, isNotClosingBracketToken, isNotClosingParenToken, isNotColonToken, isNotCommaToken, isNotCommentToken, isNotOpeningBraceToken, isNotOpeningBracketToken, isNotOpeningParenToken, isNotSemicolonToken, isOpeningBraceToken, isOpeningBracketToken, isOpeningParenToken, isParenthesized, isSemicolonToken };
-//# sourceMappingURL=index.mjs.map
diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/index.mjs.map b/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/index.mjs.map
deleted file mode 100644
index 62ad50a..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/index.mjs.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.mjs","sources":["src/get-innermost-scope.js","src/find-variable.js","src/token-predicate.js","src/get-function-head-location.js","src/get-static-value.js","src/get-string-if-constant.js","src/get-property-name.js","src/get-function-name-with-kind.js","src/has-side-effect.js","src/is-parenthesized.js","src/pattern-matcher.js","src/reference-tracker.js","src/index.js"],"sourcesContent":["/**\n * Get the innermost scope which contains a given location.\n * @param {Scope} initialScope The initial scope to search.\n * @param {Node} node The location to search.\n * @returns {Scope} The innermost scope.\n */\nexport function getInnermostScope(initialScope, node) {\n const location = node.range[0]\n\n let scope = initialScope\n let found = false\n do {\n found = false\n for (const childScope of scope.childScopes) {\n const range = childScope.block.range\n\n if (range[0] <= location && location < range[1]) {\n scope = childScope\n found = true\n break\n }\n }\n } while (found)\n\n return scope\n}\n","import { getInnermostScope } from \"./get-innermost-scope\"\n\n/**\n * Find the variable of a given name.\n * @param {Scope} initialScope The scope to start finding.\n * @param {string|Node} nameOrNode The variable name to find. If this is a Node object then it should be an Identifier node.\n * @returns {Variable|null} The found variable or null.\n */\nexport function findVariable(initialScope, nameOrNode) {\n let name = \"\"\n let scope = initialScope\n\n if (typeof nameOrNode === \"string\") {\n name = nameOrNode\n } else {\n name = nameOrNode.name\n scope = getInnermostScope(scope, nameOrNode)\n }\n\n while (scope != null) {\n const variable = scope.set.get(name)\n if (variable != null) {\n return variable\n }\n scope = scope.upper\n }\n\n return null\n}\n","/**\n * Negate the result of `this` calling.\n * @param {Token} token The token to check.\n * @returns {boolean} `true` if the result of `this(token)` is `false`.\n */\nfunction negate0(token) {\n return !this(token) //eslint-disable-line no-invalid-this\n}\n\n/**\n * Creates the negate function of the given function.\n * @param {function(Token):boolean} f - The function to negate.\n * @returns {function(Token):boolean} Negated function.\n */\nfunction negate(f) {\n return negate0.bind(f)\n}\n\n/**\n * Checks if the given token is an arrow token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an arrow token.\n */\nexport function isArrowToken(token) {\n return token.value === \"=>\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is a comma token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a comma token.\n */\nexport function isCommaToken(token) {\n return token.value === \",\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is a semicolon token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a semicolon token.\n */\nexport function isSemicolonToken(token) {\n return token.value === \";\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is a colon token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a colon token.\n */\nexport function isColonToken(token) {\n return token.value === \":\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is an opening parenthesis token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an opening parenthesis token.\n */\nexport function isOpeningParenToken(token) {\n return token.value === \"(\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is a closing parenthesis token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a closing parenthesis token.\n */\nexport function isClosingParenToken(token) {\n return token.value === \")\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is an opening square bracket token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an opening square bracket token.\n */\nexport function isOpeningBracketToken(token) {\n return token.value === \"[\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is a closing square bracket token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a closing square bracket token.\n */\nexport function isClosingBracketToken(token) {\n return token.value === \"]\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is an opening brace token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is an opening brace token.\n */\nexport function isOpeningBraceToken(token) {\n return token.value === \"{\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is a closing brace token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a closing brace token.\n */\nexport function isClosingBraceToken(token) {\n return token.value === \"}\" && token.type === \"Punctuator\"\n}\n\n/**\n * Checks if the given token is a comment token or not.\n * @param {Token} token - The token to check.\n * @returns {boolean} `true` if the token is a comment token.\n */\nexport function isCommentToken(token) {\n return (\n token.type === \"Line\" ||\n token.type === \"Block\" ||\n token.type === \"Shebang\"\n )\n}\n\nexport const isNotArrowToken = negate(isArrowToken)\nexport const isNotCommaToken = negate(isCommaToken)\nexport const isNotSemicolonToken = negate(isSemicolonToken)\nexport const isNotColonToken = negate(isColonToken)\nexport const isNotOpeningParenToken = negate(isOpeningParenToken)\nexport const isNotClosingParenToken = negate(isClosingParenToken)\nexport const isNotOpeningBracketToken = negate(isOpeningBracketToken)\nexport const isNotClosingBracketToken = negate(isClosingBracketToken)\nexport const isNotOpeningBraceToken = negate(isOpeningBraceToken)\nexport const isNotClosingBraceToken = negate(isClosingBraceToken)\nexport const isNotCommentToken = negate(isCommentToken)\n","import { isArrowToken, isOpeningParenToken } from \"./token-predicate\"\n\n/**\n * Get the `(` token of the given function node.\n * @param {Node} node - The function node to get.\n * @param {SourceCode} sourceCode - The source code object to get tokens.\n * @returns {Token} `(` token.\n */\nfunction getOpeningParenOfParams(node, sourceCode) {\n return node.id\n ? sourceCode.getTokenAfter(node.id, isOpeningParenToken)\n : sourceCode.getFirstToken(node, isOpeningParenToken)\n}\n\n/**\n * Get the location of the given function node for reporting.\n * @param {Node} node - The function node to get.\n * @param {SourceCode} sourceCode - The source code object to get tokens.\n * @returns {string} The location of the function node for reporting.\n */\nexport function getFunctionHeadLocation(node, sourceCode) {\n const parent = node.parent\n let start = null\n let end = null\n\n if (node.type === \"ArrowFunctionExpression\") {\n const arrowToken = sourceCode.getTokenBefore(node.body, isArrowToken)\n\n start = arrowToken.loc.start\n end = arrowToken.loc.end\n } else if (\n parent.type === \"Property\" ||\n parent.type === \"MethodDefinition\"\n ) {\n start = parent.loc.start\n end = getOpeningParenOfParams(node, sourceCode).loc.start\n } else {\n start = node.loc.start\n end = getOpeningParenOfParams(node, sourceCode).loc.start\n }\n\n return {\n start: Object.assign({}, start),\n end: Object.assign({}, end),\n }\n}\n","/* globals BigInt, globalThis, global, self, window */\n\nimport { findVariable } from \"./find-variable\"\n\nconst globalObject =\n typeof globalThis !== \"undefined\"\n ? globalThis\n : typeof self !== \"undefined\"\n ? self\n : typeof window !== \"undefined\"\n ? window\n : typeof global !== \"undefined\"\n ? global\n : {}\n\nconst builtinNames = Object.freeze(\n new Set([\n \"Array\",\n \"ArrayBuffer\",\n \"BigInt\",\n \"BigInt64Array\",\n \"BigUint64Array\",\n \"Boolean\",\n \"DataView\",\n \"Date\",\n \"decodeURI\",\n \"decodeURIComponent\",\n \"encodeURI\",\n \"encodeURIComponent\",\n \"escape\",\n \"Float32Array\",\n \"Float64Array\",\n \"Function\",\n \"Infinity\",\n \"Int16Array\",\n \"Int32Array\",\n \"Int8Array\",\n \"isFinite\",\n \"isNaN\",\n \"isPrototypeOf\",\n \"JSON\",\n \"Map\",\n \"Math\",\n \"NaN\",\n \"Number\",\n \"Object\",\n \"parseFloat\",\n \"parseInt\",\n \"Promise\",\n \"Proxy\",\n \"Reflect\",\n \"RegExp\",\n \"Set\",\n \"String\",\n \"Symbol\",\n \"Uint16Array\",\n \"Uint32Array\",\n \"Uint8Array\",\n \"Uint8ClampedArray\",\n \"undefined\",\n \"unescape\",\n \"WeakMap\",\n \"WeakSet\",\n ])\n)\nconst callAllowed = new Set(\n [\n Array.isArray,\n typeof BigInt === \"function\" ? BigInt : undefined,\n Boolean,\n Date,\n Date.parse,\n decodeURI,\n decodeURIComponent,\n encodeURI,\n encodeURIComponent,\n escape,\n isFinite,\n isNaN,\n isPrototypeOf,\n ...Object.getOwnPropertyNames(Math)\n .map(k => Math[k])\n .filter(f => typeof f === \"function\"),\n Number,\n Number.isFinite,\n Number.isNaN,\n Number.parseFloat,\n Number.parseInt,\n Object,\n Object.entries,\n Object.is,\n Object.isExtensible,\n Object.isFrozen,\n Object.isSealed,\n Object.keys,\n Object.values,\n parseFloat,\n parseInt,\n RegExp,\n String,\n String.fromCharCode,\n String.fromCodePoint,\n String.raw,\n Symbol,\n Symbol.for,\n Symbol.keyFor,\n unescape,\n ].filter(f => typeof f === \"function\")\n)\nconst callPassThrough = new Set([\n Object.freeze,\n Object.preventExtensions,\n Object.seal,\n])\n\n/**\n * Get the property descriptor.\n * @param {object} object The object to get.\n * @param {string|number|symbol} name The property name to get.\n */\nfunction getPropertyDescriptor(object, name) {\n let x = object\n while ((typeof x === \"object\" || typeof x === \"function\") && x !== null) {\n const d = Object.getOwnPropertyDescriptor(x, name)\n if (d) {\n return d\n }\n x = Object.getPrototypeOf(x)\n }\n return null\n}\n\n/**\n * Check if a property is getter or not.\n * @param {object} object The object to check.\n * @param {string|number|symbol} name The property name to check.\n */\nfunction isGetter(object, name) {\n const d = getPropertyDescriptor(object, name)\n return d != null && d.get != null\n}\n\n/**\n * Get the element values of a given node list.\n * @param {Node[]} nodeList The node list to get values.\n * @param {Scope|undefined} initialScope The initial scope to find variables.\n * @returns {any[]|null} The value list if all nodes are constant. Otherwise, null.\n */\nfunction getElementValues(nodeList, initialScope) {\n const valueList = []\n\n for (let i = 0; i < nodeList.length; ++i) {\n const elementNode = nodeList[i]\n\n if (elementNode == null) {\n valueList.length = i + 1\n } else if (elementNode.type === \"SpreadElement\") {\n const argument = getStaticValueR(elementNode.argument, initialScope)\n if (argument == null) {\n return null\n }\n valueList.push(...argument.value)\n } else {\n const element = getStaticValueR(elementNode, initialScope)\n if (element == null) {\n return null\n }\n valueList.push(element.value)\n }\n }\n\n return valueList\n}\n\nconst operations = Object.freeze({\n ArrayExpression(node, initialScope) {\n const elements = getElementValues(node.elements, initialScope)\n return elements != null ? { value: elements } : null\n },\n\n AssignmentExpression(node, initialScope) {\n if (node.operator === \"=\") {\n return getStaticValueR(node.right, initialScope)\n }\n return null\n },\n\n //eslint-disable-next-line complexity\n BinaryExpression(node, initialScope) {\n if (node.operator === \"in\" || node.operator === \"instanceof\") {\n // Not supported.\n return null\n }\n\n const left = getStaticValueR(node.left, initialScope)\n const right = getStaticValueR(node.right, initialScope)\n if (left != null && right != null) {\n switch (node.operator) {\n case \"==\":\n return { value: left.value == right.value } //eslint-disable-line eqeqeq\n case \"!=\":\n return { value: left.value != right.value } //eslint-disable-line eqeqeq\n case \"===\":\n return { value: left.value === right.value }\n case \"!==\":\n return { value: left.value !== right.value }\n case \"<\":\n return { value: left.value < right.value }\n case \"<=\":\n return { value: left.value <= right.value }\n case \">\":\n return { value: left.value > right.value }\n case \">=\":\n return { value: left.value >= right.value }\n case \"<<\":\n return { value: left.value << right.value }\n case \">>\":\n return { value: left.value >> right.value }\n case \">>>\":\n return { value: left.value >>> right.value }\n case \"+\":\n return { value: left.value + right.value }\n case \"-\":\n return { value: left.value - right.value }\n case \"*\":\n return { value: left.value * right.value }\n case \"/\":\n return { value: left.value / right.value }\n case \"%\":\n return { value: left.value % right.value }\n case \"**\":\n return { value: Math.pow(left.value, right.value) }\n case \"|\":\n return { value: left.value | right.value }\n case \"^\":\n return { value: left.value ^ right.value }\n case \"&\":\n return { value: left.value & right.value }\n\n // no default\n }\n }\n\n return null\n },\n\n CallExpression(node, initialScope) {\n const calleeNode = node.callee\n const args = getElementValues(node.arguments, initialScope)\n\n if (args != null) {\n if (calleeNode.type === \"MemberExpression\") {\n const object = getStaticValueR(calleeNode.object, initialScope)\n const property = calleeNode.computed\n ? getStaticValueR(calleeNode.property, initialScope)\n : { value: calleeNode.property.name }\n\n if (object != null && property != null) {\n const receiver = object.value\n const methodName = property.value\n if (callAllowed.has(receiver[methodName])) {\n return { value: receiver[methodName](...args) }\n }\n if (callPassThrough.has(receiver[methodName])) {\n return { value: args[0] }\n }\n }\n } else {\n const callee = getStaticValueR(calleeNode, initialScope)\n if (callee != null) {\n const func = callee.value\n if (callAllowed.has(func)) {\n return { value: func(...args) }\n }\n if (callPassThrough.has(func)) {\n return { value: args[0] }\n }\n }\n }\n }\n\n return null\n },\n\n ConditionalExpression(node, initialScope) {\n const test = getStaticValueR(node.test, initialScope)\n if (test != null) {\n return test.value\n ? getStaticValueR(node.consequent, initialScope)\n : getStaticValueR(node.alternate, initialScope)\n }\n return null\n },\n\n ExpressionStatement(node, initialScope) {\n return getStaticValueR(node.expression, initialScope)\n },\n\n Identifier(node, initialScope) {\n if (initialScope != null) {\n const variable = findVariable(initialScope, node)\n\n // Built-in globals.\n if (\n variable != null &&\n variable.defs.length === 0 &&\n builtinNames.has(variable.name) &&\n variable.name in globalObject\n ) {\n return { value: globalObject[variable.name] }\n }\n\n // Constants.\n if (variable != null && variable.defs.length === 1) {\n const def = variable.defs[0]\n if (\n def.parent &&\n def.parent.kind === \"const\" &&\n // TODO(mysticatea): don't support destructuring here.\n def.node.id.type === \"Identifier\"\n ) {\n return getStaticValueR(def.node.init, initialScope)\n }\n }\n }\n return null\n },\n\n Literal(node) {\n //istanbul ignore if : this is implementation-specific behavior.\n if ((node.regex != null || node.bigint != null) && node.value == null) {\n // It was a RegExp/BigInt literal, but Node.js didn't support it.\n return null\n }\n return { value: node.value }\n },\n\n LogicalExpression(node, initialScope) {\n const left = getStaticValueR(node.left, initialScope)\n if (left != null) {\n if (\n (node.operator === \"||\" && Boolean(left.value) === true) ||\n (node.operator === \"&&\" && Boolean(left.value) === false)\n ) {\n return left\n }\n\n const right = getStaticValueR(node.right, initialScope)\n if (right != null) {\n return right\n }\n }\n\n return null\n },\n\n MemberExpression(node, initialScope) {\n const object = getStaticValueR(node.object, initialScope)\n const property = node.computed\n ? getStaticValueR(node.property, initialScope)\n : { value: node.property.name }\n\n if (\n object != null &&\n property != null &&\n !isGetter(object.value, property.value)\n ) {\n return { value: object.value[property.value] }\n }\n return null\n },\n\n NewExpression(node, initialScope) {\n const callee = getStaticValueR(node.callee, initialScope)\n const args = getElementValues(node.arguments, initialScope)\n\n if (callee != null && args != null) {\n const Func = callee.value\n if (callAllowed.has(Func)) {\n return { value: new Func(...args) }\n }\n }\n\n return null\n },\n\n ObjectExpression(node, initialScope) {\n const object = {}\n\n for (const propertyNode of node.properties) {\n if (propertyNode.type === \"Property\") {\n if (propertyNode.kind !== \"init\") {\n return null\n }\n const key = propertyNode.computed\n ? getStaticValueR(propertyNode.key, initialScope)\n : { value: propertyNode.key.name }\n const value = getStaticValueR(propertyNode.value, initialScope)\n if (key == null || value == null) {\n return null\n }\n object[key.value] = value.value\n } else if (\n propertyNode.type === \"SpreadElement\" ||\n propertyNode.type === \"ExperimentalSpreadProperty\"\n ) {\n const argument = getStaticValueR(\n propertyNode.argument,\n initialScope\n )\n if (argument == null) {\n return null\n }\n Object.assign(object, argument.value)\n } else {\n return null\n }\n }\n\n return { value: object }\n },\n\n SequenceExpression(node, initialScope) {\n const last = node.expressions[node.expressions.length - 1]\n return getStaticValueR(last, initialScope)\n },\n\n TaggedTemplateExpression(node, initialScope) {\n const tag = getStaticValueR(node.tag, initialScope)\n const expressions = getElementValues(\n node.quasi.expressions,\n initialScope\n )\n\n if (tag != null && expressions != null) {\n const func = tag.value\n const strings = node.quasi.quasis.map(q => q.value.cooked)\n strings.raw = node.quasi.quasis.map(q => q.value.raw)\n\n if (func === String.raw) {\n return { value: func(strings, ...expressions) }\n }\n }\n\n return null\n },\n\n TemplateLiteral(node, initialScope) {\n const expressions = getElementValues(node.expressions, initialScope)\n if (expressions != null) {\n let value = node.quasis[0].value.cooked\n for (let i = 0; i < expressions.length; ++i) {\n value += expressions[i]\n value += node.quasis[i + 1].value.cooked\n }\n return { value }\n }\n return null\n },\n\n UnaryExpression(node, initialScope) {\n if (node.operator === \"delete\") {\n // Not supported.\n return null\n }\n if (node.operator === \"void\") {\n return { value: undefined }\n }\n\n const arg = getStaticValueR(node.argument, initialScope)\n if (arg != null) {\n switch (node.operator) {\n case \"-\":\n return { value: -arg.value }\n case \"+\":\n return { value: +arg.value } //eslint-disable-line no-implicit-coercion\n case \"!\":\n return { value: !arg.value }\n case \"~\":\n return { value: ~arg.value }\n case \"typeof\":\n return { value: typeof arg.value }\n\n // no default\n }\n }\n\n return null\n },\n})\n\n/**\n * Get the value of a given node if it's a static value.\n * @param {Node} node The node to get.\n * @param {Scope|undefined} initialScope The scope to start finding variable.\n * @returns {{value:any}|null} The static value of the node, or `null`.\n */\nfunction getStaticValueR(node, initialScope) {\n if (node != null && Object.hasOwnProperty.call(operations, node.type)) {\n return operations[node.type](node, initialScope)\n }\n return null\n}\n\n/**\n * Get the value of a given node if it's a static value.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If this scope was given, this tries to resolve identifier references which are in the given node as much as possible.\n * @returns {{value:any}|null} The static value of the node, or `null`.\n */\nexport function getStaticValue(node, initialScope = null) {\n try {\n return getStaticValueR(node, initialScope)\n } catch (_error) {\n return null\n }\n}\n","import { getStaticValue } from \"./get-static-value\"\n\n/**\n * Get the value of a given node if it's a literal or a template literal.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is an Identifier node and this scope was given, this checks the variable of the identifier, and returns the value of it if the variable is a constant.\n * @returns {string|null} The value of the node, or `null`.\n */\nexport function getStringIfConstant(node, initialScope = null) {\n // Handle the literals that the platform doesn't support natively.\n if (node && node.type === \"Literal\" && node.value === null) {\n if (node.regex) {\n return `/${node.regex.pattern}/${node.regex.flags}`\n }\n if (node.bigint) {\n return node.bigint\n }\n }\n\n const evaluated = getStaticValue(node, initialScope)\n return evaluated && String(evaluated.value)\n}\n","import { getStringIfConstant } from \"./get-string-if-constant\"\n\n/**\n * Get the property name from a MemberExpression node or a Property node.\n * @param {Node} node The node to get.\n * @param {Scope} [initialScope] The scope to start finding variable. Optional. If the node is a computed property node and this scope was given, this checks the computed property name by the `getStringIfConstant` function with the scope, and returns the value of it.\n * @returns {string|null} The property name of the node.\n */\nexport function getPropertyName(node, initialScope) {\n switch (node.type) {\n case \"MemberExpression\":\n if (node.computed) {\n return getStringIfConstant(node.property, initialScope)\n }\n return node.property.name\n\n case \"Property\":\n case \"MethodDefinition\":\n if (node.computed) {\n return getStringIfConstant(node.key, initialScope)\n }\n if (node.key.type === \"Literal\") {\n return String(node.key.value)\n }\n return node.key.name\n\n // no default\n }\n\n return null\n}\n","import { getPropertyName } from \"./get-property-name\"\n\n/**\n * Get the name and kind of the given function node.\n * @param {ASTNode} node - The function node to get.\n * @returns {string} The name and kind of the function node.\n */\nexport function getFunctionNameWithKind(node) {\n const parent = node.parent\n const tokens = []\n\n if (parent.type === \"MethodDefinition\" && parent.static) {\n tokens.push(\"static\")\n }\n if (node.async) {\n tokens.push(\"async\")\n }\n if (node.generator) {\n tokens.push(\"generator\")\n }\n\n if (node.type === \"ArrowFunctionExpression\") {\n tokens.push(\"arrow\", \"function\")\n } else if (\n parent.type === \"Property\" ||\n parent.type === \"MethodDefinition\"\n ) {\n if (parent.kind === \"constructor\") {\n return \"constructor\"\n }\n if (parent.kind === \"get\") {\n tokens.push(\"getter\")\n } else if (parent.kind === \"set\") {\n tokens.push(\"setter\")\n } else {\n tokens.push(\"method\")\n }\n } else {\n tokens.push(\"function\")\n }\n\n if (node.id) {\n tokens.push(`'${node.id.name}'`)\n } else {\n const name = getPropertyName(parent)\n\n if (name) {\n tokens.push(`'${name}'`)\n }\n }\n\n return tokens.join(\" \")\n}\n","import evk from \"eslint-visitor-keys\"\n\nconst typeConversionBinaryOps = Object.freeze(\n new Set([\n \"==\",\n \"!=\",\n \"<\",\n \"<=\",\n \">\",\n \">=\",\n \"<<\",\n \">>\",\n \">>>\",\n \"+\",\n \"-\",\n \"*\",\n \"/\",\n \"%\",\n \"|\",\n \"^\",\n \"&\",\n \"in\",\n ])\n)\nconst typeConversionUnaryOps = Object.freeze(new Set([\"-\", \"+\", \"!\", \"~\"]))\nconst visitor = Object.freeze(\n Object.assign(Object.create(null), {\n $visit(node, options, visitorKeys) {\n const { type } = node\n\n if (typeof this[type] === \"function\") {\n return this[type](node, options, visitorKeys)\n }\n\n return this.$visitChildren(node, options, visitorKeys)\n },\n\n $visitChildren(node, options, visitorKeys) {\n const { type } = node\n\n for (const key of visitorKeys[type] || evk.getKeys(node)) {\n const value = node[key]\n\n if (Array.isArray(value)) {\n for (const element of value) {\n if (\n element &&\n this.$visit(element, options, visitorKeys)\n ) {\n return true\n }\n }\n } else if (value && this.$visit(value, options, visitorKeys)) {\n return true\n }\n }\n\n return false\n },\n\n ArrowFunctionExpression() {\n return false\n },\n AssignmentExpression() {\n return true\n },\n AwaitExpression() {\n return true\n },\n BinaryExpression(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n typeConversionBinaryOps.has(node.operator) &&\n (node.left.type !== \"Literal\" || node.right.type !== \"Literal\")\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n CallExpression() {\n return true\n },\n FunctionExpression() {\n return false\n },\n ImportExpression() {\n return true\n },\n MemberExpression(node, options, visitorKeys) {\n if (options.considerGetters) {\n return true\n }\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.property.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n MethodDefinition(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.key.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n NewExpression() {\n return true\n },\n Property(node, options, visitorKeys) {\n if (\n options.considerImplicitTypeConversion &&\n node.computed &&\n node.key.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n UnaryExpression(node, options, visitorKeys) {\n if (node.operator === \"delete\") {\n return true\n }\n if (\n options.considerImplicitTypeConversion &&\n typeConversionUnaryOps.has(node.operator) &&\n node.argument.type !== \"Literal\"\n ) {\n return true\n }\n return this.$visitChildren(node, options, visitorKeys)\n },\n UpdateExpression() {\n return true\n },\n YieldExpression() {\n return true\n },\n })\n)\n\n/**\n * Check whether a given node has any side effect or not.\n * @param {Node} node The node to get.\n * @param {SourceCode} sourceCode The source code object.\n * @param {object} [options] The option object.\n * @param {boolean} [options.considerGetters=false] If `true` then it considers member accesses as the node which has side effects.\n * @param {boolean} [options.considerImplicitTypeConversion=false] If `true` then it considers implicit type conversion as the node which has side effects.\n * @param {object} [options.visitorKeys=evk.KEYS] The keys to traverse nodes. Use `context.getSourceCode().visitorKeys`.\n * @returns {boolean} `true` if the node has a certain side effect.\n */\nexport function hasSideEffect(\n node,\n sourceCode,\n { considerGetters = false, considerImplicitTypeConversion = false } = {}\n) {\n return visitor.$visit(\n node,\n { considerGetters, considerImplicitTypeConversion },\n sourceCode.visitorKeys || evk.KEYS\n )\n}\n","import { isClosingParenToken, isOpeningParenToken } from \"./token-predicate\"\n\n/**\n * Get the left parenthesis of the parent node syntax if it exists.\n * E.g., `if (a) {}` then the `(`.\n * @param {Node} node The AST node to check.\n * @param {SourceCode} sourceCode The source code object to get tokens.\n * @returns {Token|null} The left parenthesis of the parent node syntax\n */\nfunction getParentSyntaxParen(node, sourceCode) {\n const parent = node.parent\n\n switch (parent.type) {\n case \"CallExpression\":\n case \"NewExpression\":\n if (parent.arguments.length === 1 && parent.arguments[0] === node) {\n return sourceCode.getTokenAfter(\n parent.callee,\n isOpeningParenToken\n )\n }\n return null\n\n case \"DoWhileStatement\":\n if (parent.test === node) {\n return sourceCode.getTokenAfter(\n parent.body,\n isOpeningParenToken\n )\n }\n return null\n\n case \"IfStatement\":\n case \"WhileStatement\":\n if (parent.test === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n case \"ImportExpression\":\n if (parent.source === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n case \"SwitchStatement\":\n if (parent.discriminant === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n case \"WithStatement\":\n if (parent.object === node) {\n return sourceCode.getFirstToken(parent, 1)\n }\n return null\n\n default:\n return null\n }\n}\n\n/**\n * Check whether a given node is parenthesized or not.\n * @param {number} times The number of parantheses.\n * @param {Node} node The AST node to check.\n * @param {SourceCode} sourceCode The source code object to get tokens.\n * @returns {boolean} `true` if the node is parenthesized the given times.\n */\n/**\n * Check whether a given node is parenthesized or not.\n * @param {Node} node The AST node to check.\n * @param {SourceCode} sourceCode The source code object to get tokens.\n * @returns {boolean} `true` if the node is parenthesized.\n */\nexport function isParenthesized(\n timesOrNode,\n nodeOrSourceCode,\n optionalSourceCode\n) {\n let times, node, sourceCode, maybeLeftParen, maybeRightParen\n if (typeof timesOrNode === \"number\") {\n times = timesOrNode | 0\n node = nodeOrSourceCode\n sourceCode = optionalSourceCode\n if (!(times >= 1)) {\n throw new TypeError(\"'times' should be a positive integer.\")\n }\n } else {\n times = 1\n node = timesOrNode\n sourceCode = nodeOrSourceCode\n }\n\n if (node == null) {\n return false\n }\n\n maybeLeftParen = maybeRightParen = node\n do {\n maybeLeftParen = sourceCode.getTokenBefore(maybeLeftParen)\n maybeRightParen = sourceCode.getTokenAfter(maybeRightParen)\n } while (\n maybeLeftParen != null &&\n maybeRightParen != null &&\n isOpeningParenToken(maybeLeftParen) &&\n isClosingParenToken(maybeRightParen) &&\n // Avoid false positive such as `if (a) {}`\n maybeLeftParen !== getParentSyntaxParen(node, sourceCode) &&\n --times > 0\n )\n\n return times === 0\n}\n","/**\n * @author Toru Nagashima <https://github.com/mysticatea>\n * See LICENSE file in root directory for full license.\n */\n\nconst placeholder = /\\$(?:[$&`']|[1-9][0-9]?)/gu\n\n/** @type {WeakMap<PatternMatcher, {pattern:RegExp,escaped:boolean}>} */\nconst internal = new WeakMap()\n\n/**\n * Check whether a given character is escaped or not.\n * @param {string} str The string to check.\n * @param {number} index The location of the character to check.\n * @returns {boolean} `true` if the character is escaped.\n */\nfunction isEscaped(str, index) {\n let escaped = false\n for (let i = index - 1; i >= 0 && str.charCodeAt(i) === 0x5c; --i) {\n escaped = !escaped\n }\n return escaped\n}\n\n/**\n * Replace a given string by a given matcher.\n * @param {PatternMatcher} matcher The pattern matcher.\n * @param {string} str The string to be replaced.\n * @param {string} replacement The new substring to replace each matched part.\n * @returns {string} The replaced string.\n */\nfunction replaceS(matcher, str, replacement) {\n const chunks = []\n let index = 0\n\n /** @type {RegExpExecArray} */\n let match = null\n\n /**\n * @param {string} key The placeholder.\n * @returns {string} The replaced string.\n */\n function replacer(key) {\n switch (key) {\n case \"$$\":\n return \"$\"\n case \"$&\":\n return match[0]\n case \"$`\":\n return str.slice(0, match.index)\n case \"$'\":\n return str.slice(match.index + match[0].length)\n default: {\n const i = key.slice(1)\n if (i in match) {\n return match[i]\n }\n return key\n }\n }\n }\n\n for (match of matcher.execAll(str)) {\n chunks.push(str.slice(index, match.index))\n chunks.push(replacement.replace(placeholder, replacer))\n index = match.index + match[0].length\n }\n chunks.push(str.slice(index))\n\n return chunks.join(\"\")\n}\n\n/**\n * Replace a given string by a given matcher.\n * @param {PatternMatcher} matcher The pattern matcher.\n * @param {string} str The string to be replaced.\n * @param {(...strs[])=>string} replace The function to replace each matched part.\n * @returns {string} The replaced string.\n */\nfunction replaceF(matcher, str, replace) {\n const chunks = []\n let index = 0\n\n for (const match of matcher.execAll(str)) {\n chunks.push(str.slice(index, match.index))\n chunks.push(String(replace(...match, match.index, match.input)))\n index = match.index + match[0].length\n }\n chunks.push(str.slice(index))\n\n return chunks.join(\"\")\n}\n\n/**\n * The class to find patterns as considering escape sequences.\n */\nexport class PatternMatcher {\n /**\n * Initialize this matcher.\n * @param {RegExp} pattern The pattern to match.\n * @param {{escaped:boolean}} options The options.\n */\n constructor(pattern, { escaped = false } = {}) {\n if (!(pattern instanceof RegExp)) {\n throw new TypeError(\"'pattern' should be a RegExp instance.\")\n }\n if (!pattern.flags.includes(\"g\")) {\n throw new Error(\"'pattern' should contains 'g' flag.\")\n }\n\n internal.set(this, {\n pattern: new RegExp(pattern.source, pattern.flags),\n escaped: Boolean(escaped),\n })\n }\n\n /**\n * Find the pattern in a given string.\n * @param {string} str The string to find.\n * @returns {IterableIterator<RegExpExecArray>} The iterator which iterate the matched information.\n */\n *execAll(str) {\n const { pattern, escaped } = internal.get(this)\n let match = null\n let lastIndex = 0\n\n pattern.lastIndex = 0\n while ((match = pattern.exec(str)) != null) {\n if (escaped || !isEscaped(str, match.index)) {\n lastIndex = pattern.lastIndex\n yield match\n pattern.lastIndex = lastIndex\n }\n }\n }\n\n /**\n * Check whether the pattern is found in a given string.\n * @param {string} str The string to check.\n * @returns {boolean} `true` if the pattern was found in the string.\n */\n test(str) {\n const it = this.execAll(str)\n const ret = it.next()\n return !ret.done\n }\n\n /**\n * Replace a given string.\n * @param {string} str The string to be replaced.\n * @param {(string|((...strs:string[])=>string))} replacer The string or function to replace. This is the same as the 2nd argument of `String.prototype.replace`.\n * @returns {string} The replaced string.\n */\n [Symbol.replace](str, replacer) {\n return typeof replacer === \"function\"\n ? replaceF(this, String(str), replacer)\n : replaceS(this, String(str), String(replacer))\n }\n}\n","import { findVariable } from \"./find-variable\"\nimport { getPropertyName } from \"./get-property-name\"\nimport { getStringIfConstant } from \"./get-string-if-constant\"\n\nconst IMPORT_TYPE = /^(?:Import|Export(?:All|Default|Named))Declaration$/u\nconst has = Function.call.bind(Object.hasOwnProperty)\n\nexport const READ = Symbol(\"read\")\nexport const CALL = Symbol(\"call\")\nexport const CONSTRUCT = Symbol(\"construct\")\nexport const ESM = Symbol(\"esm\")\n\nconst requireCall = { require: { [CALL]: true } }\n\n/**\n * Check whether a given variable is modified or not.\n * @param {Variable} variable The variable to check.\n * @returns {boolean} `true` if the variable is modified.\n */\nfunction isModifiedGlobal(variable) {\n return (\n variable == null ||\n variable.defs.length !== 0 ||\n variable.references.some(r => r.isWrite())\n )\n}\n\n/**\n * Check if the value of a given node is passed through to the parent syntax as-is.\n * For example, `a` and `b` in (`a || b` and `c ? a : b`) are passed through.\n * @param {Node} node A node to check.\n * @returns {boolean} `true` if the node is passed through.\n */\nfunction isPassThrough(node) {\n const parent = node.parent\n\n switch (parent && parent.type) {\n case \"ConditionalExpression\":\n return parent.consequent === node || parent.alternate === node\n case \"LogicalExpression\":\n return true\n case \"SequenceExpression\":\n return parent.expressions[parent.expressions.length - 1] === node\n\n default:\n return false\n }\n}\n\n/**\n * The reference tracker.\n */\nexport class ReferenceTracker {\n /**\n * Initialize this tracker.\n * @param {Scope} globalScope The global scope.\n * @param {object} [options] The options.\n * @param {\"legacy\"|\"strict\"} [options.mode=\"strict\"] The mode to determine the ImportDeclaration's behavior for CJS modules.\n * @param {string[]} [options.globalObjectNames=[\"global\",\"self\",\"window\"]] The variable names for Global Object.\n */\n constructor(\n globalScope,\n {\n mode = \"strict\",\n globalObjectNames = [\"global\", \"self\", \"window\"],\n } = {}\n ) {\n this.variableStack = []\n this.globalScope = globalScope\n this.mode = mode\n this.globalObjectNames = globalObjectNames.slice(0)\n }\n\n /**\n * Iterate the references of global variables.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *iterateGlobalReferences(traceMap) {\n for (const key of Object.keys(traceMap)) {\n const nextTraceMap = traceMap[key]\n const path = [key]\n const variable = this.globalScope.set.get(key)\n\n if (isModifiedGlobal(variable)) {\n continue\n }\n\n yield* this._iterateVariableReferences(\n variable,\n path,\n nextTraceMap,\n true\n )\n }\n\n for (const key of this.globalObjectNames) {\n const path = []\n const variable = this.globalScope.set.get(key)\n\n if (isModifiedGlobal(variable)) {\n continue\n }\n\n yield* this._iterateVariableReferences(\n variable,\n path,\n traceMap,\n false\n )\n }\n }\n\n /**\n * Iterate the references of CommonJS modules.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *iterateCjsReferences(traceMap) {\n for (const { node } of this.iterateGlobalReferences(requireCall)) {\n const key = getStringIfConstant(node.arguments[0])\n if (key == null || !has(traceMap, key)) {\n continue\n }\n\n const nextTraceMap = traceMap[key]\n const path = [key]\n\n if (nextTraceMap[READ]) {\n yield {\n node,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iteratePropertyReferences(node, path, nextTraceMap)\n }\n }\n\n /**\n * Iterate the references of ES modules.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *iterateEsmReferences(traceMap) {\n const programNode = this.globalScope.block\n\n for (const node of programNode.body) {\n if (!IMPORT_TYPE.test(node.type) || node.source == null) {\n continue\n }\n const moduleId = node.source.value\n\n if (!has(traceMap, moduleId)) {\n continue\n }\n const nextTraceMap = traceMap[moduleId]\n const path = [moduleId]\n\n if (nextTraceMap[READ]) {\n yield { node, path, type: READ, info: nextTraceMap[READ] }\n }\n\n if (node.type === \"ExportAllDeclaration\") {\n for (const key of Object.keys(nextTraceMap)) {\n const exportTraceMap = nextTraceMap[key]\n if (exportTraceMap[READ]) {\n yield {\n node,\n path: path.concat(key),\n type: READ,\n info: exportTraceMap[READ],\n }\n }\n }\n } else {\n for (const specifier of node.specifiers) {\n const esm = has(nextTraceMap, ESM)\n const it = this._iterateImportReferences(\n specifier,\n path,\n esm\n ? nextTraceMap\n : this.mode === \"legacy\"\n ? Object.assign(\n { default: nextTraceMap },\n nextTraceMap\n )\n : { default: nextTraceMap }\n )\n\n if (esm) {\n yield* it\n } else {\n for (const report of it) {\n report.path = report.path.filter(exceptDefault)\n if (\n report.path.length >= 2 ||\n report.type !== READ\n ) {\n yield report\n }\n }\n }\n }\n }\n }\n }\n\n /**\n * Iterate the references for a given variable.\n * @param {Variable} variable The variable to iterate that references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @param {boolean} shouldReport = The flag to report those references.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *_iterateVariableReferences(variable, path, traceMap, shouldReport) {\n if (this.variableStack.includes(variable)) {\n return\n }\n this.variableStack.push(variable)\n try {\n for (const reference of variable.references) {\n if (!reference.isRead()) {\n continue\n }\n const node = reference.identifier\n\n if (shouldReport && traceMap[READ]) {\n yield { node, path, type: READ, info: traceMap[READ] }\n }\n yield* this._iteratePropertyReferences(node, path, traceMap)\n }\n } finally {\n this.variableStack.pop()\n }\n }\n\n /**\n * Iterate the references for a given AST node.\n * @param rootNode The AST node to iterate references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n //eslint-disable-next-line complexity\n *_iteratePropertyReferences(rootNode, path, traceMap) {\n let node = rootNode\n while (isPassThrough(node)) {\n node = node.parent\n }\n\n const parent = node.parent\n if (parent.type === \"MemberExpression\") {\n if (parent.object === node) {\n const key = getPropertyName(parent)\n if (key == null || !has(traceMap, key)) {\n return\n }\n\n path = path.concat(key) //eslint-disable-line no-param-reassign\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: parent,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iteratePropertyReferences(\n parent,\n path,\n nextTraceMap\n )\n }\n return\n }\n if (parent.type === \"CallExpression\") {\n if (parent.callee === node && traceMap[CALL]) {\n yield { node: parent, path, type: CALL, info: traceMap[CALL] }\n }\n return\n }\n if (parent.type === \"NewExpression\") {\n if (parent.callee === node && traceMap[CONSTRUCT]) {\n yield {\n node: parent,\n path,\n type: CONSTRUCT,\n info: traceMap[CONSTRUCT],\n }\n }\n return\n }\n if (parent.type === \"AssignmentExpression\") {\n if (parent.right === node) {\n yield* this._iterateLhsReferences(parent.left, path, traceMap)\n yield* this._iteratePropertyReferences(parent, path, traceMap)\n }\n return\n }\n if (parent.type === \"AssignmentPattern\") {\n if (parent.right === node) {\n yield* this._iterateLhsReferences(parent.left, path, traceMap)\n }\n return\n }\n if (parent.type === \"VariableDeclarator\") {\n if (parent.init === node) {\n yield* this._iterateLhsReferences(parent.id, path, traceMap)\n }\n }\n }\n\n /**\n * Iterate the references for a given Pattern node.\n * @param {Node} patternNode The Pattern node to iterate references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *_iterateLhsReferences(patternNode, path, traceMap) {\n if (patternNode.type === \"Identifier\") {\n const variable = findVariable(this.globalScope, patternNode)\n if (variable != null) {\n yield* this._iterateVariableReferences(\n variable,\n path,\n traceMap,\n false\n )\n }\n return\n }\n if (patternNode.type === \"ObjectPattern\") {\n for (const property of patternNode.properties) {\n const key = getPropertyName(property)\n\n if (key == null || !has(traceMap, key)) {\n continue\n }\n\n const nextPath = path.concat(key)\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: property,\n path: nextPath,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iterateLhsReferences(\n property.value,\n nextPath,\n nextTraceMap\n )\n }\n return\n }\n if (patternNode.type === \"AssignmentPattern\") {\n yield* this._iterateLhsReferences(patternNode.left, path, traceMap)\n }\n }\n\n /**\n * Iterate the references for a given ModuleSpecifier node.\n * @param {Node} specifierNode The ModuleSpecifier node to iterate references.\n * @param {string[]} path The current path.\n * @param {object} traceMap The trace map.\n * @returns {IterableIterator<{node:Node,path:string[],type:symbol,info:any}>} The iterator to iterate references.\n */\n *_iterateImportReferences(specifierNode, path, traceMap) {\n const type = specifierNode.type\n\n if (type === \"ImportSpecifier\" || type === \"ImportDefaultSpecifier\") {\n const key =\n type === \"ImportDefaultSpecifier\"\n ? \"default\"\n : specifierNode.imported.name\n if (!has(traceMap, key)) {\n return\n }\n\n path = path.concat(key) //eslint-disable-line no-param-reassign\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: specifierNode,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n yield* this._iterateVariableReferences(\n findVariable(this.globalScope, specifierNode.local),\n path,\n nextTraceMap,\n false\n )\n\n return\n }\n\n if (type === \"ImportNamespaceSpecifier\") {\n yield* this._iterateVariableReferences(\n findVariable(this.globalScope, specifierNode.local),\n path,\n traceMap,\n false\n )\n return\n }\n\n if (type === \"ExportSpecifier\") {\n const key = specifierNode.local.name\n if (!has(traceMap, key)) {\n return\n }\n\n path = path.concat(key) //eslint-disable-line no-param-reassign\n const nextTraceMap = traceMap[key]\n if (nextTraceMap[READ]) {\n yield {\n node: specifierNode,\n path,\n type: READ,\n info: nextTraceMap[READ],\n }\n }\n }\n }\n}\n\nReferenceTracker.READ = READ\nReferenceTracker.CALL = CALL\nReferenceTracker.CONSTRUCT = CONSTRUCT\nReferenceTracker.ESM = ESM\n\n/**\n * This is a predicate function for Array#filter.\n * @param {string} name A name part.\n * @param {number} index The index of the name.\n * @returns {boolean} `false` if it's default.\n */\nfunction exceptDefault(name, index) {\n return !(index === 1 && name === \"default\")\n}\n","import { findVariable } from \"./find-variable\"\nimport { getFunctionHeadLocation } from \"./get-function-head-location\"\nimport { getFunctionNameWithKind } from \"./get-function-name-with-kind\"\nimport { getInnermostScope } from \"./get-innermost-scope\"\nimport { getPropertyName } from \"./get-property-name\"\nimport { getStaticValue } from \"./get-static-value\"\nimport { getStringIfConstant } from \"./get-string-if-constant\"\nimport { hasSideEffect } from \"./has-side-effect\"\nimport { isParenthesized } from \"./is-parenthesized\"\nimport { PatternMatcher } from \"./pattern-matcher\"\nimport {\n CALL,\n CONSTRUCT,\n ESM,\n READ,\n ReferenceTracker,\n} from \"./reference-tracker\"\nimport {\n isArrowToken,\n isClosingBraceToken,\n isClosingBracketToken,\n isClosingParenToken,\n isColonToken,\n isCommaToken,\n isCommentToken,\n isNotArrowToken,\n isNotClosingBraceToken,\n isNotClosingBracketToken,\n isNotClosingParenToken,\n isNotColonToken,\n isNotCommaToken,\n isNotCommentToken,\n isNotOpeningBraceToken,\n isNotOpeningBracketToken,\n isNotOpeningParenToken,\n isNotSemicolonToken,\n isOpeningBraceToken,\n isOpeningBracketToken,\n isOpeningParenToken,\n isSemicolonToken,\n} from \"./token-predicate\"\n\nexport default {\n CALL,\n CONSTRUCT,\n ESM,\n findVariable,\n getFunctionHeadLocation,\n getFunctionNameWithKind,\n getInnermostScope,\n getPropertyName,\n getStaticValue,\n getStringIfConstant,\n hasSideEffect,\n isArrowToken,\n isClosingBraceToken,\n isClosingBracketToken,\n isClosingParenToken,\n isColonToken,\n isCommaToken,\n isCommentToken,\n isNotArrowToken,\n isNotClosingBraceToken,\n isNotClosingBracketToken,\n isNotClosingParenToken,\n isNotColonToken,\n isNotCommaToken,\n isNotCommentToken,\n isNotOpeningBraceToken,\n isNotOpeningBracketToken,\n isNotOpeningParenToken,\n isNotSemicolonToken,\n isOpeningBraceToken,\n isOpeningBracketToken,\n isOpeningParenToken,\n isParenthesized,\n isSemicolonToken,\n PatternMatcher,\n READ,\n ReferenceTracker,\n}\nexport {\n CALL,\n CONSTRUCT,\n ESM,\n findVariable,\n getFunctionHeadLocation,\n getFunctionNameWithKind,\n getInnermostScope,\n getPropertyName,\n getStaticValue,\n getStringIfConstant,\n hasSideEffect,\n isArrowToken,\n isClosingBraceToken,\n isClosingBracketToken,\n isClosingParenToken,\n isColonToken,\n isCommaToken,\n isCommentToken,\n isNotArrowToken,\n isNotClosingBraceToken,\n isNotClosingBracketToken,\n isNotClosingParenToken,\n isNotColonToken,\n isNotCommaToken,\n isNotCommentToken,\n isNotOpeningBraceToken,\n isNotOpeningBracketToken,\n isNotOpeningParenToken,\n isNotSemicolonToken,\n isOpeningBraceToken,\n isOpeningBracketToken,\n isOpeningParenToken,\n isParenthesized,\n isSemicolonToken,\n PatternMatcher,\n READ,\n ReferenceTracker,\n}\n"],"names":[],"mappings":";;;AAAA;;;;;;AAMA,AAAO,SAAS,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE;IAClD,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAC;;IAE9B,IAAI,KAAK,GAAG,aAAY;IACxB,IAAI,KAAK,GAAG,MAAK;IACjB,GAAG;QACC,KAAK,GAAG,MAAK;QACb,KAAK,MAAM,UAAU,IAAI,KAAK,CAAC,WAAW,EAAE;YACxC,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,MAAK;;YAEpC,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,QAAQ,IAAI,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE;gBAC7C,KAAK,GAAG,WAAU;gBAClB,KAAK,GAAG,KAAI;gBACZ,KAAK;aACR;SACJ;KACJ,QAAQ,KAAK,CAAC;;IAEf,OAAO,KAAK;CACf;;ACvBD;;;;;;AAMA,AAAO,SAAS,YAAY,CAAC,YAAY,EAAE,UAAU,EAAE;IACnD,IAAI,IAAI,GAAG,GAAE;IACb,IAAI,KAAK,GAAG,aAAY;;IAExB,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;QAChC,IAAI,GAAG,WAAU;KACpB,MAAM;QACH,IAAI,GAAG,UAAU,CAAC,KAAI;QACtB,KAAK,GAAG,iBAAiB,CAAC,KAAK,EAAE,UAAU,E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,IAAI,GAAG,KAAI;AAC5B,gBAAgB,CAAC,SAAS,GAAG,UAAS;AACtC,gBAAgB,CAAC,GAAG,GAAG,IAAG;;;;;;;;AAQ1B,SAAS,aAAa,CAAC,IAAI,EAAE,KAAK,EAAE;IAChC,OAAO,EAAE,KAAK,KAAK,CAAC,IAAI,IAAI,KAAK,SAAS,CAAC;CAC9C;;ACxZD,YAAe;IACX,IAAI;IACJ,SAAS;IACT,GAAG;IACH,YAAY;IACZ,uBAAuB;IACvB,uBAAuB;IACvB,iBAAiB;IACjB,eAAe;IACf,cAAc;IACd,mBAAmB;IACnB,aAAa;IACb,YAAY;IACZ,mBAAmB;IACnB,qBAAqB;IACrB,mBAAmB;IACnB,YAAY;IACZ,YAAY;IACZ,cAAc;IACd,eAAe;IACf,sBAAsB;IACtB,wBAAwB;IACxB,sBAAsB;IACtB,eAAe;IACf,eAAe;IACf,iBAAiB;IACjB,sBAAsB;IACtB,wBAAwB;IACxB,sBAAsB;IACtB,mBAAmB;IACnB,mBAAmB;IACnB,qBAAqB;IACrB,mBAAmB;IACnB,eAAe;IACf,gBAAgB;IAChB,cAAc;IACd,IAAI;IACJ,gBAAgB;CACnB;;;;;"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/package.json b/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/package.json
deleted file mode 100644
index 8af7d4f..0000000
--- a/node_modules/@typescript-eslint/eslint-plugin/node_modules/eslint-utils/package.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "name": "eslint-utils",
- "version": "1.4.3",
- "description": "Utilities for ESLint plugins.",
- "engines": {
- "node": ">=6"
- },
- "sideEffects": false,
- "main": "index",
- "module": "index.mjs",
- "files": [
- "index.*"
- ],
- "dependencies": {
- "eslint-visitor-keys": "^1.1.0"
- },
- "devDependencies": {
- "@mysticatea/eslint-plugin": "^12.0.0",
- "codecov": "^3.6.1",
- "dot-prop": "^4.2.0",
- "eslint": "^6.5.1",
- "esm": "^3.2.25",
- "espree": "^6.1.1",
- "mocha": "^6.2.2",
- "npm-run-all": "^4.1.5",
- "nyc": "^14.1.1",
- "opener": "^1.5.1",
- "rimraf": "^3.0.0",
- "rollup": "^1.25.0",
- "rollup-plugin-sourcemaps": "^0.4.2",
- "vuepress": "^1.2.0",
- "warun": "^1.0.0"
- },
- "scripts": {
- "prebuild": "npm run -s clean",
- "build": "rollup -c",
- "clean": "rimraf .nyc_output coverage index.*",
- "codecov": "nyc report -r lcovonly && codecov",
- "coverage": "opener ./coverage/lcov-report/index.html",
- "docs:build": "vuepress build docs",
- "docs:watch": "vuepress dev docs",
- "lint": "eslint src test",
- "test": "run-s lint build test:mocha",
- "test:mocha": "nyc mocha --reporter dot \"test/*.js\"",
- "preversion": "npm test && npm run -s build",
- "postversion": "git push && git push --tags",
- "prewatch": "npm run -s clean",
- "watch": "warun \"{src,test}/**/*.js\" -- npm run -s test:mocha"
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/mysticatea/eslint-utils.git"
- },
- "keywords": [
- "eslint"
- ],
- "author": "Toru Nagashima",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/mysticatea/eslint-utils/issues"
- },
- "homepage": "https://github.com/mysticatea/eslint-utils#readme"
-}
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/CHANGELOG.md b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/CHANGELOG.md
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/CHANGELOG.md
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/CHANGELOG.md
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/LICENSE b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/LICENSE
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/LICENSE
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/LICENSE
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/README.md b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/README.md
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/README.md
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/README.md
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/bin/semver.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/bin/semver.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/bin/semver.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/bin/semver.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/classes/comparator.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/classes/comparator.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/classes/comparator.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/classes/comparator.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/classes/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/classes/index.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/classes/index.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/classes/index.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/classes/range.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/classes/range.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/classes/range.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/classes/range.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/classes/semver.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/classes/semver.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/classes/semver.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/classes/semver.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/clean.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/clean.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/clean.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/clean.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/cmp.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/cmp.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/cmp.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/cmp.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/coerce.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/coerce.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/coerce.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/coerce.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/compare-build.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/compare-build.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/compare-build.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/compare-build.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/compare-loose.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/compare-loose.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/compare-loose.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/compare-loose.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/compare.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/compare.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/compare.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/compare.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/diff.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/diff.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/diff.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/diff.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/eq.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/eq.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/eq.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/eq.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/gt.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/gt.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/gt.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/gt.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/gte.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/gte.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/gte.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/gte.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/inc.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/inc.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/inc.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/inc.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/lt.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/lt.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/lt.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/lt.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/lte.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/lte.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/lte.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/lte.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/major.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/major.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/major.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/major.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/minor.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/minor.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/minor.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/minor.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/neq.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/neq.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/neq.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/neq.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/parse.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/parse.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/parse.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/parse.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/patch.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/patch.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/patch.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/patch.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/prerelease.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/prerelease.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/prerelease.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/prerelease.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/rcompare.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/rcompare.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/rcompare.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/rcompare.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/rsort.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/rsort.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/rsort.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/rsort.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/satisfies.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/satisfies.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/satisfies.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/satisfies.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/sort.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/sort.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/sort.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/sort.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/functions/valid.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/valid.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/functions/valid.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/functions/valid.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/index.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/index.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/index.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/index.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/internal/constants.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/internal/constants.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/internal/constants.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/internal/constants.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/internal/debug.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/internal/debug.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/internal/debug.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/internal/debug.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/internal/identifiers.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/internal/identifiers.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/internal/identifiers.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/internal/identifiers.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/internal/re.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/internal/re.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/internal/re.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/internal/re.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/package.json b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/package.json
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/package.json
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/package.json
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/preload.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/preload.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/preload.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/preload.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/range.bnf b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/range.bnf
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/range.bnf
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/range.bnf
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/ranges/gtr.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/gtr.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/ranges/gtr.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/gtr.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/ranges/intersects.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/intersects.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/ranges/intersects.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/intersects.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/ranges/ltr.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/ltr.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/ranges/ltr.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/ltr.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/ranges/max-satisfying.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/max-satisfying.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/ranges/max-satisfying.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/max-satisfying.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/ranges/min-satisfying.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/min-satisfying.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/ranges/min-satisfying.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/min-satisfying.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/ranges/min-version.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/min-version.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/ranges/min-version.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/min-version.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/ranges/outside.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/outside.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/ranges/outside.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/outside.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/ranges/simplify.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/simplify.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/ranges/simplify.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/simplify.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/ranges/subset.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/subset.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/ranges/subset.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/subset.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/ranges/to-comparators.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/to-comparators.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/ranges/to-comparators.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/to-comparators.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/semver/ranges/valid.js b/node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/valid.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/semver/ranges/valid.js
rename to node_modules/@typescript-eslint/eslint-plugin/node_modules/semver/ranges/valid.js
diff --git a/node_modules/@typescript-eslint/eslint-plugin/package.json b/node_modules/@typescript-eslint/eslint-plugin/package.json
index e2fa131..04c205c 100644
--- a/node_modules/@typescript-eslint/eslint-plugin/package.json
+++ b/node_modules/@typescript-eslint/eslint-plugin/package.json
@@ -1,6 +1,6 @@
{
"name": "@typescript-eslint/eslint-plugin",
- "version": "2.22.0",
+ "version": "4.3.0",
"description": "TypeScript plugin for ESLint",
"keywords": [
"eslint",
@@ -9,7 +9,7 @@
"typescript"
],
"engines": {
- "node": "^8.10.0 || ^10.13.0 || >=11.10.1"
+ "node": "^10.12.0 || >=12.0.0"
},
"files": [
"dist",
@@ -33,6 +33,7 @@
"check:docs": "jest tests/docs.test.ts --runTestsByPath --silent --runInBand",
"check:configs": "jest tests/configs.test.ts --runTestsByPath --silent --runInBand",
"clean": "tsc -b tsconfig.build.json --clean",
+ "postclean": "rimraf dist",
"format": "prettier --write \"./**/*.{ts,js,json,md}\" --ignore-path ../../.prettierignore",
"generate:configs": "../../node_modules/.bin/ts-node --files --transpile-only tools/generate-configs.ts",
"generate:rules-lists": "../../node_modules/.bin/ts-node --files --transpile-only tools/generate-rules-lists.ts",
@@ -41,24 +42,26 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
- "@typescript-eslint/experimental-utils": "2.22.0",
- "eslint-utils": "^1.4.3",
+ "@typescript-eslint/experimental-utils": "4.3.0",
+ "@typescript-eslint/scope-manager": "4.3.0",
+ "debug": "^4.1.1",
"functional-red-black-tree": "^1.0.1",
"regexpp": "^3.0.0",
+ "semver": "^7.3.2",
"tsutils": "^3.17.1"
},
"devDependencies": {
- "@types/json-schema": "^7.0.3",
- "@types/marked": "^0.7.1",
- "@types/prettier": "^1.18.2",
- "chalk": "^3.0.0",
- "marked": "^0.7.0",
+ "@types/debug": "*",
+ "@types/marked": "^1.1.0",
+ "@types/prettier": "*",
+ "chalk": "^4.0.0",
+ "marked": "^1.0.0",
"prettier": "*",
"typescript": "*"
},
"peerDependencies": {
- "@typescript-eslint/parser": "^2.0.0",
- "eslint": "^5.0.0 || ^6.0.0"
+ "@typescript-eslint/parser": "^4.0.0",
+ "eslint": "^5.0.0 || ^6.0.0 || ^7.0.0"
},
"peerDependenciesMeta": {
"typescript": {
@@ -69,5 +72,5 @@
"type": "opencollective",
"url": "https://opencollective.com/typescript-eslint"
},
- "gitHead": "5a097d316fb084dc4b13e87d68fe9bf43d8a9548"
+ "gitHead": "229631e6cd90bba8f509a6d49fec72fd7a576ccf"
}
diff --git a/node_modules/@typescript-eslint/experimental-utils/CHANGELOG.md b/node_modules/@typescript-eslint/experimental-utils/CHANGELOG.md
index fc8b6a8..88a8ced 100644
--- a/node_modules/@typescript-eslint/experimental-utils/CHANGELOG.md
+++ b/node_modules/@typescript-eslint/experimental-utils/CHANGELOG.md
@@ -3,6 +3,364 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
+# [4.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.2.0...v4.3.0) (2020-09-28)
+
+
+### Bug Fixes
+
+* **experimental-utils:** treat RuleTester arrays as readonly ([#2601](https://github.com/typescript-eslint/typescript-eslint/issues/2601)) ([8025777](https://github.com/typescript-eslint/typescript-eslint/commit/80257776b78bd2b2b4389d6bd530b009a75fb520))
+
+
+
+
+
+# [4.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.1.1...v4.2.0) (2020-09-21)
+
+**Note:** Version bump only for package @typescript-eslint/experimental-utils
+
+
+
+
+
+## [4.1.1](https://github.com/typescript-eslint/typescript-eslint/compare/v4.1.0...v4.1.1) (2020-09-14)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [no-use-before-define] false positive for function type arguments ([#2554](https://github.com/typescript-eslint/typescript-eslint/issues/2554)) ([189162d](https://github.com/typescript-eslint/typescript-eslint/commit/189162d46ecb116c420232937a7f86df913f4e79)), closes [#2527](https://github.com/typescript-eslint/typescript-eslint/issues/2527)
+
+
+
+
+
+# [4.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v4.0.1...v4.1.0) (2020-09-07)
+
+**Note:** Version bump only for package @typescript-eslint/experimental-utils
+
+
+
+
+
+## [4.0.1](https://github.com/typescript-eslint/typescript-eslint/compare/v4.0.0...v4.0.1) (2020-08-31)
+
+**Note:** Version bump only for package @typescript-eslint/experimental-utils
+
+
+
+
+
+# [4.0.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.10.1...v4.0.0) (2020-08-31)
+
+## [Please see the release notes for v4.0.0](https://github.com/typescript-eslint/typescript-eslint/releases/tag/v4.0.0)
+
+### Features
+
+* consume new scope analysis package ([#2039](https://github.com/typescript-eslint/typescript-eslint/issues/2039)) ([3be125d](https://github.com/typescript-eslint/typescript-eslint/commit/3be125d9bdbee1984ac6037874edf619213bd3d0))
+* support ESTree optional chaining representation ([#2308](https://github.com/typescript-eslint/typescript-eslint/issues/2308)) ([e9d2ab6](https://github.com/typescript-eslint/typescript-eslint/commit/e9d2ab638b6767700b52797e74b814ea059beaae))
+
+
+
+
+
+## [3.10.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.10.0...v3.10.1) (2020-08-25)
+
+**Note:** Version bump only for package @typescript-eslint/experimental-utils
+
+
+
+
+
+# [3.10.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.9.1...v3.10.0) (2020-08-24)
+
+**Note:** Version bump only for package @typescript-eslint/experimental-utils
+
+
+
+
+
+## [3.9.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.9.0...v3.9.1) (2020-08-17)
+
+**Note:** Version bump only for package @typescript-eslint/experimental-utils
+
+
+
+
+
+# [3.9.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.8.0...v3.9.0) (2020-08-10)
+
+**Note:** Version bump only for package @typescript-eslint/experimental-utils
+
+
+
+
+
+# [3.8.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.7.1...v3.8.0) (2020-08-03)
+
+**Note:** Version bump only for package @typescript-eslint/experimental-utils
+
+
+
+
+
+## [3.7.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.7.0...v3.7.1) (2020-07-27)
+
+**Note:** Version bump only for package @typescript-eslint/experimental-utils
+
+
+
+
+
+# [3.7.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.6.1...v3.7.0) (2020-07-20)
+
+**Note:** Version bump only for package @typescript-eslint/experimental-utils
+
+
+
+
+
+## [3.6.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.6.0...v3.6.1) (2020-07-13)
+
+**Note:** Version bump only for package @typescript-eslint/experimental-utils
+
+
+
+
+
+# [3.6.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.5.0...v3.6.0) (2020-07-06)
+
+**Note:** Version bump only for package @typescript-eslint/experimental-utils
+
+
+
+
+
+# [3.5.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.4.0...v3.5.0) (2020-06-29)
+
+
+### Features
+
+* add package scope-manager ([#1939](https://github.com/typescript-eslint/typescript-eslint/issues/1939)) ([682eb7e](https://github.com/typescript-eslint/typescript-eslint/commit/682eb7e009c3f22a542882dfd3602196a60d2a1e))
+* split types into their own package ([#2229](https://github.com/typescript-eslint/typescript-eslint/issues/2229)) ([5f45918](https://github.com/typescript-eslint/typescript-eslint/commit/5f4591886f3438329fbf2229b03ac66174334a24))
+
+
+
+
+
+# [3.4.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.3.0...v3.4.0) (2020-06-22)
+
+
+### Bug Fixes
+
+* **experimental-utils:** correct types for TS versions older than 3.8 ([#2217](https://github.com/typescript-eslint/typescript-eslint/issues/2217)) ([5e4dda2](https://github.com/typescript-eslint/typescript-eslint/commit/5e4dda264a7d6a6a1626848e7599faea1ac34922))
+* **experimental-utils:** getParserServices takes a readonly context ([#2235](https://github.com/typescript-eslint/typescript-eslint/issues/2235)) ([26da8de](https://github.com/typescript-eslint/typescript-eslint/commit/26da8de7fcde9eddec63212d79af781c4bb22991))
+
+
+
+
+
+# [3.3.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.2.0...v3.3.0) (2020-06-15)
+
+**Note:** Version bump only for package @typescript-eslint/experimental-utils
+
+
+
+
+
+# [3.2.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.1.0...v3.2.0) (2020-06-08)
+
+
+### Bug Fixes
+
+* **eslint-plugin:** [prefer-optional-chain] handling first member expression ([#2156](https://github.com/typescript-eslint/typescript-eslint/issues/2156)) ([de18660](https://github.com/typescript-eslint/typescript-eslint/commit/de18660a8cf8f7033798646d8c5b0938d1accb12))
+
+
+
+
+
+# [3.1.0](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.2...v3.1.0) (2020-06-01)
+
+
+### Bug Fixes
+
+* **experimental-utils:** downlevel type declarations for versions older than 3.8 ([#2133](https://github.com/typescript-eslint/typescript-eslint/issues/2133)) ([7925823](https://github.com/typescript-eslint/typescript-eslint/commit/792582326a8065270b69a0ffcaad5a7b4b103ff3))
+
+
+### Features
+
+* **eslint-plugin:** [explicit-module-boundary-types] improve accuracy and coverage ([#2135](https://github.com/typescript-eslint/typescript-eslint/issues/2135)) ([caaa859](https://github.com/typescript-eslint/typescript-eslint/commit/caaa8599284d02ab3341e282cad35a52d0fb86c7))
+
+
+
+
+
+## [3.0.2](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.1...v3.0.2) (2020-05-27)
+
+
+### Bug Fixes
+
+* regression for eslint v6 ([#2105](https://github.com/typescript-eslint/typescript-eslint/issues/2105)) ([31fc503](https://github.com/typescript-eslint/typescript-eslint/commit/31fc5039ed919e1515fda673c186d5c83eb5beb3))
+
+
+
+
+
+## [3.0.1](https://github.com/typescript-eslint/typescript-eslint/compare/v3.0.0...v3.0.1) (2020-05-25)
+
+
+### Bug Fixes
+
+* **experimental-utils:** export `CLIEngine` & `ESLint` ([#2083](https://github.com/typescript-eslint/typescript-eslint/issues/2083)) ([014341b](https://github.com/typescript-eslint/typescript-eslint/commit/014341bb23261f609fc2a6fe7fece191466a084a))
+
+
+
+
+
+# [3.0.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.34.0...v3.0.0) (2020-05-21)
+
+## [Please see the release notes for v3.0.0](https://github.com/typescript-eslint/typescript-eslint/releases/tag/v3.0.0)
+
+### Bug Fixes
+
+* **experimental-utils:** add back SourceCode.isSpaceBetweenTokens ([ae82ea4](https://github.com/typescript-eslint/typescript-eslint/commit/ae82ea4a85a4ca332ebe6104e96c59dba30411be))
+* **typescript-estree:** remove now defunct `Import` node type ([f199cbd](https://github.com/typescript-eslint/typescript-eslint/commit/f199cbdbbd892b5ba03bfff66f463f3d9c92ee9b))
+
+
+### Features
+
+* **experimental-utils:** upgrade eslint types for v7 ([#2023](https://github.com/typescript-eslint/typescript-eslint/issues/2023)) ([06869c9](https://github.com/typescript-eslint/typescript-eslint/commit/06869c9656fa37936126666845aee40aad546ebd))
+* drop support for node v8 ([#1997](https://github.com/typescript-eslint/typescript-eslint/issues/1997)) ([b6c3b7b](https://github.com/typescript-eslint/typescript-eslint/commit/b6c3b7b84b8d199fa75a46432febd4a364a63217))
+* upgrade to ESLint v7 ([#2022](https://github.com/typescript-eslint/typescript-eslint/issues/2022)) ([208de71](https://github.com/typescript-eslint/typescript-eslint/commit/208de71059746bf38e94bd460346ffb2698a3e12))
+* **eslint-plugin:** [ban-types] rework default options ([#848](https://github.com/typescript-eslint/typescript-eslint/issues/848)) ([8e31d5d](https://github.com/typescript-eslint/typescript-eslint/commit/8e31d5dbe9fe5227fdbefcecfd50ce5dd51360c3))
+* **typescript-estree:** always return parserServices ([#716](https://github.com/typescript-eslint/typescript-eslint/issues/716)) ([5b23443](https://github.com/typescript-eslint/typescript-eslint/commit/5b23443c48f3f62424db3e742243f3568080b946))
+
+
+
+
+
+# [2.34.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.33.0...v2.34.0) (2020-05-18)
+
+
+### Features
+
+* **experimental-utils:** add `suggestion` property for rule modules ([#2033](https://github.com/typescript-eslint/typescript-eslint/issues/2033)) ([f42a5b0](https://github.com/typescript-eslint/typescript-eslint/commit/f42a5b09ebfa173f418a99c552b0cbe221567194))
+
+
+
+
+
+# [2.33.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.32.0...v2.33.0) (2020-05-12)
+
+
+### Bug Fixes
+
+* **experimental-utils:** remove accidental dep on json-schema ([#2010](https://github.com/typescript-eslint/typescript-eslint/issues/2010)) ([1875fba](https://github.com/typescript-eslint/typescript-eslint/commit/1875fbad41f2a3dda8f610f5dcd180c6205b73d3))
+
+
+
+
+
+# [2.32.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.31.0...v2.32.0) (2020-05-11)
+
+
+### Features
+
+* bump dependencies and align AST ([#2007](https://github.com/typescript-eslint/typescript-eslint/issues/2007)) ([18668b7](https://github.com/typescript-eslint/typescript-eslint/commit/18668b78fd7d1e5281af7fc26c76e0ca53297f69))
+
+
+
+
+
+# [2.31.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.30.0...v2.31.0) (2020-05-04)
+
+
+### Features
+
+* **experimental-utils:** expose our RuleTester extension ([#1948](https://github.com/typescript-eslint/typescript-eslint/issues/1948)) ([2dd1638](https://github.com/typescript-eslint/typescript-eslint/commit/2dd1638aaa2658ba99b2341861146b586f489121))
+
+
+
+
+
+# [2.30.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.29.0...v2.30.0) (2020-04-27)
+
+
+### Features
+
+* **experimental-utils:** allow rule options to be a readonly tuple ([#1924](https://github.com/typescript-eslint/typescript-eslint/issues/1924)) ([4ef6788](https://github.com/typescript-eslint/typescript-eslint/commit/4ef67884962b6aac61cc895aaa3ba16aa892ecf4))
+
+
+
+
+
+# [2.29.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.28.0...v2.29.0) (2020-04-20)
+
+**Note:** Version bump only for package @typescript-eslint/experimental-utils
+
+
+
+
+
+# [2.28.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.27.0...v2.28.0) (2020-04-13)
+
+
+### Features
+
+* **eslint-plugin:** add rule `prefer-reduce-type-parameter` ([#1707](https://github.com/typescript-eslint/typescript-eslint/issues/1707)) ([c92d240](https://github.com/typescript-eslint/typescript-eslint/commit/c92d240e49113779053eac32038382b282812afc))
+
+
+
+
+
+# [2.27.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.26.0...v2.27.0) (2020-04-06)
+
+
+### Features
+
+* **experimental-utils:** add types for suggestions from CLIEngine ([#1844](https://github.com/typescript-eslint/typescript-eslint/issues/1844)) ([7c11bd6](https://github.com/typescript-eslint/typescript-eslint/commit/7c11bd66f2d0e5ea9d3943e6b8c66e6ddff50862))
+* **experimental-utils:** update eslint types to match v6.8 ([#1846](https://github.com/typescript-eslint/typescript-eslint/issues/1846)) ([16ce74d](https://github.com/typescript-eslint/typescript-eslint/commit/16ce74d247781ac890dc0baa30c384f97e581b6b))
+
+
+
+
+
+# [2.26.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.25.0...v2.26.0) (2020-03-30)
+
+
+### Features
+
+* **typescript-estree:** add option to ignore certain folders from glob resolution ([#1802](https://github.com/typescript-eslint/typescript-eslint/issues/1802)) ([1e29e69](https://github.com/typescript-eslint/typescript-eslint/commit/1e29e69b289d61107a7de67592beae331ba50222))
+
+
+
+
+
+# [2.25.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.24.0...v2.25.0) (2020-03-23)
+
+
+### Features
+
+* **experimental-utils:** expose ast utility functions ([#1670](https://github.com/typescript-eslint/typescript-eslint/issues/1670)) ([3eb5d45](https://github.com/typescript-eslint/typescript-eslint/commit/3eb5d4525e95c8ab990f55588b8d830a02ce5a9c))
+
+
+
+
+
+# [2.24.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.23.0...v2.24.0) (2020-03-16)
+
+**Note:** Version bump only for package @typescript-eslint/experimental-utils
+
+
+
+
+
+# [2.23.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.22.0...v2.23.0) (2020-03-09)
+
+**Note:** Version bump only for package @typescript-eslint/experimental-utils
+
+
+
+
+
# [2.22.0](https://github.com/typescript-eslint/typescript-eslint/compare/v2.21.0...v2.22.0) (2020-03-02)
**Note:** Version bump only for package @typescript-eslint/experimental-utils
diff --git a/node_modules/@typescript-eslint/experimental-utils/README.md b/node_modules/@typescript-eslint/experimental-utils/README.md
index 2f02ef1..208578b 100644
--- a/node_modules/@typescript-eslint/experimental-utils/README.md
+++ b/node_modules/@typescript-eslint/experimental-utils/README.md
@@ -1,27 +1,36 @@
-# `@typescript-eslint/experimental-utils`
+<h1 align="center">Utils for ESLint Plugins</h1>
-(Experimental) Utilities for working with TypeScript + ESLint together.
+<p align="center">Utilities for working with TypeScript + ESLint together.</p>
+
+<p align="center">
+ <img src="https://github.com/typescript-eslint/typescript-eslint/workflows/CI/badge.svg" alt="CI" />
+ <a href="https://www.npmjs.com/package/@typescript-eslint/eslint-plugin"><img src="https://img.shields.io/npm/v/@typescript-eslint/eslint-plugin.svg?style=flat-square" alt="NPM Version" /></a>
+ <a href="https://www.npmjs.com/package/@typescript-eslint/eslint-plugin"><img src="https://img.shields.io/npm/dm/@typescript-eslint/eslint-plugin.svg?style=flat-square" alt="NPM Downloads" /></a>
+</p>
## Note
This package has inherited its version number from the `@typescript-eslint` project.
-Meaning that even though this package is `1.x.y`, you shouldn't expect 100% stability between minor version bumps.
+Meaning that even though this package is `2.x.y`, you shouldn't expect 100% stability between minor version bumps.
i.e. treat it as a `0.x.y` package.
Feel free to use it now, and let us know what utilities you need or send us PRs with utilities you build on top of it.
-Once it is stable, it will be renamed to `@typescript-eslint/util` for a `2.0.0` release.
+Once it is stable, it will be renamed to `@typescript-eslint/util` for a `4.0.0` release.
## Exports
-| Name | Description |
-| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
-| [`TSESTree`](../packages/typescript-estree/src/ts-estree/ts-estree.ts) | Types for the TypeScript flavor of ESTree created by `@typescript-eslint/typescript-estree`. |
-| [`AST_NODE_TYPES`](../packages/typescript-estree/src/ts-estree/ast-node-types.ts) | An enum with the names of every single _node_ found in `TSESTree`. |
-| [`AST_TOKEN_TYPES`](../packages/typescript-estree/src/ts-estree/ast-node-types.ts) | An enum with the names of every single _token_ found in `TSESTree`. |
-| [`TSESLint`](./src/ts-eslint) | Types for ESLint, correctly typed to work with the types found in `TSESTree`. |
-| [`ESLintUtils`](./src/eslint-utils) | Tools for creating ESLint rules with TypeScript. |
-| [`ParserServices`](../packages/typescript-estree/src/ts-estree/parser.ts) | The parser services provided when parsing a file using `@typescript-eslint/typescript-estree`. |
+| Name | Description |
+| -------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| [`ASTUtils`](./src/ast-utils) | Tools for operating on the ESTree AST. Also includes the [`eslint-utils`](https://www.npmjs.com/package/eslint-utils) package, correctly typed to work with the types found in `TSESTree` |
+| [`ESLintUtils`](./src/eslint-utils) | Tools for creating ESLint rules with TypeScript. |
+| `JSONSchema` | Types from the [`@types/json-schema`](https://www.npmjs.com/package/@types/json-schema) package, re-exported to save you having to manually import them. Also ensures you're using the same version of the types as this package. |
+| [`TSESLint`](./src/ts-eslint) | Types for ESLint, correctly typed to work with the types found in `TSESTree`. |
+| [`TSESLintScope`](./src/ts-eslint-scope) | The [`eslint-scope`](https://www.npmjs.com/package/eslint-scope) package, correctly typed to work with the types found in both `TSESTree` and `TSESLint` |
+| [`TSESTree`](../types/src/ts-estree.ts) | Types for the TypeScript flavor of ESTree created by `@typescript-eslint/typescript-estree`. |
+| [`AST_NODE_TYPES`](../types/src/ast-node-types.ts) | An enum with the names of every single _node_ found in `TSESTree`. |
+| [`AST_TOKEN_TYPES`](../types/src/ast-token-types.ts) | An enum with the names of every single _token_ found in `TSESTree`. |
+| [`ParserServices`](../typescript-estree/src/parser-options.ts) | Typing for the parser services provided when parsing a file using `@typescript-eslint/typescript-estree`. |
## Contributing
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/PatternMatcher.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/PatternMatcher.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/PatternMatcher.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/PatternMatcher.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/index.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/index.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/index.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/index.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/predicates.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/predicates.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/predicates.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/predicates.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/index.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/index.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/index.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/index.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/misc.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/misc.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/misc.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/misc.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/predicates.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/predicates.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/predicates.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/predicates.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/InferTypesFromRule.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/InferTypesFromRule.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/InferTypesFromRule.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/InferTypesFromRule.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/RuleCreator.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/RuleCreator.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/RuleCreator.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/RuleCreator.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/RuleTester.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/RuleTester.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/RuleTester.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/RuleTester.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/applyDefault.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/applyDefault.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/applyDefault.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/applyDefault.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/batchedSingleLineTests.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/batchedSingleLineTests.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/batchedSingleLineTests.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/batchedSingleLineTests.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/deepMerge.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/deepMerge.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/deepMerge.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/deepMerge.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/getParserServices.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/getParserServices.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/getParserServices.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/getParserServices.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/index.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/index.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/index.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/eslint-utils/index.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/index.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/index.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/index.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/index.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/json-schema.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/json-schema.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/json-schema.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/json-schema.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Definition.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Definition.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Definition.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Definition.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Options.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Options.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Options.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Options.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/PatternVisitor.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/PatternVisitor.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/PatternVisitor.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/PatternVisitor.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Reference.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Reference.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Reference.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Reference.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Referencer.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Referencer.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Referencer.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Referencer.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Scope.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Scope.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Scope.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Scope.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/ScopeManager.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/ScopeManager.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/ScopeManager.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/ScopeManager.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Variable.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Variable.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Variable.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/Variable.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/analyze.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/analyze.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/analyze.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/analyze.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/index.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/index.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/index.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint-scope/index.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/AST.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/AST.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/AST.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/AST.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/CLIEngine.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/CLIEngine.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/CLIEngine.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/CLIEngine.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/ESLint.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/ESLint.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/ESLint.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/ESLint.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/Linter.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/Linter.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/Linter.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/Linter.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/ParserOptions.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/ParserOptions.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/ParserOptions.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/ParserOptions.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/Rule.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/Rule.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/Rule.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/Rule.d.ts
diff --git a/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/RuleTester.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/RuleTester.d.ts
new file mode 100644
index 0000000..c8f5d2f
--- /dev/null
+++ b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/RuleTester.d.ts
@@ -0,0 +1,137 @@
+import { AST_NODE_TYPES, AST_TOKEN_TYPES } from '../ts-estree';
+import { ParserOptions } from './ParserOptions';
+import { RuleModule } from './Rule';
+interface ValidTestCase<TOptions extends Readonly<unknown[]>> {
+ /**
+ * Code for the test case.
+ */
+ readonly code: string;
+ /**
+ * Environments for the test case.
+ */
+ readonly env?: Readonly<Record<string, boolean>>;
+ /**
+ * The fake filename for the test case. Useful for rules that make assertion about filenames.
+ */
+ readonly filename?: string;
+ /**
+ * The additional global variables.
+ */
+ readonly globals?: Record<string, 'readonly' | 'writable' | 'off'>;
+ /**
+ * Options for the test case.
+ */
+ readonly options?: Readonly<TOptions>;
+ /**
+ * The absolute path for the parser.
+ */
+ readonly parser?: string;
+ /**
+ * Options for the parser.
+ */
+ readonly parserOptions?: Readonly<ParserOptions>;
+ /**
+ * Settings for the test case.
+ */
+ readonly settings?: Readonly<Record<string, unknown>>;
+}
+interface SuggestionOutput<TMessageIds extends string> {
+ /**
+ * Reported message ID.
+ */
+ readonly messageId: TMessageIds;
+ /**
+ * The data used to fill the message template.
+ */
+ readonly data?: Readonly<Record<string, unknown>>;
+ /**
+ * NOTE: Suggestions will be applied as a stand-alone change, without triggering multi-pass fixes.
+ * Each individual error has its own suggestion, so you have to show the correct, _isolated_ output for each suggestion.
+ */
+ readonly output: string;
+}
+interface InvalidTestCase<TMessageIds extends string, TOptions extends Readonly<unknown[]>> extends ValidTestCase<TOptions> {
+ /**
+ * Expected errors.
+ */
+ readonly errors: readonly TestCaseError<TMessageIds>[];
+ /**
+ * The expected code after autofixes are applied. If set to `null`, the test runner will assert that no autofix is suggested.
+ */
+ readonly output?: string | null;
+}
+interface TestCaseError<TMessageIds extends string> {
+ /**
+ * The 1-based column number of the reported start location.
+ */
+ readonly column?: number;
+ /**
+ * The data used to fill the message template.
+ */
+ readonly data?: Readonly<Record<string, unknown>>;
+ /**
+ * The 1-based column number of the reported end location.
+ */
+ readonly endColumn?: number;
+ /**
+ * The 1-based line number of the reported end location.
+ */
+ readonly endLine?: number;
+ /**
+ * The 1-based line number of the reported start location.
+ */
+ readonly line?: number;
+ /**
+ * Reported message ID.
+ */
+ readonly messageId: TMessageIds;
+ /**
+ * Reported suggestions.
+ */
+ readonly suggestions?: SuggestionOutput<TMessageIds>[] | null;
+ /**
+ * The type of the reported AST node.
+ */
+ readonly type?: AST_NODE_TYPES | AST_TOKEN_TYPES;
+}
+interface RunTests<TMessageIds extends string, TOptions extends Readonly<unknown[]>> {
+ readonly valid: readonly (ValidTestCase<TOptions> | string)[];
+ readonly invalid: readonly InvalidTestCase<TMessageIds, TOptions>[];
+}
+interface RuleTesterConfig {
+ readonly parser: string;
+ readonly parserOptions?: Readonly<ParserOptions>;
+}
+declare class RuleTesterBase {
+ /**
+ * Creates a new instance of RuleTester.
+ * @param testerConfig extra configuration for the tester
+ */
+ constructor(testerConfig?: RuleTesterConfig);
+ /**
+ * Adds a new rule test to execute.
+ * @param ruleName The name of the rule to run.
+ * @param rule The rule to test.
+ * @param test The collection of tests to run.
+ */
+ run<TMessageIds extends string, TOptions extends Readonly<unknown[]>>(ruleName: string, rule: RuleModule<TMessageIds, TOptions>, tests: RunTests<TMessageIds, TOptions>): void;
+ /**
+ * If you supply a value to this property, the rule tester will call this instead of using the version defined on
+ * the global namespace.
+ * @param text a string describing the rule
+ * @param callback the test callback
+ */
+ static describe?: (text: string, callback: () => void) => void;
+ /**
+ * If you supply a value to this property, the rule tester will call this instead of using the version defined on
+ * the global namespace.
+ * @param text a string describing the test case
+ * @param callback the test callback
+ */
+ static it?: (text: string, callback: () => void) => void;
+}
+declare const RuleTester_base: typeof RuleTesterBase;
+declare class RuleTester extends RuleTester_base {
+}
+export { InvalidTestCase, SuggestionOutput, RuleTester, RuleTesterConfig, RunTests, TestCaseError, ValidTestCase, };
+//# sourceMappingURL=RuleTester.d.ts.map
diff --git a/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/Scope.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/Scope.d.ts
new file mode 100644
index 0000000..57b425c
--- /dev/null
+++ b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/Scope.d.ts
@@ -0,0 +1,46 @@
+import * as scopeManager from '@typescript-eslint/scope-manager';
+import { TSESTree } from '@typescript-eslint/types';
+declare namespace Scope {
+ class ESLintScopeVariable {
+ readonly defs: Definition[];
+ readonly identifiers: TSESTree.Identifier[];
+ readonly name: string;
+ readonly references: Reference[];
+ readonly scope: Scope;
+ /**
+ * Written to by ESLint.
+ * If this key exists, this variable is a global variable added by ESLint.
+ * If this is `true`, this variable can be assigned arbitrary values.
+ * If this is `false`, this variable is readonly.
+ */
+ writeable?: boolean;
+ /**
+ * Written to by ESLint.
+ * This property is undefined if there are no globals directive comments.
+ * The array of globals directive comments which defined this global variable in the source code file.
+ */
+ eslintExplicitGlobal?: boolean;
+ /**
+ * Written to by ESLint.
+ * The configured value in config files. This can be different from `variable.writeable` if there are globals directive comments.
+ */
+ eslintImplicitGlobalSetting?: 'readonly' | 'writable';
+ /**
+ * Written to by ESLint.
+ * If this key exists, it is a global variable added by ESLint.
+ * If `true`, this global variable was defined by a globals directive comment in the source code file.
+ */
+ eslintExplicitGlobalComments?: TSESTree.Comment[];
+ }
+ export type ScopeManager = scopeManager.ScopeManager;
+ export type Reference = scopeManager.Reference;
+ export type Variable = scopeManager.Variable | ESLintScopeVariable;
+ export type Scope = scopeManager.Scope;
+ export const ScopeType: typeof scopeManager.ScopeType;
+ export type DefinitionType = scopeManager.Definition;
+ export type Definition = scopeManager.Definition;
+ export const DefinitionType: typeof scopeManager.DefinitionType;
+ export {};
+}
+export { Scope };
+//# sourceMappingURL=Scope.d.ts.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/SourceCode.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/SourceCode.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/SourceCode.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/SourceCode.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/index.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/index.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/index.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-eslint/index.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-estree.d.ts b/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-estree.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-estree.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ts-estree.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/PatternMatcher.js b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/PatternMatcher.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/PatternMatcher.js
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/PatternMatcher.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/ReferenceTracker.js b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/ReferenceTracker.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/ReferenceTracker.js
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/ReferenceTracker.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/astUtilities.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/astUtilities.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/astUtilities.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/astUtilities.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/astUtilities.js b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/astUtilities.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/astUtilities.js
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/astUtilities.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/astUtilities.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/astUtilities.js.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/astUtilities.js.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/astUtilities.js.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/index.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/index.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/index.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/index.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/index.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/index.d.ts.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/index.d.ts.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/index.d.ts.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/index.js b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/index.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/index.js
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/index.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/index.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/index.js.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/index.js.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/index.js.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/predicates.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/predicates.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/predicates.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/predicates.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/predicates.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/predicates.d.ts.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/predicates.d.ts.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/predicates.d.ts.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/predicates.js b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/predicates.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/predicates.js
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/predicates.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/predicates.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/predicates.js.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/predicates.js.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/predicates.js.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/scopeAnalysis.js b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/scopeAnalysis.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/scopeAnalysis.js
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/scopeAnalysis.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/index.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/index.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/index.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/index.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/index.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/index.d.ts.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/index.d.ts.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/index.d.ts.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/index.js b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/index.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/index.js
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/index.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/index.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/index.js.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/index.js.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/index.js.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/misc.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/misc.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/misc.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/misc.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/misc.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/misc.d.ts.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/misc.d.ts.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/misc.d.ts.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/misc.js b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/misc.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/misc.js
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/misc.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/misc.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/misc.js.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/misc.js.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/misc.js.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/predicates.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/predicates.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/predicates.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/predicates.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/predicates.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/predicates.d.ts.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/predicates.d.ts.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/predicates.d.ts.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/predicates.js b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/predicates.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/predicates.js
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/predicates.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/predicates.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/predicates.js.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/predicates.js.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/ast-utils/predicates.js.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/InferTypesFromRule.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/InferTypesFromRule.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/InferTypesFromRule.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/InferTypesFromRule.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/InferTypesFromRule.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/InferTypesFromRule.d.ts.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/InferTypesFromRule.d.ts.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/InferTypesFromRule.d.ts.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/InferTypesFromRule.js b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/InferTypesFromRule.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/InferTypesFromRule.js
rename to node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/InferTypesFromRule.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/InferTypesFromRule.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/InferTypesFromRule.js.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/InferTypesFromRule.js.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/InferTypesFromRule.js.map
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleCreator.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleCreator.d.ts
index 8b7158c..565a6a9 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleCreator.d.ts
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleCreator.d.ts
@@ -3,11 +3,11 @@
declare type CreateRuleMeta<TMessageIds extends string> = {
docs: CreateRuleMetaDocs;
} & Omit<RuleMetaData<TMessageIds>, 'docs'>;
-export declare function RuleCreator(urlCreator: (ruleName: string) => string): <TOptions extends unknown[], TMessageIds extends string, TRuleListener extends RuleListener = RuleListener>({ name, meta, defaultOptions, create, }: {
+declare function RuleCreator(urlCreator: (ruleName: string) => string): <TOptions extends readonly unknown[], TMessageIds extends string, TRuleListener extends RuleListener = RuleListener>({ name, meta, defaultOptions, create, }: Readonly<{
name: string;
meta: CreateRuleMeta<TMessageIds>;
- defaultOptions: TOptions;
- create: (context: RuleContext<TMessageIds, TOptions>, optionsWithDefault: TOptions) => TRuleListener;
-}) => RuleModule<TMessageIds, TOptions, TRuleListener>;
-export {};
+ defaultOptions: Readonly<TOptions>;
+ create: (context: Readonly<RuleContext<TMessageIds, TOptions>>, optionsWithDefault: Readonly<TOptions>) => TRuleListener;
+}>) => RuleModule<TMessageIds, TOptions, TRuleListener>;
+export { RuleCreator };
//# sourceMappingURL=RuleCreator.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleCreator.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleCreator.d.ts.map
index fd10e53..2d86f2a 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleCreator.d.ts.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleCreator.d.ts.map
@@ -1 +1 @@
-{"version":3,"file":"RuleCreator.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/RuleCreator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,UAAU,EACX,MAAM,mBAAmB,CAAC;AAI3B,aAAK,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;AACxD,aAAK,cAAc,CAAC,WAAW,SAAS,MAAM,IAAI;IAChD,IAAI,EAAE,kBAAkB,CAAC;CAC1B,GAAG,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;AAE5C,wBAAgB,WAAW,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM;;;;;uDAsCnE"}
\ No newline at end of file
+{"version":3,"file":"RuleCreator.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/RuleCreator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,UAAU,EACX,MAAM,mBAAmB,CAAC;AAI3B,aAAK,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;AACxD,aAAK,cAAc,CAAC,WAAW,SAAS,MAAM,IAAI;IAChD,IAAI,EAAE,kBAAkB,CAAC;CAC1B,GAAG,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;AAE5C,iBAAS,WAAW,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM;UAanD,MAAM;;;;wDA2Bf;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleCreator.js b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleCreator.js
index a7f5999..cba8ed6 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleCreator.js
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleCreator.js
@@ -1,5 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+exports.RuleCreator = void 0;
const applyDefault_1 = require("./applyDefault");
function RuleCreator(urlCreator) {
// This function will get much easier to call when this is merged https://github.com/Microsoft/TypeScript/pull/26349
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleCreator.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleCreator.js.map
index 1939fbb..cea4eb0 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleCreator.js.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleCreator.js.map
@@ -1 +1 @@
-{"version":3,"file":"RuleCreator.js","sourceRoot":"","sources":["../../src/eslint-utils/RuleCreator.ts"],"names":[],"mappings":";;AAOA,iDAA8C;AAQ9C,SAAgB,WAAW,CAAC,UAAwC;IAClE,oHAAoH;IACpH,2FAA2F;IAC3F,OAAO,SAAS,UAAU,CAIxB,EACA,IAAI,EACJ,IAAI,EACJ,cAAc,EACd,MAAM,GASP;QACC,OAAO;YACL,IAAI,kCACC,IAAI,KACP,IAAI,kCACC,IAAI,CAAC,IAAI,KACZ,GAAG,EAAE,UAAU,CAAC,IAAI,CAAC,MAExB;YACD,MAAM,CAAC,OAAO;gBACZ,MAAM,kBAAkB,GAAG,2BAAY,CACrC,cAAc,EACd,OAAO,CAAC,OAAO,CAChB,CAAC;gBACF,OAAO,MAAM,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC;YAC7C,CAAC;SACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAtCD,kCAsCC"}
\ No newline at end of file
+{"version":3,"file":"RuleCreator.js","sourceRoot":"","sources":["../../src/eslint-utils/RuleCreator.ts"],"names":[],"mappings":";;;AAOA,iDAA8C;AAQ9C,SAAS,WAAW,CAAC,UAAwC;IAC3D,oHAAoH;IACpH,2FAA2F;IAC3F,OAAO,SAAS,UAAU,CAIxB,EACA,IAAI,EACJ,IAAI,EACJ,cAAc,EACd,MAAM,GASN;QACA,OAAO;YACL,IAAI,kCACC,IAAI,KACP,IAAI,kCACC,IAAI,CAAC,IAAI,KACZ,GAAG,EAAE,UAAU,CAAC,IAAI,CAAC,MAExB;YACD,MAAM,CACJ,OAAqD;gBAErD,MAAM,kBAAkB,GAAG,2BAAY,CACrC,cAAc,EACd,OAAO,CAAC,OAAO,CAChB,CAAC;gBACF,OAAO,MAAM,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC;YAC7C,CAAC;SACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAEQ,kCAAW"}
\ No newline at end of file
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleTester.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleTester.d.ts
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleTester.d.ts
rename to node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleTester.d.ts
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleTester.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleTester.d.ts.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleTester.d.ts.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleTester.d.ts.map
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleTester.js b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleTester.js
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleTester.js
rename to node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleTester.js
diff --git a/node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleTester.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleTester.js.map
similarity index 100%
rename from node_modules/eslint-plugin-jest/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleTester.js.map
rename to node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/RuleTester.js.map
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/applyDefault.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/applyDefault.d.ts
index bbee816..b92df58 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/applyDefault.d.ts
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/applyDefault.d.ts
@@ -5,5 +5,6 @@
* @param userOptions the user opts
* @returns the options with defaults
*/
-export declare function applyDefault<TUser extends unknown[], TDefault extends TUser>(defaultOptions: TDefault, userOptions: TUser | null): TDefault;
+declare function applyDefault<TUser extends readonly unknown[], TDefault extends TUser>(defaultOptions: TDefault, userOptions: TUser | null): TDefault;
+export { applyDefault };
//# sourceMappingURL=applyDefault.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/applyDefault.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/applyDefault.d.ts.map
index 69af49e..50c710e 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/applyDefault.d.ts.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/applyDefault.d.ts.map
@@ -1 +1 @@
-{"version":3,"file":"applyDefault.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/applyDefault.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,SAAS,OAAO,EAAE,EAAE,QAAQ,SAAS,KAAK,EAC1E,cAAc,EAAE,QAAQ,EACxB,WAAW,EAAE,KAAK,GAAG,IAAI,GACxB,QAAQ,CAqBV"}
\ No newline at end of file
+{"version":3,"file":"applyDefault.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/applyDefault.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,iBAAS,YAAY,CAAC,KAAK,SAAS,SAAS,OAAO,EAAE,EAAE,QAAQ,SAAS,KAAK,EAC5E,cAAc,EAAE,QAAQ,EACxB,WAAW,EAAE,KAAK,GAAG,IAAI,GACxB,QAAQ,CAuBV;AAMD,OAAO,EAAE,YAAY,EAAE,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/applyDefault.js b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/applyDefault.js
index 3519fc7..6ae1a79 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/applyDefault.js
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/applyDefault.js
@@ -1,5 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+exports.applyDefault = void 0;
const deepMerge_1 = require("./deepMerge");
/**
* Pure function - doesn't mutate either parameter!
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/applyDefault.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/applyDefault.js.map
index 3de41a5..797a3b5 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/applyDefault.js.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/applyDefault.js.map
@@ -1 +1 @@
-{"version":3,"file":"applyDefault.js","sourceRoot":"","sources":["../../src/eslint-utils/applyDefault.ts"],"names":[],"mappings":";;AAAA,2CAA0D;AAE1D;;;;;;GAMG;AACH,SAAgB,YAAY,CAC1B,cAAwB,EACxB,WAAyB;IAEzB,iBAAiB;IACjB,MAAM,OAAO,GAAa,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC;IAErE,IAAI,WAAW,KAAK,IAAI,IAAI,WAAW,KAAK,SAAS,EAAE;QACrD,OAAO,OAAO,CAAC;KAChB;IAED,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;QACzB,IAAI,WAAW,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE;YAChC,MAAM,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;YAE/B,IAAI,4BAAgB,CAAC,OAAO,CAAC,IAAI,4BAAgB,CAAC,GAAG,CAAC,EAAE;gBACtD,OAAO,CAAC,CAAC,CAAC,GAAG,qBAAS,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;aACtC;iBAAM;gBACL,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;aACtB;SACF;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC;AAxBD,oCAwBC"}
\ No newline at end of file
+{"version":3,"file":"applyDefault.js","sourceRoot":"","sources":["../../src/eslint-utils/applyDefault.ts"],"names":[],"mappings":";;;AAAA,2CAA0D;AAE1D;;;;;;GAMG;AACH,SAAS,YAAY,CACnB,cAAwB,EACxB,WAAyB;IAEzB,iBAAiB;IACjB,MAAM,OAAO,GAAwB,IAAI,CAAC,KAAK,CAC7C,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CAC/B,CAAC;IAEF,IAAI,WAAW,KAAK,IAAI,IAAI,WAAW,KAAK,SAAS,EAAE;QACrD,OAAO,OAAO,CAAC;KAChB;IAED,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;QACzB,IAAI,WAAW,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE;YAChC,MAAM,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;YAE/B,IAAI,4BAAgB,CAAC,OAAO,CAAC,IAAI,4BAAgB,CAAC,GAAG,CAAC,EAAE;gBACtD,OAAO,CAAC,CAAC,CAAC,GAAG,qBAAS,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;aACtC;iBAAM;gBACL,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;aACtB;SACF;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC;AAMQ,oCAAY"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/batchedSingleLineTests.js b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/batchedSingleLineTests.js
index 31ce405..7ff9390 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/batchedSingleLineTests.js
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/batchedSingleLineTests.js
@@ -1,5 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+exports.batchedSingleLineTests = void 0;
function batchedSingleLineTests(options) {
// eslint counts lines from 1
const lineOffset = options.code.startsWith('\n') ? 2 : 1;
@@ -10,13 +11,12 @@
.trim()
.split('\n')
.map((code, i) => {
- var _a;
const lineNum = i + lineOffset;
const errors = 'errors' in options
? options.errors.filter(e => e.line === lineNum)
: [];
const returnVal = Object.assign(Object.assign({}, options), { code, errors: errors.map(e => (Object.assign(Object.assign({}, e), { line: 1 }))) });
- if ((_a = output) === null || _a === void 0 ? void 0 : _a[i]) {
+ if (output === null || output === void 0 ? void 0 : output[i]) {
return Object.assign(Object.assign({}, returnVal), { output: output[i] });
}
return returnVal;
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/batchedSingleLineTests.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/batchedSingleLineTests.js.map
index 2bb0224..31f68d6 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/batchedSingleLineTests.js.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/batchedSingleLineTests.js.map
@@ -1 +1 @@
-{"version":3,"file":"batchedSingleLineTests.js","sourceRoot":"","sources":["../../src/eslint-utils/batchedSingleLineTests.ts"],"names":[],"mappings":";;AA8BA,SAAS,sBAAsB,CAI7B,OAAyE;IAEzE,6BAA6B;IAC7B,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACzD,MAAM,MAAM,GACV,QAAQ,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM;QACnC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;QACnC,CAAC,CAAC,IAAI,CAAC;IACX,OAAO,OAAO,CAAC,IAAI;SAChB,IAAI,EAAE;SACN,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;;QACf,MAAM,OAAO,GAAG,CAAC,GAAG,UAAU,CAAC;QAC/B,MAAM,MAAM,GACV,QAAQ,IAAI,OAAO;YACjB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC;YAChD,CAAC,CAAC,EAAE,CAAC;QACT,MAAM,SAAS,mCACV,OAAO,KACV,IAAI,EACJ,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,iCACnB,CAAC,KACJ,IAAI,EAAE,CAAC,IACP,CAAC,GACJ,CAAC;QACF,UAAI,MAAM,0CAAG,CAAC,GAAG;YACf,uCACK,SAAS,KACZ,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,IACjB;SACH;QACD,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC,CAAC;AACP,CAAC;AAEQ,wDAAsB"}
\ No newline at end of file
+{"version":3,"file":"batchedSingleLineTests.js","sourceRoot":"","sources":["../../src/eslint-utils/batchedSingleLineTests.ts"],"names":[],"mappings":";;;AA8BA,SAAS,sBAAsB,CAI7B,OAAyE;IAEzE,6BAA6B;IAC7B,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACzD,MAAM,MAAM,GACV,QAAQ,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM;QACnC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;QACnC,CAAC,CAAC,IAAI,CAAC;IACX,OAAO,OAAO,CAAC,IAAI;SAChB,IAAI,EAAE;SACN,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;QACf,MAAM,OAAO,GAAG,CAAC,GAAG,UAAU,CAAC;QAC/B,MAAM,MAAM,GACV,QAAQ,IAAI,OAAO;YACjB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC;YAChD,CAAC,CAAC,EAAE,CAAC;QACT,MAAM,SAAS,mCACV,OAAO,KACV,IAAI,EACJ,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,iCACnB,CAAC,KACJ,IAAI,EAAE,CAAC,IACP,CAAC,GACJ,CAAC;QACF,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,CAAC,GAAG;YACf,uCACK,SAAS,KACZ,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,IACjB;SACH;QACD,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC,CAAC;AACP,CAAC;AAEQ,wDAAsB"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/deepMerge.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/deepMerge.d.ts
index b09d1fa..9650020 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/deepMerge.d.ts
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/deepMerge.d.ts
@@ -4,7 +4,7 @@
* @param obj an object
* @returns `true` if obj is an object
*/
-export declare function isObjectNotArray<T extends ObjectLike>(obj: unknown | unknown[]): obj is T;
+declare function isObjectNotArray<T extends ObjectLike>(obj: unknown | unknown[]): obj is T;
/**
* Pure function - doesn't mutate either parameter!
* Merges two objects together deeply, overwriting the properties in first with the properties in second
@@ -13,5 +13,5 @@
* @returns a new object
*/
export declare function deepMerge(first?: ObjectLike, second?: ObjectLike): Record<string, unknown>;
-export {};
+export { isObjectNotArray };
//# sourceMappingURL=deepMerge.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/deepMerge.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/deepMerge.d.ts.map
index 93c6cd6..769f39c 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/deepMerge.d.ts.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/deepMerge.d.ts.map
@@ -1 +1 @@
-{"version":3,"file":"deepMerge.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/deepMerge.ts"],"names":[],"mappings":"AAAA,aAAK,UAAU,CAAC,CAAC,GAAG,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEjD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,UAAU,EACnD,GAAG,EAAE,OAAO,GAAG,OAAO,EAAE,GACvB,GAAG,IAAI,CAAC,CAEV;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,KAAK,GAAE,UAAe,EACtB,MAAM,GAAE,UAAe,GACtB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA0BzB"}
\ No newline at end of file
+{"version":3,"file":"deepMerge.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/deepMerge.ts"],"names":[],"mappings":"AAAA,aAAK,UAAU,CAAC,CAAC,GAAG,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEjD;;;;GAIG;AACH,iBAAS,gBAAgB,CAAC,CAAC,SAAS,UAAU,EAC5C,GAAG,EAAE,OAAO,GAAG,OAAO,EAAE,GACvB,GAAG,IAAI,CAAC,CAEV;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,KAAK,GAAE,UAAe,EACtB,MAAM,GAAE,UAAe,GACtB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA0BzB;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/deepMerge.js b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/deepMerge.js
index 6df1ceb..34fdffc 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/deepMerge.js
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/deepMerge.js
@@ -1,5 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+exports.isObjectNotArray = exports.deepMerge = void 0;
/**
* Check if the variable contains an object strictly rejecting arrays
* @param obj an object
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/deepMerge.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/deepMerge.js.map
index 34941bd..7ee4604 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/deepMerge.js.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/deepMerge.js.map
@@ -1 +1 @@
-{"version":3,"file":"deepMerge.js","sourceRoot":"","sources":["../../src/eslint-utils/deepMerge.ts"],"names":[],"mappings":";;AAEA;;;;GAIG;AACH,SAAgB,gBAAgB,CAC9B,GAAwB;IAExB,OAAO,OAAO,GAAG,KAAK,QAA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D,8BA6BC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/getParserServices.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/getParserServices.d.ts
index ad9926c..98626f4 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/getParserServices.d.ts
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/getParserServices.d.ts
@@ -1,10 +1,8 @@
-import { ParserServices, TSESLint } from '../';
-declare type RequiredParserServices = {
- [k in keyof ParserServices]: Exclude<ParserServices[k], undefined>;
-};
+import * as TSESLint from '../ts-eslint';
+import { ParserServices } from '../ts-estree';
/**
* Try to retrieve typescript parser service from context
*/
-export declare function getParserServices<TMessageIds extends string, TOptions extends unknown[]>(context: TSESLint.RuleContext<TMessageIds, TOptions>): RequiredParserServices;
-export {};
+declare function getParserServices<TMessageIds extends string, TOptions extends readonly unknown[]>(context: Readonly<TSESLint.RuleContext<TMessageIds, TOptions>>, allowWithoutFullTypeInformation?: boolean): ParserServices;
+export { getParserServices };
//# sourceMappingURL=getParserServices.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/getParserServices.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/getParserServices.d.ts.map
index 7e76cfb..52fea2c 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/getParserServices.d.ts.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/getParserServices.d.ts.map
@@ -1 +1 @@
-{"version":3,"file":"getParserServices.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/getParserServices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAK/C,aAAK,sBAAsB,GAAG;KAC3B,CAAC,IAAI,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC;CACnE,CAAC;AAEF;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,WAAW,SAAS,MAAM,EAC1B,QAAQ,SAAS,OAAO,EAAE,EAE1B,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC,GACnD,sBAAsB,CAaxB"}
\ No newline at end of file
+{"version":3,"file":"getParserServices.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/getParserServices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAK9C;;GAEG;AACH,iBAAS,iBAAiB,CACxB,WAAW,SAAS,MAAM,EAC1B,QAAQ,SAAS,SAAS,OAAO,EAAE,EAEnC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,EAC9D,+BAA+B,UAAQ,GACtC,cAAc,CAuBhB;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/getParserServices.js b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/getParserServices.js
index 5e7862b..09302fd 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/getParserServices.js
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/getParserServices.js
@@ -1,17 +1,25 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+exports.getParserServices = void 0;
const ERROR_MESSAGE = 'You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.';
/**
* Try to retrieve typescript parser service from context
*/
-function getParserServices(context) {
+function getParserServices(context, allowWithoutFullTypeInformation = false) {
+ var _a;
+ // backwards compatibility check
+ // old versions of the parser would not return any parserServices unless parserOptions.project was set
if (!context.parserServices ||
!context.parserServices.program ||
- !context.parserServices.esTreeNodeToTSNodeMap) {
- /**
- * The user needs to have configured "project" in their parserOptions
- * for @typescript-eslint/parser
- */
+ !context.parserServices.esTreeNodeToTSNodeMap ||
+ !context.parserServices.tsNodeToESTreeNodeMap) {
+ throw new Error(ERROR_MESSAGE);
+ }
+ const hasFullTypeInformation = (_a = context.parserServices.hasFullTypeInformation) !== null && _a !== void 0 ? _a :
+ /* backwards compatible */ true;
+ // if a rule requires full type information, then hard fail if it doesn't exist
+ // this forces the user to supply parserOptions.project
+ if (!hasFullTypeInformation && !allowWithoutFullTypeInformation) {
throw new Error(ERROR_MESSAGE);
}
return context.parserServices;
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/getParserServices.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/getParserServices.js.map
index 2fc7ad2..4d40125 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/getParserServices.js.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/getParserServices.js.map
@@ -1 +1 @@
-{"version":3,"file":"getParserServices.js","sourceRoot":"","sources":["../../src/eslint-utils/getParserServices.ts"],"names":[],"mappings":";;AAEA,MAAM,aAAa,GACjB,gLAAgL,CAAC;AAMnL;;GAEG;AACH,SAAgB,iBAAiB,CAI/B,OAAoD;IAEpD,IACE,CAAC,OAAO,CAAC,cAAc;QACvB,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO;QAC/B,CAAC,OAAO,CAAC,cAAc,CAAC,qBAAqB,EAC7C;QACA;;;WAGG;QACH,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;KAChC;IACD,OAAO,OAAO,CAAC,cAAwC,CAAC;AAC1D,CAAC;AAlBD,8CAkBC"}
\ No newline at end of file
+{"version":3,"file":"getParserServices.js","sourceRoot":"","sources":["../../src/eslint-utils/getParserServices.ts"],"names":[],"mappings":";;;AAGA,MAAM,aAAa,GACjB,gLAAgL,CAAC;AAEnL;;GAEG;AACH,SAAS,iBAAiB,CAIxB,OAA8D,EAC9D,+BAA+B,GAAG,KAAK;;IAEvC,gCAAgC;IAChC,sGAAsG;IACtG,IACE,CAAC,OAAO,CAAC,cAAc;QACvB,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO;QAC/B,CAAC,OAAO,CAAC,cAAc,CAAC,qBAAqB;QAC7C,CAAC,OAAO,CAAC,cAAc,CAAC,qBAAqB,EAC7C;QACA,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;KAChC;IAED,MAAM,sBAAsB,SAC1B,OAAO,CAAC,cAAc,CAAC,sBAAsB;IAC7C,0BAA0B,CAAC,IAAI,CAAC;IAElC,+EAA+E;IAC/E,uDAAuD;IACvD,IAAI,CAAC,sBAAsB,IAAI,CAAC,+BAA+B,EAAE;QAC/D,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;KAChC;IAED,OAAO,OAAO,CAAC,cAAc,CAAC;AAChC,CAAC;AAEQ,8CAAiB"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/index.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/index.d.ts
index 512f280..8cdfcb0 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/index.d.ts
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/index.d.ts
@@ -1,6 +1,8 @@
export * from './applyDefault';
export * from './batchedSingleLineTests';
export * from './getParserServices';
+export * from './InferTypesFromRule';
export * from './RuleCreator';
+export * from './RuleTester';
export * from './deepMerge';
//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/index.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/index.d.ts.map
index 7af1995..7aca90d 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/index.d.ts.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/index.d.ts.map
@@ -1 +1 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
\ No newline at end of file
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/index.js b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/index.js
index dc41bf3..dde280d 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/index.js
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/index.js
@@ -1,11 +1,20 @@
"use strict";
-function __export(m) {
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
-}
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __exportStar = (this && this.__exportStar) || function(m, exports) {
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
+};
Object.defineProperty(exports, "__esModule", { value: true });
-__export(require("./applyDefault"));
-__export(require("./batchedSingleLineTests"));
-__export(require("./getParserServices"));
-__export(require("./RuleCreator"));
-__export(require("./deepMerge"));
+__exportStar(require("./applyDefault"), exports);
+__exportStar(require("./batchedSingleLineTests"), exports);
+__exportStar(require("./getParserServices"), exports);
+__exportStar(require("./InferTypesFromRule"), exports);
+__exportStar(require("./RuleCreator"), exports);
+__exportStar(require("./RuleTester"), exports);
+__exportStar(require("./deepMerge"), exports);
//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/index.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/index.js.map
index 2f54b5b..f24be47 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/index.js.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/eslint-utils/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":";;;;;AAAA,oCAA+B;AAC/B,8CAAyC;AACzC,yCAAoC;AACpC,mCAA8B;AAC9B,iCAA4B"}
\ No newline at end of file
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA+B;AAC/B,2DAAyC;AACzC,sDAAoC;AACpC,uDAAqC;AACrC,gDAA8B;AAC9B,+CAA6B;AAC7B,8CAA4B"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/index.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/index.d.ts
index 43f41b7..b8a60a9 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/index.d.ts
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/index.d.ts
@@ -1,8 +1,8 @@
+import * as ASTUtils from './ast-utils';
import * as ESLintUtils from './eslint-utils';
+import * as JSONSchema from './json-schema';
import * as TSESLint from './ts-eslint';
import * as TSESLintScope from './ts-eslint-scope';
-import * as JSONSchema from './json-schema';
-export { ESLintUtils, JSONSchema, TSESLint, TSESLintScope };
-export { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree, } from '@typescript-eslint/typescript-estree/dist/ts-estree';
-export { ParserServices } from '@typescript-eslint/typescript-estree/dist/parser-options';
+export { ASTUtils, ESLintUtils, JSONSchema, TSESLint, TSESLintScope };
+export * from './ts-estree';
//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/index.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/index.d.ts.map
index 4e4d616..822db07 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/index.d.ts.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/index.d.ts.map
@@ -1 +1 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,UAAU,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;AAQ5D,OAAO,EACL,cAAc,EACd,eAAe,EACf,QAAQ,GACT,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC"}
\ No newline at end of file
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;AACtE,cAAc,aAAa,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/index.js b/node_modules/@typescript-eslint/experimental-utils/dist/index.js
index b502f73..ef12e06 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/index.js
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/index.js
@@ -1,27 +1,37 @@
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+ if (k2 === undefined) k2 = k;
+ o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+ o["default"] = v;
+});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+ __setModuleDefault(result, mod);
return result;
};
+var __exportStar = (this && this.__exportStar) || function(m, exports) {
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
+};
Object.defineProperty(exports, "__esModule", { value: true });
+exports.TSESLintScope = exports.TSESLint = exports.JSONSchema = exports.ESLintUtils = exports.ASTUtils = void 0;
+const ASTUtils = __importStar(require("./ast-utils"));
+exports.ASTUtils = ASTUtils;
const ESLintUtils = __importStar(require("./eslint-utils"));
exports.ESLintUtils = ESLintUtils;
+const JSONSchema = __importStar(require("./json-schema"));
+exports.JSONSchema = JSONSchema;
const TSESLint = __importStar(require("./ts-eslint"));
exports.TSESLint = TSESLint;
const TSESLintScope = __importStar(require("./ts-eslint-scope"));
exports.TSESLintScope = TSESLintScope;
-const JSONSchema = __importStar(require("./json-schema"));
-exports.JSONSchema = JSONSchema;
-// for convenience's sake - export the types directly from here so consumers
-// don't need to reference/install both packages in their code
-// NOTE - this uses hard links inside ts-estree to avoid initialization of entire package
-// via its main file (which imports typescript at runtime).
-// Not every eslint-plugin written in typescript requires typescript at runtime.
-var ts_estree_1 = require("@typescript-eslint/typescript-estree/dist/ts-estree");
-exports.AST_NODE_TYPES = ts_estree_1.AST_NODE_TYPES;
-exports.AST_TOKEN_TYPES = ts_estree_1.AST_TOKEN_TYPES;
-exports.TSESTree = ts_estree_1.TSESTree;
+__exportStar(require("./ts-estree"), exports);
//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/index.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/index.js.map
index c3c8160..b500da1 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/index.js.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,4DAA8C;AAKrC,kCAAW;AAJpB,sDAAwC;AAIN,4BAAQ;AAH1C,iEAAmD;AAGP,sCAAa;AAFzD,0DAA4C;AAEtB,gCAAU;AAEhC,4EAA4E;AAC5E,8DAA8D;AAE9D,yFAAyF;AACzF,kEAAkE;AAClE,uFAAuF;AACvF,iFAI6D;AAH3D,qCAAA,cAAc,CAAA;AACd,sCAAA,eAAe,CAAA;AACf,+BAAA,QAAQ,CAAA"}
\ No newline at end of file
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAAwC;AAM/B,4BAAQ;AALjB,4DAA8C;AAK3B,kCAAW;AAJ9B,0DAA4C;AAIZ,gCAAU;AAH1C,sDAAwC;AAGI,4BAAQ;AAFpD,iEAAmD;AAEG,sCAAa;AACnE,8CAA4B"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/json-schema.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/json-schema.d.ts
index 26619fa..bd6f29c 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/json-schema.d.ts
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/json-schema.d.ts
@@ -1,2 +1,2 @@
-export * from 'json-schema';
+export { JSONSchema4, JSONSchema4Type, JSONSchema4TypeName, JSONSchema4Version, JSONSchema6, JSONSchema6Definition, JSONSchema6Type, JSONSchema6TypeName, JSONSchema6Version, JSONSchema7, JSONSchema7Array, JSONSchema7Definition, JSONSchema7Type, JSONSchema7TypeName, JSONSchema7Version, ValidationError, ValidationResult, } from 'json-schema';
//# sourceMappingURL=json-schema.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/json-schema.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/json-schema.d.ts.map
index 37965b4..845788b 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/json-schema.d.ts.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/json-schema.d.ts.map
@@ -1 +1 @@
-{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
\ No newline at end of file
+{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,GACjB,MAAM,aAAa,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/json-schema.js b/node_modules/@typescript-eslint/experimental-utils/dist/json-schema.js
index 2d8f98d..289fb57 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/json-schema.js
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/json-schema.js
@@ -1,3 +1,6 @@
"use strict";
+// Note - @types/json-schema@7.0.4 added some function declarations to the type package
+// If we do export *, then it will also export these function declarations.
+// This will cause typescript to not scrub the require from the build, breaking anyone who doesn't have it as a dependency
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=json-schema.js.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/json-schema.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/json-schema.js.map
index d826a14..51d0b02 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/json-schema.js.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/json-schema.js.map
@@ -1 +1 @@
-{"version":3,"file":"json-schema.js","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":""}
\ No newline at end of file
+{"version":3,"file":"json-schema.js","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":";AAAA,uFAAuF;AACvF,2EAA2E;AAC3E,0HAA0H"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Definition.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Definition.d.ts
index a42899e..bcaf94a 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Definition.d.ts
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Definition.d.ts
@@ -1,4 +1,4 @@
-import { TSESTree } from '@typescript-eslint/typescript-estree';
+import { TSESTree } from '../ts-estree';
interface Definition {
type: string;
name: TSESTree.BindingName;
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Definition.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Definition.d.ts.map
index fea0bd8..ab9c638 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Definition.d.ts.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Definition.d.ts.map
@@ -1 +1 @@
-{"version":3,"file":"Definition.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/Definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAMhE,UAAU,UAAU;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC,WAAW,CAAC;IAC3B,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AACD,UAAU,qBAAqB;IAC7B,KACE,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,YAAY,EAClD,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,MAAM,CAAC,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,EAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,EACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GACnB,UAAU,CAAC;CACf;AACD,QAAA,MAAM,UAAU,uBAA4C,CAAC;AAG7D,UAAU,mBAAoB,SAAQ,UAAU;CAAG;AACnD,QAAA,MAAM,mBAAmB,gKAOxB,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,CAAC"}
\ No newline at end of file
+{"version":3,"file":"Definition.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/Definition.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,UAAU,UAAU;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC,WAAW,CAAC;IAC3B,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AACD,UAAU,qBAAqB;IAC7B,KACE,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,YAAY,EAClD,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,MAAM,CAAC,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,EAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,EACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GACnB,UAAU,CAAC;CACf;AACD,QAAA,MAAM,UAAU,uBAA4C,CAAC;AAG7D,UAAU,mBAAoB,SAAQ,UAAU;CAAG;AACnD,QAAA,MAAM,mBAAmB,sCAEf,SAAS,IAAI,QACb,SAAS,IAAI,oEAGlB,mBAAmB,CACvB,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Definition.js b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Definition.js
index 46d90a0..dd3de1f 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Definition.js
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Definition.js
@@ -1,5 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+exports.ParameterDefinition = exports.Definition = void 0;
const definition_1 = require("eslint-scope/lib/definition");
const Definition = definition_1.Definition;
exports.Definition = Definition;
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Definition.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Definition.js.map
index 99c0988..fa19c8c 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Definition.js.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Definition.js.map
@@ -1 +1 @@
-{"version":3,"file":"Definition.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/Definition.ts"],"names":[],"mappings":";;AACA,4DAGqC;AAqBrC,MAAM,UAAU,GAAG,uBAAyC,CAAC;AAapD,gCAAU;AATnB,MAAM,mBAAmB,GAAG,gCAO3B,CAAC;AAEmB,kDAAmB"}
\ No newline at end of file
+{"version":3,"file":"Definition.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/Definition.ts"],"names":[],"mappings":";;;AAAA,4DAGqC;AAsBrC,MAAM,UAAU,GAAG,uBAAyC,CAAC;AAapD,gCAAU;AATnB,MAAM,mBAAmB,GAAG,gCAO3B,CAAC;AAEmB,kDAAmB"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Options.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Options.d.ts
index f87c44d..48ce3c5 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Options.d.ts
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Options.d.ts
@@ -1,4 +1,4 @@
-import { TSESTree } from '@typescript-eslint/typescript-estree';
+import { TSESTree } from '../ts-estree';
declare type PatternVisitorCallback = (pattern: TSESTree.Identifier, info: {
rest: boolean;
topLevel: boolean;
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Options.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Options.d.ts.map
index b505a49..fae66aa 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Options.d.ts.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Options.d.ts.map
@@ -1 +1 @@
-{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/Options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAEhE,aAAK,sBAAsB,GAAG,CAC5B,OAAO,EAAE,QAAQ,CAAC,UAAU,EAC5B,IAAI,EAAE;IACJ,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,QAAQ,CAAC,iBAAiB,EAAE,CAAC;CAC3C,KACE,IAAI,CAAC;AAEV,UAAU,qBAAqB;IAC7B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,UAAU,OAAO;IACf,aAAa,CAAC,CAAC,SAAS,QAAQ,CAAC,QAAQ,GAAG,SAAS,GAAG,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IAC9E,KAAK,CAAC,CAAC,SAAS,QAAQ,CAAC,QAAQ,GAAG,SAAS,GAAG,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;CACvE;AAED,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,OAAO,EAAE,CAAC"}
\ No newline at end of file
+{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/Options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,aAAK,sBAAsB,GAAG,CAC5B,OAAO,EAAE,QAAQ,CAAC,UAAU,EAC5B,IAAI,EAAE;IACJ,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,QAAQ,CAAC,iBAAiB,EAAE,CAAC;CAC3C,KACE,IAAI,CAAC;AAEV,UAAU,qBAAqB;IAC7B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,UAAU,OAAO;IACf,aAAa,CAAC,CAAC,SAAS,QAAQ,CAAC,QAAQ,GAAG,SAAS,GAAG,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IAC9E,KAAK,CAAC,CAAC,SAAS,QAAQ,CAAC,QAAQ,GAAG,SAAS,GAAG,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;CACvE;AAED,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,OAAO,EAAE,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/PatternVisitor.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/PatternVisitor.d.ts
index 32127a0..e21224b 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/PatternVisitor.d.ts
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/PatternVisitor.d.ts
@@ -1,4 +1,4 @@
-import { TSESTree } from '@typescript-eslint/typescript-estree';
+import { TSESTree } from '../ts-estree';
import { ScopeManager } from './ScopeManager';
import { PatternVisitorCallback, PatternVisitorOptions, Visitor } from './Options';
interface PatternVisitor extends Visitor {
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/PatternVisitor.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/PatternVisitor.d.ts.map
index 4949422..eec5b0b 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/PatternVisitor.d.ts.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/PatternVisitor.d.ts.map
@@ -1 +1 @@
-{"version":3,"file":"PatternVisitor.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/PatternVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC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eslint/experimental-utils/dist/ts-eslint-scope/PatternVisitor.js b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/PatternVisitor.js
index 9682bd0..43aa849 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/PatternVisitor.js
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/PatternVisitor.js
@@ -3,6 +3,7 @@
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
+exports.PatternVisitor = void 0;
const pattern_visitor_1 = __importDefault(require("eslint-scope/lib/pattern-visitor"));
const PatternVisitor = pattern_visitor_1.default;
exports.PatternVisitor = PatternVisitor;
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/PatternVisitor.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/PatternVisitor.js.map
index 631dd9e..e08efc8 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/PatternVisitor.js.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/PatternVisitor.js.map
@@ -1 +1 @@
-{"version":3,"file":"PatternVisitor.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/PatternVisitor.ts"],"names":[],"mappings":";;;;;AACA,uFAAoE;AAyBpE,MAAM,cAAc,GAAG,yBAStB,CAAC;AAEO,wCAAc"}
\ No newline at end of file
+{"version":3,"file":"PatternVisitor.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/PatternVisitor.ts"],"names":[],"mappings":";;;;;;AAAA,uFAAoE;AA0BpE,MAAM,cAAc,GAAG,yBAStB,CAAC;AAEO,wCAAc"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Reference.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Reference.d.ts
index 27b24a5..0d479b3 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Reference.d.ts
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Reference.d.ts
@@ -1,4 +1,4 @@
-import { TSESTree } from '@typescript-eslint/typescript-estree';
+import { TSESTree } from '../ts-estree';
import { Scope } from './Scope';
import { Variable } from './Variable';
export declare type ReferenceFlag = 0x1 | 0x2 | 0x3;
@@ -19,10 +19,10 @@
isReadWrite(): boolean;
}
declare const Reference: {
- new (identifier: TSESTree.Identifier, scope: Scope, flag?: 1 | 2 | 3 | undefined, writeExpr?: TSESTree.ArrayExpression | TSESTree.ArrayPattern | TSESTree.ArrowFunctionExpression | TSESTree.AssignmentExpression | TSESTree.AssignmentPattern | TSESTree.AwaitExpression | TSESTree.BigIntLiteral | TSESTree.BinaryExpression | TSESTree.BlockStatement | TSESTree.BreakStatement | TSESTree.CallExpression | TSESTree.CatchClause | TSESTree.ClassBody | TSESTree.ClassDeclaration | TSESTree.ClassExpression | TSESTree.ClassPropertyComputedName | TSESTree.ClassPropertyNonComputedName | TSESTree.ConditionalExpression | TSESTree.ContinueStatement | TSESTree.DebuggerStatement | TSESTree.Decorator | TSESTree.DoWhileStatement | TSESTree.EmptyStatement | TSESTree.ExportAllDeclaration | TSESTree.ExportDefaultDeclaration | TSESTree.ExportNamedDeclaration | TSESTree.ExportSpecifier | TSESTree.ExpressionStatement | TSESTree.ForInStatement | TSESTree.ForOfStatement | TSESTree.ForStatement | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.Identifier | TSESTree.IfStatement | TSESTree.Import | TSESTree.ImportDeclaration | TSESTree.ImportDefaultSpecifier | TSESTree.ImportNamespaceSpecifier | TSESTree.ImportSpecifier | TSESTree.JSXAttribute | TSESTree.JSXClosingElement | TSESTree.JSXClosingFragment | TSESTree.JSXElement | TSESTree.JSXEmptyExpression | TSESTree.JSXExpressionContainer | TSESTree.JSXFragment | TSESTree.JSXIdentifier | TSESTree.JSXOpeningElement | TSESTree.JSXOpeningFragment | TSESTree.JSXSpreadAttribute | TSESTree.JSXSpreadChild | TSESTree.JSXMemberExpression | TSESTree.JSXText | TSESTree.LabeledStatement | TSESTree.BooleanLiteral | TSESTree.NumberLiteral | TSESTree.NullLiteral | TSESTree.RegExpLiteral | TSESTree.StringLiteral | TSESTree.LogicalExpression | TSESTree.MemberExpressionComputedName | TSESTree.MemberExpressionNonComputedName | TSESTree.MetaProperty | TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName | TSESTree.NewExpression | TSESTree.ObjectExpression | TSESTree.ObjectPattern | TSESTree.OptionalCallExpression | TSESTree.OptionalMemberExpressionComputedName | TSESTree.OptionalMemberExpressionNonComputedName | TSESTree.Program | TSESTree.PropertyComputedName | TSESTree.PropertyNonComputedName | TSESTree.RestElement | TSESTree.ReturnStatement | TSESTree.SequenceExpression | TSESTree.SpreadElement | TSESTree.Super | TSESTree.SwitchCase | TSESTree.SwitchStatement | TSESTree.TaggedTemplateExpression | TSESTree.TemplateElement | TSESTree.TemplateLiteral | TSESTree.ThisExpression | TSESTree.ThrowStatement | TSESTree.TryStatement | TSESTree.TSAbstractClassPropertyComputedName | TSESTree.TSAbstractClassPropertyNonComputedName | TSESTree.TSAbstractKeyword | TSESTree.TSAbstractMethodDefinitionComputedName | TSESTree.TSAbstractMethodDefinitionNonComputedName | TSESTree.TSAnyKeyword | TSESTree.TSArrayType | TSESTree.TSAsExpression | TSESTree.TSAsyncKeyword | TSESTree.TSBigIntKeyword | TSESTree.TSBooleanKeyword | TSESTree.TSCallSignatureDeclaration | TSESTree.TSClassImplements | TSESTree.TSConditionalType | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSDeclareFunction | TSESTree.TSDeclareKeyword | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSEnumDeclaration | TSESTree.TSEnumMemberComputedName | TSESTree.TSEnumMemberNonComputedName | TSESTree.TSExportAssignment | TSESTree.TSExportKeyword | TSESTree.TSExternalModuleReference | TSESTree.TSFunctionType | TSESTree.TSImportEqualsDeclaration | TSESTree.TSImportType | TSESTree.TSIndexedAccessType | TSESTree.TSIndexSignature | TSESTree.TSInferType | TSESTree.TSInterfaceDeclaration | TSESTree.TSInterfaceBody | TSESTree.TSInterfaceHeritage | TSESTree.TSIntersectionType | TSESTree.TSLiteralType | TSESTree.TSMappedType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName | TSESTree.TSModuleBlock | TSESTree.TSModuleDeclaration | TSESTree.TSNamespaceExportDeclaration | TSESTree.TSNeverKeyword | TSESTree.TSNonNullExpression | TSESTree.TSNullKeyword | TSESTree.TSNumberKeyword | TSESTree.TSObjectKeyword | TSESTree.TSOptionalType | TSESTree.TSParameterProperty | TSESTree.TSParenthesizedType | TSESTree.TSPropertySignatureComputedName | TSESTree.TSPropertySignatureNonComputedName | TSESTree.TSPublicKeyword | TSESTree.TSPrivateKeyword | TSESTree.TSProtectedKeyword | TSESTree.TSQualifiedName | TSESTree.TSReadonlyKeyword | TSESTree.TSRestType | TSESTree.TSStaticKeyword | TSESTree.TSStringKeyword | TSESTree.TSSymbolKeyword | TSESTree.TSThisType | TSESTree.TSTupleType | TSESTree.TSTypeAliasDeclaration | TSESTree.TSTypeAnnotation | TSESTree.TSTypeAssertion | TSESTree.TSTypeLiteral | TSESTree.TSTypeOperator | TSESTree.TSTypeParameter | TSESTree.TSTypeParameterDeclaration | TSESTree.TSTypeParameterInstantiation | TSESTree.TSTypePredicate | TSESTree.TSTypeQuery | TSESTree.TSTypeReference | TSESTree.TSUndefinedKeyword | TSESTree.TSUnionType | TSESTree.TSUnknownKeyword | TSESTree.TSVoidKeyword | TSESTree.UpdateExpression | TSESTree.UnaryExpression | TSESTree.VariableDeclaration | TSESTree.VariableDeclarator | TSESTree.WhileStatement | TSESTree.WithStatement | TSESTree.YieldExpression | null | undefined, maybeImplicitGlobal?: boolean | undefined, partial?: boolean | undefined, init?: boolean | undefined): Reference;
- READ: 1;
- WRITE: 2;
- RW: 3;
+ new (identifier: TSESTree.Identifier, scope: Scope, flag?: 2 | 3 | 1 | undefined, writeExpr?: TSESTree.ArrayExpression | TSESTree.ArrayPattern | TSESTree.ArrowFunctionExpression | TSESTree.AssignmentExpression | TSESTree.AssignmentPattern | TSESTree.AwaitExpression | TSESTree.BigIntLiteral | TSESTree.BinaryExpression | TSESTree.BlockStatement | TSESTree.BreakStatement | TSESTree.CallExpression | TSESTree.CatchClause | TSESTree.ChainExpression | TSESTree.ClassBody | TSESTree.ClassDeclaration | TSESTree.ClassExpression | TSESTree.ClassPropertyComputedName | TSESTree.ClassPropertyNonComputedName | TSESTree.ConditionalExpression | TSESTree.ContinueStatement | TSESTree.DebuggerStatement | TSESTree.Decorator | TSESTree.DoWhileStatement | TSESTree.EmptyStatement | TSESTree.ExportAllDeclaration | TSESTree.ExportDefaultDeclaration | TSESTree.ExportNamedDeclaration | TSESTree.ExportSpecifier | TSESTree.ExpressionStatement | TSESTree.ForInStatement | TSESTree.ForOfStatement | TSESTree.ForStatement | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.Identifier | TSESTree.IfStatement | TSESTree.ImportDeclaration | TSESTree.ImportDefaultSpecifier | TSESTree.ImportExpression | TSESTree.ImportNamespaceSpecifier | TSESTree.ImportSpecifier | TSESTree.JSXAttribute | TSESTree.JSXClosingElement | TSESTree.JSXClosingFragment | TSESTree.JSXElement | TSESTree.JSXEmptyExpression | TSESTree.JSXExpressionContainer | TSESTree.JSXFragment | TSESTree.JSXIdentifier | TSESTree.JSXMemberExpression | TSESTree.JSXOpeningElement | TSESTree.JSXOpeningFragment | TSESTree.JSXSpreadAttribute | TSESTree.JSXSpreadChild | TSESTree.JSXText | TSESTree.LabeledStatement | TSESTree.BooleanLiteral | TSESTree.NumberLiteral | TSESTree.NullLiteral | TSESTree.RegExpLiteral | TSESTree.StringLiteral | TSESTree.LogicalExpression | TSESTree.MemberExpressionComputedName | TSESTree.MemberExpressionNonComputedName | TSESTree.MetaProperty | TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName | TSESTree.NewExpression | TSESTree.ObjectExpression | TSESTree.ObjectPattern | TSESTree.Program | TSESTree.PropertyComputedName | TSESTree.PropertyNonComputedName | TSESTree.RestElement | TSESTree.ReturnStatement | TSESTree.SequenceExpression | TSESTree.SpreadElement | TSESTree.Super | TSESTree.SwitchCase | TSESTree.SwitchStatement | TSESTree.TaggedTemplateExpression | TSESTree.TemplateElement | TSESTree.TemplateLiteral | TSESTree.ThisExpression | TSESTree.ThrowStatement | TSESTree.TryStatement | TSESTree.TSAbstractClassPropertyComputedName | TSESTree.TSAbstractClassPropertyNonComputedName | TSESTree.TSAbstractKeyword | TSESTree.TSAbstractMethodDefinitionComputedName | TSESTree.TSAbstractMethodDefinitionNonComputedName | TSESTree.TSAnyKeyword | TSESTree.TSArrayType | TSESTree.TSAsExpression | TSESTree.TSAsyncKeyword | TSESTree.TSBigIntKeyword | TSESTree.TSBooleanKeyword | TSESTree.TSCallSignatureDeclaration | TSESTree.TSClassImplements | TSESTree.TSConditionalType | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSDeclareFunction | TSESTree.TSDeclareKeyword | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSEnumDeclaration | TSESTree.TSEnumMemberComputedName | TSESTree.TSEnumMemberNonComputedName | TSESTree.TSExportAssignment | TSESTree.TSExportKeyword | TSESTree.TSExternalModuleReference | TSESTree.TSFunctionType | TSESTree.TSImportEqualsDeclaration | TSESTree.TSImportType | TSESTree.TSIndexedAccessType | TSESTree.TSIndexSignature | TSESTree.TSInferType | TSESTree.TSInterfaceBody | TSESTree.TSInterfaceDeclaration | TSESTree.TSInterfaceHeritage | TSESTree.TSIntersectionType | TSESTree.TSLiteralType | TSESTree.TSMappedType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName | TSESTree.TSModuleBlock | TSESTree.TSModuleDeclaration | TSESTree.TSNamedTupleMember | TSESTree.TSNamespaceExportDeclaration | TSESTree.TSNeverKeyword | TSESTree.TSNonNullExpression | TSESTree.TSNullKeyword | TSESTree.TSNumberKeyword | TSESTree.TSObjectKeyword | TSESTree.TSOptionalType | TSESTree.TSParameterProperty | TSESTree.TSParenthesizedType | TSESTree.TSPrivateKeyword | TSESTree.TSPropertySignatureComputedName | TSESTree.TSPropertySignatureNonComputedName | TSESTree.TSProtectedKeyword | TSESTree.TSPublicKeyword | TSESTree.TSQualifiedName | TSESTree.TSReadonlyKeyword | TSESTree.TSRestType | TSESTree.TSStaticKeyword | TSESTree.TSStringKeyword | TSESTree.TSSymbolKeyword | TSESTree.TSThisType | TSESTree.TSTupleType | TSESTree.TSTypeAliasDeclaration | TSESTree.TSTypeAnnotation | TSESTree.TSTypeAssertion | TSESTree.TSTypeLiteral | TSESTree.TSTypeOperator | TSESTree.TSTypeParameter | TSESTree.TSTypeParameterDeclaration | TSESTree.TSTypeParameterInstantiation | TSESTree.TSTypePredicate | TSESTree.TSTypeQuery | TSESTree.TSTypeReference | TSESTree.TSUndefinedKeyword | TSESTree.TSUnionType | TSESTree.TSUnknownKeyword | TSESTree.TSVoidKeyword | TSESTree.UnaryExpression | TSESTree.UpdateExpression | TSESTree.VariableDeclaration | TSESTree.VariableDeclarator | TSESTree.WhileStatement | TSESTree.WithStatement | TSESTree.YieldExpression | null | undefined, maybeImplicitGlobal?: boolean | undefined, partial?: boolean | undefined, init?: boolean | undefined): Reference;
+ READ: 0x1;
+ WRITE: 0x2;
+ RW: 0x3;
};
export { Reference };
//# sourceMappingURL=Reference.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Reference.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Reference.d.ts.map
index 635aa0c..1384afb 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Reference.d.ts.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Reference.d.ts.map
@@ -1 +1 @@
-{"version":3,"file":"Reference.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/Reference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAEhE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,oBAAY,aAAa,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE5C,UAAU,SAAS;IACjB,UAAU,EAAE,QAAQ,CAAC,UAAU,CAAC;IAChC,IAAI,EAAE,KAAK,CAAC;IACZ,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IAEd,OAAO,EAAE,OAAO,CAAC;IACjB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,OAAO,IAAI,OAAO,CAAC;IACnB,MAAM,IAAI,OAAO,CAAC;IAClB,WAAW,IAAI,OAAO,CAAC;IACvB,UAAU,IAAI,OAAO,CAAC;IACtB,WAAW,IAAI,OAAO,CAAC;CACxB;AACD,QAAA,MAAM,SAAS;;;;;CAcd,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
\ No newline at end of file
+{"version":3,"file":"Reference.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/Reference.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,oBAAY,aAAa,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE5C,UAAU,SAAS;IACjB,UAAU,EAAE,QAAQ,CAAC,UAAU,CAAC;IAChC,IAAI,EAAE,KAAK,CAAC;IACZ,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IAEd,OAAO,EAAE,OAAO,CAAC;IACjB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,OAAO,IAAI,OAAO,CAAC;IACnB,MAAM,IAAI,OAAO,CAAC;IAClB,WAAW,IAAI,OAAO,CAAC;IACvB,UAAU,IAAI,OAAO,CAAC;IACtB,WAAW,IAAI,OAAO,CAAC;CACxB;AACD,QAAA,MAAM,SAAS;qBAEC,SAAS,UAAU,SACxB,KAAK,2lKAMX,SAAS;UAEN,GAAG;WACF,GAAG;QACN,GAAG;CACR,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Reference.js b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Reference.js
index 9723b7d..71a4559 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Reference.js
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Reference.js
@@ -3,6 +3,7 @@
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
+exports.Reference = void 0;
const reference_1 = __importDefault(require("eslint-scope/lib/reference"));
const Reference = reference_1.default;
exports.Reference = Reference;
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Reference.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Reference.js.map
index b4dd782..8b1c95b 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Reference.js.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Reference.js.map
@@ -1 +1 @@
-{"version":3,"file":"Reference.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/Reference.ts"],"names":[],"mappings":";;;;;AACA,2EAAyD;AAwBzD,MAAM,SAAS,GAAG,mBAcjB,CAAC;AAEO,8BAAS"}
\ No newline at end of file
+{"version":3,"file":"Reference.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/Reference.ts"],"names":[],"mappings":";;;;;;AAAA,2EAAyD;AAyBzD,MAAM,SAAS,GAAG,mBAcjB,CAAC;AAEO,8BAAS"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Referencer.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Referencer.d.ts
index 43a39ea..beeb288 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Referencer.d.ts
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Referencer.d.ts
@@ -1,4 +1,4 @@
-import { TSESTree } from '@typescript-eslint/typescript-estree';
+import { TSESTree } from '../ts-estree';
import { PatternVisitorCallback, PatternVisitorOptions, Visitor } from './Options';
import { Scope } from './Scope';
import { ScopeManager } from './ScopeManager';
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Referencer.d.ts.map b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Referencer.d.ts.map
index 89740fb..37a11bf 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Referencer.d.ts.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Referencer.d.ts.map
@@ -1 +1 @@
-{"version":3,"file":"Referencer.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/Referencer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAEhE,OAAO,EACL,s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E,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAC1C,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAC1C,uBAAuB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IACnD,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAC7C,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAClD,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAC7C,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAClD,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAC3C,YAAY,IAAI,IAAI,CAAC;CACtB;AACD,QAAA,MAAM,UAAU,yCACyB,GAAG,qCAC3C,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Referencer.js b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Referencer.js
index ed33411..4aafa5a 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Referencer.js
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Referencer.js
@@ -3,6 +3,8 @@
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
+exports.Referencer = void 0;
+/* eslint-disable @typescript-eslint/no-explicit-any */
const referencer_1 = __importDefault(require("eslint-scope/lib/referencer"));
const Referencer = referencer_1.default;
exports.Referencer = Referencer;
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Referencer.js.map b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Referencer.js.map
index 44ec03a..2d80e28 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Referencer.js.map
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Referencer.js.map
@@ -1 +1 @@
-{"version":3,"file":"Referencer.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/Referencer.ts"],"names":[],"mappings":";;;;;AAEA,6EAA2D;AA0E3D,MAAM,UAAU,GAAG,oBAElB,CAAC;AAEO,gCAAU"}
\ No newline at end of file
+{"version":3,"file":"Referencer.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/Referencer.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAuD;AACvD,6EAA2D;AA2E3D,MAAM,UAAU,GAAG,oBAElB,CAAC;AAEO,gCAAU"}
\ No newline at end of file
diff --git a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Scope.d.ts b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Scope.d.ts
index 8093856..ae6bd11 100644
--- a/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Scope.d.ts
+++ b/node_modules/@typescript-eslint/experimental-utils/dist/ts-eslint-scope/Scope.d.ts
@@ -1,4 +1,4 @@
-import { TSESTree } from '@typescript-eslint/typescript-estree';
+import { TSESTree } from '../ts-estree';
import { Definition } from './Definition';
import { Reference, ReferenceFlag } from './Reference';
import { ScopeManager } from './ScopeManager';
@@ -71,7 +71,7 @@
}
interface GlobalScope extends Scope {
}
-declare const GlobalScope: ScopeConstructor & (new (scopeManager: ScopeManager, block: TSESTree.ArrayExpression | TSESTree.ArrayPattern | TSESTree.ArrowFunctionExpression | TSESTree.AssignmentExpression | TSESTree.AssignmentPattern | TSESTree.AwaitExpression | TSESTree.BigIntLiteral | TSESTree.BinaryExpression | TSESTree.BlockStatement | TSESTree.BreakStatement | TSESTree.CallExpression | TSESTree.CatchClause | TSESTree.ClassBody | TSESTree.ClassDeclaration | TSESTree.ClassExpression | TSESTree.ClassPropertyComputedName | TSESTree.ClassPropertyNonComputedName | TSESTree.ConditionalExpression | TSESTree.ContinueStatement | TSESTree.DebuggerStatement | TSESTree.Decorator | TSESTree.DoWhileStatement | TSESTree.EmptyStatement | TSESTree.ExportAllDeclaration | TSESTree.ExportDefaultDeclaration | TSESTree.ExportNamedDeclaration | TSESTree.ExportSpecifier | TSESTree.ExpressionStatement | TSESTree.ForInStatement | TSESTree.ForOfStatement | TSESTree.ForStatement | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.Identifier | TSESTree.IfStatement | TSESTree.Import | TSESTree.ImportDeclaration | TSESTree.ImportDefaultSpecifier | TSESTree.ImportNamespaceSpecifier | TSESTree.ImportSpecifier | TSESTree.JSXAttribute | TSESTree.JSXClosingElement | TSESTree.JSXClosingFragment | TSESTree.JSXElement | TSESTree.JSXEmptyExpression | TSESTree.JSXExpressionContainer | TSESTree.JSXFragment | TSESTree.JSXIdentifier | TSESTree.JSXOpeningElement | TSESTree.JSXOpeningFragment | TSESTree.JSXSpreadAttribute | TSESTree.JSXSpreadChild | TSESTree.JSXMemberExpression | TSESTree.JSXText | TSESTree.LabeledStatement | TSESTree.BooleanLiteral | TSESTree.NumberLiteral | TSESTree.NullLiteral | TSESTree.RegExpLiteral | TSESTree.StringLiteral | TSESTree.LogicalExpression | TSESTree.MemberExpressionComputedName | TSESTree.MemberExpressionNonComputedName | TSESTree.MetaProperty | TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName | TSESTree.NewExpression | TSESTree.ObjectExpression | TSESTree.ObjectPattern | TSESTree.OptionalCallExpression | TSESTree.OptionalMemberExpressionComputedName | TSESTree.OptionalMemberExpressionNonComputedName | TSESTree.Program | TSESTree.PropertyComputedName | TSESTree.PropertyNonComputedName | TSESTree.RestElement | TSESTree.ReturnStatement | TSESTree.SequenceExpression | TSESTree.SpreadElement | TSESTree.Super | TSESTree.SwitchCase | TSESTree.SwitchStatement | TSESTree.TaggedTemplateExpression | TSESTree.TemplateElement | TSESTree.TemplateLiteral | TSESTree.ThisExpression | TSESTree.ThrowStatement | TSESTree.TryStatement | TSESTree.TSAbstractClassPropertyComputedName | TSESTree.TSAbstractClassPropertyNonComputedName | TSESTree.TSAbstractKeyword | TSESTree.TSAbstractMethodDefinitionComputedName | TSESTree.TSAbstractMethodDefinitionNonComputedName | TSESTree.TSAnyKeyword | TSESTree.TSArrayType | TSESTree.TSAsExpression | TSESTree.TSAsyncKeyword | TSESTree.TSBigIntKeyword | TSESTree.TSBooleanKeyword | TSESTree.TSCallSignatureDeclaration | TSESTree.TSClassImplements | TSESTree.TSConditionalType | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSDeclareFunction | TSESTree.TSDeclareKeyword | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSEnumDeclaration | TSESTree.TSEnumMemberComputedName | TSESTree.TSEnumMemberNonComputedName | TSESTree.TSExportAssignment | TSESTree.TSExportKeyword | TSESTree.TSExternalModuleReference | TSESTree.TSFunctionType | TSESTree.TSImportEqualsDeclaration | TSESTree.TSImportType | TSESTree.TSIndexedAccessType | TSESTree.TSIndexSignature | TSESTree.TSInferType | TSESTree.TSInterfaceDeclaration | TSESTree.TSInterfaceBody | TSESTree.TSInterfaceHeritage | TSESTree.TSIntersectionType | TSESTree.TSLiteralType | TSESTree.TSMappedType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName | TSESTree.TSModuleBlock | TSESTree.TSModuleDeclaration | TSESTree.TSNamespaceExportDeclaration | TSESTree.TSNeverKeyword | TSESTree.TSNonNullExpression | TSESTree.TSNullKeyword | TSESTree.TS