build: prettier issue
This commit is contained in:
parent
a98e122fbc
commit
6b9b4cdd17
|
@ -5,3 +5,4 @@ build/
|
|||
.eslintrc.js
|
||||
package.json
|
||||
tsconfig**.json
|
||||
.vscode/
|
|
@ -8,3 +8,4 @@
|
|||
|
||||
/public/*
|
||||
test/**/*
|
||||
/.vscode/*
|
|
@ -4,7 +4,7 @@ module.exports = {
|
|||
useTabs: false, // 是否使用tab进行缩进(默认false)
|
||||
singleQuote: true, // 使用单引号(默认false)
|
||||
semi: true, // 声明结尾使用分号(默认true)
|
||||
trailingComma: 'es5', // 多行使用拖尾逗号(默认none)
|
||||
trailingComma: 'none', // 多行使用拖尾逗号(默认none)
|
||||
bracketSpacing: true, // 对象字面量的大括号间使用空格(默认true)
|
||||
arrowParens: 'avoid', // 只有一个参数的箭头函数的参数是否带圆括号(默认avoid)
|
||||
endOfLine: 'auto', // 文件换行格式 LF/CRLF
|
||||
|
|
|
@ -1,41 +0,0 @@
|
|||
{
|
||||
// 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"
|
||||
]
|
||||
}
|
|
@ -43,7 +43,7 @@
|
|||
"c": "git add . && git cz && git push",
|
||||
"release": "standard-version",
|
||||
"commitlint": "commitlint --config commitlint.config.cjs -e -V",
|
||||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\""
|
||||
"format": "prettier --write \"src/**/*.ts\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@fastify/cookie": "^9.3.1",
|
||||
|
|
1922
pnpm-lock.yaml
1922
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue