@saasmakers/eslint 0.2.5 → 0.2.7
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/chunks/formatters.cjs +248 -0
- package/dist/chunks/formatters.mjs +246 -0
- package/dist/chunks/import.cjs +53 -0
- package/dist/chunks/import.mjs +51 -0
- package/dist/chunks/index.cjs +120 -0
- package/dist/chunks/index.mjs +101 -0
- package/dist/chunks/index2.cjs +880 -0
- package/dist/chunks/index2.mjs +868 -0
- package/dist/chunks/index3.cjs +982 -0
- package/dist/chunks/index3.mjs +979 -0
- package/dist/chunks/index4.cjs +12099 -0
- package/dist/chunks/index4.mjs +12077 -0
- package/dist/chunks/jsdoc.cjs +38398 -0
- package/dist/chunks/jsdoc.mjs +38391 -0
- package/dist/chunks/regexp.cjs +18518 -0
- package/dist/chunks/regexp.mjs +18511 -0
- package/dist/chunks/stylistic.cjs +23935 -0
- package/dist/chunks/stylistic.mjs +23932 -0
- package/dist/chunks/typescript.cjs +56168 -0
- package/dist/chunks/typescript.mjs +56154 -0
- package/dist/chunks/unicorn.cjs +82775 -0
- package/dist/chunks/unicorn.mjs +82764 -0
- package/dist/chunks/vue.cjs +96233 -0
- package/dist/chunks/vue.mjs +96220 -0
- package/dist/eslint.config.cjs +19 -10874
- package/dist/eslint.config.d.cts +3900 -18
- package/dist/eslint.config.d.mts +3900 -18
- package/dist/eslint.config.d.ts +3900 -18
- package/dist/eslint.config.mjs +18 -10852
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.mjs +1 -1
- package/dist/shared/eslint.05nu4VbT.mjs +9 -0
- package/dist/shared/eslint.07qTxm9w.mjs +3352 -0
- package/dist/shared/eslint.6MAvpL4q.cjs +2141 -0
- package/dist/shared/{eslint.CohBuu1-.mjs → eslint.B3ywQ3NK.mjs} +157 -331
- package/dist/shared/eslint.BGpVg2tt.cjs +13 -0
- package/dist/shared/eslint.BL4sYiVQ.cjs +820 -0
- package/dist/shared/eslint.BOOP2x9L.cjs +67 -0
- package/dist/shared/eslint.Bf7aat-e.mjs +10 -0
- package/dist/shared/eslint.Bh1W2iVQ.cjs +37181 -0
- package/dist/shared/eslint.Bl69eiyD.cjs +7073 -0
- package/dist/shared/eslint.BtkqW7nC.mjs +818 -0
- package/dist/shared/eslint.C12_M0Cw.cjs +9 -0
- package/dist/shared/eslint.CMfxPSSy.cjs +14 -0
- package/dist/shared/eslint.COweQ1RR.mjs +5 -0
- package/dist/shared/eslint.CUi9znUC.mjs +13 -0
- package/dist/shared/eslint.Cg6Ty7p7.mjs +2699 -0
- package/dist/shared/eslint.CxAZpd0w.cjs +3365 -0
- package/dist/shared/eslint.CyJA7jO6.cjs +3813 -0
- package/dist/shared/eslint.DDD2xc4l.cjs +25 -0
- package/dist/shared/eslint.DI7QBrVD.mjs +6 -0
- package/dist/shared/eslint.DUamuDzp.cjs +7 -0
- package/dist/shared/eslint.DV_fpPxQ.mjs +3805 -0
- package/dist/shared/{eslint.DhFjwkxh.cjs → eslint.Dhg0jKDi.cjs} +167 -330
- package/dist/shared/eslint.Difk5awg.mjs +2139 -0
- package/dist/shared/eslint.Dlgr3LGM.mjs +7070 -0
- package/dist/shared/eslint.DoYGbUIG.cjs +2724 -0
- package/dist/shared/eslint.Dprsk9zl.mjs +65 -0
- package/dist/shared/eslint.DuJbNenz.mjs +37140 -0
- package/dist/shared/eslint.MfgVmFE7.cjs +3054 -0
- package/dist/shared/eslint.W7RM7aEw.mjs +3052 -0
- package/package.json +2 -1
|
@@ -10,6 +10,39 @@ const require$$1__default = /*#__PURE__*/_interopDefaultCompat(require$$1);
|
|
|
10
10
|
|
|
11
11
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
12
12
|
|
|
13
|
+
function getDefaultExportFromCjs (x) {
|
|
14
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function getAugmentedNamespace(n) {
|
|
18
|
+
if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
|
|
19
|
+
var f = n.default;
|
|
20
|
+
if (typeof f == "function") {
|
|
21
|
+
var a = function a () {
|
|
22
|
+
var isInstance = false;
|
|
23
|
+
try {
|
|
24
|
+
isInstance = this instanceof a;
|
|
25
|
+
} catch {}
|
|
26
|
+
if (isInstance) {
|
|
27
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
28
|
+
}
|
|
29
|
+
return f.apply(this, arguments);
|
|
30
|
+
};
|
|
31
|
+
a.prototype = f.prototype;
|
|
32
|
+
} else a = {};
|
|
33
|
+
Object.defineProperty(a, '__esModule', {value: true});
|
|
34
|
+
Object.keys(n).forEach(function (k) {
|
|
35
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
36
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return n[k];
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
return a;
|
|
44
|
+
}
|
|
45
|
+
|
|
13
46
|
var dist$3 = {};
|
|
14
47
|
|
|
15
48
|
var astUtils = {};
|
|
@@ -4078,7 +4111,9 @@ function requireGetParserServices () {
|
|
|
4078
4111
|
const ERROR_MESSAGE_REQUIRES_PARSER_SERVICES = "You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file. See https://tseslint.com/typed-linting for enabling linting with type information.";
|
|
4079
4112
|
const ERROR_MESSAGE_UNKNOWN_PARSER = 'Note: detected a parser other than @typescript-eslint/parser. Make sure the parser is configured to forward "parserOptions.project" to @typescript-eslint/parser.';
|
|
4080
4113
|
function getParserServices$1(context, allowWithoutFullTypeInformation = false) {
|
|
4081
|
-
const parser =
|
|
4114
|
+
const parser =
|
|
4115
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8
|
|
4116
|
+
context.parserPath || context.languageOptions.parser?.meta?.name;
|
|
4082
4117
|
// This check is unnecessary if the user is using the latest version of our parser.
|
|
4083
4118
|
//
|
|
4084
4119
|
// However the world isn't perfect:
|
|
@@ -4506,309 +4541,100 @@ function requireEslintVisitorKeys () {
|
|
|
4506
4541
|
* @type {VisitorKeys}
|
|
4507
4542
|
*/
|
|
4508
4543
|
const KEYS = {
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
"expression"
|
|
4604
|
-
],
|
|
4605
|
-
ForInStatement: [
|
|
4606
|
-
"left",
|
|
4607
|
-
"right",
|
|
4608
|
-
"body"
|
|
4609
|
-
],
|
|
4610
|
-
ForOfStatement: [
|
|
4611
|
-
"left",
|
|
4612
|
-
"right",
|
|
4613
|
-
"body"
|
|
4614
|
-
],
|
|
4615
|
-
ForStatement: [
|
|
4616
|
-
"init",
|
|
4617
|
-
"test",
|
|
4618
|
-
"update",
|
|
4619
|
-
"body"
|
|
4620
|
-
],
|
|
4621
|
-
FunctionDeclaration: [
|
|
4622
|
-
"id",
|
|
4623
|
-
"params",
|
|
4624
|
-
"body"
|
|
4625
|
-
],
|
|
4626
|
-
FunctionExpression: [
|
|
4627
|
-
"id",
|
|
4628
|
-
"params",
|
|
4629
|
-
"body"
|
|
4630
|
-
],
|
|
4631
|
-
Identifier: [],
|
|
4632
|
-
IfStatement: [
|
|
4633
|
-
"test",
|
|
4634
|
-
"consequent",
|
|
4635
|
-
"alternate"
|
|
4636
|
-
],
|
|
4637
|
-
ImportAttribute: [
|
|
4638
|
-
"key",
|
|
4639
|
-
"value"
|
|
4640
|
-
],
|
|
4641
|
-
ImportDeclaration: [
|
|
4642
|
-
"specifiers",
|
|
4643
|
-
"source",
|
|
4644
|
-
"attributes"
|
|
4645
|
-
],
|
|
4646
|
-
ImportDefaultSpecifier: [
|
|
4647
|
-
"local"
|
|
4648
|
-
],
|
|
4649
|
-
ImportExpression: [
|
|
4650
|
-
"source",
|
|
4651
|
-
"options"
|
|
4652
|
-
],
|
|
4653
|
-
ImportNamespaceSpecifier: [
|
|
4654
|
-
"local"
|
|
4655
|
-
],
|
|
4656
|
-
ImportSpecifier: [
|
|
4657
|
-
"imported",
|
|
4658
|
-
"local"
|
|
4659
|
-
],
|
|
4660
|
-
JSXAttribute: [
|
|
4661
|
-
"name",
|
|
4662
|
-
"value"
|
|
4663
|
-
],
|
|
4664
|
-
JSXClosingElement: [
|
|
4665
|
-
"name"
|
|
4666
|
-
],
|
|
4667
|
-
JSXClosingFragment: [],
|
|
4668
|
-
JSXElement: [
|
|
4669
|
-
"openingElement",
|
|
4670
|
-
"children",
|
|
4671
|
-
"closingElement"
|
|
4672
|
-
],
|
|
4673
|
-
JSXEmptyExpression: [],
|
|
4674
|
-
JSXExpressionContainer: [
|
|
4675
|
-
"expression"
|
|
4676
|
-
],
|
|
4677
|
-
JSXFragment: [
|
|
4678
|
-
"openingFragment",
|
|
4679
|
-
"children",
|
|
4680
|
-
"closingFragment"
|
|
4681
|
-
],
|
|
4682
|
-
JSXIdentifier: [],
|
|
4683
|
-
JSXMemberExpression: [
|
|
4684
|
-
"object",
|
|
4685
|
-
"property"
|
|
4686
|
-
],
|
|
4687
|
-
JSXNamespacedName: [
|
|
4688
|
-
"namespace",
|
|
4689
|
-
"name"
|
|
4690
|
-
],
|
|
4691
|
-
JSXOpeningElement: [
|
|
4692
|
-
"name",
|
|
4693
|
-
"attributes"
|
|
4694
|
-
],
|
|
4695
|
-
JSXOpeningFragment: [],
|
|
4696
|
-
JSXSpreadAttribute: [
|
|
4697
|
-
"argument"
|
|
4698
|
-
],
|
|
4699
|
-
JSXSpreadChild: [
|
|
4700
|
-
"expression"
|
|
4701
|
-
],
|
|
4702
|
-
JSXText: [],
|
|
4703
|
-
LabeledStatement: [
|
|
4704
|
-
"label",
|
|
4705
|
-
"body"
|
|
4706
|
-
],
|
|
4707
|
-
Literal: [],
|
|
4708
|
-
LogicalExpression: [
|
|
4709
|
-
"left",
|
|
4710
|
-
"right"
|
|
4711
|
-
],
|
|
4712
|
-
MemberExpression: [
|
|
4713
|
-
"object",
|
|
4714
|
-
"property"
|
|
4715
|
-
],
|
|
4716
|
-
MetaProperty: [
|
|
4717
|
-
"meta",
|
|
4718
|
-
"property"
|
|
4719
|
-
],
|
|
4720
|
-
MethodDefinition: [
|
|
4721
|
-
"key",
|
|
4722
|
-
"value"
|
|
4723
|
-
],
|
|
4724
|
-
NewExpression: [
|
|
4725
|
-
"callee",
|
|
4726
|
-
"arguments"
|
|
4727
|
-
],
|
|
4728
|
-
ObjectExpression: [
|
|
4729
|
-
"properties"
|
|
4730
|
-
],
|
|
4731
|
-
ObjectPattern: [
|
|
4732
|
-
"properties"
|
|
4733
|
-
],
|
|
4734
|
-
PrivateIdentifier: [],
|
|
4735
|
-
Program: [
|
|
4736
|
-
"body"
|
|
4737
|
-
],
|
|
4738
|
-
Property: [
|
|
4739
|
-
"key",
|
|
4740
|
-
"value"
|
|
4741
|
-
],
|
|
4742
|
-
PropertyDefinition: [
|
|
4743
|
-
"key",
|
|
4744
|
-
"value"
|
|
4745
|
-
],
|
|
4746
|
-
RestElement: [
|
|
4747
|
-
"argument"
|
|
4748
|
-
],
|
|
4749
|
-
ReturnStatement: [
|
|
4750
|
-
"argument"
|
|
4751
|
-
],
|
|
4752
|
-
SequenceExpression: [
|
|
4753
|
-
"expressions"
|
|
4754
|
-
],
|
|
4755
|
-
SpreadElement: [
|
|
4756
|
-
"argument"
|
|
4757
|
-
],
|
|
4758
|
-
StaticBlock: [
|
|
4759
|
-
"body"
|
|
4760
|
-
],
|
|
4761
|
-
Super: [],
|
|
4762
|
-
SwitchCase: [
|
|
4763
|
-
"test",
|
|
4764
|
-
"consequent"
|
|
4765
|
-
],
|
|
4766
|
-
SwitchStatement: [
|
|
4767
|
-
"discriminant",
|
|
4768
|
-
"cases"
|
|
4769
|
-
],
|
|
4770
|
-
TaggedTemplateExpression: [
|
|
4771
|
-
"tag",
|
|
4772
|
-
"quasi"
|
|
4773
|
-
],
|
|
4774
|
-
TemplateElement: [],
|
|
4775
|
-
TemplateLiteral: [
|
|
4776
|
-
"quasis",
|
|
4777
|
-
"expressions"
|
|
4778
|
-
],
|
|
4779
|
-
ThisExpression: [],
|
|
4780
|
-
ThrowStatement: [
|
|
4781
|
-
"argument"
|
|
4782
|
-
],
|
|
4783
|
-
TryStatement: [
|
|
4784
|
-
"block",
|
|
4785
|
-
"handler",
|
|
4786
|
-
"finalizer"
|
|
4787
|
-
],
|
|
4788
|
-
UnaryExpression: [
|
|
4789
|
-
"argument"
|
|
4790
|
-
],
|
|
4791
|
-
UpdateExpression: [
|
|
4792
|
-
"argument"
|
|
4793
|
-
],
|
|
4794
|
-
VariableDeclaration: [
|
|
4795
|
-
"declarations"
|
|
4796
|
-
],
|
|
4797
|
-
VariableDeclarator: [
|
|
4798
|
-
"id",
|
|
4799
|
-
"init"
|
|
4800
|
-
],
|
|
4801
|
-
WhileStatement: [
|
|
4802
|
-
"test",
|
|
4803
|
-
"body"
|
|
4804
|
-
],
|
|
4805
|
-
WithStatement: [
|
|
4806
|
-
"object",
|
|
4807
|
-
"body"
|
|
4808
|
-
],
|
|
4809
|
-
YieldExpression: [
|
|
4810
|
-
"argument"
|
|
4811
|
-
]
|
|
4544
|
+
ArrayExpression: ["elements"],
|
|
4545
|
+
ArrayPattern: ["elements"],
|
|
4546
|
+
ArrowFunctionExpression: ["params", "body"],
|
|
4547
|
+
AssignmentExpression: ["left", "right"],
|
|
4548
|
+
AssignmentPattern: ["left", "right"],
|
|
4549
|
+
AwaitExpression: ["argument"],
|
|
4550
|
+
BinaryExpression: ["left", "right"],
|
|
4551
|
+
BlockStatement: ["body"],
|
|
4552
|
+
BreakStatement: ["label"],
|
|
4553
|
+
CallExpression: ["callee", "arguments"],
|
|
4554
|
+
CatchClause: ["param", "body"],
|
|
4555
|
+
ChainExpression: ["expression"],
|
|
4556
|
+
ClassBody: ["body"],
|
|
4557
|
+
ClassDeclaration: ["id", "superClass", "body"],
|
|
4558
|
+
ClassExpression: ["id", "superClass", "body"],
|
|
4559
|
+
ConditionalExpression: ["test", "consequent", "alternate"],
|
|
4560
|
+
ContinueStatement: ["label"],
|
|
4561
|
+
DebuggerStatement: [],
|
|
4562
|
+
DoWhileStatement: ["body", "test"],
|
|
4563
|
+
EmptyStatement: [],
|
|
4564
|
+
ExperimentalRestProperty: ["argument"],
|
|
4565
|
+
ExperimentalSpreadProperty: ["argument"],
|
|
4566
|
+
ExportAllDeclaration: ["exported", "source", "attributes"],
|
|
4567
|
+
ExportDefaultDeclaration: ["declaration"],
|
|
4568
|
+
ExportNamedDeclaration: [
|
|
4569
|
+
"declaration",
|
|
4570
|
+
"specifiers",
|
|
4571
|
+
"source",
|
|
4572
|
+
"attributes",
|
|
4573
|
+
],
|
|
4574
|
+
ExportSpecifier: ["local", "exported"],
|
|
4575
|
+
ExpressionStatement: ["expression"],
|
|
4576
|
+
ForInStatement: ["left", "right", "body"],
|
|
4577
|
+
ForOfStatement: ["left", "right", "body"],
|
|
4578
|
+
ForStatement: ["init", "test", "update", "body"],
|
|
4579
|
+
FunctionDeclaration: ["id", "params", "body"],
|
|
4580
|
+
FunctionExpression: ["id", "params", "body"],
|
|
4581
|
+
Identifier: [],
|
|
4582
|
+
IfStatement: ["test", "consequent", "alternate"],
|
|
4583
|
+
ImportAttribute: ["key", "value"],
|
|
4584
|
+
ImportDeclaration: ["specifiers", "source", "attributes"],
|
|
4585
|
+
ImportDefaultSpecifier: ["local"],
|
|
4586
|
+
ImportExpression: ["source", "options"],
|
|
4587
|
+
ImportNamespaceSpecifier: ["local"],
|
|
4588
|
+
ImportSpecifier: ["imported", "local"],
|
|
4589
|
+
JSXAttribute: ["name", "value"],
|
|
4590
|
+
JSXClosingElement: ["name"],
|
|
4591
|
+
JSXClosingFragment: [],
|
|
4592
|
+
JSXElement: ["openingElement", "children", "closingElement"],
|
|
4593
|
+
JSXEmptyExpression: [],
|
|
4594
|
+
JSXExpressionContainer: ["expression"],
|
|
4595
|
+
JSXFragment: ["openingFragment", "children", "closingFragment"],
|
|
4596
|
+
JSXIdentifier: [],
|
|
4597
|
+
JSXMemberExpression: ["object", "property"],
|
|
4598
|
+
JSXNamespacedName: ["namespace", "name"],
|
|
4599
|
+
JSXOpeningElement: ["name", "attributes"],
|
|
4600
|
+
JSXOpeningFragment: [],
|
|
4601
|
+
JSXSpreadAttribute: ["argument"],
|
|
4602
|
+
JSXSpreadChild: ["expression"],
|
|
4603
|
+
JSXText: [],
|
|
4604
|
+
LabeledStatement: ["label", "body"],
|
|
4605
|
+
Literal: [],
|
|
4606
|
+
LogicalExpression: ["left", "right"],
|
|
4607
|
+
MemberExpression: ["object", "property"],
|
|
4608
|
+
MetaProperty: ["meta", "property"],
|
|
4609
|
+
MethodDefinition: ["key", "value"],
|
|
4610
|
+
NewExpression: ["callee", "arguments"],
|
|
4611
|
+
ObjectExpression: ["properties"],
|
|
4612
|
+
ObjectPattern: ["properties"],
|
|
4613
|
+
PrivateIdentifier: [],
|
|
4614
|
+
Program: ["body"],
|
|
4615
|
+
Property: ["key", "value"],
|
|
4616
|
+
PropertyDefinition: ["key", "value"],
|
|
4617
|
+
RestElement: ["argument"],
|
|
4618
|
+
ReturnStatement: ["argument"],
|
|
4619
|
+
SequenceExpression: ["expressions"],
|
|
4620
|
+
SpreadElement: ["argument"],
|
|
4621
|
+
StaticBlock: ["body"],
|
|
4622
|
+
Super: [],
|
|
4623
|
+
SwitchCase: ["test", "consequent"],
|
|
4624
|
+
SwitchStatement: ["discriminant", "cases"],
|
|
4625
|
+
TaggedTemplateExpression: ["tag", "quasi"],
|
|
4626
|
+
TemplateElement: [],
|
|
4627
|
+
TemplateLiteral: ["quasis", "expressions"],
|
|
4628
|
+
ThisExpression: [],
|
|
4629
|
+
ThrowStatement: ["argument"],
|
|
4630
|
+
TryStatement: ["block", "handler", "finalizer"],
|
|
4631
|
+
UnaryExpression: ["argument"],
|
|
4632
|
+
UpdateExpression: ["argument"],
|
|
4633
|
+
VariableDeclaration: ["declarations"],
|
|
4634
|
+
VariableDeclarator: ["id", "init"],
|
|
4635
|
+
WhileStatement: ["test", "body"],
|
|
4636
|
+
WithStatement: ["object", "body"],
|
|
4637
|
+
YieldExpression: ["argument"],
|
|
4812
4638
|
};
|
|
4813
4639
|
|
|
4814
4640
|
// Types.
|
|
@@ -4816,7 +4642,7 @@ function requireEslintVisitorKeys () {
|
|
|
4816
4642
|
|
|
4817
4643
|
// Freeze the keys.
|
|
4818
4644
|
for (const type of NODE_TYPES) {
|
|
4819
|
-
|
|
4645
|
+
Object.freeze(KEYS[type]);
|
|
4820
4646
|
}
|
|
4821
4647
|
Object.freeze(KEYS);
|
|
4822
4648
|
|
|
@@ -4831,9 +4657,9 @@ function requireEslintVisitorKeys () {
|
|
|
4831
4657
|
|
|
4832
4658
|
// List to ignore keys.
|
|
4833
4659
|
const KEY_BLACKLIST = new Set([
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4660
|
+
"parent",
|
|
4661
|
+
"leadingComments",
|
|
4662
|
+
"trailingComments",
|
|
4837
4663
|
]);
|
|
4838
4664
|
|
|
4839
4665
|
/**
|
|
@@ -4842,10 +4668,9 @@ function requireEslintVisitorKeys () {
|
|
|
4842
4668
|
* @returns {boolean} `true` if the key should be used.
|
|
4843
4669
|
*/
|
|
4844
4670
|
function filterKey(key) {
|
|
4845
|
-
|
|
4671
|
+
return !KEY_BLACKLIST.has(key) && key[0] !== "_";
|
|
4846
4672
|
}
|
|
4847
4673
|
|
|
4848
|
-
|
|
4849
4674
|
/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`.
|
|
4850
4675
|
TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed
|
|
4851
4676
|
*/
|
|
@@ -4855,7 +4680,7 @@ function requireEslintVisitorKeys () {
|
|
|
4855
4680
|
* @returns {readonly string[]} Visitor keys of the node.
|
|
4856
4681
|
*/
|
|
4857
4682
|
function getKeys(node) {
|
|
4858
|
-
|
|
4683
|
+
return Object.keys(node).filter(filterKey);
|
|
4859
4684
|
}
|
|
4860
4685
|
/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly` */
|
|
4861
4686
|
|
|
@@ -4865,24 +4690,25 @@ function requireEslintVisitorKeys () {
|
|
|
4865
4690
|
* @returns {VisitorKeys} The union set.
|
|
4866
4691
|
*/
|
|
4867
4692
|
function unionWith(additionalKeys) {
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4693
|
+
const retv =
|
|
4694
|
+
/** @type {{ [type: string]: ReadonlyArray<string> }} */
|
|
4695
|
+
(Object.assign({}, KEYS));
|
|
4696
|
+
|
|
4697
|
+
for (const type of Object.keys(additionalKeys)) {
|
|
4698
|
+
if (Object.hasOwn(retv, type)) {
|
|
4699
|
+
const keys = new Set(additionalKeys[type]);
|
|
4700
|
+
|
|
4701
|
+
for (const key of retv[type]) {
|
|
4702
|
+
keys.add(key);
|
|
4703
|
+
}
|
|
4704
|
+
|
|
4705
|
+
retv[type] = Object.freeze(Array.from(keys));
|
|
4706
|
+
} else {
|
|
4707
|
+
retv[type] = Object.freeze(Array.from(additionalKeys[type]));
|
|
4708
|
+
}
|
|
4709
|
+
}
|
|
4884
4710
|
|
|
4885
|
-
|
|
4711
|
+
return Object.freeze(retv);
|
|
4886
4712
|
}
|
|
4887
4713
|
|
|
4888
4714
|
eslintVisitorKeys.KEYS = KEYS;
|
|
@@ -4898,7 +4724,7 @@ function requireGetKeys () {
|
|
|
4898
4724
|
hasRequiredGetKeys = 1;
|
|
4899
4725
|
Object.defineProperty(getKeys, "__esModule", { value: true });
|
|
4900
4726
|
getKeys.getKeys = void 0;
|
|
4901
|
-
const eslint_visitor_keys_1 = requireEslintVisitorKeys();
|
|
4727
|
+
const eslint_visitor_keys_1 = /*@__PURE__*/ requireEslintVisitorKeys();
|
|
4902
4728
|
getKeys.getKeys = eslint_visitor_keys_1.getKeys;
|
|
4903
4729
|
return getKeys;
|
|
4904
4730
|
}
|
|
@@ -4945,7 +4771,7 @@ function requireVisitorKeys () {
|
|
|
4945
4771
|
})();
|
|
4946
4772
|
Object.defineProperty(visitorKeys, "__esModule", { value: true });
|
|
4947
4773
|
visitorKeys.visitorKeys = void 0;
|
|
4948
|
-
const eslintVisitorKeys = __importStar(requireEslintVisitorKeys());
|
|
4774
|
+
const eslintVisitorKeys = __importStar(/*@__PURE__*/ requireEslintVisitorKeys());
|
|
4949
4775
|
/*
|
|
4950
4776
|
********************************** IMPORTANT NOTE ********************************
|
|
4951
4777
|
* *
|
|
@@ -14107,4 +13933,15 @@ function requireDist () {
|
|
|
14107
13933
|
|
|
14108
13934
|
var distExports = requireDist();
|
|
14109
13935
|
|
|
13936
|
+
exports.commonjsGlobal = commonjsGlobal;
|
|
14110
13937
|
exports.distExports = distExports;
|
|
13938
|
+
exports.getAugmentedNamespace = getAugmentedNamespace;
|
|
13939
|
+
exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
13940
|
+
exports.requireAstUtils = requireAstUtils;
|
|
13941
|
+
exports.requireDist = requireDist$3;
|
|
13942
|
+
exports.requireDist$1 = requireDist$2;
|
|
13943
|
+
exports.requireDist$2 = requireDist$1;
|
|
13944
|
+
exports.requireDist$3 = requireDist;
|
|
13945
|
+
exports.requireEslintUtils = requireEslintUtils$2;
|
|
13946
|
+
exports.requireEslintUtils$1 = requireEslintUtils;
|
|
13947
|
+
exports.requireEslintVisitorKeys = requireEslintVisitorKeys;
|