mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: config commitlint & ignore commitlint auto generated files
This commit is contained in:
parent
592e91bed4
commit
0d47397851
3
.gitignore
vendored
3
.gitignore
vendored
@ -15,3 +15,6 @@ Cargo.lock
|
||||
.idea/
|
||||
**/temp/**
|
||||
.ruby-version
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
node_modules
|
||||
|
32
Makefile.toml
Normal file
32
Makefile.toml
Normal file
@ -0,0 +1,32 @@
|
||||
[tasks.install-commitlint]
|
||||
mac_alias = "install-commitlint-macos"
|
||||
windows_alias = "install-commitlint-windows"
|
||||
linux_alias = "install-commitlint-linux"
|
||||
|
||||
[tasks.install-commitlint-macos]
|
||||
script = [
|
||||
"""
|
||||
brew install npm
|
||||
yarn install
|
||||
yarn husky install
|
||||
""",
|
||||
]
|
||||
script_runner = "@shell"
|
||||
|
||||
[tasks.install-commitlint-windows]
|
||||
script = [
|
||||
"""
|
||||
echo "WIP"
|
||||
""",
|
||||
]
|
||||
script_runner = "@duckscript"
|
||||
|
||||
[tasks.install-commitlint-linux]
|
||||
script = [
|
||||
"""
|
||||
sudo apt install nodejs
|
||||
yarn install
|
||||
yarn husky install
|
||||
""",
|
||||
]
|
||||
script_runner = "@duckscript"
|
@ -1 +1,20 @@
|
||||
module.exports = {extends: ['@commitlint/config-conventional']}
|
||||
// module.exports = {extends: ['@commitlint/config-conventional']}
|
||||
module.exports = {
|
||||
rules: {
|
||||
'type-enum': [2, 'always', ['feat', 'refactor', 'style', 'fix', 'ci']],
|
||||
'body-leading-blank': [1, 'always'],
|
||||
'body-max-line-length': [2, 'always', 100],
|
||||
'footer-leading-blank': [1, 'always'],
|
||||
'footer-max-line-length': [2, 'always', 100],
|
||||
'header-max-length': [2, 'always', 100],
|
||||
'subject-case': [
|
||||
2,
|
||||
'never',
|
||||
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
|
||||
],
|
||||
'subject-empty': [2, 'never'],
|
||||
'type-empty': [2, 'never'],
|
||||
'type-case': [2, 'always', 'lower-case'],
|
||||
'body-case': [2, 'never', []]
|
||||
},
|
||||
};
|
||||
|
7
package.json
Normal file
7
package.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "16.1.0",
|
||||
"@commitlint/config-conventional": "16.0.0",
|
||||
"husky": "7.0.4"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user