-
Notifications
You must be signed in to change notification settings - Fork 21
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
10 changed files
with
1,071 additions
and
99 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,20 +1,28 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
es6: true, | ||
node: true, | ||
}, | ||
extends: ['standard', 'plugin:vue/essential', 'plugin:prettier/recommended'], | ||
parserOptions: { | ||
ecmaVersion: 12, | ||
sourceType: 'module', | ||
}, | ||
plugins: ['vue'], | ||
rules: { | ||
'prettier/prettier': 'error', | ||
'no-unused-vars': 'off', | ||
'vue/no-multiple-template-root': 'off', | ||
camelcase: 0, | ||
}, | ||
root: true, | ||
env: { | ||
browser: true, | ||
es6: true, | ||
node: true, | ||
}, | ||
extends: ['standard', 'plugin:vue/essential', 'plugin:prettier/recommended'], | ||
parserOptions: { | ||
ecmaVersion: 12, | ||
sourceType: 'module', | ||
}, | ||
plugins: ['vue'], | ||
rules: { | ||
'prettier/prettier': 'error', | ||
'no-unused-vars': 'off', | ||
'vue/no-multiple-template-root': 'off', | ||
camelcase: 0, | ||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | ||
'vue/component-tags-order': [ | ||
'error', | ||
{ | ||
order: ['template', 'script', 'style'] | ||
} | ||
] | ||
}, | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,15 +1,20 @@ | ||
/** | ||
* feature | ||
* fixbug 修复 | ||
* refactor:重构代码(既没有新增功能,也没有修复 bug) | ||
* docs:文档更新 | ||
* style:不影响程序逻辑的代码修改(修改空白字符,格式缩进,补全缺失的分号等,没有改变代码逻辑) | ||
* perf:性能, 体验优化 | ||
* chore:不属于以上类型的其他类型,比如构建流程, 依赖管理 | ||
* revert:回滚某个更早之前的提交 | ||
*/ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'type-enum': [2, 'always', [ | ||
'feature', 'fixbug', 'fix', 'docs', 'chore', 'style', 'revert' | ||
'feature', 'fixbug', 'refactor', 'docs', 'style', 'perf', 'chore', 'revert' | ||
]], | ||
'type-case': [0], | ||
'type-empty': [0], | ||
'scope-empty': [0], | ||
'scope-case': [0], | ||
'subject-full-stop': [0, 'never'], | ||
'subject-case': [0, 'never'], | ||
'header-max-length': [0, 'always', 72] | ||
} | ||
} |
Oops, something went wrong.