From 5aa6b5c0d9ab8bf6aa560bd386a8231af5dd1175 Mon Sep 17 00:00:00 2001 From: Ben Zhang Date: Sun, 5 Dec 2021 03:45:39 -0800 Subject: [PATCH] updated with respect to ```sort-imports``` rule --- .../src/rules/github-source-headers.ts | 2 +- .../src/rules/ts-apiextractor-json-types.ts | 4 +-- .../rules/ts-apisurface-standardized-verbs.ts | 2 +- .../ts-apisurface-supportcancellation.ts | 6 ++-- .../src/rules/ts-config-include.ts | 2 +- .../src/rules/ts-doc-internal.ts | 8 ++--- .../src/rules/ts-error-handling.ts | 2 +- .../src/rules/ts-modules-only-named.ts | 4 +-- .../src/rules/ts-naming-drop-noun.ts | 4 +-- .../src/rules/ts-naming-options.ts | 4 +-- .../src/rules/ts-naming-subclients.ts | 4 +-- .../src/rules/ts-package-json-author.ts | 2 +- .../src/rules/ts-package-json-bugs.ts | 2 +- .../ts-package-json-engine-is-present.ts | 2 +- .../rules/ts-package-json-files-required.ts | 2 +- .../src/rules/ts-package-json-homepage.ts | 2 +- .../src/rules/ts-package-json-keywords.ts | 2 +- .../src/rules/ts-package-json-license.ts | 2 +- .../src/rules/ts-package-json-main-is-cjs.ts | 2 +- .../src/rules/ts-package-json-module.ts | 2 +- .../src/rules/ts-package-json-name.ts | 2 +- .../src/rules/ts-package-json-repo.ts | 2 +- .../rules/ts-package-json-required-scripts.ts | 4 +-- .../src/rules/ts-package-json-sdktype.ts | 4 +-- .../src/rules/ts-package-json-sideeffects.ts | 2 +- .../src/rules/ts-package-json-types.ts | 4 +-- .../src/rules/ts-pagination-list.ts | 4 +-- .../src/rules/ts-use-interface-parameters.ts | 35 +++++++++---------- .../src/rules/ts-use-promises.ts | 2 +- .../src/rules/ts-versioning-semver.ts | 4 +-- .../src/utils/exports.ts | 4 +-- .../src/utils/metadata.ts | 2 +- .../src/utils/verifiers.ts | 2 +- .../eslint-plugin-azure-sdk/tests/plugin.ts | 2 +- .../tests/rules/github-source-headers.ts | 2 +- .../tests/rules/ts-apiextractor-json-types.ts | 2 +- .../rules/ts-apisurface-standardized-verbs.ts | 2 +- .../ts-apisurface-supportcancellation.ts | 2 +- .../tests/rules/ts-config-include.ts | 2 +- .../tests/rules/ts-doc-internal.ts | 2 +- .../tests/rules/ts-error-handling.ts | 2 +- .../tests/rules/ts-modules-only-named.ts | 2 +- .../tests/rules/ts-naming-drop-noun.ts | 2 +- .../tests/rules/ts-naming-options.ts | 2 +- .../tests/rules/ts-naming-subclients.ts | 2 +- .../tests/rules/ts-no-const-enums.ts | 2 +- .../tests/rules/ts-no-window.ts | 2 +- .../tests/rules/ts-package-json-author.ts | 6 ++-- .../tests/rules/ts-package-json-bugs.ts | 6 ++-- .../ts-package-json-engine-is-present.ts | 2 +- .../rules/ts-package-json-files-required.ts | 8 ++--- .../tests/rules/ts-package-json-homepage.ts | 6 ++-- .../tests/rules/ts-package-json-keywords.ts | 8 ++--- .../tests/rules/ts-package-json-license.ts | 6 ++-- .../rules/ts-package-json-main-is-cjs.ts | 6 ++-- .../tests/rules/ts-package-json-module.ts | 6 ++-- .../tests/rules/ts-package-json-name.ts | 6 ++-- .../tests/rules/ts-package-json-repo.ts | 6 ++-- .../rules/ts-package-json-required-scripts.ts | 6 ++-- .../rules/ts-package-json-sideeffects.ts | 6 ++-- .../tests/rules/ts-package-json-types.ts | 6 ++-- .../tests/rules/ts-pagination-list.ts | 2 +- .../rules/ts-use-interface-parameters.ts | 2 +- .../tests/rules/ts-use-promises.ts | 2 +- .../tests/rules/ts-versioning-semver.ts | 6 ++-- 65 files changed, 126 insertions(+), 129 deletions(-) diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/github-source-headers.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/github-source-headers.ts index 680543a56642..91b0413d0da5 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/github-source-headers.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/github-source-headers.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import { Rule } from "eslint"; import { Comment, Node } from "estree"; +import { Rule } from "eslint"; import { getRuleMetaData } from "../utils"; //------------------------------------------------------------------------------ diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apiextractor-json-types.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apiextractor-json-types.ts index b93940b18ba8..573927f225af 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apiextractor-json-types.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apiextractor-json-types.ts @@ -7,9 +7,9 @@ * @author Will Temple */ -import { Rule } from "eslint"; -import { Property } from "estree"; import { getRuleMetaData, getVerifiers, stripPath } from "../utils"; +import { Property } from "estree"; +import { Rule } from "eslint"; import { stripFileName } from "../utils/verifiers"; //------------------------------------------------------------------------------ diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apisurface-standardized-verbs.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apisurface-standardized-verbs.ts index 7d2d278d7043..65b501fad2df 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apisurface-standardized-verbs.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apisurface-standardized-verbs.ts @@ -6,9 +6,9 @@ * @author Arpan Laha */ -import { Rule } from "eslint"; import { ClassDeclaration, Identifier, MethodDefinition } from "estree"; import { getPublicMethods, getRuleMetaData } from "../utils"; +import { Rule } from "eslint"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apisurface-supportcancellation.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apisurface-supportcancellation.ts index b37a809adbd5..a67b10cbb05a 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apisurface-supportcancellation.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-apisurface-supportcancellation.ts @@ -6,12 +6,12 @@ * @author Arpan Laha */ -import { ParserServices, TSESTree } from "@typescript-eslint/experimental-utils"; -import { ParserWeakMapESTreeToTSNode } from "@typescript-eslint/typescript-estree/dist/parser-options"; -import { Rule } from "eslint"; import { ClassDeclaration, Identifier, MethodDefinition } from "estree"; +import { ParserServices, TSESTree } from "@typescript-eslint/experimental-utils"; import { Symbol as TSSymbol, Type, TypeChecker, TypeFlags } from "typescript"; import { getPublicMethods, getRuleMetaData } from "../utils"; +import { ParserWeakMapESTreeToTSNode } from "@typescript-eslint/typescript-estree/dist/parser-options"; +import { Rule } from "eslint"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-config-include.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-config-include.ts index d2fd9fafce38..a52932908ed4 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-config-include.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-config-include.ts @@ -6,9 +6,9 @@ * @author Wei Jun Tan */ -import { Rule } from "eslint"; import { ArrayExpression, Literal, Property } from "estree"; import { arrayToString, getRuleMetaData, getVerifiers, stripPath } from "../utils"; +import { Rule } from "eslint"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-doc-internal.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-doc-internal.ts index db553fe832a6..6a07b14fcbbb 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-doc-internal.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-doc-internal.ts @@ -7,14 +7,14 @@ */ import { ParserServices, TSESTree } from "@typescript-eslint/experimental-utils"; +import { getLocalExports, getRuleMetaData } from "../utils"; +import { Node } from "estree"; import { ParserWeakMapESTreeToTSNode } from "@typescript-eslint/typescript-estree/dist/parser-options"; import { Rule } from "eslint"; -import { Node } from "estree"; -import { readFileSync } from "fs"; +import { TypeChecker } from "typescript"; import { sync as globSync } from "glob"; +import { readFileSync } from "fs"; import { relative } from "path"; -import { TypeChecker } from "typescript"; -import { getLocalExports, getRuleMetaData } from "../utils"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-error-handling.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-error-handling.ts index 683ee342d4a7..ab5c94d0457c 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-error-handling.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-error-handling.ts @@ -6,9 +6,9 @@ * @author Arpan Laha */ +import { Identifier, NewExpression, ThrowStatement } from "estree"; import { ParserServices, TSESTree } from "@typescript-eslint/experimental-utils"; import { Rule } from "eslint"; -import { Identifier, NewExpression, ThrowStatement } from "estree"; import { getRuleMetaData } from "../utils"; //------------------------------------------------------------------------------ diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-modules-only-named.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-modules-only-named.ts index fae0b7706eed..72fe5f927376 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-modules-only-named.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-modules-only-named.ts @@ -6,9 +6,9 @@ * @author Arpan Laha */ -import { Rule } from "eslint"; -import { ExportDefaultDeclaration } from "estree"; import { normalize, relative } from "path"; +import { ExportDefaultDeclaration } from "estree"; +import { Rule } from "eslint"; import { getRuleMetaData } from "../utils"; //------------------------------------------------------------------------------ diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-drop-noun.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-drop-noun.ts index 26a92904ab16..e44792d78107 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-drop-noun.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-drop-noun.ts @@ -6,10 +6,10 @@ * @author Arpan Laha */ -import { TSESTree } from "@typescript-eslint/experimental-utils"; -import { Rule } from "eslint"; import { ClassDeclaration, Identifier, MethodDefinition } from "estree"; import { getPublicMethods, getRuleMetaData } from "../utils"; +import { Rule } from "eslint"; +import { TSESTree } from "@typescript-eslint/experimental-utils"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-options.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-options.ts index 1303e07ade0c..ce5baab1f0ea 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-options.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-options.ts @@ -6,10 +6,10 @@ * @author Arpan Laha */ -import { ParserServices, TSESTree } from "@typescript-eslint/experimental-utils"; -import { Rule } from "eslint"; import { ClassDeclaration, Identifier, MethodDefinition } from "estree"; +import { ParserServices, TSESTree } from "@typescript-eslint/experimental-utils"; import { getPublicMethods, getRuleMetaData } from "../utils"; +import { Rule } from "eslint"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-subclients.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-subclients.ts index 1464f63c0ffc..0482de392f9c 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-subclients.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-subclients.ts @@ -6,10 +6,10 @@ * @author Arpan Laha */ -import { TSESTree } from "@typescript-eslint/experimental-utils"; -import { Rule } from "eslint"; import { ClassDeclaration, Identifier, MethodDefinition } from "estree"; import { getPublicMethods, getRuleMetaData } from "../utils"; +import { Rule } from "eslint"; +import { TSESTree } from "@typescript-eslint/experimental-utils"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-author.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-author.ts index 19e381ac3338..b5501abf35e7 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-author.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-author.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import { Rule } from "eslint"; import { getRuleMetaData, getVerifiers, stripPath } from "../utils"; +import { Rule } from "eslint"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-bugs.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-bugs.ts index 78846d11d4b6..5d4bb729c124 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-bugs.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-bugs.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import { Rule } from "eslint"; import { getRuleMetaData, getVerifiers, stripPath } from "../utils"; +import { Rule } from "eslint"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-engine-is-present.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-engine-is-present.ts index c0cac04ac69f..a3c610e2a47b 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-engine-is-present.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-engine-is-present.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import { Rule } from "eslint"; import { getRuleMetaData, getVerifiers, stripPath } from "../utils"; +import { Rule } from "eslint"; /** * definition of LTS Node versions diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-files-required.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-files-required.ts index 5759d2989711..9100244b47fd 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-files-required.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-files-required.ts @@ -6,9 +6,9 @@ * @author Arpan Laha */ -import { Rule } from "eslint"; import { Literal, Property } from "estree"; import { arrayToString, getRuleMetaData, getVerifiers, stripPath } from "../utils"; +import { Rule } from "eslint"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-homepage.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-homepage.ts index ed343b7d9721..96f15fb644bd 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-homepage.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-homepage.ts @@ -6,9 +6,9 @@ * @author Arpan Laha */ +import { Literal, Property } from "estree"; import { getRuleMetaData, getVerifiers, stripPath } from "../utils"; import { Rule } from "eslint"; -import { Literal, Property } from "estree"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-keywords.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-keywords.ts index a8ce344f3c99..51e35fc2cf13 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-keywords.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-keywords.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import { Rule } from "eslint"; import { getRuleMetaData, getVerifiers, stripPath } from "../utils"; +import { Rule } from "eslint"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-license.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-license.ts index 2b95be8bfe3c..c439f14813ff 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-license.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-license.ts @@ -6,8 +6,8 @@ * @license Arpan Laha */ -import { Rule } from "eslint"; import { getRuleMetaData, getVerifiers, stripPath } from "../utils"; +import { Rule } from "eslint"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-main-is-cjs.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-main-is-cjs.ts index 445e626df4ce..9a2ec2881c3f 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-main-is-cjs.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-main-is-cjs.ts @@ -6,9 +6,9 @@ * @author Arpan Laha */ -import { Rule } from "eslint"; import { Literal, Property } from "estree"; import { getRuleMetaData, getVerifiers, stripPath } from "../utils"; +import { Rule } from "eslint"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-module.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-module.ts index 3e9f0a47adc4..76f2c8ebd873 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-module.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-module.ts @@ -6,9 +6,9 @@ * @author Arpan Laha */ -import { Rule } from "eslint"; import { Literal, Property } from "estree"; import { getRuleMetaData, getVerifiers, stripPath } from "../utils"; +import { Rule } from "eslint"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-name.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-name.ts index 0475c46186bc..117d1a818069 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-name.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-name.ts @@ -6,9 +6,9 @@ * @author Arpan Laha */ -import { Rule } from "eslint"; import { Literal, Property } from "estree"; import { getRuleMetaData, getVerifiers, stripPath } from "../utils"; +import { Rule } from "eslint"; import { stripFileName } from "../utils/verifiers"; //------------------------------------------------------------------------------ diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-repo.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-repo.ts index f95ac5c2d765..c275b4788666 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-repo.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-repo.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import { Rule } from "eslint"; import { getRuleMetaData, getVerifiers, stripPath } from "../utils"; +import { Rule } from "eslint"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-required-scripts.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-required-scripts.ts index fa25a9afb650..3c952850f9ff 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-required-scripts.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-required-scripts.ts @@ -6,9 +6,9 @@ * @author Arpan Laha */ -import { Rule } from "eslint"; -import { Property } from "estree"; import { getRuleMetaData, getVerifiers, stripPath } from "../utils"; +import { Property } from "estree"; +import { Rule } from "eslint"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-sdktype.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-sdktype.ts index 5882d2817442..6520a07718e7 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-sdktype.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-sdktype.ts @@ -7,9 +7,9 @@ * @author Ben Zhang */ -import { Rule } from "eslint"; -import { Property } from "estree"; import { getRuleMetaData, getVerifiers, stripPath } from "../utils"; +import { Property } from "estree"; +import { Rule } from "eslint"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-sideeffects.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-sideeffects.ts index 9d6296365aab..6d27587e10f2 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-sideeffects.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-sideeffects.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import { Rule } from "eslint"; import { getRuleMetaData, getVerifiers, stripPath } from "../utils"; +import { Rule } from "eslint"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-types.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-types.ts index ab685f079368..7b211816488d 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-types.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-package-json-types.ts @@ -6,9 +6,9 @@ * @author Arpan Laha */ -import { Rule } from "eslint"; -import { Property } from "estree"; import { getRuleMetaData, getVerifiers, stripPath } from "../utils"; +import { Property } from "estree"; +import { Rule } from "eslint"; import { stripFileName } from "../utils/verifiers"; //------------------------------------------------------------------------------ diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-pagination-list.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-pagination-list.ts index 9fd6529b4820..511f3c91f659 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-pagination-list.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-pagination-list.ts @@ -6,9 +6,9 @@ * @author Arpan Laha */ -import { TSESTree } from "@typescript-eslint/experimental-utils"; -import { Rule } from "eslint"; import { Identifier, MethodDefinition } from "estree"; +import { Rule } from "eslint"; +import { TSESTree } from "@typescript-eslint/experimental-utils"; import { getRuleMetaData } from "../utils"; //------------------------------------------------------------------------------ diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-use-interface-parameters.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-use-interface-parameters.ts index 0f3c1437c57a..6d866a601629 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-use-interface-parameters.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-use-interface-parameters.ts @@ -6,33 +6,30 @@ * @author Arpan Laha */ -import { ParserServices, TSESTree } from "@typescript-eslint/experimental-utils"; -import { - ParserWeakMapESTreeToTSNode, - ParserWeakMap -} from "@typescript-eslint/typescript-estree/dist/parser-options"; -import { Rule } from "eslint"; -import { - FunctionDeclaration, - FunctionExpression, - Identifier, - MethodDefinition, - Pattern -} from "estree"; import { Declaration, - isArrayTypeNode, - Node as TSNode, + Modifier, PropertySignature, - Symbol as TSSymbol, SymbolFlags, + SyntaxKind, + Node as TSNode, + Symbol as TSSymbol, Type, TypeChecker, - TypeReferenceNode, TypeReference, - Modifier, - SyntaxKind + TypeReferenceNode, + isArrayTypeNode } from "typescript"; +import { + FunctionDeclaration, + FunctionExpression, + Identifier, + MethodDefinition, + Pattern +} from "estree"; +import { ParserServices, TSESTree } from "@typescript-eslint/experimental-utils"; +import { ParserWeakMap, ParserWeakMapESTreeToTSNode } from "@typescript-eslint/typescript-estree/dist/parser-options"; +import { Rule } from "eslint"; import { getRuleMetaData } from "../utils"; //------------------------------------------------------------------------------ diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-use-promises.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-use-promises.ts index 8b4aafb4c8eb..1f588dc05fcc 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-use-promises.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-use-promises.ts @@ -8,8 +8,8 @@ import { ParserServices } from "@typescript-eslint/experimental-utils"; import { Rule } from "eslint"; -import { isExternalModule } from "typescript"; import { getRuleMetaData } from "../utils"; +import { isExternalModule } from "typescript"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-versioning-semver.ts b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-versioning-semver.ts index 0efe360eae2b..42ab0fd70d9f 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/rules/ts-versioning-semver.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/rules/ts-versioning-semver.ts @@ -6,9 +6,9 @@ * @author Arpan Laha */ -import { Rule } from "eslint"; -import { Property } from "estree"; import { getRuleMetaData, getVerifiers, stripPath } from "../utils"; +import { Property } from "estree"; +import { Rule } from "eslint"; //------------------------------------------------------------------------------ // Rule Definition diff --git a/common/tools/eslint-plugin-azure-sdk/src/utils/exports.ts b/common/tools/eslint-plugin-azure-sdk/src/utils/exports.ts index f2cb9235064f..4ac31a102ad9 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/utils/exports.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/utils/exports.ts @@ -6,10 +6,10 @@ * @author Arpan Laha */ +import { ClassDeclaration, MethodDefinition } from "estree"; import { ParserServices, TSESTree } from "@typescript-eslint/experimental-utils"; -import { Rule } from "eslint"; import { SourceFile, Symbol as TSSymbol } from "typescript"; -import { ClassDeclaration, MethodDefinition } from "estree"; +import { Rule } from "eslint"; /** * Gets all Symbols of Types of all top-level exports from a package. diff --git a/common/tools/eslint-plugin-azure-sdk/src/utils/metadata.ts b/common/tools/eslint-plugin-azure-sdk/src/utils/metadata.ts index 4447a459fecf..0f282bbf137d 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/utils/metadata.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/utils/metadata.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import { Rule } from "eslint"; import { JSONSchema4 } from "json-schema"; +import { Rule } from "eslint"; export const getRuleMetaData = ( ruleName: string, diff --git a/common/tools/eslint-plugin-azure-sdk/src/utils/verifiers.ts b/common/tools/eslint-plugin-azure-sdk/src/utils/verifiers.ts index efbda6dc55bd..e95b218a566a 100644 --- a/common/tools/eslint-plugin-azure-sdk/src/utils/verifiers.ts +++ b/common/tools/eslint-plugin-azure-sdk/src/utils/verifiers.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import { Rule } from "eslint"; import { ArrayExpression, Literal, ObjectExpression, Property, SpreadElement } from "estree"; +import { Rule } from "eslint"; interface StructureData { outer: string; diff --git a/common/tools/eslint-plugin-azure-sdk/tests/plugin.ts b/common/tools/eslint-plugin-azure-sdk/tests/plugin.ts index 210c6645b9b5..eb966b063ed5 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/plugin.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/plugin.ts @@ -6,9 +6,9 @@ * @author Arpan Laha */ -import plugin from "../src"; import { describe, it } from "mocha"; import { assert } from "chai"; +import plugin from "../src"; /** * A list of all currently supported rules diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/github-source-headers.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/github-source-headers.ts index ac0ae2aaf34f..1435b85c849b 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/github-source-headers.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/github-source-headers.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import rule from "../../src/rules/github-source-headers"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/github-source-headers"; //------------------------------------------------------------------------------ // Tests diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-apiextractor-json-types.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-apiextractor-json-types.ts index b4f44765d305..2d83af9e137c 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-apiextractor-json-types.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-apiextractor-json-types.ts @@ -7,8 +7,8 @@ * @author Will Temple */ -import rule from "../../src/rules/ts-apiextractor-json-types"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-apiextractor-json-types"; //------------------------------------------------------------------------------ // Example files diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-apisurface-standardized-verbs.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-apisurface-standardized-verbs.ts index 9ad73c94764a..c137a469501f 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-apisurface-standardized-verbs.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-apisurface-standardized-verbs.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-apisurface-standardized-verbs"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-apisurface-standardized-verbs"; //------------------------------------------------------------------------------ // Tests diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-apisurface-supportcancellation.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-apisurface-supportcancellation.ts index 3c6916ffa124..69d8a63c750b 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-apisurface-supportcancellation.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-apisurface-supportcancellation.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-apisurface-supportcancellation"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-apisurface-supportcancellation"; //------------------------------------------------------------------------------ // Tests diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-config-include.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-config-include.ts index 291d3cdeb760..1fa0a559ce37 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-config-include.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-config-include.ts @@ -6,8 +6,8 @@ * @author Wei Jun Tan */ -import rule from "../../src/rules/ts-config-include"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-config-include"; //------------------------------------------------------------------------------ // Example files diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-doc-internal.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-doc-internal.ts index fcd464a1965b..fda524621e45 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-doc-internal.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-doc-internal.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-doc-internal"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-doc-internal"; //------------------------------------------------------------------------------ // Tests diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-error-handling.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-error-handling.ts index 4aa482b70811..d3fce03f0b9c 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-error-handling.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-error-handling.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-error-handling"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-error-handling"; //------------------------------------------------------------------------------ // Tests diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-modules-only-named.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-modules-only-named.ts index b5048f15cefd..dbe723cb6b59 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-modules-only-named.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-modules-only-named.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-modules-only-named"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-modules-only-named"; //------------------------------------------------------------------------------ // Tests diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-naming-drop-noun.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-naming-drop-noun.ts index 7f8498f6154b..2e6c01bff5f8 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-naming-drop-noun.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-naming-drop-noun.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-naming-drop-noun"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-naming-drop-noun"; //------------------------------------------------------------------------------ // Tests diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-naming-options.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-naming-options.ts index 128c8fe7a171..7c8bdeaaad1b 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-naming-options.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-naming-options.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-naming-options"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-naming-options"; //------------------------------------------------------------------------------ // Tests diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-naming-subclients.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-naming-subclients.ts index cbfa551df3dd..757d9b3eb5ae 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-naming-subclients.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-naming-subclients.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-naming-subclients"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-naming-subclients"; //------------------------------------------------------------------------------ // Tests diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-no-const-enums.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-no-const-enums.ts index 9a6fec883870..8ec7334462e0 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-no-const-enums.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-no-const-enums.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-no-const-enums"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-no-const-enums"; //------------------------------------------------------------------------------ // Tests diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-no-window.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-no-window.ts index 1029d49c658a..d877b1f2d075 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-no-window.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-no-window.ts @@ -6,8 +6,8 @@ * @author Maor Leger */ -import rule from "../../src/rules/ts-no-window"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-no-window"; //------------------------------------------------------------------------------ // Tests diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-author.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-author.ts index 09bb3bffa4ea..138ca9c7fbb0 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-author.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-author.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-package-json-author"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-package-json-author"; //------------------------------------------------------------------------------ // Example files @@ -80,7 +80,7 @@ const examplePackageGood = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", @@ -193,7 +193,7 @@ const examplePackageBad = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-bugs.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-bugs.ts index 0d635c19ab45..4237f9fd0499 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-bugs.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-bugs.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-package-json-bugs"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-package-json-bugs"; //------------------------------------------------------------------------------ // Example files @@ -80,7 +80,7 @@ const examplePackageGood = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", @@ -193,7 +193,7 @@ const examplePackageBad = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-engine-is-present.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-engine-is-present.ts index 64e7987cb021..147fdea60556 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-engine-is-present.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-engine-is-present.ts @@ -8,8 +8,8 @@ "use strict"; -import rule from "../../src/rules/ts-package-json-engine-is-present"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-package-json-engine-is-present"; //------------------------------------------------------------------------------ // Example files diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-files-required.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-files-required.ts index 8c7e98813c03..7369ddebd163 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-files-required.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-files-required.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-package-json-files-required"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-package-json-files-required"; //------------------------------------------------------------------------------ // Example files @@ -80,7 +80,7 @@ const examplePackageGood = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", @@ -192,7 +192,7 @@ const examplePackageBad = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", @@ -302,7 +302,7 @@ const examplePackageBadFixed = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-homepage.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-homepage.ts index cd9560c92351..6f32e1402c2d 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-homepage.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-homepage.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-package-json-homepage"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-package-json-homepage"; //------------------------------------------------------------------------------ // Example files @@ -80,7 +80,7 @@ const examplePackageGood = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", @@ -193,7 +193,7 @@ const examplePackageBad = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-keywords.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-keywords.ts index 24a3ce30e4e2..95da15276b76 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-keywords.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-keywords.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-package-json-keywords"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-package-json-keywords"; //------------------------------------------------------------------------------ // Example files @@ -78,7 +78,7 @@ const examplePackageGood = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", @@ -186,7 +186,7 @@ const examplePackageBad = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", @@ -294,7 +294,7 @@ const examplePackageBadFixed = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-license.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-license.ts index 5e0117ae8bb1..3c6c62d47020 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-license.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-license.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-package-json-license"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-package-json-license"; //------------------------------------------------------------------------------ // Example files @@ -80,7 +80,7 @@ const examplePackageGood = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", @@ -193,7 +193,7 @@ const examplePackageBad = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-main-is-cjs.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-main-is-cjs.ts index 11ab7740972b..7be52a75c58d 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-main-is-cjs.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-main-is-cjs.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-package-json-main-is-cjs"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-package-json-main-is-cjs"; //------------------------------------------------------------------------------ // Example files @@ -80,7 +80,7 @@ const examplePackageGood = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", @@ -193,7 +193,7 @@ const examplePackageBad = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-module.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-module.ts index 3c032bea6b71..2fca4464f7dd 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-module.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-module.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-package-json-module"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-package-json-module"; //------------------------------------------------------------------------------ // Example files @@ -80,7 +80,7 @@ const examplePackageGood = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", @@ -193,7 +193,7 @@ const examplePackageBad = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-name.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-name.ts index 8635abe36e11..633c1f22b1dd 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-name.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-name.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-package-json-name"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-package-json-name"; //------------------------------------------------------------------------------ // Example files @@ -80,7 +80,7 @@ const examplePackageGood = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", @@ -193,7 +193,7 @@ const examplePackageBad = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-repo.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-repo.ts index 3509fb67d4a5..b76f6687b338 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-repo.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-repo.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-package-json-repo"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-package-json-repo"; //------------------------------------------------------------------------------ // Example files @@ -80,7 +80,7 @@ const examplePackageGood = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", @@ -193,7 +193,7 @@ const examplePackageBad = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-required-scripts.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-required-scripts.ts index ad0715bcafe7..8dba5a3eba5a 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-required-scripts.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-required-scripts.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-package-json-required-scripts"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-package-json-required-scripts"; //------------------------------------------------------------------------------ // Example files @@ -80,7 +80,7 @@ const examplePackageGood = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", @@ -199,7 +199,7 @@ const examplePackageBad = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-sideeffects.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-sideeffects.ts index e60fee5f440f..f4eb537c9e10 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-sideeffects.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-sideeffects.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-package-json-sideeffects"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-package-json-sideeffects"; //------------------------------------------------------------------------------ // Example files @@ -80,7 +80,7 @@ const examplePackageGood = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", @@ -193,7 +193,7 @@ const examplePackageBad = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-types.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-types.ts index 1a19eb2eb493..9c08ff63f469 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-types.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-package-json-types.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-package-json-types"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-package-json-types"; //------------------------------------------------------------------------------ // Example files @@ -80,7 +80,7 @@ const examplePackageGood = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", @@ -193,7 +193,7 @@ const examplePackageBad = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-pagination-list.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-pagination-list.ts index 01b1b9d10a6a..809545033bae 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-pagination-list.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-pagination-list.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-pagination-list"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-pagination-list"; //------------------------------------------------------------------------------ // Tests diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-use-interface-parameters.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-use-interface-parameters.ts index fff40f32bc45..c799f1d3ba38 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-use-interface-parameters.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-use-interface-parameters.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-use-interface-parameters"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-use-interface-parameters"; //------------------------------------------------------------------------------ // Example class & interface diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-use-promises.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-use-promises.ts index 0fbbe2229ca5..55786ab1427c 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-use-promises.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-use-promises.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-use-promises"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-use-promises"; //------------------------------------------------------------------------------ // Example files diff --git a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-versioning-semver.ts b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-versioning-semver.ts index 98b1fd4f6631..fdd8959c615d 100644 --- a/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-versioning-semver.ts +++ b/common/tools/eslint-plugin-azure-sdk/tests/rules/ts-versioning-semver.ts @@ -6,8 +6,8 @@ * @author Arpan Laha */ -import rule from "../../src/rules/ts-versioning-semver"; import { RuleTester } from "eslint"; +import rule from "../../src/rules/ts-versioning-semver"; //------------------------------------------------------------------------------ // Example files @@ -80,7 +80,7 @@ const examplePackageGood = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0", @@ -193,7 +193,7 @@ const examplePackageBad = `{ "eslint-detailed-reporter": "^0.8.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^2.3.0", - "eslint-plugin-promise": "^4.1.1", + "eslint-plugin-promise": "^4.1.1", "https-proxy-agent": "^2.2.1", "karma": "^4.0.1", "karma-chrome-launcher": "^2.2.0",