-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
添加全局格式化命令script:format 添加vscode自动格式化设置
- Loading branch information
Showing
162 changed files
with
6,020 additions
and
5,414 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,56 @@ | ||
const path = require("path"); | ||
|
||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
node: true, | ||
"vue/setup-compiler-macros": true, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 12, | ||
sourceType: "module", | ||
project: [ | ||
path.join(__dirname, "packages/renderer/tsconfig.json"), | ||
path.join(__dirname, "packages/main/tsconfig.json"), | ||
], | ||
}, | ||
plugins: ["vue", "@typescript-eslint"], | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:vue/vue3-recommended", | ||
"plugin:vue/vue3-essential", | ||
"standard-with-typescript", | ||
"@vue/eslint-config-typescript", | ||
], | ||
rules: { | ||
"vue/max-len": [ | ||
"error", | ||
{ | ||
code: 120, | ||
template: 120, | ||
}, | ||
], | ||
"no-undef": "off", // 让ts检查undefined | ||
"@typescript-eslint/no-floating-promises": "off", | ||
"@typescript-eslint/strict-boolean-expressions": "off", | ||
"vue/multi-word-component-names": "off", | ||
"vue/max-attributes-per-line": [ | ||
"error", | ||
{ | ||
singleline: { | ||
max: 3, | ||
}, | ||
multiline: { | ||
max: 1, | ||
}, | ||
}, | ||
], | ||
"@typescript-eslint/promise-function-async": "off", | ||
"@typescript-eslint/naming-convention": "off", | ||
"camelcase": "off", | ||
"vue/prop-name-casing": "off", | ||
"space-before-function-paren": "off", | ||
}, | ||
}; | ||
const path = require('path') | ||
|
||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
node: true, | ||
'vue/setup-compiler-macros': true, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 12, | ||
sourceType: 'module', | ||
project: [ | ||
path.join(__dirname, 'packages/renderer/tsconfig.json'), | ||
path.join(__dirname, 'packages/main/tsconfig.json'), | ||
], | ||
}, | ||
plugins: ['vue', '@typescript-eslint'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:vue/vue3-recommended', | ||
'plugin:vue/vue3-essential', | ||
'standard-with-typescript', | ||
'@vue/eslint-config-typescript', | ||
], | ||
rules: { | ||
'vue/max-len': [ | ||
'error', | ||
{ | ||
code: 120, | ||
template: 120, | ||
}, | ||
], | ||
'no-undef': 'off', // 让ts检查undefined | ||
'@typescript-eslint/no-floating-promises': 'off', | ||
'@typescript-eslint/strict-boolean-expressions': 'off', | ||
'vue/multi-word-component-names': 'off', | ||
'vue/max-attributes-per-line': [ | ||
'error', | ||
{ | ||
singleline: { | ||
max: 3, | ||
}, | ||
multiline: { | ||
max: 1, | ||
}, | ||
}, | ||
], | ||
'@typescript-eslint/promise-function-async': 'off', | ||
'@typescript-eslint/naming-convention': 'off', | ||
camelcase: 'off', | ||
'vue/prop-name-casing': 'off', | ||
'space-before-function-paren': 'off', | ||
}, | ||
} |
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,6 @@ | ||
packages/common/ArknightsGameData/** | ||
*.md | ||
*.yml | ||
*.yaml | ||
*.json | ||
*.html |
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,8 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"semi": false, | ||
"singleQuote": true, | ||
"arrowParens": "avoid", | ||
"vueIndentScriptAndStyle": false, | ||
"printWidth": 80 | ||
} |
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
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,3 +1,6 @@ | ||
interface ApiServiceProvider { | ||
get: <T>(url: string, config?: import('axios').AxiosRequestConfig) => Promise<T | Error> | ||
} | ||
interface ApiServiceProvider { | ||
get: <T>( | ||
url: string, | ||
config?: import('axios').AxiosRequestConfig | ||
) => Promise<T | Error> | ||
} |
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
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,3 +1 @@ | ||
type BooleanDisplayOption = | ||
| 'Right/Wrong' | ||
| 'Yes/No' | ||
type BooleanDisplayOption = 'Right/Wrong' | 'Yes/No' |
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,4 +1,4 @@ | ||
interface Module { | ||
readonly version: string | ||
readonly name: string | ||
} | ||
interface Module { | ||
readonly version: string | ||
readonly name: string | ||
} |
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
Oops, something went wrong.