Commit c3e06e81 authored by Ayush Shankar's avatar Ayush Shankar
Browse files

feat: Enforce GNOME commit guidelines

parent 367b2efe
const Configuration = {
/*
* Resolve and load @commitlint/config-conventional from node_modules.
* Referenced packages must be installed
*/
extends: ['@commitlint/config-conventional'],
/*
* Any rules defined here will override rules from @commitlint/config-conventional
*/
rules: {
"type-enum": [2,"always",['feat', 'fix', 'docs', 'style', 'refactor', 'test', 'revert']],
"header-max-length": [2, "always", 72],
"subject-case": [2, "always", 'sentence-case'],
"body-case": [2, "always", 'sentence-case'],
"body-max-length": [2, "always", 75],
"body-full-stop": [2,"always","."]
},
/*
* Functions that return true if commitlint should ignore the given message.
*/
ignores: [(commit) => commit === ''],
/*
* Whether commitlint uses the default ignore rules.
*/
defaultIgnores: true,
/*
* Custom URL to show upon failure
*/
helpUrl:
'https://github.com/conventional-changelog/commitlint/#what-is-commitlint',
};
module.exports = Configuration;
\ No newline at end of file
This diff is collapsed.
......@@ -6,10 +6,18 @@
"build": "gulp build",
"watch": "gulp watch"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"author": "GNOME Engagement Team <engagement@gnome.org>",
"license": "MIT",
"devDependencies": {
"@commitlint/cli": "^12.1.1",
"@commitlint/config-conventional": "^12.1.1",
"@tailwindcss/forms": "^0.2.1",
"commitlint": "^12.1.1",
"gulp": "^4.0.2",
"gulp-clean-css": "^4.3.0",
"gulp-concat-css": "^3.1.0",
......@@ -17,6 +25,7 @@
"gulp-postcss": "^9.0.0",
"gulp-rename": "^2.0.0",
"gulp-sourcemaps": "^2.6.5",
"husky": "^6.0.0",
"postcss": "^8.2.9",
"postcss-import": "^12.0.1",
"postcss-omit-import-tilde": "^1.0.1",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment