Skip to content

Commit

Permalink
Update dependency prettier to v3.1.0 (#8725)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Nov 17, 2023
1 parent 9234e0c commit 2be2f50
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@
"minimist": "1.2.8",
"mocha": "10.2.0",
"plugin-error": "2.0.1",
"prettier": "3.0.3",
"prettier": "3.1.0",
"sinon": "17.0.1",
"ts-loader": "9.5.1",
"tslint": "6.1.3",
Expand Down
4 changes: 2 additions & 2 deletions src/actions/commands/commandLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,8 @@ class CommandAdvanceCurrentMatch extends CommandLineAction {
key === '<C-g>'
? SearchDirection.Forward
: key === '<C-t>'
? SearchDirection.Backward
: undefined;
? SearchDirection.Backward
: undefined;
if (commandLine instanceof SearchCommandLine && direction !== undefined) {
commandLine.advanceCurrentMatch(vimState, direction);
}
Expand Down
4 changes: 2 additions & 2 deletions src/actions/operator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ export class DeleteOperator extends BaseOperator {
text = text.endsWith('\r\n')
? text.slice(0, -2)
: text.endsWith('\n')
? text.slice(0, -1)
: text;
? text.slice(0, -1)
: text;
}
Register.put(vimState, text, this.multicursorIndex, true);

Expand Down
12 changes: 6 additions & 6 deletions src/actions/plugins/surround.ts
Original file line number Diff line number Diff line change
Expand Up @@ -646,17 +646,17 @@ class SurroundHelper {
surroundState.operator === 'delete'
? ''
: surroundState.tag
? '<' + surroundState.tag.tag + '>' + optNewline
: surroundState.function
? surroundState.function + optNewline
: replacement.left + optNewline;
? '<' + surroundState.tag.tag + '>' + optNewline
: surroundState.function
? surroundState.function + optNewline
: replacement.left + optNewline;

const rightFixed =
surroundState.operator === 'delete'
? ''
: surroundState.tag
? optNewline + '</' + surroundState.tag.tag + '>'
: optNewline + replacement.right;
? optNewline + '</' + surroundState.tag.tag + '>'
: optNewline + replacement.right;

for (const { leftEdge, rightEdge, cursorIndex } of surroundState.edges) {
vimState.recordedState.transformer.addTransformation({
Expand Down
8 changes: 4 additions & 4 deletions src/actions/plugins/targets/searchUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export function maybeGetLeft(
return dontMove
? position
: throughLineBreaks
? position.getOffsetThroughLineBreaks(-count)
: position.getLeft(count);
? position.getOffsetThroughLineBreaks(-count)
: position.getLeft(count);
}
export function maybeGetRight(
position: Position,
Expand All @@ -85,8 +85,8 @@ export function maybeGetRight(
return dontMove
? position
: throughLineBreaks
? position.getOffsetThroughLineBreaks(count)
: position.getRight(count);
? position.getOffsetThroughLineBreaks(count)
: position.getRight(count);
}

export function searchPosition(
Expand Down
4 changes: 2 additions & 2 deletions src/cmd_line/commands/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ export class FileCommand extends ExCommand {
args.cmd?.type === 'line_number'
? args.cmd.line
: args.cmd?.type === 'last_line'
? vscode.window.activeTextEditor!.document.lineCount - 1
: undefined;
? vscode.window.activeTextEditor!.document.lineCount - 1
: undefined;
if (lineNumber !== undefined && lineNumber >= 0) {
vscode.window.activeTextEditor!.revealRange(
new vscode.Range(new vscode.Position(lineNumber, 0), new vscode.Position(lineNumber, 0)),
Expand Down
4 changes: 2 additions & 2 deletions src/cmd_line/commands/set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ export class SetCommand extends ExCommand {
typeof currentValue === 'boolean'
? 'boolean'
: typeof currentValue === 'string'
? 'string'
: 'number';
? 'string'
: 'number';

switch (this.operation.type) {
case 'show_or_set': {
Expand Down
4 changes: 2 additions & 2 deletions src/configuration/remapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ export class Remapper implements IRemapper {
commandArgs = Array.isArray(command.args)
? command.args
: command.args
? [command.args]
: [];
? [command.args]
: [];
}

if (commandString.slice(0, 1) === ':') {
Expand Down
32 changes: 16 additions & 16 deletions src/state/vimState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,22 +260,22 @@ export class VimState implements vscode.Disposable {
),
}
: mode === Mode.CommandlineInProgress
? {
mode,
commandLine: new ExCommandLine('', this.modeData.mode),
}
: mode === Mode.SearchInProgressMode
? {
mode,
commandLine: new SearchCommandLine(this, '', SearchDirection.Forward),
firstVisibleLineBeforeSearch: this.editor.visibleRanges[0].start.line,
}
: mode === Mode.Insert
? {
mode,
highSurrogate: undefined,
}
: { mode },
? {
mode,
commandLine: new ExCommandLine('', this.modeData.mode),
}
: mode === Mode.SearchInProgressMode
? {
mode,
commandLine: new SearchCommandLine(this, '', SearchDirection.Forward),
firstVisibleLineBeforeSearch: this.editor.visibleRanges[0].start.line,
}
: mode === Mode.Insert
? {
mode,
highSurrogate: undefined,
}
: { mode },
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/util/decorationUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export function ensureVisible(range: Range): DecorationOptions {
},
}
: range.isEmpty
? { range: range.with(undefined, range.end.translate(0, 1)) } // extend range one character right
: { range };
? { range: range.with(undefined, range.end.translate(0, 1)) } // extend range one character right
: { range };
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/vimscript/pattern.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ export class Pattern {
const delimiter = args.delimiter
? args.delimiter
: args.direction === SearchDirection.Forward
? '/'
: '?';
? '/'
: '?';
// TODO: Some escaped characters need special treatment
return seqMap(
string('|').result(true).fallback(false), // Leading | matches everything
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4223,10 +4223,10 @@ prebuild-install@^6.0.0:
tar-fs "^2.0.0"
tunnel-agent "^0.6.0"

prettier@3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643"
integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==
prettier@3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.1.0.tgz#c6d16474a5f764ea1a4a373c593b779697744d5e"
integrity sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==

pretty-hrtime@^1.0.0:
version "1.0.3"
Expand Down

0 comments on commit 2be2f50

Please sign in to comment.