@checkdigit/eslint-plugin 7.0.0-PR.88-26f3 → 7.0.0-PR.88-a0ce
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/dist-cjs/index.cjs +8386 -6909
- package/dist-cjs/metafile.json +104 -18
- package/dist-mjs/no-wallaby-comment.mjs +8 -7
- package/package.json +1 -1
- package/src/no-wallaby-comment.ts +8 -6
package/dist-cjs/metafile.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"inputs": {
|
|
3
3
|
"package.json": {
|
|
4
|
-
"bytes":
|
|
4
|
+
"bytes": 2979,
|
|
5
5
|
"imports": [],
|
|
6
6
|
"format": "esm",
|
|
7
7
|
"with": {
|
|
@@ -406,7 +406,7 @@
|
|
|
406
406
|
"imports": [],
|
|
407
407
|
"format": "cjs"
|
|
408
408
|
},
|
|
409
|
-
"node_modules/brace-expansion/index.js": {
|
|
409
|
+
"node_modules/eslint/node_modules/brace-expansion/index.js": {
|
|
410
410
|
"bytes": 4903,
|
|
411
411
|
"imports": [
|
|
412
412
|
{
|
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
],
|
|
423
423
|
"format": "cjs"
|
|
424
424
|
},
|
|
425
|
-
"node_modules/minimatch/minimatch.js": {
|
|
425
|
+
"node_modules/eslint/node_modules/minimatch/minimatch.js": {
|
|
426
426
|
"bytes": 26377,
|
|
427
427
|
"imports": [
|
|
428
428
|
{
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
"external": true
|
|
432
432
|
},
|
|
433
433
|
{
|
|
434
|
-
"path": "node_modules/brace-expansion/index.js",
|
|
434
|
+
"path": "node_modules/eslint/node_modules/brace-expansion/index.js",
|
|
435
435
|
"kind": "require-call",
|
|
436
436
|
"original": "brace-expansion"
|
|
437
437
|
}
|
|
@@ -601,6 +601,38 @@
|
|
|
601
601
|
"imports": [],
|
|
602
602
|
"format": "cjs"
|
|
603
603
|
},
|
|
604
|
+
"node_modules/@eslint/eslintrc/node_modules/brace-expansion/index.js": {
|
|
605
|
+
"bytes": 4903,
|
|
606
|
+
"imports": [
|
|
607
|
+
{
|
|
608
|
+
"path": "node_modules/concat-map/index.js",
|
|
609
|
+
"kind": "require-call",
|
|
610
|
+
"original": "concat-map"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"path": "node_modules/balanced-match/index.js",
|
|
614
|
+
"kind": "require-call",
|
|
615
|
+
"original": "balanced-match"
|
|
616
|
+
}
|
|
617
|
+
],
|
|
618
|
+
"format": "cjs"
|
|
619
|
+
},
|
|
620
|
+
"node_modules/@eslint/eslintrc/node_modules/minimatch/minimatch.js": {
|
|
621
|
+
"bytes": 26377,
|
|
622
|
+
"imports": [
|
|
623
|
+
{
|
|
624
|
+
"path": "path",
|
|
625
|
+
"kind": "require-call",
|
|
626
|
+
"external": true
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"path": "node_modules/@eslint/eslintrc/node_modules/brace-expansion/index.js",
|
|
630
|
+
"kind": "require-call",
|
|
631
|
+
"original": "brace-expansion"
|
|
632
|
+
}
|
|
633
|
+
],
|
|
634
|
+
"format": "cjs"
|
|
635
|
+
},
|
|
604
636
|
"node_modules/uri-js/dist/es5/uri.all.js": {
|
|
605
637
|
"bytes": 57415,
|
|
606
638
|
"imports": [],
|
|
@@ -1225,7 +1257,7 @@
|
|
|
1225
1257
|
"external": true
|
|
1226
1258
|
},
|
|
1227
1259
|
{
|
|
1228
|
-
"path": "node_modules/minimatch/minimatch.js",
|
|
1260
|
+
"path": "node_modules/@eslint/eslintrc/node_modules/minimatch/minimatch.js",
|
|
1229
1261
|
"kind": "require-call",
|
|
1230
1262
|
"original": "minimatch"
|
|
1231
1263
|
},
|
|
@@ -1307,7 +1339,7 @@
|
|
|
1307
1339
|
"original": "escape-string-regexp"
|
|
1308
1340
|
},
|
|
1309
1341
|
{
|
|
1310
|
-
"path": "node_modules/minimatch/minimatch.js",
|
|
1342
|
+
"path": "node_modules/eslint/node_modules/minimatch/minimatch.js",
|
|
1311
1343
|
"kind": "require-call",
|
|
1312
1344
|
"original": "minimatch"
|
|
1313
1345
|
},
|
|
@@ -6564,6 +6596,38 @@
|
|
|
6564
6596
|
"imports": [],
|
|
6565
6597
|
"format": "cjs"
|
|
6566
6598
|
},
|
|
6599
|
+
"node_modules/@eslint/config-array/node_modules/brace-expansion/index.js": {
|
|
6600
|
+
"bytes": 4903,
|
|
6601
|
+
"imports": [
|
|
6602
|
+
{
|
|
6603
|
+
"path": "node_modules/concat-map/index.js",
|
|
6604
|
+
"kind": "require-call",
|
|
6605
|
+
"original": "concat-map"
|
|
6606
|
+
},
|
|
6607
|
+
{
|
|
6608
|
+
"path": "node_modules/balanced-match/index.js",
|
|
6609
|
+
"kind": "require-call",
|
|
6610
|
+
"original": "balanced-match"
|
|
6611
|
+
}
|
|
6612
|
+
],
|
|
6613
|
+
"format": "cjs"
|
|
6614
|
+
},
|
|
6615
|
+
"node_modules/@eslint/config-array/node_modules/minimatch/minimatch.js": {
|
|
6616
|
+
"bytes": 26377,
|
|
6617
|
+
"imports": [
|
|
6618
|
+
{
|
|
6619
|
+
"path": "path",
|
|
6620
|
+
"kind": "require-call",
|
|
6621
|
+
"external": true
|
|
6622
|
+
},
|
|
6623
|
+
{
|
|
6624
|
+
"path": "node_modules/@eslint/config-array/node_modules/brace-expansion/index.js",
|
|
6625
|
+
"kind": "require-call",
|
|
6626
|
+
"original": "brace-expansion"
|
|
6627
|
+
}
|
|
6628
|
+
],
|
|
6629
|
+
"format": "cjs"
|
|
6630
|
+
},
|
|
6567
6631
|
"node_modules/@eslint/object-schema/dist/cjs/index.cjs": {
|
|
6568
6632
|
"bytes": 12030,
|
|
6569
6633
|
"imports": [],
|
|
@@ -6578,7 +6642,7 @@
|
|
|
6578
6642
|
"external": true
|
|
6579
6643
|
},
|
|
6580
6644
|
{
|
|
6581
|
-
"path": "node_modules/minimatch/minimatch.js",
|
|
6645
|
+
"path": "node_modules/@eslint/config-array/node_modules/minimatch/minimatch.js",
|
|
6582
6646
|
"kind": "require-call",
|
|
6583
6647
|
"original": "minimatch"
|
|
6584
6648
|
},
|
|
@@ -7107,7 +7171,7 @@
|
|
|
7107
7171
|
"original": "../cli-engine/hash"
|
|
7108
7172
|
},
|
|
7109
7173
|
{
|
|
7110
|
-
"path": "node_modules/minimatch/minimatch.js",
|
|
7174
|
+
"path": "node_modules/eslint/node_modules/minimatch/minimatch.js",
|
|
7111
7175
|
"kind": "require-call",
|
|
7112
7176
|
"original": "minimatch"
|
|
7113
7177
|
},
|
|
@@ -11514,7 +11578,7 @@
|
|
|
11514
11578
|
"format": "esm"
|
|
11515
11579
|
},
|
|
11516
11580
|
"src/no-wallaby-comment.ts": {
|
|
11517
|
-
"bytes":
|
|
11581
|
+
"bytes": 3465,
|
|
11518
11582
|
"imports": [],
|
|
11519
11583
|
"format": "esm"
|
|
11520
11584
|
},
|
|
@@ -11673,6 +11737,11 @@
|
|
|
11673
11737
|
"kind": "require-call",
|
|
11674
11738
|
"external": true
|
|
11675
11739
|
},
|
|
11740
|
+
{
|
|
11741
|
+
"path": "path",
|
|
11742
|
+
"kind": "require-call",
|
|
11743
|
+
"external": true
|
|
11744
|
+
},
|
|
11676
11745
|
{
|
|
11677
11746
|
"path": "fs",
|
|
11678
11747
|
"kind": "require-call",
|
|
@@ -11758,6 +11827,11 @@
|
|
|
11758
11827
|
"kind": "require-call",
|
|
11759
11828
|
"external": true
|
|
11760
11829
|
},
|
|
11830
|
+
{
|
|
11831
|
+
"path": "path",
|
|
11832
|
+
"kind": "require-call",
|
|
11833
|
+
"external": true
|
|
11834
|
+
},
|
|
11761
11835
|
{
|
|
11762
11836
|
"path": "node:path",
|
|
11763
11837
|
"kind": "require-call",
|
|
@@ -12107,11 +12181,11 @@
|
|
|
12107
12181
|
"node_modules/balanced-match/index.js": {
|
|
12108
12182
|
"bytesInOutput": 1544
|
|
12109
12183
|
},
|
|
12110
|
-
"node_modules/brace-expansion/index.js": {
|
|
12111
|
-
"bytesInOutput":
|
|
12184
|
+
"node_modules/eslint/node_modules/brace-expansion/index.js": {
|
|
12185
|
+
"bytesInOutput": 4583
|
|
12112
12186
|
},
|
|
12113
|
-
"node_modules/minimatch/minimatch.js": {
|
|
12114
|
-
"bytesInOutput":
|
|
12187
|
+
"node_modules/eslint/node_modules/minimatch/minimatch.js": {
|
|
12188
|
+
"bytesInOutput": 18253
|
|
12115
12189
|
},
|
|
12116
12190
|
"node_modules/ms/index.js": {
|
|
12117
12191
|
"bytesInOutput": 2883
|
|
@@ -12152,6 +12226,12 @@
|
|
|
12152
12226
|
"node_modules/ignore/index.js": {
|
|
12153
12227
|
"bytesInOutput": 13557
|
|
12154
12228
|
},
|
|
12229
|
+
"node_modules/@eslint/eslintrc/node_modules/brace-expansion/index.js": {
|
|
12230
|
+
"bytesInOutput": 4594
|
|
12231
|
+
},
|
|
12232
|
+
"node_modules/@eslint/eslintrc/node_modules/minimatch/minimatch.js": {
|
|
12233
|
+
"bytesInOutput": 18265
|
|
12234
|
+
},
|
|
12155
12235
|
"node_modules/uri-js/dist/es5/uri.all.js": {
|
|
12156
12236
|
"bytesInOutput": 49108
|
|
12157
12237
|
},
|
|
@@ -12297,7 +12377,7 @@
|
|
|
12297
12377
|
"bytesInOutput": 157
|
|
12298
12378
|
},
|
|
12299
12379
|
"node_modules/@eslint/eslintrc/dist/eslintrc.cjs": {
|
|
12300
|
-
"bytesInOutput":
|
|
12380
|
+
"bytesInOutput": 104228
|
|
12301
12381
|
},
|
|
12302
12382
|
"node_modules/@eslint/js/src/configs/eslint-all.js": {
|
|
12303
12383
|
"bytesInOutput": 7489
|
|
@@ -13421,11 +13501,17 @@
|
|
|
13421
13501
|
"node_modules/eslint/lib/config/flat-config-helpers.js": {
|
|
13422
13502
|
"bytesInOutput": 1786
|
|
13423
13503
|
},
|
|
13504
|
+
"node_modules/@eslint/config-array/node_modules/brace-expansion/index.js": {
|
|
13505
|
+
"bytesInOutput": 4598
|
|
13506
|
+
},
|
|
13507
|
+
"node_modules/@eslint/config-array/node_modules/minimatch/minimatch.js": {
|
|
13508
|
+
"bytesInOutput": 18269
|
|
13509
|
+
},
|
|
13424
13510
|
"node_modules/@eslint/object-schema/dist/cjs/index.cjs": {
|
|
13425
13511
|
"bytesInOutput": 11472
|
|
13426
13512
|
},
|
|
13427
13513
|
"node_modules/@eslint/config-array/dist/cjs/index.cjs": {
|
|
13428
|
-
"bytesInOutput":
|
|
13514
|
+
"bytesInOutput": 26163
|
|
13429
13515
|
},
|
|
13430
13516
|
"node_modules/eslint/lib/shared/severity.js": {
|
|
13431
13517
|
"bytesInOutput": 928
|
|
@@ -14109,7 +14195,7 @@
|
|
|
14109
14195
|
"bytesInOutput": 2307
|
|
14110
14196
|
},
|
|
14111
14197
|
"package.json": {
|
|
14112
|
-
"bytesInOutput":
|
|
14198
|
+
"bytesInOutput": 3085
|
|
14113
14199
|
},
|
|
14114
14200
|
"src/get-documentation-url.ts": {
|
|
14115
14201
|
"bytesInOutput": 146
|
|
@@ -14145,7 +14231,7 @@
|
|
|
14145
14231
|
"bytesInOutput": 2251
|
|
14146
14232
|
},
|
|
14147
14233
|
"src/no-wallaby-comment.ts": {
|
|
14148
|
-
"bytesInOutput":
|
|
14234
|
+
"bytesInOutput": 3032
|
|
14149
14235
|
},
|
|
14150
14236
|
"src/object-literal-response.ts": {
|
|
14151
14237
|
"bytesInOutput": 3718
|
|
@@ -14160,7 +14246,7 @@
|
|
|
14160
14246
|
"bytesInOutput": 3362
|
|
14161
14247
|
}
|
|
14162
14248
|
},
|
|
14163
|
-
"bytes":
|
|
14249
|
+
"bytes": 3750711
|
|
14164
14250
|
}
|
|
14165
14251
|
}
|
|
14166
14252
|
}
|
|
@@ -31,12 +31,13 @@ function processBlockComment(context, sourceCode, comment) {
|
|
|
31
31
|
let startLine = comment.loc?.start.line ?? 0;
|
|
32
32
|
const endLine = comment.loc?.end.line ?? 0;
|
|
33
33
|
let match;
|
|
34
|
+
let start;
|
|
35
|
+
let end;
|
|
34
36
|
while (comment.loc && (match = wallabyRegex.exec(commentValue)) !== null) {
|
|
35
37
|
const removeEntireComment = blockCommentRegex.test(comment.value.trim());
|
|
36
38
|
if (removeEntireComment) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
removeWallabyComment(context, sourceCode, start, end);
|
|
39
|
+
start = sourceCode.getIndexFromLoc({ line: comment.loc.start.line, column: comment.loc.start.column });
|
|
40
|
+
end = sourceCode.getIndexFromLoc({ line: comment.loc.end.line, column: comment.loc.end.column });
|
|
40
41
|
} else {
|
|
41
42
|
let lineNumber = 0;
|
|
42
43
|
while (startLine <= endLine) {
|
|
@@ -47,10 +48,10 @@ function processBlockComment(context, sourceCode, comment) {
|
|
|
47
48
|
}
|
|
48
49
|
startLine++;
|
|
49
50
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
removeWallabyComment(context, sourceCode, start, end);
|
|
51
|
+
start = sourceCode.getIndexFromLoc({ line: lineNumber + 1, column: comment.loc.start.column });
|
|
52
|
+
end = sourceCode.getIndexFromLoc({ line: lineNumber + 2, column: 0 });
|
|
53
53
|
}
|
|
54
|
+
removeWallabyComment(context, sourceCode, start, end);
|
|
54
55
|
}
|
|
55
56
|
});
|
|
56
57
|
}
|
|
@@ -79,4 +80,4 @@ var no_wallaby_comment_default = {
|
|
|
79
80
|
export {
|
|
80
81
|
no_wallaby_comment_default as default
|
|
81
82
|
};
|
|
82
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
83
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vc3JjL25vLXdhbGxhYnktY29tbWVudC50cyJdLAogICJtYXBwaW5ncyI6ICI7QUFXQSxJQUFNLGVBQWU7QUFDckIsSUFBTSxlQUFlO0FBQ3JCLFNBQVMscUJBQXFCLFNBQTJCLFlBQXdCLE9BQWUsS0FBbUI7QUFDakgsVUFBUSxPQUFPO0FBQUEsSUFDYix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UFBLE1BQ0YsS0FBSztBQUFBLElBQ1A7QUFBQSxJQUNBLFNBQVM7QUFBQSxFQUNYO0FBQUEsRUFDQSxPQUFPLFNBQTJCO0FBQ2hDLFVBQU0sYUFBYSxRQUFRO0FBQzNCLFVBQU0sV0FBVyxXQUFXLGVBQWU7QUFDM0MsYUFBUyxRQUFRLENBQUMsWUFBWTtBQUM1QixVQUFJLFFBQVEsU0FBUyxRQUFRO0FBQzNCLDJCQUFtQixTQUFTLFlBQVksT0FBTztBQUFBLE1BQ2pELE9BQU87QUFDTCw0QkFBb0IsU0FBUyxZQUFZLE9BQU87QUFBQSxNQUNsRDtBQUFBLElBQ0YsQ0FBQztBQUVELFdBQU8sQ0FBQztBQUFBLEVBQ1Y7QUFDRjsiLAogICJuYW1lcyI6IFtdCn0K
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@checkdigit/eslint-plugin","version":"7.0.0-PR.88-
|
|
1
|
+
{"name":"@checkdigit/eslint-plugin","version":"7.0.0-PR.88-a0ce","description":"Check Digit eslint plugins","keywords":["eslint","eslintplugin"],"homepage":"https://github.com/checkdigit/eslint-plugin#readme","bugs":{"url":"https://github.com/checkdigit/eslint-plugin/issues"},"repository":{"type":"git","url":"https://github.com/checkdigit/eslint-plugin"},"license":"MIT","author":"Check Digit, LLC","sideEffects":false,"type":"module","exports":{".":{"types":"./dist-types/index.d.ts","require":"./dist-cjs/index.cjs","import":"./dist-mjs/index.mjs","default":"./dist-mjs/index.mjs"}},"files":["src","dist-types","dist-cjs","dist-mjs","!src/**/*.test.ts","!src/**/*.spec.ts","!dist-types/**/*.test.d.ts","!dist-types/**/*.spec.d.ts","!dist-cjs/**/*.test.cjs","!dist-cjs/**/*.spec.cjs","!dist-mjs/**/*.test.mjs","!dist-mjs/**/*.spec.mjs","SECURITY.md"],"scripts":{"build:dist-cjs":"rimraf dist-cjs && npx builder --type=commonjs --sourceMap --entryPoint=index.ts --outDir=dist-cjs --outFile=index.cjs --external=espree && echo \"module.exports = module.exports.default;\" >> dist-cjs/index.cjs && node dist-cjs/index.cjs","build:dist-mjs":"rimraf dist-mjs && npx builder --type=module --sourceMap --outDir=dist-mjs && node dist-mjs/index.mjs","build:dist-types":"rimraf dist-types && npx builder --type=types --outDir=dist-types","ci:compile":"tsc --noEmit","ci:coverage":"NODE_OPTIONS=\"--disable-warning ExperimentalWarning --experimental-vm-modules\" jest --coverage=true","ci:lint":"npm run lint","ci:style":"npm run prettier","ci:test":"NODE_OPTIONS=\"--disable-warning ExperimentalWarning --experimental-vm-modules\" jest --coverage=false","lint":"eslint --max-warnings 0 .","lint:fix":"eslint . --fix","prepublishOnly":"npm run build:dist-types && npm run build:dist-cjs && npm run build:dist-mjs","prettier":"prettier --ignore-path .gitignore --list-different .","prettier:fix":"prettier --ignore-path .gitignore --write .","test":"npm run ci:compile && npm run ci:test && npm run ci:lint && npm run ci:style"},"prettier":"@checkdigit/prettier-config","jest":{"preset":"@checkdigit/jest-config"},"dependencies":{"@typescript-eslint/type-utils":"^8.8.1","@typescript-eslint/utils":"^8.8.1","ts-api-utils":"^1.3.0"},"devDependencies":{"@checkdigit/jest-config":"^6.0.2","@checkdigit/prettier-config":"^5.5.1","@checkdigit/typescript-config":"6.0.0","@eslint/js":"^9.12.0","@types/eslint":"^9.6.1","@types/eslint-config-prettier":"^6.11.3","@typescript-eslint/parser":"^8.8.1","@typescript-eslint/rule-tester":"^8.8.1","eslint":"^9.12.0","eslint-config-prettier":"^9.1.0","eslint-import-resolver-typescript":"^3.6.3","eslint-plugin-eslint-plugin":"^6.2.0","eslint-plugin-import":"^2.31.0","eslint-plugin-no-only-tests":"^3.3.0","eslint-plugin-no-secrets":"^1.0.2","eslint-plugin-node":"^11.1.0","eslint-plugin-sonarjs":"1.0.4","http-status-codes":"^2.3.0","rimraf":"^6.0.1","typescript-eslint":"^8.8.1"},"peerDependencies":{"eslint":">=9 <10"},"engines":{"node":">=20.14"}}
|
|
@@ -43,12 +43,14 @@ function processBlockComment(context: Rule.RuleContext, sourceCode: SourceCode,
|
|
|
43
43
|
let startLine = comment.loc?.start.line ?? 0;
|
|
44
44
|
const endLine = comment.loc?.end.line ?? 0;
|
|
45
45
|
let match;
|
|
46
|
+
|
|
47
|
+
let start;
|
|
48
|
+
let end;
|
|
46
49
|
while (comment.loc && (match = wallabyRegex.exec(commentValue)) !== null) {
|
|
47
50
|
const removeEntireComment = blockCommentRegex.test(comment.value.trim());
|
|
48
51
|
if (removeEntireComment) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
removeWallabyComment(context, sourceCode, start, end);
|
|
52
|
+
start = sourceCode.getIndexFromLoc({ line: comment.loc.start.line, column: comment.loc.start.column });
|
|
53
|
+
end = sourceCode.getIndexFromLoc({ line: comment.loc.end.line, column: comment.loc.end.column });
|
|
52
54
|
} else {
|
|
53
55
|
let lineNumber = 0;
|
|
54
56
|
while (startLine <= endLine) {
|
|
@@ -59,10 +61,10 @@ function processBlockComment(context: Rule.RuleContext, sourceCode: SourceCode,
|
|
|
59
61
|
}
|
|
60
62
|
startLine++;
|
|
61
63
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
removeWallabyComment(context, sourceCode, start, end);
|
|
64
|
+
start = sourceCode.getIndexFromLoc({ line: lineNumber + 1, column: comment.loc.start.column });
|
|
65
|
+
end = sourceCode.getIndexFromLoc({ line: lineNumber + 2, column: 0 });
|
|
65
66
|
}
|
|
67
|
+
removeWallabyComment(context, sourceCode, start, end);
|
|
66
68
|
}
|
|
67
69
|
});
|
|
68
70
|
}
|