Skip to content

Commit e6c48b2

Browse files
committed
chore(format): format
1 parent 0c6c457 commit e6c48b2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1413
-1094
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ dist-ssr
1818

1919
# Editor directories and files
2020
.vscode/*
21-
!.vscode/extensions.json
2221
.idea
2322
.DS_Store
2423
*.suo

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[*]
2+
indent_size = 2
3+
indent_style = space
4+
end_of_line = lf
5+
charset = utf-8
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true

.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.markdownlint.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
default: true
2-
3-
# line-length (default: 80)
4-
MD013: false
5-
6-
# no-inline-html (allow only Catalog)
7-
MD033:
8-
allowed_elements:
9-
- Catalog
1+
default: true
2+
3+
# line-length (default: 80)
4+
MD013: false
5+
6+
# blanks-around-fences (allow only code in list)
7+
MD031:
8+
list_items: false

.vscode/settings.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"python.analysis.typeCheckingMode": "basic",
3+
// Enable the ESlint flat config support
4+
"eslint.experimental.useFlatConfig": true,
5+
// Disable the default formatter, use eslint instead
6+
"prettier.enable": false,
7+
"editor.formatOnSave": false,
8+
// Auto fix
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll.eslint": "explicit",
11+
"source.organizeImports": "never"
12+
},
13+
// Silent the stylistic rules in you IDE, but still auto fix them
14+
"eslint.rules.customizations": [
15+
{
16+
"rule": "style/*",
17+
"severity": "off"
18+
},
19+
{
20+
"rule": "*-indent",
21+
"severity": "off"
22+
},
23+
{
24+
"rule": "*-spacing",
25+
"severity": "off"
26+
},
27+
{
28+
"rule": "*-spaces",
29+
"severity": "off"
30+
},
31+
{
32+
"rule": "*-order",
33+
"severity": "off"
34+
},
35+
{
36+
"rule": "*-dangle",
37+
"severity": "off"
38+
},
39+
{
40+
"rule": "*-newline",
41+
"severity": "off"
42+
},
43+
{
44+
"rule": "*quotes",
45+
"severity": "off"
46+
},
47+
{
48+
"rule": "*semi",
49+
"severity": "off"
50+
}
51+
],
52+
// Enable eslint for all supported languages
53+
"eslint.validate": [
54+
"javascript",
55+
"javascriptreact",
56+
"typescript",
57+
"typescriptreact",
58+
"vue",
59+
"html",
60+
"markdown",
61+
"json",
62+
"jsonc",
63+
"yaml"
64+
],
65+
"git.ignoreLimitWarning": true
66+
}

eslint.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ export default antfu(
3030
{
3131
rules: {
3232
'import/order': 'off',
33+
'no-console': 'off',
3334
'perfectionist/sort-imports': 'off',
35+
'perfectionist/sort-vue-attributes': 'off',
3436
},
3537
},
3638
)

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "vuepress-frontend-notes",
33
"type": "module",
44
"version": "1.0.0",
5+
"packageManager": "[email protected]",
56
"description": "Vuepress Frontend Notes",
67
"author": "Alex",
78
"license": "ISC",
@@ -11,7 +12,6 @@
1112
"notes"
1213
],
1314
"main": "index.js",
14-
"packageManager": "[email protected]",
1515
"engines": {
1616
"node": ">=18",
1717
"pnpm": ">=8"
@@ -20,6 +20,7 @@
2020
"dev": "vuepress dev src",
2121
"build": "vuepress build src",
2222
"clean-dev": "vuepress dev src --clean-cache",
23+
"postinstall": "simple-git-hooks",
2324
"docs:dev": "vuepress dev src",
2425
"docs:build": "vuepress build src",
2526
"docs:clean-dev": "vuepress dev src --clean-cache",
@@ -41,14 +42,21 @@
4142
"flowchart.ts": "^3.0.0",
4243
"github-slugger": "^2.0.0",
4344
"katex": "^0.16.10",
45+
"lint-staged": "^15.2.2",
4446
"markmap-lib": "^0.17.0",
4547
"markmap-toolbar": "^0.17.0",
4648
"markmap-view": "^0.17.0",
4749
"mermaid": "^10.9.0",
4850
"reveal.js": "^5.1.0",
51+
"simple-git-hooks": "^2.11.1",
4952
"vue": "^3.4.26",
5053
"vuepress": "2.0.0-rc.9",
51-
"vuepress-plugin-search-pro": "2.0.0-rc.38",
5254
"vuepress-theme-hope": "2.0.0-rc.38"
55+
},
56+
"simple-git-hooks": {
57+
"pre-commit": "pnpm lint-staged"
58+
},
59+
"lint-staged": {
60+
"*": "pnpm lint:fix"
5361
}
5462
}

0 commit comments

Comments
 (0)