项目初始化
This commit is contained in:
41
.eslintrc.js
Normal file
41
.eslintrc.js
Normal file
@@ -0,0 +1,41 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
node: true
|
||||
},
|
||||
extends: ['plugin:vue/essential', '@vue/standard', '@vue/typescript/recommended'],
|
||||
parserOptions: {
|
||||
ecmaVersion: 2020,
|
||||
sourceType: 'module'
|
||||
},
|
||||
rules: {
|
||||
// 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||
semi: 0,
|
||||
'comma-spacing': 0,
|
||||
'object-curly-spacing': 0,
|
||||
indent: 0,
|
||||
quotes: 0,
|
||||
'quote-props': 0,
|
||||
'key-spacing': 0,
|
||||
'object-curly-newline': 0,
|
||||
'object-property-newline': 0,
|
||||
'eol-last': 0,
|
||||
noConsole: 0,
|
||||
'@typescript-eslint/no-explicit-any': 0,
|
||||
'padded-blocks': 0,
|
||||
'no-trailing-spaces': 0,
|
||||
'@typescript-eslint/no-unused-vars': 0,
|
||||
'@typescript-eslint/ban-ts-comment': 0,
|
||||
'dot-notation': 'off',
|
||||
'prefer-const': 0,
|
||||
'spaced-comment': 0,
|
||||
'new-cap': 0,
|
||||
"no-useless-escape": 0,
|
||||
'lines-between-class-members': 0, // 类成员之间应该空行
|
||||
'@typescript-eslint/no-non-null-assertion': 0,
|
||||
'@typescript-eslint/no-var-requires': 0,
|
||||
'space-before-function-paren': 0,
|
||||
'no-multi-spaces': 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user