feat: remove commitlint and node.js dependency

This commit is contained in:
MikeWallaceDev 2022-07-25 10:48:24 -04:00
parent e640cf2890
commit 943ce37623
4 changed files with 0 additions and 70 deletions

View File

@ -1,24 +0,0 @@
// module.exports = {extends: ['@commitlint/config-conventional']}
module.exports = {
rules: {
'header-max-length': [2, 'always', 100],
'type-enum': [2, 'always', ['build', 'chore', 'ci', 'docs', 'feat', 'feature', 'fix', 'refactor', 'style', 'test']],
'type-empty': [2, 'never'],
'type-case': [2, 'always', 'lower-case'],
'subject-empty': [2, 'never'],
'subject-case': [
0,
'never',
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
],
'body-leading-blank': [2, 'always'],
'body-max-line-length': [2, 'always', 200],
'body-case': [0, 'never', []],
'footer-leading-blank': [1, 'always'],
'footer-max-line-length': [2, 'always', 100]
},
};

View File

@ -8,7 +8,6 @@ extend = [
{ path = "scripts/makefile/env.toml" },
{ path = "scripts/makefile/flutter.toml" },
{ path = "scripts/makefile/tool.toml" },
{ path = "scripts/makefile/githooks.toml" },
]
[config]

View File

@ -1,39 +0,0 @@
[tasks.install-commitlint.mac]
script = [
"""
brew install npm
npm install @commitlint/cli @commitlint/config-conventional --save-dev
git config core.hooksPath .githooks
""",
]
script_runner = "@shell"
[tasks.install-commitlint.windows]
script = [
"""
echo "WIP"
git config core.hooksPath .githooks
""",
]
script_runner = "@duckscript"
[tasks.install-commitlint.linux]
script = [
"""
if command -v apt &> /dev/null
then
echo "Installing node.js (sudo apt install nodejs)"
sudo apt install nodejs
else
echo "Installing node.js (sudo pacman -S nodejs)"
sudo pacman -S nodejs
fi
npm install @commitlint/cli @commitlint/config-conventional --save-dev
git config core.hooksPath .githooks
""",
]
script_runner = "@shell"

View File

@ -1,6 +0,0 @@
{
"devDependencies": {
"@commitlint/cli": "^16.1.0",
"@commitlint/config-conventional": "^16.0.0"
}
}