@commitlint/config-nx-scopes 18.5.1 → 19.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/index.js +4 -6
  2. package/package.json +9 -5
  3. package/readme.md +3 -3
package/index.js CHANGED
@@ -1,10 +1,8 @@
1
- const {RuleConfigSeverity} = require('@commitlint/types');
2
- const {
3
- getProjects: getNXProjects,
4
- } = require('nx/src/generators/utils/project-configuration');
5
- const {FsTree} = require('nx/src/generators/tree');
1
+ import {RuleConfigSeverity} from '@commitlint/types';
2
+ import {getProjects as getNXProjects} from 'nx/src/generators/utils/project-configuration';
3
+ import {FsTree} from 'nx/src/generators/tree';
6
4
 
7
- module.exports = {
5
+ export default {
8
6
  utils: {getProjects},
9
7
  rules: {
10
8
  'scope-enum': (ctx) =>
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@commitlint/config-nx-scopes",
3
- "version": "18.5.1",
3
+ "type": "module",
4
+ "version": "19.0.0",
4
5
  "description": "Shareable commitlint config enforcing nx project names as scopes",
5
6
  "files": [
6
7
  "index.js"
@@ -27,7 +28,7 @@
27
28
  },
28
29
  "homepage": "https://commitlint.js.org/",
29
30
  "peerDependencies": {
30
- "nx": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
31
+ "nx": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0"
31
32
  },
32
33
  "peerDependenciesMeta": {
33
34
  "nx": {
@@ -37,9 +38,12 @@
37
38
  "engines": {
38
39
  "node": ">=v18"
39
40
  },
41
+ "dependencies": {
42
+ "@commitlint/types": "^19.0.0"
43
+ },
40
44
  "devDependencies": {
41
- "@commitlint/test": "^18.0.0",
42
- "@commitlint/utils": "^18.4.4"
45
+ "@commitlint/test": "^19.0.0",
46
+ "@commitlint/utils": "^19.0.0"
43
47
  },
44
- "gitHead": "5706af23ef4901d13f8c751df19214098404f44b"
48
+ "gitHead": "f1ff12159d627ee63bf8982ab02e6cca8f10b09f"
45
49
  }
package/readme.md CHANGED
@@ -1,7 +1,7 @@
1
- > Lint your nx project commits
2
-
3
1
  # @commitlint/config-nx-scopes
4
2
 
3
+ Lint your nx project commits
4
+
5
5
  Shareable `commitlint` config enforcing nx project and workspace names as scopes.
6
6
  Use with [@commitlint/cli](../cli) and [@commitlint/prompt-cli](../prompt-cli).
7
7
 
@@ -98,4 +98,4 @@ packages
98
98
  ✔ found 0 problems, 0 warnings
99
99
  ```
100
100
 
101
- Consult [docs/rules](https://conventional-changelog.github.io/commitlint/#/reference-rules) for a list of available rules.
101
+ Consult [Rules reference](https://commitlint.js.org/reference/rules) for a list of available rules.