Skip to content

Commit

Permalink
Update to prettier v3 (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins authored Nov 26, 2023
1 parent 5bd9a2e commit e4ebafa
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 28 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
4 changes: 3 additions & 1 deletion src/routes/cheatsheet/_CheatSheetCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@
height: var(--s-5);
border-radius: 50%;
background-color: var(--primary);
box-shadow: 25px 0 0 0 var(--caution), 50px 0 0 0 var(--success);
box-shadow:
25px 0 0 0 var(--caution),
50px 0 0 0 var(--success);
margin-right: 50px;
margin-left: 20px;
}
Expand Down

0 comments on commit e4ebafa

Please sign in to comment.