Skip to content

Commit 9e2ad81

Browse files
Merge pull request #480 from lukecotter/chore-switch-prettier-import-sort
chore: switch prettier import sort package
2 parents 4be4117 + 15904e5 commit 9e2ad81

25 files changed

Lines changed: 57 additions & 104 deletions

.prettierrc

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
{
2-
"plugins": ["@trivago/prettier-plugin-sort-imports"],
2+
"plugins": ["prettier-plugin-organize-imports"],
33
"tabWidth": 2,
44
"printWidth": 100,
55
"semi": true,
6-
"singleQuote": true,
7-
"importOrder": ["<THIRD_PARTY_MODULES>", "^[./]"],
8-
"importOrderParserPlugins": ["typescript", "decorators"],
9-
"importOrderSeparation": true,
10-
"importOrderSortSpecifiers": true
11-
6+
"singleQuote": true
127
}

lana/src/Context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (c) 2020 Certinia Inc. All rights reserved.
33
*/
4-
import { type ExtensionContext, workspace } from 'vscode';
4+
import { workspace, type ExtensionContext } from 'vscode';
55

66
import { ShowAnalysisCodeLens } from './codelenses/ShowAnalysisCodeLens.js';
77
import { RetrieveLogFile } from './commands/RetrieveLogFile.js';

lana/src/codelenses/ShowAnalysisCodeLens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CodeLens, type CodeLensProvider, Range, type TextDocument, languages } from 'vscode';
1+
import { CodeLens, Range, languages, type CodeLensProvider, type TextDocument } from 'vscode';
22

33
import { Context } from '../Context.js';
44
import { ShowLogAnalysis } from '../commands/ShowLogAnalysis.js';

lana/src/commands/LogView.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import { createReadStream, existsSync } from 'fs';
55
import { writeFile } from 'fs/promises';
66
import { homedir } from 'os';
77
import { basename, dirname, join, parse } from 'path';
8-
import { type WebviewPanel, window as vscWindow } from 'vscode';
9-
import { Uri, commands, workspace } from 'vscode';
8+
import { Uri, commands, window as vscWindow, workspace, type WebviewPanel } from 'vscode';
109

1110
import { Context } from '../Context.js';
1211
import { OpenFileInPackage } from '../display/OpenFileInPackage.js';

lana/src/commands/RetrieveLogFile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { type LogRecord } from '@salesforce/apex-node';
55
import { existsSync } from 'fs';
66
import { join, parse } from 'path';
7-
import { type WebviewPanel, window } from 'vscode';
7+
import { window, type WebviewPanel } from 'vscode';
88

99
import { appName } from '../AppSettings.js';
1010
import { Context } from '../Context.js';

lana/src/display/Display.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (c) 2020 Certinia Inc. All rights reserved.
33
*/
4-
import { type MessageOptions, Uri, commands, window } from 'vscode';
4+
import { Uri, commands, window, type MessageOptions } from 'vscode';
55

66
import { appName } from '../AppSettings.js';
77

lana/src/display/OpenFileInPackage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import { sep } from 'path';
55
import {
66
Position,
77
Selection,
8-
type TextDocumentShowOptions,
98
Uri,
109
ViewColumn,
1110
commands,
11+
type TextDocumentShowOptions,
1212
} from 'vscode';
1313

1414
import { Context } from '../Context.js';

lana/src/display/QuickPick.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (c) 2020 Certinia Inc. All rights reserved.
33
*/
4-
import { type QuickPickItem, type QuickPickOptions, window } from 'vscode';
4+
import { window, type QuickPickItem, type QuickPickOptions } from 'vscode';
55

66
export class Item implements QuickPickItem {
77
label: string;

lana/src/display/WebView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Copyright (c) 2020 Certinia Inc. All rights reserved.
33
*/
4-
import { Uri, type WebviewPanel, type WebviewPanelOptions, window } from 'vscode';
4+
import { Uri, window, type WebviewPanel, type WebviewPanelOptions } from 'vscode';
55

66
export class WebView {
77
static apply(name: string, title: string, resourceRoots: Uri[]): WebviewPanel {

log-viewer/modules/__tests__/TreeView.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/*
22
* Copyright (c) 2020 Certinia Inc. All rights reserved.
33
*/
4-
import parseLog, { logLines } from '../parsers/TreeParserLegacy.js';
5-
import { LineIterator } from '../parsers/TreeParserLegacy.js';
4+
import parseLog, { LineIterator, logLines } from '../parsers/TreeParserLegacy.js';
65

76
describe('LineIterator tests', () => {
87
it('Should return null when there are no more lines', () => {

0 commit comments

Comments
 (0)