eslint-plugin-use-agnostic 1.6.10 → 1.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/comments.config.json +46 -2
- package/comments.config.mjs +47 -3
- package/jscomments/jsdoc/comments.js +14 -2
- package/jscomments/jsdoc/composed-variables.js +2 -0
- package/library/_commons/utilities/helpers.js +21 -21
- package/library/_commons/utilities/walk-ast.js +6 -6
- package/library/agnostic20/_commons/constants/bases.js +57 -57
- package/library/agnostic20/_commons/utilities/flows.js +17 -17
- package/library/agnostic20/_commons/utilities/helpers.js +43 -43
- package/library/agnostic20/config.js +3 -3
- package/library/directive21/_commons/constants/bases.js +85 -85
- package/library/directive21/_commons/utilities/analyze-exports-re.js +3 -7
- package/library/directive21/_commons/utilities/flows.js +22 -52
- package/library/directive21/_commons/utilities/helpers.js +85 -85
- package/library/directive21/config.js +3 -3
- package/package.json +1 -1
- package/types/index.d.ts +100 -100
package/comments.config.json
CHANGED
|
@@ -25,6 +25,18 @@
|
|
|
25
25
|
"value": "Finds the `message` for the specific violation of \"resolved\" directives import rules based on `resolvedDirectives_blockedImports`.",
|
|
26
26
|
"key": "JSDOC#DEFINITIONS#FINDSPECIFICVIOLATIONMESSAGE"
|
|
27
27
|
},
|
|
28
|
+
"walkAST": {
|
|
29
|
+
"value": "Walks an AST with a given callback.",
|
|
30
|
+
"key": "JSDOC#DEFINITIONS#WALKAST"
|
|
31
|
+
},
|
|
32
|
+
"visitNode": {
|
|
33
|
+
"value": "Recursively visits an AST node with a given callback.",
|
|
34
|
+
"key": "JSDOC#DEFINITIONS#VISITNODE"
|
|
35
|
+
},
|
|
36
|
+
"analyzeExportsForReExports": {
|
|
37
|
+
"value": "Analyzes a source code's exports to detect re-exports.",
|
|
38
|
+
"key": "JSDOC#DEFINITIONS#ANALYZEEXPORTSFORREEXPORTS"
|
|
39
|
+
},
|
|
28
40
|
"agnostic20": {
|
|
29
41
|
"makeAgnostic20Config": {
|
|
30
42
|
"value": "Makes the agnostic20 config for the use-agnostic ESLint plugin.",
|
|
@@ -241,6 +253,30 @@
|
|
|
241
253
|
"value": "The ESLint `node` of the rule's current traversal.",
|
|
242
254
|
"key": "JSDOC#PARAMS#NODE"
|
|
243
255
|
},
|
|
256
|
+
"sourceCodeA": {
|
|
257
|
+
"value": "The `SourceCode` where the AST comes from.",
|
|
258
|
+
"key": "JSDOC#PARAMS#SOURCECODEA"
|
|
259
|
+
},
|
|
260
|
+
"callback": {
|
|
261
|
+
"value": "The callback that runs during the walk.",
|
|
262
|
+
"key": "JSDOC#PARAMS#CALLBACK"
|
|
263
|
+
},
|
|
264
|
+
"nodeB": {
|
|
265
|
+
"value": "The node being visited.",
|
|
266
|
+
"key": "JSDOC#PARAMS#NODEB"
|
|
267
|
+
},
|
|
268
|
+
"parent": {
|
|
269
|
+
"value": "The parent of the node being visited.",
|
|
270
|
+
"key": "JSDOC#PARAMS#PARENT"
|
|
271
|
+
},
|
|
272
|
+
"visitorKeys": {
|
|
273
|
+
"value": "The visitor keys of the node being visited.",
|
|
274
|
+
"key": "JSDOC#PARAMS#VISITORKEYS"
|
|
275
|
+
},
|
|
276
|
+
"sourceCodeB": {
|
|
277
|
+
"value": "The `SourceCode` to analyze.",
|
|
278
|
+
"key": "JSDOC#PARAMS#SOURCECODEB"
|
|
279
|
+
},
|
|
244
280
|
"agnostic20": {
|
|
245
281
|
"currentFileEffectiveDirective": {
|
|
246
282
|
"value": "The current file's effective directive.",
|
|
@@ -467,6 +503,10 @@
|
|
|
467
503
|
"value": "The corresponding `message`.",
|
|
468
504
|
"key": "JSDOC#RETURNS#FINDSPECIFICVIOLATIONMESSAGE"
|
|
469
505
|
},
|
|
506
|
+
"analyzeExportsForReExports": {
|
|
507
|
+
"value": "An object with the `reExportsWithSource` key tracking the direct re-exports from an imported source in an array and the `reExportsViaLocal` key tracking the indirect re-exports from an imported source in an array.",
|
|
508
|
+
"key": "JSDOC#RETURNS#ANALYZEEXPORTSFORREEXPORTS"
|
|
509
|
+
},
|
|
470
510
|
"agnostic20": {
|
|
471
511
|
"makeAgnostic20Config": {
|
|
472
512
|
"value": "The agnostic20 config's name as a key and its config as its value.",
|
|
@@ -555,7 +595,7 @@
|
|
|
555
595
|
"key": "JSDOC#RETURNS#DIRECTIVE21#GETCOMMENTEDDIRECTIVEFROMCURRENTMODULE"
|
|
556
596
|
},
|
|
557
597
|
"getCommentedDirectiveFromImportedModule": {
|
|
558
|
-
"value": "The commented directive, or lack thereof via `null`. Given the strictness of this architecture, the lack of a directive is considered a mistake. (Though rules may provide the opportunity to declare a default, and configs with preset defaults may become provided.)",
|
|
598
|
+
"value": "The commented directive, or lack thereof via `null`. Now also provides the obtained `SourceCode` object. Given the strictness of this architecture, the lack of a directive is considered a mistake. (Though rules may provide the opportunity to declare a default, and configs with preset defaults may become provided.)",
|
|
559
599
|
"key": "JSDOC#RETURNS#DIRECTIVE21#GETCOMMENTEDDIRECTIVEFROMIMPORTEDMODULE"
|
|
560
600
|
},
|
|
561
601
|
"getVerifiedCommentedDirective": {
|
|
@@ -587,7 +627,7 @@
|
|
|
587
627
|
"key": "JSDOC#RETURNS#DIRECTIVE21#CURRENTFILEFLOW"
|
|
588
628
|
},
|
|
589
629
|
"importedFileFlow": {
|
|
590
|
-
"value": "Either an object with `skip: true` to disregard or one with the non-null `importedFileCommentedDirective`.",
|
|
630
|
+
"value": "Either an object with `skip: true` to disregard or one with the non-null `importedFileCommentedDirective`. And now with the added results of `analyzeExportsForReExports`.",
|
|
591
631
|
"key": "JSDOC#RETURNS#DIRECTIVE21#IMPORTEDFILEFLOW"
|
|
592
632
|
},
|
|
593
633
|
"importsFlow": {
|
|
@@ -852,6 +892,10 @@
|
|
|
852
892
|
"ifcdPeriod": {
|
|
853
893
|
"value": "`importedFileCommentedDirective`.",
|
|
854
894
|
"key": "JSDOC#FORCOMPOSEDVARIABLES#IFCDPERIOD"
|
|
895
|
+
},
|
|
896
|
+
"analyzeExportsForReExportsResults": {
|
|
897
|
+
"value": "And now with the added results of `analyzeExportsForReExports`.",
|
|
898
|
+
"key": "JSDOC#FORCOMPOSEDVARIABLES#ANALYZEEXPORTSFORREEXPORTSRESULTS"
|
|
855
899
|
}
|
|
856
900
|
}
|
|
857
901
|
},
|