Skip to content

Commit

Permalink
feat: added commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Nov 25, 2024
1 parent 455cc1e commit 31a86b1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
File renamed without changes.
8 changes: 7 additions & 1 deletion lib/presets.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@ const stylelint = new ConfigPreset({
searchFilepaths,
});

module.exports = { eslint, stylelint };
const commitlint = new ConfigPreset({
defaultFilename: '.commitlintrc',
searchFilenames: ['.commitlintrc', '.commitlintrc.js'],
searchFilepaths,
});

module.exports = { eslint, stylelint, commitlint };
12 changes: 8 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@
"author": "",
"license": "ISC",
"dependencies": {
"chalk": "4.1.2",
"webpack-merge": "^5.10.0"
},
"devDependencies": {
"@commitlint/config-conventional": "^17.4.0",
"@openedx/frontend-build": "13.0.27",
"@edx/stylelint-config-edx": "^2.3.3",
"stylelint": "^15.11.0"
"@openedx/frontend-build": "13.0.27"
}
}

0 comments on commit 31a86b1

Please sign in to comment.