build: prettier issue

This commit is contained in:
louis 2024-02-29 09:28:34 +08:00
parent a98e122fbc
commit 6b9b4cdd17
6 changed files with 121 additions and 1850 deletions

View File

@ -5,3 +5,4 @@ build/
.eslintrc.js
package.json
tsconfig**.json
.vscode/

View File

@ -7,4 +7,5 @@
**/*.sh
/public/*
test/**/*
test/**/*
/.vscode/*

View File

@ -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

41
.vscode/settings.json vendored
View File

@ -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"
]
}

View File

@ -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",

File diff suppressed because it is too large Load Diff