-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
721 additions
and
861 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,49 @@ | ||
{ | ||
// 禁用默认的格式化程序,改用ESLint进行格式化 | ||
"prettier.enable": false, | ||
"editor.formatOnSave": false, | ||
|
||
// 自动修复 | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": false, | ||
"source.fixAll.eslint": true, // this allows ESLint to auto fix on save | ||
"source.organizeImports": false | ||
}, | ||
// ESLint config: https://github.com/kirklin/eslint-config | ||
"eslint.codeAction.showDocumentation": { | ||
"enable": true | ||
"source.fixAll.eslint": "explicit", | ||
"source.organizeImports": "never" | ||
}, | ||
"eslint.quiet": true, | ||
|
||
// 在IDE中隐藏样式规则的提示,但仍然自动修复它们 | ||
"eslint.rules.customizations": [ | ||
{ "rule": "style/*", "severity": "off" }, | ||
{ "rule": "format/*", "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" } | ||
], | ||
|
||
// 为所有支持的语言启用ESLint | ||
"eslint.validate": [ | ||
"javascript", | ||
"typescript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact", | ||
"vue", | ||
"html", | ||
"markdown", | ||
"json", | ||
"jsonc", | ||
"json5" | ||
], | ||
"prettier.enable": false, | ||
"prettier.printWidth": 200, | ||
"prettier.semi": true, | ||
"prettier.singleQuote": false | ||
"yaml", | ||
"toml", | ||
"xml", | ||
"gql", | ||
"graphql", | ||
"astro", | ||
"css", | ||
"less", | ||
"scss", | ||
"pcss", | ||
"postcss" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import kirklin from "@kirklin/eslint-config"; | ||
|
||
export default kirklin({ | ||
rules: { | ||
"node/prefer-global/process": "off", | ||
"no-console": "warn", | ||
}, | ||
formatters: { | ||
/** | ||
* 格式化CSS、LESS、SCSS文件,以及Vue中的`<style>`块 | ||
* 默认情况下使用Prettier | ||
*/ | ||
css: true, | ||
/** | ||
* 格式化HTML文件 | ||
* 默认情况下使用Prettier | ||
*/ | ||
html: true, | ||
/** | ||
* 格式化Markdown文件 | ||
* 支持Prettier和dprint | ||
* 默认情况下使用Prettier | ||
*/ | ||
markdown: "prettier", | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"name": "boot-vant", | ||
"type": "module", | ||
"version": "0.0.1", | ||
"private": true, | ||
"packageManager": "[email protected]", | ||
"type": "module", | ||
"description": "template for Vue3 Vant Mobile", | ||
"keywords": [ | ||
"BootVant", | ||
|
@@ -69,6 +69,7 @@ | |
"@vue/test-utils": "^2.4.6", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^9.6.0", | ||
"eslint-plugin-format": "^0.1.2", | ||
"husky": "^9.0.11", | ||
"jsdom": "^24.1.0", | ||
"lint-staged": "^15.2.7", | ||
|
Oops, something went wrong.