pr-checkmate 1.23.21 → 1.23.22
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/LICENSE +3 -3
- package/README.md +37 -7
- package/cspell.json +502 -1
- package/eslint.config.mjs +18 -0
- package/package.json +2 -2
- package/src/config/cspell.json +502 -1
package/eslint.config.mjs
CHANGED
|
@@ -100,6 +100,24 @@ const customIgnoresCount = (userConfig.eslint?.ignorePatterns || []).length;
|
|
|
100
100
|
if (customRulesCount > 0) {
|
|
101
101
|
console.error(`Applied ${customRulesCount} custom ESLint rules`);
|
|
102
102
|
}
|
|
103
|
+
|
|
104
|
+
// A `pr-checkmate.json` written by an older `init` contains a VERBATIM COPY of the
|
|
105
|
+
// bundled rule set — all of it, severities included. Client rules merge on top of
|
|
106
|
+
// the defaults, so that copy silently pins every severity forever: a repo in this
|
|
107
|
+
// state keeps failing on `prettier/prettier: error` long after the bundled default
|
|
108
|
+
// became `warn`, and nothing in the output says why. Detected by rule NAMES rather
|
|
109
|
+
// than values (nobody hand-writes exactly this list), and reported where the person
|
|
110
|
+
// reading a failed lint run will actually see it.
|
|
111
|
+
const defaultRuleNames = Object.keys(defaultRules);
|
|
112
|
+
const userRuleNames = Object.keys(userConfig.eslint?.rules || {});
|
|
113
|
+
if (defaultRuleNames.every(name => userRuleNames.includes(name))) {
|
|
114
|
+
console.error(
|
|
115
|
+
`⚠️ eslint.rules in pr-checkmate.json lists all ${defaultRuleNames.length} built-in rules — ` +
|
|
116
|
+
'a copy written by an older `init`. It overrides the bundled defaults, so updates to them ' +
|
|
117
|
+
'(formatting is advisory since 1.23.21) never reach this repo. Delete the block to track ' +
|
|
118
|
+
'the defaults again, or keep it to pin these severities deliberately.',
|
|
119
|
+
);
|
|
120
|
+
}
|
|
103
121
|
if (customIgnoresCount > 0) {
|
|
104
122
|
console.error(`🚫 Applied ${customIgnoresCount} custom ignore patterns`);
|
|
105
123
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pr-checkmate",
|
|
3
|
-
"version": "1.23.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.23.22",
|
|
4
|
+
"description": "Security-first PR gate for CI: secret scanning, grype dependency scanning, SBOM — plus linting and formatting across 11 languages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"github-actions",
|
|
7
7
|
"pull-request",
|