@saasmakers/eslint 0.2.10 → 1.0.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/dist/chunks/formatters.cjs +2 -2
- package/dist/chunks/formatters.mjs +2 -2
- package/dist/chunks/import.cjs +2 -2
- package/dist/chunks/import.mjs +2 -2
- package/dist/chunks/index4.cjs +4 -4
- package/dist/chunks/index4.mjs +4 -4
- package/dist/chunks/jsdoc.cjs +4 -4
- package/dist/chunks/jsdoc.mjs +4 -4
- package/dist/chunks/stylistic.cjs +4 -4
- package/dist/chunks/stylistic.mjs +4 -4
- package/dist/chunks/typescript.cjs +194 -194
- package/dist/chunks/typescript.mjs +5 -5
- package/dist/chunks/unicorn.cjs +1 -1
- package/dist/chunks/unicorn.mjs +1 -1
- package/dist/chunks/vue.cjs +7 -7
- package/dist/chunks/vue.mjs +5 -5
- package/dist/eslint.config.cjs +2 -2
- package/dist/eslint.config.d.cts +28 -19
- package/dist/eslint.config.d.mts +28 -19
- package/dist/eslint.config.d.ts +28 -19
- package/dist/eslint.config.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -6
- package/dist/index.d.mts +2 -6
- package/dist/index.d.ts +2 -6
- package/dist/index.mjs +1 -1
- package/dist/shared/{eslint.CMfxPSSy.cjs → eslint.7dipMixF.cjs} +2 -2
- package/dist/shared/{eslint.DV_fpPxQ.mjs → eslint.B6FFUbNC.mjs} +39 -30
- package/dist/shared/{eslint.C0Fwnzn4.mjs → eslint.BPSuZuNl.mjs} +7237 -7435
- package/dist/shared/{eslint.Bf7aat-e.mjs → eslint.BXzpdiiq.mjs} +2 -2
- package/dist/shared/{eslint.B3ywQ3NK.mjs → eslint.C6EaTeQZ.mjs} +328 -121
- package/dist/shared/{eslint.CyJA7jO6.cjs → eslint.DP_6nQqR.cjs} +39 -30
- package/dist/shared/{eslint.Dhg0jKDi.cjs → eslint.Dxl4X46J.cjs} +327 -127
- package/dist/shared/{eslint.B3vl7RFv.cjs → eslint.oAo1zUPJ.cjs} +7247 -7438
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as getDefaultExportFromCjs } from './eslint.
|
|
2
|
-
import { a as requireSemver, r as requireSrc } from './eslint.
|
|
1
|
+
import { a as getDefaultExportFromCjs } from './eslint.C6EaTeQZ.mjs';
|
|
2
|
+
import { a as requireSemver, r as requireSrc } from './eslint.B6FFUbNC.mjs';
|
|
3
3
|
|
|
4
4
|
var semverExports = requireSemver();
|
|
5
5
|
const semver = /*@__PURE__*/getDefaultExportFromCjs(semverExports);
|
|
@@ -4104,9 +4104,7 @@ function requireGetParserServices () {
|
|
|
4104
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.";
|
|
4105
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.';
|
|
4106
4106
|
function getParserServices$1(context, allowWithoutFullTypeInformation = false) {
|
|
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;
|
|
4107
|
+
const parser = context.parserPath || context.languageOptions.parser?.meta?.name;
|
|
4110
4108
|
// This check is unnecessary if the user is using the latest version of our parser.
|
|
4111
4109
|
//
|
|
4112
4110
|
// However the world isn't perfect:
|
|
@@ -4534,100 +4532,309 @@ function requireEslintVisitorKeys () {
|
|
|
4534
4532
|
* @type {VisitorKeys}
|
|
4535
4533
|
*/
|
|
4536
4534
|
const KEYS = {
|
|
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
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4535
|
+
ArrayExpression: [
|
|
4536
|
+
"elements"
|
|
4537
|
+
],
|
|
4538
|
+
ArrayPattern: [
|
|
4539
|
+
"elements"
|
|
4540
|
+
],
|
|
4541
|
+
ArrowFunctionExpression: [
|
|
4542
|
+
"params",
|
|
4543
|
+
"body"
|
|
4544
|
+
],
|
|
4545
|
+
AssignmentExpression: [
|
|
4546
|
+
"left",
|
|
4547
|
+
"right"
|
|
4548
|
+
],
|
|
4549
|
+
AssignmentPattern: [
|
|
4550
|
+
"left",
|
|
4551
|
+
"right"
|
|
4552
|
+
],
|
|
4553
|
+
AwaitExpression: [
|
|
4554
|
+
"argument"
|
|
4555
|
+
],
|
|
4556
|
+
BinaryExpression: [
|
|
4557
|
+
"left",
|
|
4558
|
+
"right"
|
|
4559
|
+
],
|
|
4560
|
+
BlockStatement: [
|
|
4561
|
+
"body"
|
|
4562
|
+
],
|
|
4563
|
+
BreakStatement: [
|
|
4564
|
+
"label"
|
|
4565
|
+
],
|
|
4566
|
+
CallExpression: [
|
|
4567
|
+
"callee",
|
|
4568
|
+
"arguments"
|
|
4569
|
+
],
|
|
4570
|
+
CatchClause: [
|
|
4571
|
+
"param",
|
|
4572
|
+
"body"
|
|
4573
|
+
],
|
|
4574
|
+
ChainExpression: [
|
|
4575
|
+
"expression"
|
|
4576
|
+
],
|
|
4577
|
+
ClassBody: [
|
|
4578
|
+
"body"
|
|
4579
|
+
],
|
|
4580
|
+
ClassDeclaration: [
|
|
4581
|
+
"id",
|
|
4582
|
+
"superClass",
|
|
4583
|
+
"body"
|
|
4584
|
+
],
|
|
4585
|
+
ClassExpression: [
|
|
4586
|
+
"id",
|
|
4587
|
+
"superClass",
|
|
4588
|
+
"body"
|
|
4589
|
+
],
|
|
4590
|
+
ConditionalExpression: [
|
|
4591
|
+
"test",
|
|
4592
|
+
"consequent",
|
|
4593
|
+
"alternate"
|
|
4594
|
+
],
|
|
4595
|
+
ContinueStatement: [
|
|
4596
|
+
"label"
|
|
4597
|
+
],
|
|
4598
|
+
DebuggerStatement: [],
|
|
4599
|
+
DoWhileStatement: [
|
|
4600
|
+
"body",
|
|
4601
|
+
"test"
|
|
4602
|
+
],
|
|
4603
|
+
EmptyStatement: [],
|
|
4604
|
+
ExperimentalRestProperty: [
|
|
4605
|
+
"argument"
|
|
4606
|
+
],
|
|
4607
|
+
ExperimentalSpreadProperty: [
|
|
4608
|
+
"argument"
|
|
4609
|
+
],
|
|
4610
|
+
ExportAllDeclaration: [
|
|
4611
|
+
"exported",
|
|
4612
|
+
"source",
|
|
4613
|
+
"attributes"
|
|
4614
|
+
],
|
|
4615
|
+
ExportDefaultDeclaration: [
|
|
4616
|
+
"declaration"
|
|
4617
|
+
],
|
|
4618
|
+
ExportNamedDeclaration: [
|
|
4619
|
+
"declaration",
|
|
4620
|
+
"specifiers",
|
|
4621
|
+
"source",
|
|
4622
|
+
"attributes"
|
|
4623
|
+
],
|
|
4624
|
+
ExportSpecifier: [
|
|
4625
|
+
"local",
|
|
4626
|
+
"exported"
|
|
4627
|
+
],
|
|
4628
|
+
ExpressionStatement: [
|
|
4629
|
+
"expression"
|
|
4630
|
+
],
|
|
4631
|
+
ForInStatement: [
|
|
4632
|
+
"left",
|
|
4633
|
+
"right",
|
|
4634
|
+
"body"
|
|
4635
|
+
],
|
|
4636
|
+
ForOfStatement: [
|
|
4637
|
+
"left",
|
|
4638
|
+
"right",
|
|
4639
|
+
"body"
|
|
4640
|
+
],
|
|
4641
|
+
ForStatement: [
|
|
4642
|
+
"init",
|
|
4643
|
+
"test",
|
|
4644
|
+
"update",
|
|
4645
|
+
"body"
|
|
4646
|
+
],
|
|
4647
|
+
FunctionDeclaration: [
|
|
4648
|
+
"id",
|
|
4649
|
+
"params",
|
|
4650
|
+
"body"
|
|
4651
|
+
],
|
|
4652
|
+
FunctionExpression: [
|
|
4653
|
+
"id",
|
|
4654
|
+
"params",
|
|
4655
|
+
"body"
|
|
4656
|
+
],
|
|
4657
|
+
Identifier: [],
|
|
4658
|
+
IfStatement: [
|
|
4659
|
+
"test",
|
|
4660
|
+
"consequent",
|
|
4661
|
+
"alternate"
|
|
4662
|
+
],
|
|
4663
|
+
ImportAttribute: [
|
|
4664
|
+
"key",
|
|
4665
|
+
"value"
|
|
4666
|
+
],
|
|
4667
|
+
ImportDeclaration: [
|
|
4668
|
+
"specifiers",
|
|
4669
|
+
"source",
|
|
4670
|
+
"attributes"
|
|
4671
|
+
],
|
|
4672
|
+
ImportDefaultSpecifier: [
|
|
4673
|
+
"local"
|
|
4674
|
+
],
|
|
4675
|
+
ImportExpression: [
|
|
4676
|
+
"source",
|
|
4677
|
+
"options"
|
|
4678
|
+
],
|
|
4679
|
+
ImportNamespaceSpecifier: [
|
|
4680
|
+
"local"
|
|
4681
|
+
],
|
|
4682
|
+
ImportSpecifier: [
|
|
4683
|
+
"imported",
|
|
4684
|
+
"local"
|
|
4685
|
+
],
|
|
4686
|
+
JSXAttribute: [
|
|
4687
|
+
"name",
|
|
4688
|
+
"value"
|
|
4689
|
+
],
|
|
4690
|
+
JSXClosingElement: [
|
|
4691
|
+
"name"
|
|
4692
|
+
],
|
|
4693
|
+
JSXClosingFragment: [],
|
|
4694
|
+
JSXElement: [
|
|
4695
|
+
"openingElement",
|
|
4696
|
+
"children",
|
|
4697
|
+
"closingElement"
|
|
4698
|
+
],
|
|
4699
|
+
JSXEmptyExpression: [],
|
|
4700
|
+
JSXExpressionContainer: [
|
|
4701
|
+
"expression"
|
|
4702
|
+
],
|
|
4703
|
+
JSXFragment: [
|
|
4704
|
+
"openingFragment",
|
|
4705
|
+
"children",
|
|
4706
|
+
"closingFragment"
|
|
4707
|
+
],
|
|
4708
|
+
JSXIdentifier: [],
|
|
4709
|
+
JSXMemberExpression: [
|
|
4710
|
+
"object",
|
|
4711
|
+
"property"
|
|
4712
|
+
],
|
|
4713
|
+
JSXNamespacedName: [
|
|
4714
|
+
"namespace",
|
|
4715
|
+
"name"
|
|
4716
|
+
],
|
|
4717
|
+
JSXOpeningElement: [
|
|
4718
|
+
"name",
|
|
4719
|
+
"attributes"
|
|
4720
|
+
],
|
|
4721
|
+
JSXOpeningFragment: [],
|
|
4722
|
+
JSXSpreadAttribute: [
|
|
4723
|
+
"argument"
|
|
4724
|
+
],
|
|
4725
|
+
JSXSpreadChild: [
|
|
4726
|
+
"expression"
|
|
4727
|
+
],
|
|
4728
|
+
JSXText: [],
|
|
4729
|
+
LabeledStatement: [
|
|
4730
|
+
"label",
|
|
4731
|
+
"body"
|
|
4732
|
+
],
|
|
4733
|
+
Literal: [],
|
|
4734
|
+
LogicalExpression: [
|
|
4735
|
+
"left",
|
|
4736
|
+
"right"
|
|
4737
|
+
],
|
|
4738
|
+
MemberExpression: [
|
|
4739
|
+
"object",
|
|
4740
|
+
"property"
|
|
4741
|
+
],
|
|
4742
|
+
MetaProperty: [
|
|
4743
|
+
"meta",
|
|
4744
|
+
"property"
|
|
4745
|
+
],
|
|
4746
|
+
MethodDefinition: [
|
|
4747
|
+
"key",
|
|
4748
|
+
"value"
|
|
4749
|
+
],
|
|
4750
|
+
NewExpression: [
|
|
4751
|
+
"callee",
|
|
4752
|
+
"arguments"
|
|
4753
|
+
],
|
|
4754
|
+
ObjectExpression: [
|
|
4755
|
+
"properties"
|
|
4756
|
+
],
|
|
4757
|
+
ObjectPattern: [
|
|
4758
|
+
"properties"
|
|
4759
|
+
],
|
|
4760
|
+
PrivateIdentifier: [],
|
|
4761
|
+
Program: [
|
|
4762
|
+
"body"
|
|
4763
|
+
],
|
|
4764
|
+
Property: [
|
|
4765
|
+
"key",
|
|
4766
|
+
"value"
|
|
4767
|
+
],
|
|
4768
|
+
PropertyDefinition: [
|
|
4769
|
+
"key",
|
|
4770
|
+
"value"
|
|
4771
|
+
],
|
|
4772
|
+
RestElement: [
|
|
4773
|
+
"argument"
|
|
4774
|
+
],
|
|
4775
|
+
ReturnStatement: [
|
|
4776
|
+
"argument"
|
|
4777
|
+
],
|
|
4778
|
+
SequenceExpression: [
|
|
4779
|
+
"expressions"
|
|
4780
|
+
],
|
|
4781
|
+
SpreadElement: [
|
|
4782
|
+
"argument"
|
|
4783
|
+
],
|
|
4784
|
+
StaticBlock: [
|
|
4785
|
+
"body"
|
|
4786
|
+
],
|
|
4787
|
+
Super: [],
|
|
4788
|
+
SwitchCase: [
|
|
4789
|
+
"test",
|
|
4790
|
+
"consequent"
|
|
4791
|
+
],
|
|
4792
|
+
SwitchStatement: [
|
|
4793
|
+
"discriminant",
|
|
4794
|
+
"cases"
|
|
4795
|
+
],
|
|
4796
|
+
TaggedTemplateExpression: [
|
|
4797
|
+
"tag",
|
|
4798
|
+
"quasi"
|
|
4799
|
+
],
|
|
4800
|
+
TemplateElement: [],
|
|
4801
|
+
TemplateLiteral: [
|
|
4802
|
+
"quasis",
|
|
4803
|
+
"expressions"
|
|
4804
|
+
],
|
|
4805
|
+
ThisExpression: [],
|
|
4806
|
+
ThrowStatement: [
|
|
4807
|
+
"argument"
|
|
4808
|
+
],
|
|
4809
|
+
TryStatement: [
|
|
4810
|
+
"block",
|
|
4811
|
+
"handler",
|
|
4812
|
+
"finalizer"
|
|
4813
|
+
],
|
|
4814
|
+
UnaryExpression: [
|
|
4815
|
+
"argument"
|
|
4816
|
+
],
|
|
4817
|
+
UpdateExpression: [
|
|
4818
|
+
"argument"
|
|
4819
|
+
],
|
|
4820
|
+
VariableDeclaration: [
|
|
4821
|
+
"declarations"
|
|
4822
|
+
],
|
|
4823
|
+
VariableDeclarator: [
|
|
4824
|
+
"id",
|
|
4825
|
+
"init"
|
|
4826
|
+
],
|
|
4827
|
+
WhileStatement: [
|
|
4828
|
+
"test",
|
|
4829
|
+
"body"
|
|
4830
|
+
],
|
|
4831
|
+
WithStatement: [
|
|
4832
|
+
"object",
|
|
4833
|
+
"body"
|
|
4834
|
+
],
|
|
4835
|
+
YieldExpression: [
|
|
4836
|
+
"argument"
|
|
4837
|
+
]
|
|
4631
4838
|
};
|
|
4632
4839
|
|
|
4633
4840
|
// Types.
|
|
@@ -4635,7 +4842,7 @@ function requireEslintVisitorKeys () {
|
|
|
4635
4842
|
|
|
4636
4843
|
// Freeze the keys.
|
|
4637
4844
|
for (const type of NODE_TYPES) {
|
|
4638
|
-
|
|
4845
|
+
Object.freeze(KEYS[type]);
|
|
4639
4846
|
}
|
|
4640
4847
|
Object.freeze(KEYS);
|
|
4641
4848
|
|
|
@@ -4650,9 +4857,9 @@ function requireEslintVisitorKeys () {
|
|
|
4650
4857
|
|
|
4651
4858
|
// List to ignore keys.
|
|
4652
4859
|
const KEY_BLACKLIST = new Set([
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4860
|
+
"parent",
|
|
4861
|
+
"leadingComments",
|
|
4862
|
+
"trailingComments"
|
|
4656
4863
|
]);
|
|
4657
4864
|
|
|
4658
4865
|
/**
|
|
@@ -4661,9 +4868,10 @@ function requireEslintVisitorKeys () {
|
|
|
4661
4868
|
* @returns {boolean} `true` if the key should be used.
|
|
4662
4869
|
*/
|
|
4663
4870
|
function filterKey(key) {
|
|
4664
|
-
|
|
4871
|
+
return !KEY_BLACKLIST.has(key) && key[0] !== "_";
|
|
4665
4872
|
}
|
|
4666
4873
|
|
|
4874
|
+
|
|
4667
4875
|
/* eslint-disable jsdoc/valid-types -- doesn't allow `readonly`.
|
|
4668
4876
|
TODO: remove eslint-disable when https://github.com/jsdoc-type-pratt-parser/jsdoc-type-pratt-parser/issues/164 is fixed
|
|
4669
4877
|
*/
|
|
@@ -4673,7 +4881,7 @@ function requireEslintVisitorKeys () {
|
|
|
4673
4881
|
* @returns {readonly string[]} Visitor keys of the node.
|
|
4674
4882
|
*/
|
|
4675
4883
|
function getKeys(node) {
|
|
4676
|
-
|
|
4884
|
+
return Object.keys(node).filter(filterKey);
|
|
4677
4885
|
}
|
|
4678
4886
|
/* eslint-enable jsdoc/valid-types -- doesn't allow `readonly` */
|
|
4679
4887
|
|
|
@@ -4683,25 +4891,24 @@ function requireEslintVisitorKeys () {
|
|
|
4683
4891
|
* @returns {VisitorKeys} The union set.
|
|
4684
4892
|
*/
|
|
4685
4893
|
function unionWith(additionalKeys) {
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
(Object.assign({}, KEYS));
|
|
4894
|
+
const retv = /** @type {{ [type: string]: ReadonlyArray<string> }} */
|
|
4895
|
+
(Object.assign({}, KEYS));
|
|
4689
4896
|
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4897
|
+
for (const type of Object.keys(additionalKeys)) {
|
|
4898
|
+
if (Object.hasOwn(retv, type)) {
|
|
4899
|
+
const keys = new Set(additionalKeys[type]);
|
|
4693
4900
|
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4901
|
+
for (const key of retv[type]) {
|
|
4902
|
+
keys.add(key);
|
|
4903
|
+
}
|
|
4697
4904
|
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4905
|
+
retv[type] = Object.freeze(Array.from(keys));
|
|
4906
|
+
} else {
|
|
4907
|
+
retv[type] = Object.freeze(Array.from(additionalKeys[type]));
|
|
4908
|
+
}
|
|
4909
|
+
}
|
|
4703
4910
|
|
|
4704
|
-
|
|
4911
|
+
return Object.freeze(retv);
|
|
4705
4912
|
}
|
|
4706
4913
|
|
|
4707
4914
|
eslintVisitorKeys.KEYS = KEYS;
|
|
@@ -4717,7 +4924,7 @@ function requireGetKeys () {
|
|
|
4717
4924
|
hasRequiredGetKeys = 1;
|
|
4718
4925
|
Object.defineProperty(getKeys, "__esModule", { value: true });
|
|
4719
4926
|
getKeys.getKeys = void 0;
|
|
4720
|
-
const eslint_visitor_keys_1 =
|
|
4927
|
+
const eslint_visitor_keys_1 = requireEslintVisitorKeys();
|
|
4721
4928
|
getKeys.getKeys = eslint_visitor_keys_1.getKeys;
|
|
4722
4929
|
return getKeys;
|
|
4723
4930
|
}
|
|
@@ -4764,7 +4971,7 @@ function requireVisitorKeys () {
|
|
|
4764
4971
|
})();
|
|
4765
4972
|
Object.defineProperty(visitorKeys, "__esModule", { value: true });
|
|
4766
4973
|
visitorKeys.visitorKeys = void 0;
|
|
4767
|
-
const eslintVisitorKeys = __importStar(
|
|
4974
|
+
const eslintVisitorKeys = __importStar(requireEslintVisitorKeys());
|
|
4768
4975
|
/*
|
|
4769
4976
|
********************************** IMPORTANT NOTE ********************************
|
|
4770
4977
|
* *
|
|
@@ -13926,4 +14133,4 @@ function requireDist () {
|
|
|
13926
14133
|
|
|
13927
14134
|
var distExports = requireDist();
|
|
13928
14135
|
|
|
13929
|
-
export { getDefaultExportFromCjs as a,
|
|
14136
|
+
export { getDefaultExportFromCjs as a, commonjsGlobal as c, distExports as d, getAugmentedNamespace as g, requireEslintUtils$2 as r };
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const require$$0 = require('tty');
|
|
4
4
|
const require$$1 = require('util');
|
|
5
|
+
const index = require('./eslint.Dxl4X46J.cjs');
|
|
5
6
|
|
|
6
7
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
7
8
|
|
|
@@ -485,11 +486,11 @@ function requireCommon () {
|
|
|
485
486
|
|
|
486
487
|
/* eslint-env browser */
|
|
487
488
|
|
|
488
|
-
var hasRequiredBrowser
|
|
489
|
+
var hasRequiredBrowser;
|
|
489
490
|
|
|
490
|
-
function requireBrowser
|
|
491
|
-
if (hasRequiredBrowser
|
|
492
|
-
hasRequiredBrowser
|
|
491
|
+
function requireBrowser () {
|
|
492
|
+
if (hasRequiredBrowser) return browser$1.exports;
|
|
493
|
+
hasRequiredBrowser = 1;
|
|
493
494
|
(function (module, exports$1) {
|
|
494
495
|
/**
|
|
495
496
|
* This is the web browser implementation of `debug()`.
|
|
@@ -768,37 +769,45 @@ function requireBrowser$1 () {
|
|
|
768
769
|
var node = {exports: {}};
|
|
769
770
|
|
|
770
771
|
/* eslint-env browser */
|
|
772
|
+
/* eslint-disable n/no-unsupported-features/node-builtins */
|
|
771
773
|
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
if (hasRequiredBrowser) return browser;
|
|
777
|
-
hasRequiredBrowser = 1;
|
|
778
|
-
|
|
779
|
-
function getChromeVersion() {
|
|
780
|
-
const matches = /(Chrome|Chromium)\/(?<chromeVersion>\d+)\./.exec(navigator.userAgent);
|
|
774
|
+
const level = (() => {
|
|
775
|
+
if (!('navigator' in globalThis)) {
|
|
776
|
+
return 0;
|
|
777
|
+
}
|
|
781
778
|
|
|
782
|
-
|
|
783
|
-
|
|
779
|
+
if (globalThis.navigator.userAgentData) {
|
|
780
|
+
const brand = navigator.userAgentData.brands.find(({brand}) => brand === 'Chromium');
|
|
781
|
+
if (brand?.version > 93) {
|
|
782
|
+
return 3;
|
|
784
783
|
}
|
|
784
|
+
}
|
|
785
785
|
|
|
786
|
-
|
|
786
|
+
if (/\b(Chrome|Chromium)\//.test(globalThis.navigator.userAgent)) {
|
|
787
|
+
return 1;
|
|
787
788
|
}
|
|
788
789
|
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
hasBasic: true,
|
|
792
|
-
has256: false,
|
|
793
|
-
has16m: false
|
|
794
|
-
} : false;
|
|
790
|
+
return 0;
|
|
791
|
+
})();
|
|
795
792
|
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
}
|
|
793
|
+
const colorSupport = level !== 0 && {
|
|
794
|
+
level,
|
|
795
|
+
hasBasic: true,
|
|
796
|
+
has256: level >= 2,
|
|
797
|
+
has16m: level >= 3,
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
const supportsColor = {
|
|
801
|
+
stdout: colorSupport,
|
|
802
|
+
stderr: colorSupport,
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
const browser = {
|
|
806
|
+
__proto__: null,
|
|
807
|
+
default: supportsColor
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
const require$$2 = /*@__PURE__*/index.getAugmentedNamespace(browser);
|
|
802
811
|
|
|
803
812
|
/**
|
|
804
813
|
* Module dependencies.
|
|
@@ -837,7 +846,7 @@ function requireNode () {
|
|
|
837
846
|
try {
|
|
838
847
|
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
|
839
848
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
840
|
-
const supportsColor =
|
|
849
|
+
const supportsColor = require$$2;
|
|
841
850
|
|
|
842
851
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
843
852
|
exports$1.colors = [
|
|
@@ -1084,7 +1093,7 @@ function requireSrc () {
|
|
|
1084
1093
|
if (hasRequiredSrc) return src.exports;
|
|
1085
1094
|
hasRequiredSrc = 1;
|
|
1086
1095
|
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
|
|
1087
|
-
src.exports = requireBrowser
|
|
1096
|
+
src.exports = requireBrowser();
|
|
1088
1097
|
} else {
|
|
1089
1098
|
src.exports = requireNode();
|
|
1090
1099
|
}
|