Skip to content

Commit 7ba6db3

Browse files
authored
updated with respect to sort-imports rule (Azure#18951)
1 parent 6242d00 commit 7ba6db3

File tree

65 files changed

+126
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+126
-129
lines changed

common/tools/eslint-plugin-azure-sdk/src/rules/github-source-headers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* @author Arpan Laha
77
*/
88

9-
import { Rule } from "eslint";
109
import { Comment, Node } from "estree";
10+
import { Rule } from "eslint";
1111
import { getRuleMetaData } from "../utils";
1212

1313
//------------------------------------------------------------------------------

common/tools/eslint-plugin-azure-sdk/src/rules/ts-apiextractor-json-types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* @author Will Temple
88
*/
99

10-
import { Rule } from "eslint";
11-
import { Property } from "estree";
1210
import { getRuleMetaData, getVerifiers, stripPath } from "../utils";
11+
import { Property } from "estree";
12+
import { Rule } from "eslint";
1313
import { stripFileName } from "../utils/verifiers";
1414

1515
//------------------------------------------------------------------------------

common/tools/eslint-plugin-azure-sdk/src/rules/ts-apisurface-standardized-verbs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* @author Arpan Laha
77
*/
88

9-
import { Rule } from "eslint";
109
import { ClassDeclaration, Identifier, MethodDefinition } from "estree";
1110
import { getPublicMethods, getRuleMetaData } from "../utils";
11+
import { Rule } from "eslint";
1212

1313
//------------------------------------------------------------------------------
1414
// Rule Definition

common/tools/eslint-plugin-azure-sdk/src/rules/ts-apisurface-supportcancellation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
* @author Arpan Laha
77
*/
88

9-
import { ParserServices, TSESTree } from "@typescript-eslint/experimental-utils";
10-
import { ParserWeakMapESTreeToTSNode } from "@typescript-eslint/typescript-estree/dist/parser-options";
11-
import { Rule } from "eslint";
129
import { ClassDeclaration, Identifier, MethodDefinition } from "estree";
10+
import { ParserServices, TSESTree } from "@typescript-eslint/experimental-utils";
1311
import { Symbol as TSSymbol, Type, TypeChecker, TypeFlags } from "typescript";
1412
import { getPublicMethods, getRuleMetaData } from "../utils";
13+
import { ParserWeakMapESTreeToTSNode } from "@typescript-eslint/typescript-estree/dist/parser-options";
14+
import { Rule } from "eslint";
1515

1616
//------------------------------------------------------------------------------
1717
// Rule Definition

common/tools/eslint-plugin-azure-sdk/src/rules/ts-config-include.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* @author Wei Jun Tan
77
*/
88

9-
import { Rule } from "eslint";
109
import { ArrayExpression, Literal, Property } from "estree";
1110
import { arrayToString, getRuleMetaData, getVerifiers, stripPath } from "../utils";
11+
import { Rule } from "eslint";
1212

1313
//------------------------------------------------------------------------------
1414
// Rule Definition

common/tools/eslint-plugin-azure-sdk/src/rules/ts-doc-internal.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
*/
88

99
import { ParserServices, TSESTree } from "@typescript-eslint/experimental-utils";
10+
import { getLocalExports, getRuleMetaData } from "../utils";
11+
import { Node } from "estree";
1012
import { ParserWeakMapESTreeToTSNode } from "@typescript-eslint/typescript-estree/dist/parser-options";
1113
import { Rule } from "eslint";
12-
import { Node } from "estree";
13-
import { readFileSync } from "fs";
14+
import { TypeChecker } from "typescript";
1415
import { sync as globSync } from "glob";
16+
import { readFileSync } from "fs";
1517
import { relative } from "path";
16-
import { TypeChecker } from "typescript";
17-
import { getLocalExports, getRuleMetaData } from "../utils";
1818

1919
//------------------------------------------------------------------------------
2020
// Rule Definition

common/tools/eslint-plugin-azure-sdk/src/rules/ts-error-handling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* @author Arpan Laha
77
*/
88

9+
import { Identifier, NewExpression, ThrowStatement } from "estree";
910
import { ParserServices, TSESTree } from "@typescript-eslint/experimental-utils";
1011
import { Rule } from "eslint";
11-
import { Identifier, NewExpression, ThrowStatement } from "estree";
1212
import { getRuleMetaData } from "../utils";
1313

1414
//------------------------------------------------------------------------------

common/tools/eslint-plugin-azure-sdk/src/rules/ts-modules-only-named.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* @author Arpan Laha
77
*/
88

9-
import { Rule } from "eslint";
10-
import { ExportDefaultDeclaration } from "estree";
119
import { normalize, relative } from "path";
10+
import { ExportDefaultDeclaration } from "estree";
11+
import { Rule } from "eslint";
1212
import { getRuleMetaData } from "../utils";
1313

1414
//------------------------------------------------------------------------------

common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-drop-noun.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
* @author Arpan Laha
77
*/
88

9-
import { TSESTree } from "@typescript-eslint/experimental-utils";
10-
import { Rule } from "eslint";
119
import { ClassDeclaration, Identifier, MethodDefinition } from "estree";
1210
import { getPublicMethods, getRuleMetaData } from "../utils";
11+
import { Rule } from "eslint";
12+
import { TSESTree } from "@typescript-eslint/experimental-utils";
1313

1414
//------------------------------------------------------------------------------
1515
// Rule Definition

common/tools/eslint-plugin-azure-sdk/src/rules/ts-naming-options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
* @author Arpan Laha
77
*/
88

9-
import { ParserServices, TSESTree } from "@typescript-eslint/experimental-utils";
10-
import { Rule } from "eslint";
119
import { ClassDeclaration, Identifier, MethodDefinition } from "estree";
10+
import { ParserServices, TSESTree } from "@typescript-eslint/experimental-utils";
1211
import { getPublicMethods, getRuleMetaData } from "../utils";
12+
import { Rule } from "eslint";
1313

1414
//------------------------------------------------------------------------------
1515
// Rule Definition

0 commit comments

Comments
 (0)