Skip to content

Commit cc8b7f7

Browse files
committed
chore: code cleanup
1 parent d30ad4d commit cc8b7f7

27 files changed

+371
-57
lines changed

.eslintrc.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ module.exports = {
1313
rules: {
1414
'prettier/prettier': 'error',
1515
'@typescript-eslint/no-non-null-assertion': 'off',
16-
'svelte/no-at-html-tags': 'off'
16+
'svelte/no-at-html-tags': 'off',
17+
'svelte/html-self-closing': 'off',
1718
},
1819
parserOptions: {
1920
sourceType: 'module',

.gitignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ node_modules
77
.env.*
88
!.env.example
99

10-
.idea
10+
.idea/*
11+
!.idea/codeStyles
12+
!.idea/inspectionProfiles
13+
!.idea/jsLinters
14+
!.idea/prettier.xml
15+
1116
.vscode
1217

13-
yarn-error.log
18+
yarn-error.log

.idea/codeStyles/Project.xml

Lines changed: 71 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLinters/eslint.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/prettier.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mdsvex.config.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { defineMDSveXConfig } from 'mdsvex';
2+
import rehypeSlug from 'rehype-slug';
3+
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
4+
5+
const config = defineMDSveXConfig({
6+
extensions: ['.md', '.svx'],
7+
smartypants: {
8+
dashes: 'oldschool'
9+
},
10+
11+
rehypePlugins: [
12+
rehypeSlug,
13+
[
14+
rehypeAutolinkHeadings,
15+
{
16+
behavior: 'wrap'
17+
}
18+
]
19+
]
20+
});
21+
22+
export default config;

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@
2424
"eslint-config-prettier": "^8.3.0",
2525
"eslint-plugin-prettier": "^4.2.1",
2626
"eslint-plugin-svelte": "^2.14.1",
27+
"mdsvex": "^0.10.6",
2728
"postcss": "^8.4.14",
2829
"postcss-load-config": "^4.0.1",
2930
"prettier": "^2.6.2",
3031
"prettier-plugin-svelte": "^2.7.0",
3132
"prettier-plugin-tailwindcss": "^0.2.1",
33+
"rehype-autolink-headings": "^6.1.1",
34+
"rehype-slug": "^5.1.0",
3235
"svelte": "^3.44.0",
3336
"svelte-check": "^2.7.1",
3437
"svelte-highlight": "^7.1.2",

src/app.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<!DOCTYPE html>
22
<html lang="en">
3+
<!--suppress HtmlRequiredTitleElement -->
34
<head>
45
<meta charset="utf-8" />
56
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
67
<meta name="viewport" content="width=device-width" />
78
%sveltekit.head%
89
</head>
9-
<body>
10+
<body data-sveltekit-preload-data="hover">
1011
<div>%sveltekit.body%</div>
1112
</body>
1213
</html>

0 commit comments

Comments
 (0)