@taiga-ui/commitlint-config 0.6.0 → 0.7.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.
- package/CHANGELOG.md +25 -0
- package/commitlint.config.js +6 -4
- package/package.json +5 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,31 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.7.1](https://github.com/taiga-family/linters/compare/@taiga-ui/commitlint-config@0.7.0...@taiga-ui/commitlint-config@0.7.1) (2024-03-03)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **commitlint-config:** fix lint
|
|
11
|
+
([094bee6](https://github.com/taiga-family/linters/commit/094bee69331b5a1d2a02efa95229ba1bc0d5d4e0))
|
|
12
|
+
|
|
13
|
+
# Change Log
|
|
14
|
+
|
|
15
|
+
All notable changes to this project will be documented in this file. See
|
|
16
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
17
|
+
|
|
18
|
+
# [0.7.0](https://github.com/taiga-family/linters/compare/@taiga-ui/commitlint-config@0.6.0...@taiga-ui/commitlint-config@0.7.0) (2024-03-03)
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
- **commitlint-config:** pure ESM package
|
|
23
|
+
([aa92b97](https://github.com/taiga-family/linters/commit/aa92b970e590158b423ca5563b709dd157f64e2b))
|
|
24
|
+
- use peer deps ([208e07e](https://github.com/taiga-family/linters/commit/208e07e8de9928ae231317097157a3f1bebcab46))
|
|
25
|
+
|
|
26
|
+
# Change Log
|
|
27
|
+
|
|
28
|
+
All notable changes to this project will be documented in this file. See
|
|
29
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
30
|
+
|
|
6
31
|
# [0.6.0](https://github.com/taiga-family/linters/compare/@taiga-ui/commitlint-config@0.5.6...@taiga-ui/commitlint-config@0.6.0) (2024-03-01)
|
|
7
32
|
|
|
8
33
|
**Note:** Version bump only for package @taiga-ui/commitlint-config
|
package/commitlint.config.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import conventional from '@commitlint/config-conventional';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
2
5
|
extends: ['@commitlint/config-conventional'],
|
|
3
6
|
rules: {
|
|
4
7
|
'scope-enum': () => {
|
|
5
8
|
function getTypes(dir) {
|
|
6
9
|
try {
|
|
7
|
-
const {readdirSync, statSync} =
|
|
10
|
+
const {readdirSync, statSync} = fs;
|
|
8
11
|
return readdirSync(dir).filter(entity =>
|
|
9
12
|
statSync(`${dir}/${entity}`).isDirectory(),
|
|
10
13
|
);
|
|
@@ -30,8 +33,7 @@ module.exports = {
|
|
|
30
33
|
];
|
|
31
34
|
},
|
|
32
35
|
'type-enum': () => {
|
|
33
|
-
const [level, applicable, types] =
|
|
34
|
-
.rules['type-enum'];
|
|
36
|
+
const [level, applicable, types] = conventional.rules['type-enum'];
|
|
35
37
|
|
|
36
38
|
return [level, applicable, [...types, 'deprecate']];
|
|
37
39
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/commitlint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Taiga UI commitlint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"commitlint",
|
|
@@ -11,13 +11,11 @@
|
|
|
11
11
|
"url": "https://github.com/taiga-family/linters.git"
|
|
12
12
|
},
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"@commitlint/config-conventional": "18.6.2"
|
|
17
|
-
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"exports": "./commitlint.config.js",
|
|
18
16
|
"peerDependencies": {
|
|
19
|
-
"@commitlint/cli": "
|
|
20
|
-
"@commitlint/config-conventional": "
|
|
17
|
+
"@commitlint/cli": "^19.0.3",
|
|
18
|
+
"@commitlint/config-conventional": "^19.0.3"
|
|
21
19
|
},
|
|
22
20
|
"publishConfig": {
|
|
23
21
|
"access": "public"
|