@commitlint/config-nx-scopes 18.6.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.
- package/index.js +4 -6
- package/package.json +8 -4
- package/readme.md +3 -3
package/index.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
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
|
-
"
|
|
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"
|
|
@@ -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": "^
|
|
42
|
-
"@commitlint/utils": "^
|
|
45
|
+
"@commitlint/test": "^19.0.0",
|
|
46
|
+
"@commitlint/utils": "^19.0.0"
|
|
43
47
|
},
|
|
44
|
-
"gitHead": "
|
|
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 [
|
|
101
|
+
Consult [Rules reference](https://commitlint.js.org/reference/rules) for a list of available rules.
|