@ethima/commitlint-config 1.1.0 → 2.0.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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/package.json +7 -6
  3. package/src/index.js +3 -5
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2023 Joris Kraak
1
+ Copyright (c) 2023-2024 Joris Kraak
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of
4
4
  this software and associated documentation files (the "Software"), to deal in
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@ethima/commitlint-config",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "description": "A shareable Commitlint configuration for the Ethima organization",
5
5
  "main": "src/index.js",
6
+ "type": "module",
6
7
  "scripts": {
7
8
  "test": "ava"
8
9
  },
@@ -22,12 +23,12 @@
22
23
  },
23
24
  "homepage": "https://gitlab.com/ethima/commitlint-config",
24
25
  "dependencies": {
25
- "@commitlint/config-conventional": "18.4.3",
26
- "@commitlint/is-ignored": "18.4.3"
26
+ "@commitlint/config-conventional": "19.5.0",
27
+ "@commitlint/is-ignored": "19.5.0"
27
28
  },
28
29
  "devDependencies": {
29
- "@commitlint/lint": "18.4.3",
30
- "@commitlint/load": "18.4.3",
31
- "ava": "6.0.1"
30
+ "@commitlint/lint": "19.5.0",
31
+ "@commitlint/load": "19.5.0",
32
+ "ava": "6.2.0"
32
33
  }
33
34
  }
package/src/index.js CHANGED
@@ -1,7 +1,5 @@
1
- const baseConfiguration = require("@commitlint/config-conventional");
2
- const {
3
- wildcards: defaultIgnoreFunctions,
4
- } = require("@commitlint/is-ignored/lib/defaults");
1
+ import baseConfiguration from "@commitlint/config-conventional/lib/index.js";
2
+ import { wildcards as defaultIgnoreFunctions } from "@commitlint/is-ignored/lib/defaults.js";
5
3
 
6
4
  const footnoteMatcher = new RegExp("^\\[\\^.+?\\]:");
7
5
 
@@ -53,7 +51,7 @@ const configurationSpecificIgnoreFunctions = [
53
51
  semanticReleaseCommitMatcher.test.bind(semanticReleaseCommitMatcher),
54
52
  ];
55
53
 
56
- module.exports = {
54
+ export default {
57
55
  // Do not use the default ignore patterns as they allow patterns, e.g.
58
56
  // `fixup!` and `squash!` commits, that should be blocked in the workflows
59
57
  // primarily supported by this configuration