@mountainpass/problem-document 0.0.42 → 0.0.45
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/.cspell.json +17 -14
- package/.eslintignore +31 -0
- package/.eslintrc-json.json +26 -0
- package/.gitattributes +4 -0
- package/.projenrc.ts +44 -6
- package/package.json +15 -4
package/.cspell.json
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"language": "en-GB",
|
|
3
3
|
"words": [
|
|
4
|
-
"MarkMcCulloh",
|
|
5
|
-
"vscode-projen",
|
|
6
|
-
"dbaeumer",
|
|
7
|
-
"vscode-eslint",
|
|
8
|
-
"streetsidesoftware",
|
|
9
|
-
"code-spell-checker",
|
|
10
|
-
"adam-bender",
|
|
11
|
-
"commit-message-editor",
|
|
12
4
|
"commitlint",
|
|
13
5
|
"cli",
|
|
14
6
|
"config-conventional",
|
|
@@ -27,6 +19,8 @@
|
|
|
27
19
|
"eslint-import-resolver-typescript",
|
|
28
20
|
"eslint-plugin-import",
|
|
29
21
|
"eslint-plugin-jsdoc",
|
|
22
|
+
"eslint-plugin-jsonc",
|
|
23
|
+
"eslint-plugin-no-secrets",
|
|
30
24
|
"eslint-plugin-prettier",
|
|
31
25
|
"eslint-plugin-unicorn",
|
|
32
26
|
"eslint",
|
|
@@ -45,6 +39,14 @@
|
|
|
45
39
|
"unbump",
|
|
46
40
|
"lcov",
|
|
47
41
|
"cobertura",
|
|
42
|
+
"MarkMcCulloh",
|
|
43
|
+
"vscode-projen",
|
|
44
|
+
"dbaeumer",
|
|
45
|
+
"vscode-eslint",
|
|
46
|
+
"esbenp",
|
|
47
|
+
"prettier-vscode",
|
|
48
|
+
"streetsidesoftware",
|
|
49
|
+
"code-spell-checker",
|
|
48
50
|
"applypatch-msg",
|
|
49
51
|
"pre-applypatch",
|
|
50
52
|
"post-applypatch",
|
|
@@ -72,7 +74,9 @@
|
|
|
72
74
|
"p4-prepare-changelist",
|
|
73
75
|
"p4-post-changelist",
|
|
74
76
|
"p4-pre-submit",
|
|
75
|
-
"post-index-change"
|
|
77
|
+
"post-index-change",
|
|
78
|
+
"commitlint",
|
|
79
|
+
"hubber"
|
|
76
80
|
],
|
|
77
81
|
"dictionaryDefinitions": [
|
|
78
82
|
{
|
|
@@ -86,18 +90,17 @@
|
|
|
86
90
|
],
|
|
87
91
|
"ignorePaths": [
|
|
88
92
|
"docs",
|
|
89
|
-
".
|
|
93
|
+
".eslintignore",
|
|
94
|
+
".eslintrc-json.json",
|
|
90
95
|
".eslintrc.json",
|
|
91
96
|
".gitattributes",
|
|
92
97
|
".github/pull_request_template.md",
|
|
98
|
+
".github/workflows/auto-approve.yml",
|
|
93
99
|
".github/workflows/build.yml",
|
|
94
100
|
".github/workflows/pull-request-lint.yml",
|
|
95
101
|
".github/workflows/release.yml",
|
|
96
102
|
".github/workflows/upgrade-main.yml",
|
|
97
103
|
".gitignore",
|
|
98
|
-
".husky/commit-msg",
|
|
99
|
-
".husky/pre-commit",
|
|
100
|
-
".husky/pre-push",
|
|
101
104
|
".mergify.yml",
|
|
102
105
|
".npmignore",
|
|
103
106
|
".prettierignore",
|
|
@@ -105,7 +108,7 @@
|
|
|
105
108
|
".projen/deps.json",
|
|
106
109
|
".projen/files.json",
|
|
107
110
|
".projen/tasks.json",
|
|
108
|
-
".vscode/
|
|
111
|
+
".vscode/settings.json",
|
|
109
112
|
"CODE_OF_CONDUCT.md",
|
|
110
113
|
"LICENSE",
|
|
111
114
|
"package.json",
|
package/.eslintignore
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".
|
|
2
|
+
.commitlintrc.json
|
|
3
|
+
.cspell.json
|
|
4
|
+
.eslintignore
|
|
5
|
+
.eslintrc-json.json
|
|
6
|
+
.eslintrc.json
|
|
7
|
+
.gitattributes
|
|
8
|
+
.github/pull_request_template.md
|
|
9
|
+
.github/workflows/auto-approve.yml
|
|
10
|
+
.github/workflows/build.yml
|
|
11
|
+
.github/workflows/pull-request-lint.yml
|
|
12
|
+
.github/workflows/release.yml
|
|
13
|
+
.github/workflows/upgrade-main.yml
|
|
14
|
+
.gitignore
|
|
15
|
+
.husky/commit-msg
|
|
16
|
+
.husky/pre-commit
|
|
17
|
+
.husky/pre-push
|
|
18
|
+
.mergify.yml
|
|
19
|
+
.npmignore
|
|
20
|
+
.prettierignore
|
|
21
|
+
.prettierrc.json
|
|
22
|
+
.projen/deps.json
|
|
23
|
+
.projen/files.json
|
|
24
|
+
.projen/tasks.json
|
|
25
|
+
.vscode/extensions.json
|
|
26
|
+
.vscode/settings.json
|
|
27
|
+
CODE_OF_CONDUCT.md
|
|
28
|
+
LICENSE
|
|
29
|
+
package.json
|
|
30
|
+
tsconfig.dev.json
|
|
31
|
+
tsconfig.json
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"jest": true,
|
|
4
|
+
"node": true
|
|
5
|
+
},
|
|
6
|
+
"root": true,
|
|
7
|
+
"plugins": [
|
|
8
|
+
"prettier",
|
|
9
|
+
"no-secrets"
|
|
10
|
+
],
|
|
11
|
+
"extends": [
|
|
12
|
+
"plugin:jsonc/recommended-with-jsonc",
|
|
13
|
+
"plugin:jsonc/prettier"
|
|
14
|
+
],
|
|
15
|
+
"ignorePatterns": [
|
|
16
|
+
"*.js",
|
|
17
|
+
"!.projenrc.ts",
|
|
18
|
+
"*.d.ts",
|
|
19
|
+
"node_modules/",
|
|
20
|
+
"*.generated.ts",
|
|
21
|
+
"coverage"
|
|
22
|
+
],
|
|
23
|
+
"rules": {
|
|
24
|
+
"no-secrets/no-secrets": "error"
|
|
25
|
+
}
|
|
26
|
+
}
|
package/.gitattributes
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
*.snap linguist-generated
|
|
4
4
|
/.commitlintrc.json linguist-generated
|
|
5
5
|
/.cspell.json linguist-generated
|
|
6
|
+
/.eslintignore linguist-generated
|
|
7
|
+
/.eslintrc-json.json linguist-generated
|
|
6
8
|
/.eslintrc.json linguist-generated
|
|
7
9
|
/.gitattributes linguist-generated
|
|
8
10
|
/.github/pull_request_template.md linguist-generated
|
|
11
|
+
/.github/workflows/auto-approve.yml linguist-generated
|
|
9
12
|
/.github/workflows/build.yml linguist-generated
|
|
10
13
|
/.github/workflows/pull-request-lint.yml linguist-generated
|
|
11
14
|
/.github/workflows/release.yml linguist-generated
|
|
@@ -23,6 +26,7 @@
|
|
|
23
26
|
/.projen/files.json linguist-generated
|
|
24
27
|
/.projen/tasks.json linguist-generated
|
|
25
28
|
/.vscode/extensions.json linguist-generated
|
|
29
|
+
/.vscode/settings.json linguist-generated
|
|
26
30
|
/CODE_OF_CONDUCT.md linguist-generated
|
|
27
31
|
/LICENSE linguist-generated
|
|
28
32
|
/package.json linguist-generated
|
package/.projenrc.ts
CHANGED
|
@@ -43,16 +43,54 @@ const project = new TypeScriptProject({
|
|
|
43
43
|
keywords: ["problem-details", "rfc7807"],
|
|
44
44
|
defaultReleaseBranch: "main",
|
|
45
45
|
projenrcTs: true,
|
|
46
|
+
dependabotOptions: {
|
|
47
|
+
labels: ["auto-approve"],
|
|
48
|
+
},
|
|
49
|
+
jestOptions: {
|
|
50
|
+
jestConfig: {
|
|
51
|
+
coverageThreshold: {
|
|
52
|
+
branches: 100,
|
|
53
|
+
functions: 100,
|
|
54
|
+
lines: 100,
|
|
55
|
+
statements: 100,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
autoApproveUpgrades: true,
|
|
60
|
+
autoApproveOptions: {
|
|
61
|
+
allowedUsernames: ["dependabot[bot]"],
|
|
62
|
+
label: "auto-approve",
|
|
63
|
+
secret: "GITHUB_TOKEN",
|
|
64
|
+
},
|
|
65
|
+
githubOptions: {
|
|
66
|
+
pullRequestLintOptions: {
|
|
67
|
+
semanticTitleOptions: {
|
|
68
|
+
types: [
|
|
69
|
+
"build",
|
|
70
|
+
"chore",
|
|
71
|
+
"ci",
|
|
72
|
+
"docs",
|
|
73
|
+
"feat",
|
|
74
|
+
"fix",
|
|
75
|
+
"perf",
|
|
76
|
+
"refactor",
|
|
77
|
+
"revert",
|
|
78
|
+
"style",
|
|
79
|
+
"test",
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
46
84
|
});
|
|
47
85
|
|
|
48
|
-
|
|
86
|
+
new Recommended(project, {
|
|
49
87
|
cSpellOptions: { language: "en-GB", ignorePaths: ["docs"] },
|
|
50
88
|
});
|
|
51
89
|
|
|
52
|
-
new CodeOfConduct(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
);
|
|
90
|
+
new CodeOfConduct(project, { contactMethod: "tom@mountain-pass.com.au" });
|
|
91
|
+
|
|
92
|
+
gitHubber.addToProject(project);
|
|
93
|
+
npmReleaser.addToProject(project);
|
|
94
|
+
organisational.addToProject(project);
|
|
57
95
|
|
|
58
96
|
project.synth();
|
package/package.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"default": "npx projen default",
|
|
14
14
|
"eject": "npx projen eject",
|
|
15
15
|
"eslint": "npx projen eslint",
|
|
16
|
+
"eslint:json": "npx projen eslint:json",
|
|
16
17
|
"package": "npx projen package",
|
|
17
18
|
"post-compile": "npx projen post-compile",
|
|
18
19
|
"post-upgrade": "npx projen post-upgrade",
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@commitlint/cli": "^17.0.2",
|
|
39
40
|
"@commitlint/config-conventional": "^17.0.2",
|
|
40
|
-
"@mountainpass/cool-bits-for-projen": "^0.
|
|
41
|
+
"@mountainpass/cool-bits-for-projen": "^0.2.4",
|
|
41
42
|
"@types/http-status-codes": "^1.2.0",
|
|
42
43
|
"@types/jest": "^27.4.1",
|
|
43
44
|
"@types/node": "^14",
|
|
@@ -50,6 +51,8 @@
|
|
|
50
51
|
"eslint-import-resolver-typescript": "^2.7.1",
|
|
51
52
|
"eslint-plugin-import": "^2.26.0",
|
|
52
53
|
"eslint-plugin-jsdoc": "^39.3.2",
|
|
54
|
+
"eslint-plugin-jsonc": "^2.3.0",
|
|
55
|
+
"eslint-plugin-no-secrets": "^0.8.9",
|
|
53
56
|
"eslint-plugin-prettier": "^4.0.0",
|
|
54
57
|
"eslint-plugin-unicorn": "^42.0.0",
|
|
55
58
|
"http-status-codes": "^2.2.0",
|
|
@@ -59,10 +62,10 @@
|
|
|
59
62
|
"json-schema": "^0.4.0",
|
|
60
63
|
"npm-check-updates": "^12",
|
|
61
64
|
"prettier": "^2.6.2",
|
|
62
|
-
"projen": "^0.
|
|
65
|
+
"projen": "^0.58.15",
|
|
63
66
|
"standard-version": "^9",
|
|
64
67
|
"ts-jest": "^27",
|
|
65
|
-
"ts-node": "^
|
|
68
|
+
"ts-node": "^10.8.0",
|
|
66
69
|
"typescript": "^4.6.3"
|
|
67
70
|
},
|
|
68
71
|
"keywords": [
|
|
@@ -75,11 +78,19 @@
|
|
|
75
78
|
"publishConfig": {
|
|
76
79
|
"access": "public"
|
|
77
80
|
},
|
|
78
|
-
"version": "0.0.
|
|
81
|
+
"version": "0.0.45",
|
|
79
82
|
"bugs": {
|
|
80
83
|
"url": "https://github.com/mountain-pass/problem-document/issues"
|
|
81
84
|
},
|
|
82
85
|
"jest": {
|
|
86
|
+
"coverageThreshold": {
|
|
87
|
+
"global": {
|
|
88
|
+
"branches": 100,
|
|
89
|
+
"functions": 100,
|
|
90
|
+
"lines": 100,
|
|
91
|
+
"statements": 100
|
|
92
|
+
}
|
|
93
|
+
},
|
|
83
94
|
"testMatch": [
|
|
84
95
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|
|
85
96
|
"<rootDir>/(test|src)/**/?(*.)+(spec|test).ts?(x)"
|