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 5aec1c3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 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 };
3 changes: 1 addition & 2 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
},
"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 5aec1c3

Please sign in to comment.