-
Notifications
You must be signed in to change notification settings - Fork 4
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
9 changed files
with
2,523 additions
and
46 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
node: true | ||
}, | ||
extends: ['standard-with-typescript', 'plugin:vue/vue3-essential'], | ||
overrides: [ | ||
{ | ||
env: { | ||
node: true | ||
}, | ||
files: ['.eslintrc.{js,cjs}'], | ||
parserOptions: { | ||
sourceType: 'script' | ||
} | ||
} | ||
], | ||
parser: 'vue-eslint-parser', | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser', | ||
project: ['./tsconfig.json'], | ||
ecmaVersion: 'latest', | ||
extraFileExtensions: ['.vue'], | ||
sourceType: 'module' | ||
}, | ||
plugins: ['vue'], | ||
rules: { | ||
// 关闭下面/// <reference path="..." />, /// <reference types="..." />, /// <reference lib="..." /> 校验 | ||
'@typescript-eslint/triple-slash-reference': '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,19 @@ | ||
module.exports = { | ||
// 指定每个缩进级别的空格数<int>,默认2 | ||
tabWidth: 4, | ||
// 用制表符而不是空格缩进行<bool>,默认false | ||
useTabs: false, | ||
//一行的字符数,如果超过会进行换行,默认为80 | ||
printWidth: 300, | ||
//字符串是否使用单引号,默认为false,使用双引号 | ||
singleQuote: true, | ||
//避免报错delete (cr)的错 | ||
endOfLine: 'auto', | ||
proseWrap: 'always', | ||
// 不加分号 | ||
semi: false, | ||
// 结尾处不加逗号 | ||
trailingComma: 'none', | ||
// 忽略'>'下落问题 | ||
htmlWhitespaceSensitivity: 'ignore' | ||
} |
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 @@ | ||
{ | ||
// 是否开启eslint | ||
"eslint.enable": true, | ||
// code代码保存时,自动eslint修复 | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
} | ||
} |
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.