Skip to content

Commit

Permalink
chore(format): format
Browse files Browse the repository at this point in the history
  • Loading branch information
Sun-ZhenXing committed May 4, 2024
1 parent 0c6c457 commit e6c48b2
Show file tree
Hide file tree
Showing 66 changed files with 1,413 additions and 1,094 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ dist-ssr

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
Expand Down
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[*]
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

17 changes: 8 additions & 9 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
default: true

# line-length (default: 80)
MD013: false

# no-inline-html (allow only Catalog)
MD033:
allowed_elements:
- Catalog
default: true

# line-length (default: 80)
MD013: false

# blanks-around-fences (allow only code in list)
MD031:
list_items: false
66 changes: 66 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"python.analysis.typeCheckingMode": "basic",
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,
// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,
// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},
// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{
"rule": "style/*",
"severity": "off"
},
{
"rule": "*-indent",
"severity": "off"
},
{
"rule": "*-spacing",
"severity": "off"
},
{
"rule": "*-spaces",
"severity": "off"
},
{
"rule": "*-order",
"severity": "off"
},
{
"rule": "*-dangle",
"severity": "off"
},
{
"rule": "*-newline",
"severity": "off"
},
{
"rule": "*quotes",
"severity": "off"
},
{
"rule": "*semi",
"severity": "off"
}
],
// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml"
],
"git.ignoreLimitWarning": true
}
2 changes: 2 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export default antfu(
{
rules: {
'import/order': 'off',
'no-console': 'off',
'perfectionist/sort-imports': 'off',
'perfectionist/sort-vue-attributes': 'off',
},
},
)
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "vuepress-frontend-notes",
"type": "module",
"version": "1.0.0",
"packageManager": "pnpm@9.0.6",
"description": "Vuepress Frontend Notes",
"author": "Alex",
"license": "ISC",
Expand All @@ -11,7 +12,6 @@
"notes"
],
"main": "index.js",
"packageManager": "pnpm@9.0.6",
"engines": {
"node": ">=18",
"pnpm": ">=8"
Expand All @@ -20,6 +20,7 @@
"dev": "vuepress dev src",
"build": "vuepress build src",
"clean-dev": "vuepress dev src --clean-cache",
"postinstall": "simple-git-hooks",
"docs:dev": "vuepress dev src",
"docs:build": "vuepress build src",
"docs:clean-dev": "vuepress dev src --clean-cache",
Expand All @@ -41,14 +42,21 @@
"flowchart.ts": "^3.0.0",
"github-slugger": "^2.0.0",
"katex": "^0.16.10",
"lint-staged": "^15.2.2",
"markmap-lib": "^0.17.0",
"markmap-toolbar": "^0.17.0",
"markmap-view": "^0.17.0",
"mermaid": "^10.9.0",
"reveal.js": "^5.1.0",
"simple-git-hooks": "^2.11.1",
"vue": "^3.4.26",
"vuepress": "2.0.0-rc.9",
"vuepress-plugin-search-pro": "2.0.0-rc.38",
"vuepress-theme-hope": "2.0.0-rc.38"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": "pnpm lint:fix"
}
}
Loading

0 comments on commit e6c48b2

Please sign in to comment.