Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import type { UserConfig } from '@commitlint/types'
import { RuleConfigSeverity } from '@commitlint/types'

const Configuration: UserConfig = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
RuleConfigSeverity.Error,
'always',
['feat', 'fix', 'docs', 'style', 'refactor', 'test', 'chore', 'revert', 'ci', 'build'],
],
'scope-max-length': [RuleConfigSeverity.Error, 'always', 20],
'subject-case': [RuleConfigSeverity.Error, 'always', 'lower-case'],
'subject-max-length': [RuleConfigSeverity.Error, 'always', 72],
},
}

export default Configuration
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
"defu": "6.1.4",
"fast-npm-meta": "1.0.0",
"focus-trap": "^7.8.0",
"tinyglobby": "0.2.15",
"marked": "17.0.1",
"module-replacements": "2.11.0",
"nuxt": "4.3.0",
Expand All @@ -89,6 +88,7 @@
"simple-git": "3.30.0",
"spdx-license-list": "6.11.0",
"std-env": "3.10.0",
"tinyglobby": "0.2.15",
"ufo": "1.6.3",
"unocss": "66.6.0",
"unplugin-vue-router": "0.19.2",
Expand All @@ -101,6 +101,9 @@
"vue-data-ui": "3.14.3"
},
"devDependencies": {
"@commitlint/cli": "20.4.1",
"@commitlint/config-conventional": "20.4.1",
"@commitlint/types": "20.4.0",
Comment on lines +104 to +106
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

cat -n package.json | sed -n '100,110p'

Repository: npmx-dev/npmx.dev

Length of output: 458


🌐 Web query:

@commitlint/types latest version npm package compatibility commitlint 20.4.1

💡 Result:

  • Latest @commitlint/types on npm: 20.3.1 (published Jan 2026 per package indexes). [1]
  • Compatibility with commitlint@20.4.1: I can’t find any evidence that commitlint@20.4.1 is published on npm (current published commitlint I can verify is 20.3.1). [2]
  • What to install / align to: commitlint packages are meant to stay on the same major and typically the same minor/patch; for example, @commitlint/load@20.3.1 depends on @commitlint/types as ^20.3.1 (so any 20.x satisfying that range works, but the intended pairing is 20.3.1). [3]

Recommendation: if you’re installing from npm, use @commitlint/types@^20.3.1 (or just let it be a transitive dependency via @commitlint/cli). If you truly have commitlint@20.4.1 (e.g., from a fork/tag), you’ll want the matching @commitlint/types@20.4.1—but that version doesn’t appear to be published on npm right now. [1][2]

References:
[1] Socket package index for @commitlint/types (shows latest 20.3.1). (socket.dev)
[2] jsDocs.io package page for commitlint (shows published version 20.3.1). (jsdocs.io)
[3] UNPKG @commitlint/load@20.3.1 package.json (depends on @commitlint/types: ^20.3.1). (app.unpkg.com)

Citations:


Commitlint package versions don't exist on npm.

The specified versions (@commitlint/cli@20.4.1, @commitlint/config-conventional@20.4.1, @commitlint/types@20.4.0) do not appear to be published on npm. The latest published versions are 20.3.1 across all commitlint packages. These dependencies will fail to install.

Update to:

"@commitlint/cli": "20.3.1",
"@commitlint/config-conventional": "20.3.1",
"@commitlint/types": "20.3.1",

"@intlify/core-base": "11.2.8",
"@npm/types": "2.1.0",
"@playwright/test": "1.58.1",
Expand Down Expand Up @@ -129,7 +132,8 @@
"node": ">=24"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
"pre-commit": "npx lint-staged",
"commit-msg": "npx --no -- commitlint --edit"
},
"lint-staged": {
"i18n/locales/*": [
Expand Down
Loading
Loading