Skip to content

Commit

Permalink
Run/fix UI and Server linting
Browse files Browse the repository at this point in the history
Signed-off-by: Luciano Resende <lresende@apple.com>
  • Loading branch information
lresende committed Dec 26, 2024
1 parent 4ad2b40 commit 2e328cc
Show file tree
Hide file tree
Showing 87 changed files with 1,052 additions and 1,051 deletions.
8 changes: 6 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@
"rules": {
"react/prop-types": "off",
"func-style": "error",
"@typescript-eslint/interface-name-prefix": [
"@typescript-eslint/naming-convention": [
"error",
{ "prefixWithI": "always" }
{
"selector": "interface",
"format": ["PascalCase"],
"prefix": ["I"]
}
],
"@typescript-eslint/no-unused-vars": ["warn", { "args": "none" }],
"@typescript-eslint/no-use-before-define": "off",
Expand Down
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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,6 @@
"ts-node": "^9.1.1",
"typescript": "~4.1.3",
"webpack": "^5.0.0"
}
},
"packageManager": "yarn@1.22.19+sha256.732620bac8b1690d507274f025f3c6cfdc3627a84d9642e38a07452cc00e0f2e"
}
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 2e328cc

Please sign in to comment.