@abinnovision/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.
package/CHANGELOG.md CHANGED
@@ -1,51 +1,56 @@
1
1
  # Changelog
2
2
 
3
- ## [1.1.0](https://github.com/abinnovision/js-commons/compare/commitlint-config-v1.0.4...commitlint-config-v1.1.0) (2023-04-21)
3
+ ## [2.0.0](https://github.com/abinnovision/js-commons/compare/commitlint-config-v1.1.0...commitlint-config-v2.0.0) (2023-11-03)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
4
7
 
8
+ * will drop support for legacy eslint configs
5
9
 
6
10
  ### Features
7
11
 
8
- * implement @abinnovision/commitlint-config ([98da681](https://github.com/abinnovision/js-commons/commit/98da68188adfac5726cbf6c3f6862bf9b966785d))
12
+ * disable "body-max-line-length" rule ([#105](https://github.com/abinnovision/js-commons/issues/105)) ([29ce203](https://github.com/abinnovision/js-commons/commit/29ce203272e148e66cd6e7291e399b2195c944f9))
13
+ * migrate to eslint flat config ([#93](https://github.com/abinnovision/js-commons/issues/93)) ([7568ba1](https://github.com/abinnovision/js-commons/commit/7568ba1782f912357e18619ab3e4e56a0c738a1c))
14
+
15
+ ## [1.1.0](https://github.com/abinnovision/js-commons/compare/commitlint-config-v1.0.4...commitlint-config-v1.1.0) (2023-04-21)
16
+
17
+ ### Features
9
18
 
19
+ - implement @abinnovision/commitlint-config ([98da681](https://github.com/abinnovision/js-commons/commit/98da68188adfac5726cbf6c3f6862bf9b966785d))
10
20
 
11
21
  ### Bug Fixes
12
22
 
13
- * add conventional-changelog-conventionalcommits dependency ([fafd176](https://github.com/abinnovision/js-commons/commit/fafd1767992b916d2cd0deb99a333f7e5b7d7e43))
14
- * add correct license to all packages ([af7343d](https://github.com/abinnovision/js-commons/commit/af7343dbdb93329a0321a369f81e9b37da9068fa))
15
- * emit declarations ([616f817](https://github.com/abinnovision/js-commons/commit/616f817ca7701e160325e1e81d633df345244cc3))
16
- * include typescript declarations ([4fc889b](https://github.com/abinnovision/js-commons/commit/4fc889b5900dddb7125bb94d87a6d6358f0c021c))
23
+ - add conventional-changelog-conventionalcommits dependency ([fafd176](https://github.com/abinnovision/js-commons/commit/fafd1767992b916d2cd0deb99a333f7e5b7d7e43))
24
+ - add correct license to all packages ([af7343d](https://github.com/abinnovision/js-commons/commit/af7343dbdb93329a0321a369f81e9b37da9068fa))
25
+ - emit declarations ([616f817](https://github.com/abinnovision/js-commons/commit/616f817ca7701e160325e1e81d633df345244cc3))
26
+ - include typescript declarations ([4fc889b](https://github.com/abinnovision/js-commons/commit/4fc889b5900dddb7125bb94d87a6d6358f0c021c))
17
27
 
18
28
  ## [1.0.4](https://github.com/abinnovision/js-commons/compare/commitlint-config-v1.0.3...commitlint-config-v1.0.4) (2023-04-21)
19
29
 
20
-
21
30
  ### Bug Fixes
22
31
 
23
- * emit declarations ([616f817](https://github.com/abinnovision/js-commons/commit/616f817ca7701e160325e1e81d633df345244cc3))
32
+ - emit declarations ([616f817](https://github.com/abinnovision/js-commons/commit/616f817ca7701e160325e1e81d633df345244cc3))
24
33
 
25
34
  ## [1.0.3](https://github.com/abinnovision/js-commons/compare/commitlint-config-v1.0.2...commitlint-config-v1.0.3) (2023-04-21)
26
35
 
27
-
28
36
  ### Bug Fixes
29
37
 
30
- * add correct license to all packages ([af7343d](https://github.com/abinnovision/js-commons/commit/af7343dbdb93329a0321a369f81e9b37da9068fa))
38
+ - add correct license to all packages ([af7343d](https://github.com/abinnovision/js-commons/commit/af7343dbdb93329a0321a369f81e9b37da9068fa))
31
39
 
32
40
  ## [1.0.2](https://github.com/abinnovision/js-commons/compare/commitlint-config-v1.0.1...commitlint-config-v1.0.2) (2023-04-21)
33
41
 
34
-
35
42
  ### Bug Fixes
36
43
 
37
- * add conventional-changelog-conventionalcommits dependency ([fafd176](https://github.com/abinnovision/js-commons/commit/fafd1767992b916d2cd0deb99a333f7e5b7d7e43))
44
+ - add conventional-changelog-conventionalcommits dependency ([fafd176](https://github.com/abinnovision/js-commons/commit/fafd1767992b916d2cd0deb99a333f7e5b7d7e43))
38
45
 
39
46
  ## [1.0.1](https://github.com/abinnovision/js-commons/compare/commitlint-config-v1.0.0...commitlint-config-v1.0.1) (2023-03-08)
40
47
 
41
-
42
48
  ### Bug Fixes
43
49
 
44
- * include typescript declarations ([4fc889b](https://github.com/abinnovision/js-commons/commit/4fc889b5900dddb7125bb94d87a6d6358f0c021c))
50
+ - include typescript declarations ([4fc889b](https://github.com/abinnovision/js-commons/commit/4fc889b5900dddb7125bb94d87a6d6358f0c021c))
45
51
 
46
52
  ## 1.0.0 (2023-03-08)
47
53
 
48
-
49
54
  ### Features
50
55
 
51
- * implement @abinnovision/commitlint-config ([98da681](https://github.com/abinnovision/js-commons/commit/98da68188adfac5726cbf6c3f6862bf9b966785d))
56
+ - implement @abinnovision/commitlint-config ([98da681](https://github.com/abinnovision/js-commons/commit/98da68188adfac5726cbf6c3f6862bf9b966785d))
package/README.md CHANGED
@@ -15,4 +15,3 @@ yarn add --dev \
15
15
  # Commitlint itself.
16
16
  @commitlint/cli
17
17
  ```
18
-
@@ -0,0 +1,8 @@
1
+ import { UserConfig } from '@commitlint/types';
2
+
3
+ /**
4
+ * The config is mostly based on the Conventional config.
5
+ */
6
+ declare const config: UserConfig;
7
+
8
+ export { config as default };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,8 @@
1
- import type { UserConfig } from "@commitlint/types";
1
+ import { UserConfig } from '@commitlint/types';
2
+
3
+ /**
4
+ * The config is mostly based on the Conventional config.
5
+ */
2
6
  declare const config: UserConfig;
3
- export = config;
7
+
8
+ export { config as default };
package/dist/index.js CHANGED
@@ -1,15 +1,39 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from))
11
+ if (!__hasOwnProp.call(to, key) && key !== except)
12
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ }
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+
25
+ // src/index.ts
26
+ var ConventionalConfig = __toESM(require("@commitlint/config-conventional"));
27
+ var config = {
28
+ ...ConventionalConfig,
29
+ rules: {
30
+ ...ConventionalConfig.rules,
31
+ /**
32
+ * Disable the rule to limit the body line length.
33
+ * This is because sometimes commit messages can contain structured data
34
+ * by some kind of tool (e.g. Dependabot), which can't be changed.
35
+ */
36
+ "body-max-line-length": [0]
37
+ }
12
38
  };
13
- var ConventionalConfig = require("@commitlint/config-conventional");
14
- var config = __assign(__assign({}, ConventionalConfig), { rules: __assign(__assign({}, ConventionalConfig.rules), { "body-max-line-length": [2, "always", 200] }) });
15
39
  module.exports = config;
package/dist/index.mjs ADDED
@@ -0,0 +1,25 @@
1
+ var __getOwnPropNames = Object.getOwnPropertyNames;
2
+ var __commonJS = (cb, mod) => function __require() {
3
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
4
+ };
5
+
6
+ // src/index.ts
7
+ import * as ConventionalConfig from "@commitlint/config-conventional";
8
+ var require_src = __commonJS({
9
+ "src/index.ts"(exports, module) {
10
+ var config = {
11
+ ...ConventionalConfig,
12
+ rules: {
13
+ ...ConventionalConfig.rules,
14
+ /**
15
+ * Disable the rule to limit the body line length.
16
+ * This is because sometimes commit messages can contain structured data
17
+ * by some kind of tool (e.g. Dependabot), which can't be changed.
18
+ */
19
+ "body-max-line-length": [0]
20
+ }
21
+ };
22
+ module.exports = config;
23
+ }
24
+ });
25
+ export default require_src();
package/package.json CHANGED
@@ -1,31 +1,55 @@
1
1
  {
2
2
  "name": "@abinnovision/commitlint-config",
3
- "packageManager": "yarn@3.4.1",
4
- "version": "1.1.0",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
3
+ "version": "2.0.0",
4
+ "repository": {
5
+ "url": "https://github.com/abinnovision/js-commons"
6
+ },
7
7
  "license": "Apache-2.0",
8
8
  "author": {
9
- "name": "AB INNOVISION UG (limited liability)",
9
+ "name": "AB INNOVISION GmbH",
10
10
  "email": "info@abinnovision.com",
11
11
  "url": "https://abinnovision.com/"
12
12
  },
13
- "repository": {
14
- "url": "https://github.com/abinnovision/js-commons"
13
+ "exports": {
14
+ ".": {
15
+ "import": "./dist/index.mjs",
16
+ "require": "./dist/index.js",
17
+ "types": "./dist/index.d.ts"
18
+ }
15
19
  },
20
+ "main": "./dist/index.js",
21
+ "module": "./dist/index.mjs",
22
+ "types": "./dist/index.d.ts",
16
23
  "files": [
17
24
  "dist/"
18
25
  ],
19
26
  "scripts": {
20
- "build": "tsc"
27
+ "build": "tsup src/index.ts --dts --format esm,cjs --clean",
28
+ "format:check": "prettier --check 'src/**/*.{ts,js}' '**/*.{md,json,json5,yaml,yml}'",
29
+ "format:fix": "prettier --write 'src/**/*.{ts,js}' '**/*.{md,json,json5,yaml,yml}'",
30
+ "lint:check": "eslint 'src/**/*.{ts,js}'",
31
+ "lint:fix": "eslint --fix 'src/**/*.{ts,js}'"
21
32
  },
22
- "devDependencies": {
23
- "@commitlint/types": "^17.4.4",
24
- "@types/node": "^18.14.1",
25
- "typescript": "^4.9.5"
33
+ "lint-staged": {
34
+ "src/**/*.{ts,js}": [
35
+ "prettier --write",
36
+ "eslint --fix"
37
+ ],
38
+ "{**/*,*}.{md,json,json5,yaml,yml}": [
39
+ "prettier --write"
40
+ ]
26
41
  },
42
+ "prettier": "@abinnovision/prettier-config",
27
43
  "dependencies": {
28
- "@commitlint/config-conventional": "^17.4.4",
29
- "conventional-changelog-conventionalcommits": "^5.0.0"
30
- }
44
+ "@commitlint/config-conventional": "^18.1.0"
45
+ },
46
+ "devDependencies": {
47
+ "@abinnovision/prettier-config": "^2.0.0",
48
+ "@commitlint/types": "^18.1.0",
49
+ "eslint": "^8.52.0",
50
+ "prettier": "^3.0.3",
51
+ "tsup": "^7.2.0",
52
+ "typescript": "^5.2.2"
53
+ },
54
+ "packageManager": "yarn@3.4.1"
31
55
  }