@taiga-ui/commitlint-config 0.6.0 → 0.7.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/CHANGELOG.md CHANGED
@@ -3,6 +3,19 @@
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.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)
7
+
8
+ ### Features
9
+
10
+ - **commitlint-config:** pure ESM package
11
+ ([aa92b97](https://github.com/taiga-family/linters/commit/aa92b970e590158b423ca5563b709dd157f64e2b))
12
+ - use peer deps ([208e07e](https://github.com/taiga-family/linters/commit/208e07e8de9928ae231317097157a3f1bebcab46))
13
+
14
+ # Change Log
15
+
16
+ All notable changes to this project will be documented in this file. See
17
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
18
+
6
19
  # [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
20
 
8
21
  **Note:** Version bump only for package @taiga-ui/commitlint-config
@@ -1,10 +1,13 @@
1
- module.exports = {
1
+ import conventional from '@commitlint/config-conventional';
2
+ import fs from 'node:fs';
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} = require('fs');
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] = require('@commitlint/config-conventional')
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.6.0",
3
+ "version": "0.7.0",
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
- "main": "commitlint.config.js",
15
- "dependencies": {
16
- "@commitlint/config-conventional": "18.6.2"
17
- },
14
+ "type": "module",
15
+ "exports": "./commitlint.config.js",
18
16
  "peerDependencies": {
19
- "@commitlint/cli": "18.6.1",
20
- "@commitlint/config-conventional": "18.6.2"
17
+ "@commitlint/cli": "^19.0.3",
18
+ "@commitlint/config-conventional": "^19.0.3"
21
19
  },
22
20
  "publishConfig": {
23
21
  "access": "public"