Skip to content

Commit

Permalink
Removed trailing commas rule and applied it
Browse files Browse the repository at this point in the history
  • Loading branch information
paulovmr committed Aug 21, 2024
1 parent 9eb4fab commit 59054d5
Show file tree
Hide file tree
Showing 81 changed files with 819 additions and 822 deletions.
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"singleQuote": true
"singleQuote": true,
"trailingComma" : "none"
}
8 changes: 4 additions & 4 deletions etc/scripts/generate-make-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ make.stdout.on('data', (data: Buffer) => {
graph.push({
type: 'target',
name,
depth: depthString.length / 2,
depth: depthString.length / 2
});
continue;
}
Expand All @@ -79,7 +79,7 @@ make.stdout.on('data', (data: Buffer) => {
depth = depthString.length / 2;
graph.push({
type: 'end',
depth,
depth
});
depth = undefined;
continue;
Expand All @@ -89,7 +89,7 @@ make.stdout.on('data', (data: Buffer) => {
graph.push({
type: 'code',
value: msg.toString(),
depth,
depth
});
continue;
}
Expand All @@ -107,7 +107,7 @@ const printGraph = (): void => {
const spacer = ' '.repeat(cellWidth - g.name.length - 2);
console.log(`${padLeft}${bar}${padRight}`);
console.log(
`${padLeft}${chalk.cyan.bold(g.name)}${spacer} |${padRight}`,
`${padLeft}${chalk.cyan.bold(g.name)}${spacer} |${padRight}`
);
continue;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/code-snippet/src/CodeSnippetService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ export class CodeSnippetService {
static deleteCodeSnippet(codeSnippet: IMetadata): Promise<boolean> {
return showDialog({
title: `Delete snippet '${codeSnippet.display_name}'?`,
buttons: [Dialog.cancelButton(), Dialog.okButton()],
buttons: [Dialog.cancelButton(), Dialog.okButton()]
}).then((result: any) => {
// Do nothing if the cancel button is pressed
if (result.button.accept) {
return MetadataService.deleteMetadata(
CODE_SNIPPET_SCHEMASPACE,
codeSnippet.name,
codeSnippet.name
).then(() => true);
} else {
return false;
Expand Down
Loading

0 comments on commit 59054d5

Please sign in to comment.