Skip to content

Commit ed668f6

Browse files
committed
Organize imports with Prettier plugin (#2853)
(cherry picked from commit 82c3eff)
1 parent 5978dbd commit ed668f6

File tree

269 files changed

+547
-572
lines changed

Some content is hidden

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

269 files changed

+547
-572
lines changed

compiler/package-lock.json

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"c8": "^7.11.0",
2929
"minimist": "^1.2.6",
3030
"prettier": "2.5.1",
31+
"prettier-plugin-organize-imports": "^4.0.0",
3132
"ts-node": "^10.4.0",
3233
"ts-standard": "^11.0.0",
3334
"typescript": "^4.5.5"

specification/_global/bulk/BulkRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* under the License.
1818
*/
1919

20+
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
2021
import { RequestBase } from '@_types/Base'
2122
import {
2223
Fields,
@@ -27,7 +28,6 @@ import {
2728
} from '@_types/common'
2829
import { Duration } from '@_types/Time'
2930
import { OperationContainer, UpdateAction } from './types'
30-
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
3131

3232
/**
3333
* Performs multiple indexing or delete operations in a single API call.

specification/_global/bulk/BulkResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
* under the License.
1818
*/
1919

20+
import { SingleKeyDictionary } from '@spec_utils/Dictionary'
2021
import { long } from '@_types/Numeric'
2122
import { OperationType, ResponseItem } from './types'
22-
import { SingleKeyDictionary } from '@spec_utils/Dictionary'
2323

2424
export class Response {
2525
body: {

specification/_global/bulk/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@
1717
* under the License.
1818
*/
1919

20-
import { InlineGet } from '@_types/common'
20+
import { SourceConfig } from '@global/search/_types/SourceFilter'
2121
import { Dictionary } from '@spec_utils/Dictionary'
2222
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2323
import {
2424
Id,
2525
IndexName,
26+
InlineGet,
2627
Routing,
2728
SequenceNumber,
2829
VersionNumber,
2930
VersionType
3031
} from '@_types/common'
3132
import { ErrorCause } from '@_types/Errors'
3233
import { integer, long } from '@_types/Numeric'
33-
import { ShardStatistics } from '@_types/Stats'
3434
import { Script } from '@_types/Scripting'
35-
import { SourceConfig } from '@global/search/_types/SourceFilter'
35+
import { ShardStatistics } from '@_types/Stats'
3636

3737
export class ResponseItem {
3838
/**

specification/_global/clear_scroll/ClearScrollRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
import { RequestBase } from '@_types/Base'
21-
import { Ids, ScrollIds } from '@_types/common'
21+
import { ScrollIds } from '@_types/common'
2222

2323
/**
2424
* Clears the search context and results for a scrolling search.

specification/_global/delete_by_query/DeleteByQueryRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ import {
2929
} from '@_types/common'
3030
import { float, long } from '@_types/Numeric'
3131
import { QueryContainer } from '@_types/query_dsl/abstractions'
32+
import { Operator } from '@_types/query_dsl/Operator'
3233
import { SlicedScroll } from '@_types/SlicedScroll'
3334
import { Duration } from '@_types/Time'
34-
import { Operator } from '@_types/query_dsl/Operator'
3535

3636
/**
3737
* Deletes documents that match the specified query.

specification/_global/exists/DocumentExistsRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* under the License.
1818
*/
1919

20+
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
2021
import { RequestBase } from '@_types/Base'
2122
import {
2223
Fields,
@@ -26,7 +27,6 @@ import {
2627
VersionNumber,
2728
VersionType
2829
} from '@_types/common'
29-
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
3030

3131
/**
3232
* Checks if a document in an index exists.

specification/_global/exists_source/SourceExistsRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* under the License.
1818
*/
1919

20+
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
2021
import { RequestBase } from '@_types/Base'
2122
import {
2223
Fields,
@@ -26,7 +27,6 @@ import {
2627
VersionNumber,
2728
VersionType
2829
} from '@_types/common'
29-
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
3030

3131
/**
3232
* Checks if a document's `_source` is stored.

specification/_global/explain/ExplainRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
* under the License.
1818
*/
1919

20+
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
2021
import { RequestBase } from '@_types/Base'
2122
import { Fields, Id, IndexName, Routing } from '@_types/common'
2223
import { QueryContainer } from '@_types/query_dsl/abstractions'
23-
import { SourceConfigParam } from '@global/search/_types/SourceFilter'
2424
import { Operator } from '@_types/query_dsl/Operator'
2525

2626
/**

0 commit comments

Comments
 (0)