Skip to content

Commit

Permalink
Merge branch 'svelte-society:main' into patch-4
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangfengming authored Nov 28, 2023
2 parents 8b97e8a + e4ebafa commit 32d73e6
Show file tree
Hide file tree
Showing 13 changed files with 315 additions and 164 deletions.
12 changes: 0 additions & 12 deletions .prettierrc

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"lint-staged": "^13.2.3",
"mdsvex": "^0.11.0",
"package-name-regex": "^3.0.0",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.1",
"prettier": "^3.1.0",
"prettier-plugin-svelte": "^3.1.2",
"rehype-slug": "^5.1.0",
"svelte": "^4.0.5",
"svelte-check": "^3.4.5",
Expand Down
24 changes: 12 additions & 12 deletions pnpm-lock.yaml

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

16 changes: 16 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// @ts-check

/** @type {import('prettier').Config} */
const config = {
useTabs: true,
singleQuote: true,
trailingComma: 'none',
printWidth: 100,
plugins: ['prettier-plugin-svelte'],
overrides: [
{ files: '*.svelte', options: { parser: 'svelte' } },
{ files: '*.svx', options: { parser: 'mdx' } }
]
};

export default config;
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
7 changes: 7 additions & 0 deletions src/lib/Mdsvx.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export type RecipeMetadata = {
title: string;
layout: string;
date: string;
children?: Array<unknown>;
};
export type EventMetadata = { title: string; layout: string; date: string };
Loading

0 comments on commit 32d73e6

Please sign in to comment.