@geonosis/lint-parity 2.6.1 → 2.7.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/CHANGELOG.md +10 -0
- package/dist/{chunk-JPGZG2HA.js → chunk-OQSXP7ZK.js} +5 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.js +1 -1
- package/dist/parity-cli.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @geonosis/lint-parity
|
|
2
2
|
|
|
3
|
+
## 2.7.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c13ade8: `manifestOf` leaves out a rule the plugin has retired (`meta.retired`). A retired id still resolves so
|
|
8
|
+
a config written before the retirement parses, and it reports nothing by design — so a corpus can
|
|
9
|
+
never be evidence about it. Listed in the manifest a plugin's corpus build writes, it read as reach NO
|
|
10
|
+
for ever in every consumer's report; the kit's own shipped manifest carried both retired ids until
|
|
11
|
+
this, 82 rules where the corpus is evidence about 80.
|
|
12
|
+
|
|
3
13
|
## 2.6.1
|
|
4
14
|
|
|
5
15
|
## 2.6.0
|
|
@@ -278,9 +278,13 @@ var ruleIdOf = (line) => {
|
|
|
278
278
|
return at === -1 ? token : `${token.slice(0, at)}/${token.slice(at + 1, -1)}`;
|
|
279
279
|
};
|
|
280
280
|
var MANIFEST_FILE = "manifest.json";
|
|
281
|
+
var isRetired = (rule) => {
|
|
282
|
+
const retired = rule?.meta?.retired;
|
|
283
|
+
return typeof retired === "object" && retired !== null;
|
|
284
|
+
};
|
|
281
285
|
var manifestOf = (plugin) => ({
|
|
282
286
|
plugin: plugin.meta.name,
|
|
283
|
-
rules: Object.
|
|
287
|
+
rules: Object.entries(plugin.rules).filter(([, rule]) => !isRetired(rule)).map(([rule]) => `${plugin.meta.name}/${rule}`).toSorted()
|
|
284
288
|
});
|
|
285
289
|
var namesRule = (claim, rule) => {
|
|
286
290
|
if (claim === rule) return true;
|
package/dist/index.d.ts
CHANGED
|
@@ -131,11 +131,6 @@ type CorpusManifest = {
|
|
|
131
131
|
plugin: string;
|
|
132
132
|
rules: string[];
|
|
133
133
|
};
|
|
134
|
-
/**
|
|
135
|
-
* The manifest for a plugin, off the plugin itself. A plugin's corpus build writes what this
|
|
136
|
-
* returns beside its copied fixture tree — derived, never hand-maintained, so a rule cannot be
|
|
137
|
-
* added to the plugin and forgotten in the list of what the corpus is evidence about.
|
|
138
|
-
*/
|
|
139
134
|
declare const manifestOf: (plugin: {
|
|
140
135
|
meta: {
|
|
141
136
|
name: string;
|
package/dist/index.js
CHANGED
package/dist/parity-cli.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geonosis/lint-parity",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"types": "./dist/index.d.ts",
|
|
5
5
|
"description": "Findings parity and rule reach over any two oxlint configs — the diff a fork is deleted on.",
|
|
6
6
|
"keywords": [
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@geonosis/ratchet": "2.
|
|
48
|
+
"@geonosis/ratchet": "2.7.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "tsup",
|