@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
|
@@ -3,6 +3,39 @@ import require$$1 from 'eslint/use-at-your-own-risk';
|
|
|
3
3
|
|
|
4
4
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
5
5
|
|
|
6
|
+
function getDefaultExportFromCjs (x) {
|
|
7
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function getAugmentedNamespace(n) {
|
|
11
|
+
if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
|
|
12
|
+
var f = n.default;
|
|
13
|
+
if (typeof f == "function") {
|
|
14
|
+
var a = function a () {
|
|
15
|
+
var isInstance = false;
|
|
16
|
+
try {
|
|
17
|
+
isInstance = this instanceof a;
|
|
18
|
+
} catch {}
|
|
19
|
+
if (isInstance) {
|
|
20
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
21
|
+
}
|
|
22
|
+
return f.apply(this, arguments);
|
|
23
|
+
};
|
|
24
|
+
a.prototype = f.prototype;
|
|
25
|
+
} else a = {};
|
|
26
|
+
Object.defineProperty(a, '__esModule', {value: true});
|
|
27
|
+
Object.keys(n).forEach(function (k) {
|
|
28
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
29
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () {
|
|
32
|
+
return n[k];
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
return a;
|
|
37
|
+
}
|
|
38
|
+
|
|
6
39
|
var dist$3 = {};
|
|
7
40
|
|
|
8
41
|
var astUtils = {};
|
|
@@ -4071,7 +4104,9 @@ function requireGetParserServices () {
|
|
|
4071
4104
|
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.";
|
|
4072
4105
|
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.';
|
|
4073
4106
|
function getParserServices$1(context, allowWithoutFullTypeInformation = false) {
|
|
4074
|
-
const parser =
|
|
4107
|
+
const parser =
|
|
4108
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated -- For compatibility with ESLint 8
|
|
4109
|
+
context.parserPath || context.languageOptions.parser?.meta?.name;
|
|
4075
4110
|
// This check is unnecessary if the user is using the latest version of our parser.
|
|
4076
4111
|
//
|
|
4077
4112
|
// However the world isn't perfect:
|
|
@@ -4499,309 +4534,100 @@ function requireEslintVisitorKeys () {
|
|
|
4499
4534
|
* @type {VisitorKeys}
|
|
4500
4535
|
*/
|
|
4501
4536
|
const KEYS = {
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
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
|
-
"expression"
|
|
4597
|
-
],
|
|
4598
|
-
ForInStatement: [
|
|
4599
|
-
"left",
|
|
4600
|
-
"right",
|
|
4601
|
-
"body"
|
|
4602
|
-
],
|
|
4603
|
-
ForOfStatement: [
|
|
4604
|
-
"left",
|
|
4605
|
-
"right",
|
|
4606
|
-
"body"
|
|
4607
|
-
],
|
|
4608
|
-
ForStatement: [
|
|
4609
|
-
"init",
|
|
4610
|
-
"test",
|
|
4611
|
-
"update",
|
|
4612
|
-
"body"
|
|
4613
|
-
],
|
|
4614
|
-
FunctionDeclaration: [
|
|
4615
|
-
"id",
|
|
4616
|
-
"params",
|
|
4617
|
-
"body"
|
|
4618
|
-
],
|
|
4619
|
-
FunctionExpression: [
|
|
4620
|
-
"id",
|
|
4621
|
-
"params",
|
|
4622
|
-
"body"
|
|
4623
|
-
],
|
|
4624
|
-
Identifier: [],
|
|
4625
|
-
IfStatement: [
|
|
4626
|
-
"test",
|
|
4627
|
-
"consequent",
|
|
4628
|
-
"alternate"
|
|
4629
|
-
],
|
|
4630
|
-
ImportAttribute: [
|
|
4631
|
-
"key",
|
|
4632
|
-
"value"
|
|
4633
|
-
],
|
|
4634
|
-
ImportDeclaration: [
|
|
4635
|
-
"specifiers",
|
|
4636
|
-
"source",
|
|
4637
|
-
"attributes"
|
|
4638
|
-
],
|
|
4639
|
-
ImportDefaultSpecifier: [
|
|
4640
|
-
"local"
|
|
4641
|
-
],
|
|
4642
|
-
ImportExpression: [
|
|
4643
|
-
"source",
|
|
4644
|
-
"options"
|
|
4645
|
-
],
|
|
4646
|
-
ImportNamespaceSpecifier: [
|
|
4647
|
-
"local"
|
|
4648
|
-
],
|
|
4649
|
-
ImportSpecifier: [
|
|
4650
|
-
"imported",
|
|
4651
|
-
"local"
|
|
4652
|
-
],
|
|
4653
|
-
JSXAttribute: [
|
|
4654
|
-
"name",
|
|
4655
|
-
"value"
|
|
4656
|
-
],
|
|
4657
|
-
JSXClosingElement: [
|
|
4658
|
-
"name"
|
|
4659
|
-
],
|
|
4660
|
-
JSXClosingFragment: [],
|
|
4661
|
-
JSXElement: [
|
|
4662
|
-
"openingElement",
|
|
4663
|
-
"children",
|
|
4664
|
-
"closingElement"
|
|
4665
|
-
],
|
|
4666
|
-
JSXEmptyExpression: [],
|
|
4667
|
-
JSXExpressionContainer: [
|
|
4668
|
-
"expression"
|
|
4669
|
-
],
|
|
4670
|
-
JSXFragment: [
|
|
4671
|
-
"openingFragment",
|
|
4672
|
-
"children",
|
|
4673
|
-
"closingFragment"
|
|
4674
|
-
],
|
|
4675
|
-
JSXIdentifier: [],
|
|
4676
|
-
JSXMemberExpression: [
|
|
4677
|
-
"object",
|
|
4678
|
-
"property"
|
|
4679
|
-
],
|
|
4680
|
-
JSXNamespacedName: [
|
|
4681
|
-
"namespace",
|
|
4682
|
-
"name"
|
|
4683
|
-
],
|
|
4684
|
-
JSXOpeningElement: [
|
|
4685
|
-
"name",
|
|
4686
|
-
"attributes"
|
|
4687
|
-
],
|
|
4688
|
-
JSXOpeningFragment: [],
|
|
4689
|
-
JSXSpreadAttribute: [
|
|
4690
|
-
"argument"
|
|
4691
|
-
],
|
|
4692
|
-
JSXSpreadChild: [
|
|
4693
|
-
"expression"
|
|
4694
|
-
],
|
|
4695
|
-
JSXText: [],
|
|
4696
|
-
LabeledStatement: [
|
|
4697
|
-
"label",
|
|
4698
|
-
"body"
|
|
4699
|
-
],
|
|
4700
|
-
Literal: [],
|
|
4701
|
-
LogicalExpression: [
|
|
4702
|
-
"left",
|
|
4703
|
-
"right"
|
|
4704
|
-
],
|
|
4705
|
-
MemberExpression: [
|
|
4706
|
-
"object",
|
|
4707
|
-
"property"
|
|
4708
|
-
],
|
|
4709
|
-
MetaProperty: [
|
|
4710
|
-
"meta",
|
|
4711
|
-
"property"
|
|
4712
|
-
],
|
|
4713
|
-
MethodDefinition: [
|
|
4714
|
-
"key",
|
|
4715
|
-
"value"
|
|
4716
|
-
],
|
|
4717
|
-
NewExpression: [
|
|
4718
|
-
"callee",
|
|
4719
|
-
"arguments"
|
|
4720
|
-
],
|
|
4721
|
-
ObjectExpression: [
|
|
4722
|
-
"properties"
|
|
4723
|
-
],
|
|
4724
|
-
ObjectPattern: [
|
|
4725
|
-
"properties"
|
|
4726
|
-
],
|
|
4727
|
-
PrivateIdentifier: [],
|
|
4728
|
-
Program: [
|
|
4729
|
-
"body"
|
|
4730
|
-
],
|
|
4731
|
-
Property: [
|
|
4732
|
-
"key",
|
|
4733
|
-
"value"
|
|
4734
|
-
],
|
|
4735
|
-
PropertyDefinition: [
|
|
4736
|
-
"key",
|
|
4737
|
-
"value"
|
|
4738
|
-
],
|
|
4739
|
-
RestElement: [
|
|
4740
|
-
"argument"
|
|
4741
|
-
],
|
|
4742
|
-
ReturnStatement: [
|
|
4743
|
-
"argument"
|
|
4744
|
-
],
|
|
4745
|
-
SequenceExpression: [
|
|
4746
|
-
"expressions"
|
|
4747
|
-
],
|
|
4748
|
-
SpreadElement: [
|
|
4749
|
-
"argument"
|
|
4750
|
-
],
|
|
4751
|
-
StaticBlock: [
|
|
4752
|
-
"body"
|
|
4753
|
-
],
|
|
4754
|
-
Super: [],
|
|
4755
|
-
SwitchCase: [
|
|
4756
|
-
"test",
|
|
4757
|
-
"consequent"
|
|
4758
|
-
],
|
|
4759
|
-
SwitchStatement: [
|
|
4760
|
-
"discriminant",
|
|
4761
|
-
"cases"
|
|
4762
|
-
],
|
|
4763
|
-
TaggedTemplateExpression: [
|
|
4764
|
-
"tag",
|
|
4765
|
-
"quasi"
|
|
4766
|
-
],
|
|
4767
|
-
TemplateElement: [],
|
|
4768
|
-
TemplateLiteral: [
|
|
4769
|
-
"quasis",
|
|
4770
|
-
"expressions"
|
|
4771
|
-
],
|
|
4772
|
-
ThisExpression: [],
|
|
4773
|
-
ThrowStatement: [
|
|
4774
|
-
"argument"
|
|
4775
|
-
],
|
|
4776
|
-
TryStatement: [
|
|
4777
|
-
"block",
|
|
4778
|
-
"handler",
|
|
4779
|
-
"finalizer"
|
|
4780
|
-
],
|
|
4781
|
-
UnaryExpression: [
|
|
4782
|
-
"argument"
|
|
4783
|
-
],
|
|
4784
|
-
UpdateExpression: [
|
|
4785
|
-
"argument"
|
|
4786
|
-
],
|
|
4787
|
-
VariableDeclaration: [
|
|
4788
|
-
"declarations"
|
|
4789
|
-
],
|
|
4790
|
-
VariableDeclarator: [
|
|
4791
|
-
"id",
|
|
4792
|
-
"init"
|
|
4793
|
-
],
|
|
4794
|
-
WhileStatement: [
|
|
4795
|
-
"test",
|
|
4796
|
-
"body"
|
|
4797
|
-
],
|
|
4798
|
-
WithStatement: [
|
|
4799
|
-
"object",
|
|
4800
|
-
"body"
|
|
4801
|
-
],
|
|
4802
|
-
YieldExpression: [
|
|
4803
|
-
"argument"
|
|
4804
|
-
]
|
|
4537
|
+
ArrayExpression: ["elements"],
|
|
4538
|
+
ArrayPattern: ["elements"],
|
|
4539
|
+
ArrowFunctionExpression: ["params", "body"],
|
|
4540
|
+
AssignmentExpression: ["left", "right"],
|
|
4541
|
+
AssignmentPattern: ["left", "right"],
|
|
4542
|
+
AwaitExpression: ["argument"],
|
|
4543
|
+
BinaryExpression: ["left", "right"],
|
|
4544
|
+
BlockStatement: ["body"],
|
|
4545
|
+
BreakStatement: ["label"],
|
|
4546
|
+
CallExpression: ["callee", "arguments"],
|
|
4547
|
+
CatchClause: ["param", "body"],
|
|
4548
|
+
ChainExpression: ["expression"],
|
|
4549
|
+
ClassBody: ["body"],
|
|
4550
|
+
ClassDeclaration: ["id", "superClass", "body"],
|
|
4551
|
+
ClassExpression: ["id", "superClass", "body"],
|
|
4552
|
+
ConditionalExpression: ["test", "consequent", "alternate"],
|
|
4553
|
+
ContinueStatement: ["label"],
|
|
4554
|
+
DebuggerStatement: [],
|
|
4555
|
+
DoWhileStatement: ["body", "test"],
|
|
4556
|
+
EmptyStatement: [],
|
|
4557
|
+
ExperimentalRestProperty: ["argument"],
|
|
4558
|
+
ExperimentalSpreadProperty: ["argument"],
|
|
4559
|
+
ExportAllDeclaration: ["exported", "source", "attributes"],
|
|
4560
|
+
ExportDefaultDeclaration: ["declaration"],
|
|
4561
|
+
ExportNamedDeclaration: [
|
|
4562
|
+
"declaration",
|
|
4563
|
+
"specifiers",
|
|
4564
|
+
"source",
|
|
4565
|
+
"attributes",
|
|
4566
|
+
],
|
|
4567
|
+
ExportSpecifier: ["local", "exported"],
|
|
4568
|
+
ExpressionStatement: ["expression"],
|
|
4569
|
+
ForInStatement: ["left", "right", "body"],
|
|
4570
|
+
ForOfStatement: ["left", "right", "body"],
|
|
4571
|
+
ForStatement: ["init", "test", "update", "body"],
|
|
4572
|
+
FunctionDeclaration: ["id", "params", "body"],
|
|
4573
|
+
FunctionExpression: ["id", "params", "body"],
|
|
4574
|
+
Identifier: [],
|
|
4575
|
+
IfStatement: ["test", "consequent", "alternate"],
|
|
4576
|
+
ImportAttribute: ["key", "value"],
|
|
4577
|
+
ImportDeclaration: ["specifiers", "source", "attributes"],
|
|
4578
|
+
ImportDefaultSpecifier: ["local"],
|
|
4579
|
+
ImportExpression: ["source", "options"],
|
|
4580
|
+
ImportNamespaceSpecifier: ["local"],
|
|
4581
|
+
ImportSpecifier: ["imported", "local"],
|
|
4582
|
+
JSXAttribute: ["name", "value"],
|
|
4583
|
+
JSXClosingElement: ["name"],
|
|
4584
|
+
JSXClosingFragment: [],
|
|
4585
|
+
JSXElement: ["openingElement", "children", "closingElement"],
|
|
4586
|
+
JSXEmptyExpression: [],
|
|
4587
|
+
JSXExpressionContainer: ["expression"],
|
|
4588
|
+
JSXFragment: ["openingFragment", "children", "closingFragment"],
|
|
4589
|
+
JSXIdentifier: [],
|
|
4590
|
+
JSXMemberExpression: ["object", "property"],
|
|
4591
|
+
JSXNamespacedName: ["namespace", "name"],
|
|
4592
|
+
JSXOpeningElement: ["name", "attributes"],
|
|
4593
|
+
JSXOpeningFragment: [],
|
|
4594
|
+
JSXSpreadAttribute: ["argument"],
|
|
4595
|
+
JSXSpreadChild: ["expression"],
|
|
4596
|
+
JSXText: [],
|
|
4597
|
+
LabeledStatement: ["label", "body"],
|
|
4598
|
+
Literal: [],
|
|
4599
|
+
LogicalExpression: ["left", "right"],
|
|
4600
|
+
MemberExpression: ["object", "property"],
|
|
4601
|
+
MetaProperty: ["meta", "property"],
|
|
4602
|
+
MethodDefinition: ["key", "value"],
|
|
4603
|
+
NewExpression: ["callee", "arguments"],
|
|
4604
|
+
ObjectExpression: ["properties"],
|
|
4605
|
+
ObjectPattern: ["properties"],
|
|
4606
|
+
PrivateIdentifier: [],
|
|
4607
|
+
Program: ["body"],
|
|
4608
|
+
Property: ["key", "value"],
|
|
4609
|
+
PropertyDefinition: ["key", "value"],
|
|
4610
|
+
RestElement: ["argument"],
|
|
4611
|
+
ReturnStatement: ["argument"],
|
|
4612
|
+
SequenceExpression: ["expressions"],
|
|
4613
|
+
SpreadElement: ["argument"],
|
|
4614
|
+
StaticBlock: ["body"],
|
|
4615
|
+
Super: [],
|
|
4616
|
+
SwitchCase: ["test", "consequent"],
|
|
4617
|
+
SwitchStatement: ["discriminant", "cases"],
|
|
4618
|
+
TaggedTemplateExpression: ["tag", "quasi"],
|
|
4619
|
+
TemplateElement: [],
|
|
4620
|
+
TemplateLiteral: ["quasis", "expressions"],
|
|
4621
|
+
ThisExpression: [],
|
|
4622
|
+
ThrowStatement: ["argument"],
|
|
4623
|
+
TryStatement: ["block", "handler", "finalizer"],
|
|
4624
|
+
UnaryExpression: ["argument"],
|
|
4625
|
+
UpdateExpression: ["argument"],
|
|
4626
|
+
VariableDeclaration: ["declarations"],
|
|
4627
|
+
VariableDeclarator: ["id", "init"],
|
|
4628
|
+
WhileStatement: ["test", "body"],
|
|
4629
|
+
WithStatement: ["object", "body"],
|
|
4630
|
+
YieldExpression: ["argument"],
|
|
4805
4631
|
};
|
|
4806
4632
|
|
|
4807
4633
|
// Types.
|
|
@@ -4809,7 +4635,7 @@ function requireEslintVisitorKeys () {
|
|
|
4809
4635
|
|
|
4810
4636
|
// Freeze the keys.
|
|
4811
4637
|
for (const type of NODE_TYPES) {
|
|
4812
|
-
|
|
4638
|
+
Object.freeze(KEYS[type]);
|
|
4813
4639
|
}
|
|
4814
4640
|
Object.freeze(KEYS);
|
|
4815
4641
|
|
|
@@ -4824,9 +4650,9 @@ function requireEslintVisitorKeys () {
|
|
|
4824
4650
|
|
|
4825
4651
|
// List to ignore keys.
|
|
4826
4652
|
const KEY_BLACKLIST = new Set([
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4653
|
+
"parent",
|
|
4654
|
+
"leadingComments",
|
|
4655
|
+
"trailingComments",
|
|
4830
4656
|
]);
|
|
4831
4657
|
|
|
4832
4658
|
/**
|
|
@@ -4835,10 +4661,9 @@ function requireEslintVisitorKeys () {
|
|
|
4835
4661
|
* @returns {boolean} `true` if the key should be used.
|
|
4836
4662
|
*/
|
|
4837
4663
|
function filterKey(key) {
|
|
4838
|
-
|
|
4664
|
+
return !KEY_BLACKLIST.has(key) && key[0] !== "_";
|
|
4839
4665
|
}
|
|
4840
4666
|
|
|
4841
|
-
|
|
4842
4667
|
/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`.
|
|
4843
4668
|
TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed
|
|
4844
4669
|
*/
|
|
@@ -4848,7 +4673,7 @@ function requireEslintVisitorKeys () {
|
|
|
4848
4673
|
* @returns {readonly string[]} Visitor keys of the node.
|
|
4849
4674
|
*/
|
|
4850
4675
|
function getKeys(node) {
|
|
4851
|
-
|
|
4676
|
+
return Object.keys(node).filter(filterKey);
|
|
4852
4677
|
}
|
|
4853
4678
|
/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly` */
|
|
4854
4679
|
|
|
@@ -4858,24 +4683,25 @@ function requireEslintVisitorKeys () {
|
|
|
4858
4683
|
* @returns {VisitorKeys} The union set.
|
|
4859
4684
|
*/
|
|
4860
4685
|
function unionWith(additionalKeys) {
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4686
|
+
const retv =
|
|
4687
|
+
/** @type {{ [type: string]: ReadonlyArray<string> }} */
|
|
4688
|
+
(Object.assign({}, KEYS));
|
|
4689
|
+
|
|
4690
|
+
for (const type of Object.keys(additionalKeys)) {
|
|
4691
|
+
if (Object.hasOwn(retv, type)) {
|
|
4692
|
+
const keys = new Set(additionalKeys[type]);
|
|
4693
|
+
|
|
4694
|
+
for (const key of retv[type]) {
|
|
4695
|
+
keys.add(key);
|
|
4696
|
+
}
|
|
4697
|
+
|
|
4698
|
+
retv[type] = Object.freeze(Array.from(keys));
|
|
4699
|
+
} else {
|
|
4700
|
+
retv[type] = Object.freeze(Array.from(additionalKeys[type]));
|
|
4701
|
+
}
|
|
4702
|
+
}
|
|
4877
4703
|
|
|
4878
|
-
|
|
4704
|
+
return Object.freeze(retv);
|
|
4879
4705
|
}
|
|
4880
4706
|
|
|
4881
4707
|
eslintVisitorKeys.KEYS = KEYS;
|
|
@@ -4891,7 +4717,7 @@ function requireGetKeys () {
|
|
|
4891
4717
|
hasRequiredGetKeys = 1;
|
|
4892
4718
|
Object.defineProperty(getKeys, "__esModule", { value: true });
|
|
4893
4719
|
getKeys.getKeys = void 0;
|
|
4894
|
-
const eslint_visitor_keys_1 = requireEslintVisitorKeys();
|
|
4720
|
+
const eslint_visitor_keys_1 = /*@__PURE__*/ requireEslintVisitorKeys();
|
|
4895
4721
|
getKeys.getKeys = eslint_visitor_keys_1.getKeys;
|
|
4896
4722
|
return getKeys;
|
|
4897
4723
|
}
|
|
@@ -4938,7 +4764,7 @@ function requireVisitorKeys () {
|
|
|
4938
4764
|
})();
|
|
4939
4765
|
Object.defineProperty(visitorKeys, "__esModule", { value: true });
|
|
4940
4766
|
visitorKeys.visitorKeys = void 0;
|
|
4941
|
-
const eslintVisitorKeys = __importStar(requireEslintVisitorKeys());
|
|
4767
|
+
const eslintVisitorKeys = __importStar(/*@__PURE__*/ requireEslintVisitorKeys());
|
|
4942
4768
|
/*
|
|
4943
4769
|
********************************** IMPORTANT NOTE ********************************
|
|
4944
4770
|
* *
|
|
@@ -14100,4 +13926,4 @@ function requireDist () {
|
|
|
14100
13926
|
|
|
14101
13927
|
var distExports = requireDist();
|
|
14102
13928
|
|
|
14103
|
-
export { distExports as d };
|
|
13929
|
+
export { getDefaultExportFromCjs as a, requireEslintUtils$2 as b, requireDist$2 as c, distExports as d, requireDist$1 as e, requireAstUtils as f, getAugmentedNamespace as g, requireDist as h, requireEslintUtils as i, commonjsGlobal as j, requireEslintVisitorKeys as k, requireDist$3 as r };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const Module = require('node:module');
|
|
4
|
+
|
|
5
|
+
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
6
|
+
const require$2 = Module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('shared/eslint.BGpVg2tt.cjs', document.baseURI).href)));
|
|
7
|
+
function __require$1() { return require$2("node:fs"); }
|
|
8
|
+
|
|
9
|
+
const require$1 = Module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('shared/eslint.BGpVg2tt.cjs', document.baseURI).href)));
|
|
10
|
+
function __require() { return require$1("node:path"); }
|
|
11
|
+
|
|
12
|
+
exports.__require = __require$1;
|
|
13
|
+
exports.__require$1 = __require;
|