commitlint-plugin-function-rules 4.2.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -0
  2. package/package.json +17 -139
package/README.md CHANGED
@@ -63,6 +63,7 @@ Please [create an issue](https://github.com/vidavidorra/commitlint-plugin-functi
63
63
  Refer to the [contributing guide](https://github.com/vidavidorra/.github/blob/main/CONTRIBUTING.md) for detailed information about other contributions, like pull requests.
64
64
 
65
65
  [![Conventional Commits: 1.0.0](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow?style=flat-square)](https://conventionalcommits.org)
66
+ [![Linter](https://img.shields.io/badge/Linter-ESLint-4B32C3?logo=eslint&style=flat-square)](https://eslint.org/)
66
67
  [![XO code style](https://shields.io/badge/code_style-5ed9c7?logo=xo&labelColor=gray&style=flat-square)](https://github.com/xojs/xo)
67
68
  [![Code style](https://img.shields.io/badge/code_style-Prettier-ff69b4?logo=prettier&style=flat-square)](https://github.com/prettier/prettier)
68
69
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commitlint-plugin-function-rules",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "commitlint plugin to use functions as rule value",
5
5
  "keywords": [
6
6
  "commitlint",
@@ -28,138 +28,14 @@
28
28
  "build": "tsc",
29
29
  "format": "prettier --ignore-path .gitignore --write \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --log-level warn",
30
30
  "format:check": "prettier --ignore-path .gitignore --check \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --log-level warn",
31
- "lint": "npm run format:check && xo",
32
- "lint:fix": "npm run format && xo --fix",
31
+ "lint": "npm run format:check && eslint",
32
+ "lint:fix": "npm run format && eslint --fix",
33
33
  "prepare": "husky .github/husky",
34
34
  "test": "c8 ava"
35
35
  },
36
- "xo": {
37
- "prettier": true,
38
- "space": true
39
- },
40
- "prettier": {
41
- "singleQuote": true
42
- },
36
+ "prettier": "@vidavidorra/prettier-config",
43
37
  "release": {
44
- "branches": [
45
- "main",
46
- {
47
- "name": "beta",
48
- "prerelease": true
49
- }
50
- ],
51
- "plugins": [
52
- [
53
- "@semantic-release/commit-analyzer",
54
- {
55
- "releaseRules": [
56
- {
57
- "type": "perf",
58
- "release": "patch"
59
- },
60
- {
61
- "type": "revert",
62
- "release": "patch"
63
- },
64
- {
65
- "type": "docs",
66
- "release": "patch"
67
- },
68
- {
69
- "type": "chore",
70
- "release": false
71
- },
72
- {
73
- "type": "refactor",
74
- "release": "patch"
75
- },
76
- {
77
- "type": "test",
78
- "release": "patch"
79
- },
80
- {
81
- "type": "build",
82
- "release": "patch"
83
- },
84
- {
85
- "type": "ci",
86
- "release": "patch"
87
- }
88
- ]
89
- }
90
- ],
91
- "@semantic-release/release-notes-generator",
92
- "@semantic-release/changelog",
93
- [
94
- "@semantic-release/exec",
95
- {
96
- "prepareCmd": "prettier --write CHANGELOG.md"
97
- }
98
- ],
99
- [
100
- "@semantic-release/npm",
101
- {
102
- "tarballDir": "dist"
103
- }
104
- ],
105
- "@semantic-release/git",
106
- [
107
- "@semantic-release/github",
108
- {
109
- "assets": "dist/*.tgz"
110
- }
111
- ]
112
- ],
113
- "preset": "conventionalcommits",
114
- "presetConfig": {
115
- "types": [
116
- {
117
- "type": "feat",
118
- "section": "Features"
119
- },
120
- {
121
- "type": "fix",
122
- "section": "Bug Fixes"
123
- },
124
- {
125
- "type": "perf",
126
- "section": "Performance Improvements"
127
- },
128
- {
129
- "type": "revert",
130
- "section": "Reverts"
131
- },
132
- {
133
- "type": "docs",
134
- "section": "Documentation"
135
- },
136
- {
137
- "type": "style",
138
- "section": "Styles"
139
- },
140
- {
141
- "type": "chore",
142
- "section": "Miscellaneous Chores",
143
- "hidden": true
144
- },
145
- {
146
- "type": "refactor",
147
- "section": "Code Refactoring"
148
- },
149
- {
150
- "type": "test",
151
- "section": "Tests"
152
- },
153
- {
154
- "type": "build",
155
- "section": "Build System"
156
- },
157
- {
158
- "type": "ci",
159
- "section": "Continuous Integration"
160
- }
161
- ]
162
- }
38
+ "extends": "@vidavidorra/semantic-release-config"
163
39
  },
164
40
  "ava": {
165
41
  "files": [
@@ -184,37 +60,39 @@
184
60
  "text-summary"
185
61
  ]
186
62
  },
63
+ "overrides": {
64
+ "@commitlint/config-conventional": {
65
+ "conventional-changelog-conventionalcommits": ">=9.0.0"
66
+ }
67
+ },
187
68
  "devDependencies": {
188
69
  "@ava/typescript": "6.0.0",
189
70
  "@commitlint/cli": "20.2.0",
190
71
  "@commitlint/config-conventional": "20.2.0",
191
72
  "@commitlint/lint-19.x": "npm:@commitlint/lint@19.8.1",
192
- "@commitlint/load-19.x": "npm:@commitlint/load@19.8.1",
193
73
  "@commitlint/lint-20.x": "npm:@commitlint/lint@20.2.0",
74
+ "@commitlint/load-19.x": "npm:@commitlint/load@19.8.1",
194
75
  "@commitlint/load-20.x": "npm:@commitlint/load@20.2.0",
195
76
  "@commitlint/rules": "20.2.0",
196
77
  "@commitlint/types": "20.2.0",
197
- "@semantic-release/changelog": "6.0.3",
198
- "@semantic-release/exec": "7.1.0",
199
- "@semantic-release/git": "10.0.1",
200
78
  "@types/sinon": "21.0.0",
79
+ "@vidavidorra/eslint-config": "1.0.3",
80
+ "@vidavidorra/prettier-config": "1.0.6",
81
+ "@vidavidorra/semantic-release-config": "1.0.4",
201
82
  "ava": "6.4.1",
202
83
  "c8": "10.1.3",
84
+ "eslint": "9.39.2",
203
85
  "husky": "9.1.7",
204
86
  "lint-staged": "16.2.7",
205
87
  "prettier": "3.7.4",
206
88
  "semantic-release": "25.0.2",
207
- "sinon": "21.0.0",
208
- "typescript": "5.9.3",
209
- "xo": "1.2.3"
89
+ "sinon": "21.0.1",
90
+ "typescript": "5.9.3"
210
91
  },
211
92
  "peerDependencies": {
212
93
  "@commitlint/lint": ">=19 <21"
213
94
  },
214
95
  "engines": {
215
96
  "node": ">=20"
216
- },
217
- "overrides": {
218
- "conventional-changelog-conventionalcommits": ">= 8.0.0"
219
97
  }
220
98
  }