Skip to content

Commit

Permalink
Update prettier to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Jul 20, 2023
1 parent f3f4df0 commit 7a36fed
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 20 deletions.
4 changes: 1 addition & 3 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"recommendations": [
"svelte.svelte-vscode"
]
"recommendations": ["svelte.svelte-vscode"]
}
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
"is-ci": "^3.0.1",
"lint-staged": "^13.2.3",
"postcss": "^8.4.26",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.1",
"prettier": "^3.0.0",
"prettier-plugin-svelte": "^3.0.0",
"publint": "^0.1.16",
"sass": "^1.63.6",
"svelte": "^4.0.5",
Expand Down
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion src/lib/SvelteNodeViewRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class SvelteNodeView extends NodeView<SvelteComponentRaw, Editor, SvelteNodeView

const SvelteNodeViewRenderer = (
component: SvelteComponentRaw,
options?: Partial<SvelteNodeViewRendererOptions>
options?: Partial<SvelteNodeViewRendererOptions>,
): NodeViewRenderer => {
return (props): SvelteNodeView => new SvelteNodeView(component, props, options);
};
Expand Down
4 changes: 3 additions & 1 deletion tests/bubble-menu.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ import { render } from '@testing-library/svelte';
import { BubbleMenu } from '$lib';

it('should throw error if editor instance is not provided', () => {
expect(() => { render(BubbleMenu); }).toThrow();
expect(() => {
render(BubbleMenu);
}).toThrow();
});
4 changes: 3 additions & 1 deletion tests/floating-menu.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ import { render } from '@testing-library/svelte';
import { FloatingMenu } from '$lib';

it('should throw error if editor instance is not provided', () => {
expect(() => { render(FloatingMenu); }).toThrow();
expect(() => {
render(FloatingMenu);
}).toThrow();
});

0 comments on commit 7a36fed

Please sign in to comment.