@alexlit/config-commitlint 10.4.0 → 11.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/README.md +5 -9
  2. package/index.js +1 -1
  3. package/package.json +4 -3
package/README.md CHANGED
@@ -12,17 +12,13 @@ npm i @alexlit/config-commitlint -D
12
12
  ## Connection
13
13
 
14
14
  ```js
15
- // .commitlintrc.js
16
- module.exports = {
15
+ // commitlint.config.js
16
+ export default {
17
17
  extends: ['@alexlit/config-commitlint'],
18
18
  };
19
19
  ```
20
20
 
21
- ```js
22
- // .huskyrc.js
23
- module.exports = {
24
- hooks: {
25
- 'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
26
- },
27
- };
21
+ ```bash
22
+ # .husky/commit-msg
23
+ npx --no -- commitlint --edit "$1"
28
24
  ```
package/index.js CHANGED
@@ -1,3 +1,3 @@
1
- module.exports = {
1
+ export default {
2
2
  extends: ['@commitlint/config-conventional'],
3
3
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-commitlint",
3
- "version": "10.4.0",
3
+ "version": "11.0.0",
4
4
  "private": false,
5
5
  "description": "Commitlint config",
6
6
  "keywords": [
@@ -21,6 +21,7 @@
21
21
  "maintainers": [
22
22
  "Alexey Litovchenko <alex.lit@outlook.com> (https://alexlit.gitlab.io)"
23
23
  ],
24
+ "type": "module",
24
25
  "main": "index.js",
25
26
  "files": [
26
27
  "README.md",
@@ -31,8 +32,8 @@
31
32
  "up": "../../scripts/up.sh"
32
33
  },
33
34
  "dependencies": {
34
- "@commitlint/cli": "^18.6.0",
35
- "@commitlint/config-conventional": "^18.6.0",
35
+ "@commitlint/cli": "^19.0.3",
36
+ "@commitlint/config-conventional": "^19.0.3",
36
37
  "conventional-changelog-cli": "^4.1.0"
37
38
  }
38
39
  }