-
Notifications
You must be signed in to change notification settings - Fork 29
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
1 parent
c64c8f3
commit 673575e
Showing
30 changed files
with
9,180 additions
and
3,902 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,14 @@ | ||
{ | ||
"parserOptions": { | ||
"parser": "babel-eslint" | ||
}, | ||
"extends": [ | ||
"@ecomfe/eslint-config", | ||
"@ecomfe/eslint-config/typescript", | ||
"@ecomfe/eslint-config/react", | ||
"plugin:jest/recommended" | ||
], | ||
"rules": { | ||
"comma-dangle": "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,15 @@ | ||
{ | ||
"singleQuote": true, | ||
"semi": true, | ||
"printWidth": 120, | ||
"tabWidth": 4, | ||
"bracketSpacing": false, | ||
"overrides": [ | ||
{ | ||
"files": ".prettierrc", | ||
"options": { | ||
"parser": "json" | ||
} | ||
} | ||
] | ||
} |
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,37 @@ | ||
const types = [ | ||
'build', // 修改项目的的构建系统(xcodebuild、webpack、glup等)的提交 | ||
'ci', // 修改项目的持续集成流程(Kenkins、Travis等)的提交 | ||
'chore', // 构建过程或辅助工具的变化 | ||
'docs', // 文档提交(documents) | ||
'feat', // 新增功能(feature) | ||
'fix', // 修复 bug | ||
'pref', // 性能、体验相关的提交 | ||
'refactor', // 代码重构 | ||
'revert', // 回滚某个更早的提交 | ||
'style', // 不影响程序逻辑的代码修改、主要是样式方面的优化、修改 | ||
'test' // 测试相关的开发 | ||
] | ||
|
||
// 规则参考格式为 feat: 功能说明 | ||
const typeEnum = { | ||
rules: { | ||
'type-enum': [2, 'always', types] | ||
}, | ||
value: () => types | ||
} | ||
|
||
module.exports = { | ||
extends: [ | ||
'@commitlint/config-conventional' | ||
], | ||
rules: { | ||
'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], | ||
'type-enum': typeEnum.rules['type-enum'] | ||
} | ||
} |
Oops, something went wrong.