Skip to content

Commit

Permalink
chore: set up commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMakesGames committed Feb 13, 2024
1 parent 973557a commit 3153b4f
Show file tree
Hide file tree
Showing 4 changed files with 1,332 additions and 35 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ vite.config.ts
postcss.config.cjs
electron.vite.config.ts
svelte.config.mjs
commitlint.config.cjs

# not sure why this file causes issues
src/shared/*
Expand Down
17 changes: 17 additions & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'scope-enum': [
2,
'always',
[
'map', // map rendering
'parser', // save and data parsing
'data', // data processing
'export', // image/video export
'i18n', // translation etc
'ui',
],
],
},
};
Loading

0 comments on commit 3153b4f

Please sign in to comment.