Skip to content

Commit

Permalink
添加配置
Browse files Browse the repository at this point in the history
  • Loading branch information
jsxiaosi committed Jun 19, 2021
1 parent a0f90b6 commit c48b395
Show file tree
Hide file tree
Showing 10 changed files with 1,071 additions and 99 deletions.
44 changes: 26 additions & 18 deletions .eslintrc.js
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']
}
]
},
}
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions .husky/commit-msg

This file was deleted.

9 changes: 0 additions & 9 deletions .husky/common.sh

This file was deleted.

12 changes: 0 additions & 12 deletions .husky/lintstagedrc.js

This file was deleted.

10 changes: 0 additions & 10 deletions .husky/pre-commit

This file was deleted.

17 changes: 11 additions & 6 deletions commitlint.config.js
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]
}
}
Loading

0 comments on commit c48b395

Please sign in to comment.