commitlint-plugin-function-rules 2.0.2 → 3.1.0

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.
package/README.md CHANGED
@@ -58,7 +58,7 @@ module.exports = {
58
58
 
59
59
  ## Contributing
60
60
 
61
- Please [create an issue](https://github.com/vidavidorra/commitlint-plugin-function-rules/issues/new/choose) if you have a bug report or feature proposal, or [create a discussion](https://github.com/vidavidorra/commitlint-plugin-function-rules/discussions) if you have a question. If you like this project, please consider giving it a star ⭐ and/or become a [sponsor](https://github.com/sponsors/jdbruijn) to support my work.
61
+ Please [create an issue](https://github.com/vidavidorra/commitlint-plugin-function-rules/issues/new/choose) if you have a bug report or feature proposal, or [create a discussion](https://github.com/vidavidorra/commitlint-plugin-function-rules/discussions) if you have a question. If you like this project, please consider giving it a star ⭐
62
62
 
63
63
  Refer to the [contributing guide](https://github.com/vidavidorra/.github/blob/main/CONTRIBUTING.md) detailed information about other contributions, like pull requests.
64
64
 
@@ -74,7 +74,7 @@ Please refer to the [Security Policy on GitHub](https://github.com/vidavidorra/c
74
74
 
75
75
  This project is licensed under the [GPLv3 license](https://www.gnu.org/licenses/gpl.html).
76
76
 
77
- Copyright © 2020-2023 Jeroen de Bruijn
77
+ Copyright © 2020-2024 Jeroen de Bruijn
78
78
 
79
79
  <details><summary>License notice</summary>
80
80
  <p>
package/dist/index.cjs CHANGED
@@ -29,6 +29,7 @@ var rules = {
29
29
  "function-rules/header-full-stop": functionRule,
30
30
  "function-rules/header-max-length": functionRule,
31
31
  "function-rules/header-min-length": functionRule,
32
+ "function-rules/header-trim": functionRule,
32
33
  "function-rules/references-empty": functionRule,
33
34
  "function-rules/scope-case": functionRule,
34
35
  "function-rules/scope-empty": functionRule,
package/dist/rules.js CHANGED
@@ -16,6 +16,7 @@ const rules = {
16
16
  'function-rules/header-full-stop': functionRule,
17
17
  'function-rules/header-max-length': functionRule,
18
18
  'function-rules/header-min-length': functionRule,
19
+ 'function-rules/header-trim': functionRule,
19
20
  'function-rules/references-empty': functionRule,
20
21
  'function-rules/scope-case': functionRule,
21
22
  'function-rules/scope-empty': functionRule,
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "commitlint-plugin-function-rules",
3
- "version": "2.0.2",
4
- "description": "commitlint plugin to define rules as functions.",
3
+ "version": "3.1.0",
4
+ "description": "commitlint plugin to use functions as rule value",
5
5
  "keywords": [
6
6
  "commitlint",
7
7
  "commitlintplugin",
8
+ "function",
8
9
  "plugin",
9
10
  "rules"
10
11
  ],
@@ -32,8 +33,8 @@
32
33
  "build": "npm run build:esm && npm run build:cjs",
33
34
  "build:cjs": "esbuild src/index.ts --bundle --target=ES2022 --platform=node --outfile=dist/index.cjs",
34
35
  "build:esm": "tsc",
35
- "format": "prettier --ignore-path .gitignore --write \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --loglevel warn",
36
- "format:check": "prettier --ignore-path .gitignore --check \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --loglevel warn",
36
+ "format": "prettier --ignore-path .gitignore --write \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --log-level warn",
37
+ "format:check": "prettier --ignore-path .gitignore --check \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --log-level warn",
37
38
  "lint": "npm run format:check && xo",
38
39
  "lint:fix": "npm run format && xo --fix",
39
40
  "prepare": "husky install .github/husky",
@@ -44,8 +45,7 @@
44
45
  "space": true
45
46
  },
46
47
  "prettier": {
47
- "singleQuote": true,
48
- "trailingComma": "all"
48
+ "singleQuote": true
49
49
  },
50
50
  "release": {
51
51
  "branches": [
@@ -192,9 +192,9 @@
192
192
  ]
193
193
  },
194
194
  "devDependencies": {
195
- "@ava/typescript": "4.0.0",
196
- "@commitlint/cli": "17.6.5",
197
- "@commitlint/config-conventional": "17.6.5",
195
+ "@ava/typescript": "4.1.0",
196
+ "@commitlint/cli": "18.6.0",
197
+ "@commitlint/config-conventional": "18.6.0",
198
198
  "@commitlint/lint-10.x": "npm:@commitlint/lint@10.0.0",
199
199
  "@commitlint/lint-11.x": "npm:@commitlint/lint@11.0.0",
200
200
  "@commitlint/lint-12.x": "npm:@commitlint/lint@12.1.4",
@@ -202,7 +202,8 @@
202
202
  "@commitlint/lint-14.x": "npm:@commitlint/lint@14.1.0",
203
203
  "@commitlint/lint-15.x": "npm:@commitlint/lint@15.0.0",
204
204
  "@commitlint/lint-16.x": "npm:@commitlint/lint@16.2.4",
205
- "@commitlint/lint-17.x": "npm:@commitlint/lint@17.6.5",
205
+ "@commitlint/lint-17.x": "npm:@commitlint/lint@17.8.1",
206
+ "@commitlint/lint-18.x": "npm:@commitlint/lint@18.6.0",
206
207
  "@commitlint/lint-9.x": "npm:@commitlint/lint@9.1.2",
207
208
  "@commitlint/load-10.x": "npm:@commitlint/load@10.0.0",
208
209
  "@commitlint/load-11.x": "npm:@commitlint/load@11.0.0",
@@ -211,29 +212,30 @@
211
212
  "@commitlint/load-14.x": "npm:@commitlint/load@14.1.0",
212
213
  "@commitlint/load-15.x": "npm:@commitlint/load@15.0.0",
213
214
  "@commitlint/load-16.x": "npm:@commitlint/load@16.3.0",
214
- "@commitlint/load-17.x": "npm:@commitlint/load@17.5.0",
215
+ "@commitlint/load-17.x": "npm:@commitlint/load@17.8.1",
216
+ "@commitlint/load-18.x": "npm:@commitlint/load@18.6.0",
215
217
  "@commitlint/load-9.x": "npm:@commitlint/load@9.1.2",
216
- "@commitlint/rules": "17.6.5",
217
- "@commitlint/types": "17.4.4",
218
+ "@commitlint/rules": "18.6.0",
219
+ "@commitlint/types": "18.6.0",
218
220
  "@semantic-release/changelog": "6.0.3",
219
221
  "@semantic-release/exec": "6.0.3",
220
222
  "@semantic-release/git": "10.0.1",
221
- "@types/sinon": "10.0.15",
222
- "ava": "5.2.0",
223
- "c8": "8.0.0",
224
- "esbuild": "0.18.6",
223
+ "@types/sinon": "17.0.3",
224
+ "ava": "6.1.1",
225
+ "c8": "9.1.0",
226
+ "esbuild": "0.20.0",
225
227
  "husky": "8.0.3",
226
- "lint-staged": "13.2.2",
227
- "prettier": "2.8.8",
228
- "semantic-release": "21.0.5",
229
- "sinon": "15.1.2",
230
- "typescript": "5.0.3",
231
- "xo": "0.54.2"
228
+ "lint-staged": "15.2.2",
229
+ "prettier": "3.2.5",
230
+ "semantic-release": "23.0.2",
231
+ "sinon": "17.0.1",
232
+ "typescript": "5.3.3",
233
+ "xo": "0.57.0"
232
234
  },
233
235
  "peerDependencies": {
234
- "@commitlint/lint": ">=9.1.2 <18"
236
+ "@commitlint/lint": ">=9.1.2 <19"
235
237
  },
236
238
  "engines": {
237
- "node": ">=16"
239
+ "node": ">=18"
238
240
  }
239
241
  }