format-demo-commitlint-config 1.0.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/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # `commitlint-demo`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const commitlintDemo = require('commitlint-demo');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ const commitlintDemo = require('..');
4
+ const assert = require('assert').strict;
5
+
6
+ assert.strictEqual(commitlintDemo(), 'Hello from commitlintDemo');
7
+ console.info('commitlintDemo tests passed');
package/index.js ADDED
@@ -0,0 +1,17 @@
1
+ module.exports = {
2
+ parserPreset: 'conventional-changelog-conventionalcommits',
3
+ rules: {
4
+ 'body-leading-blank': [1, 'always'],
5
+ 'body-max-line-length': [2, 'always', 100],
6
+ 'footer-leading-blank': [1, 'always'],
7
+ 'footer-max-line-length': [2, 'always', 100],
8
+ 'header-max-length': [2, 'always', 100],
9
+ 'scope-case': [2, 'always', 'lower-case'],
10
+ 'subject-case': [0],
11
+ 'subject-empty': [2, 'never'],
12
+ 'subject-full-stop': [2, 'never', '.'],
13
+ 'type-case': [2, 'always', 'lower-case'],
14
+ 'type-empty': [2, 'never'],
15
+ 'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'style', 'test', 'refactor', 'chore', 'revert']],
16
+ },
17
+ };
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ module.exports = commitlintDemo;
4
+
5
+ function commitlintDemo() {
6
+ return 'Hello from commitlintDemo';
7
+ }
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "format-demo-commitlint-config",
3
+ "version": "1.0.1",
4
+ "main": "index.js",
5
+ "description": "Git规范",
6
+ "keywords": [
7
+ "encode",
8
+ "commit",
9
+ "lint"
10
+ ],
11
+ "author": "hyx",
12
+ "homepage": "https://github.com/Huang-Yux/format_demo#readme",
13
+ "license": "ISC",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/Huang-Yux/format_demo.git"
17
+ },
18
+ "bugs": {
19
+ "url": "https://github.com/Huang-Yux/format_demo/issues"
20
+ },
21
+ "dependencies": {
22
+ "conventional-changelog-conventionalcommits": "^4.5.0"
23
+ },
24
+ "gitHead": "400e366da374414a0b11d025d7f31d37a6a03643"
25
+ }