@r_masseater/oxlint-typed-rules 0.1.2 → 0.1.3
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/LICENSE +258 -0
- package/README.md +23 -0
- package/dist/config-rules-CIyMUUvG.mjs +6 -0
- package/dist/config-rules-CIyMUUvG.mjs.map +1 -0
- package/dist/drizzle.d.mts +5 -0
- package/dist/drizzle.mjs +232 -0
- package/dist/drizzle.mjs.map +1 -0
- package/dist/eslint-utils-DauzR3x9.mjs +489 -0
- package/dist/eslint-utils-DauzR3x9.mjs.map +1 -0
- package/dist/index.d.mts +12 -1
- package/dist/index.mjs +1 -1
- package/dist/react.d.mts +4 -2
- package/dist/react.mjs +9 -301
- package/dist/react.mjs.map +1 -1
- package/dist/rolldown-runtime-DQp2zzRu.mjs +41 -0
- package/dist/tanstack-query.d.mts +5 -0
- package/dist/tanstack-query.mjs +1379 -0
- package/dist/tanstack-query.mjs.map +1 -0
- package/dist/tanstack-router.d.mts +5 -0
- package/dist/tanstack-router.mjs +344 -0
- package/dist/tanstack-router.mjs.map +1 -0
- package/dist/tanstack-start.mjs +6 -4
- package/dist/tanstack-start.mjs.map +1 -1
- package/dist/ts-compat-kqrVqnFj.mjs +132 -0
- package/dist/ts-compat-kqrVqnFj.mjs.map +1 -0
- package/dist/{typed-rule-D8jasU_z.mjs → typed-rule-DsbM82SI.mjs} +20 -4
- package/dist/typed-rule-DsbM82SI.mjs.map +1 -0
- package/dist/typescript-eslint-utils-QnYasB-9.mjs +16 -0
- package/dist/typescript-eslint-utils-QnYasB-9.mjs.map +1 -0
- package/dist/upstream-plugin-DqJEA6iy.mjs +20 -0
- package/dist/upstream-plugin-DqJEA6iy.mjs.map +1 -0
- package/dist/upstream-plugin-xn91RvOJ.d.mts +15 -0
- package/package.json +43 -5
- package/dist/eslint-utils-CTNWAzIf.mjs +0 -352
- package/dist/eslint-utils-CTNWAzIf.mjs.map +0 -1
- package/dist/typed-rule-D8jasU_z.mjs.map +0 -1
package/dist/react.d.mts
CHANGED
|
@@ -3,12 +3,14 @@ import { Plugin } from "vite-plus/lint/plugins";
|
|
|
3
3
|
interface Config {
|
|
4
4
|
readonly rules?: Readonly<Record<string, unknown>> | undefined;
|
|
5
5
|
}
|
|
6
|
+
type ConfigName = "all" | "disable-conflict-eslint-plugin-react" | "disable-conflict-eslint-plugin-react-hooks" | "disable-dom" | "disable-experimental" | "disable-jsx" | "disable-naming-convention" | "disable-rsc" | "disable-type-checked" | "disable-web-api" | "dom" | "jsx" | "naming-convention" | "off" | "recommended" | "recommended-type-checked" | "recommended-typescript" | "rsc" | "strict" | "strict-type-checked" | "strict-typescript" | "web-api" | "x";
|
|
7
|
+
type Configs = Readonly<Record<ConfigName, Config>>;
|
|
6
8
|
type ReactPlugin = Plugin & {
|
|
7
9
|
readonly meta: {
|
|
8
10
|
readonly name: string;
|
|
9
11
|
};
|
|
10
|
-
readonly configs:
|
|
12
|
+
readonly configs: Configs;
|
|
11
13
|
};
|
|
12
14
|
declare const plugin: ReactPlugin;
|
|
13
|
-
export { type Config, type ReactPlugin, plugin as default };
|
|
15
|
+
export { type Config, type ConfigName, type Configs, type ReactPlugin, plugin as default };
|
|
14
16
|
//# sourceMappingURL=react.d.mts.map
|
package/dist/react.mjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as __toESM, t as __commonJSMin } from "./rolldown-runtime-DQp2zzRu.mjs";
|
|
2
|
+
import { n as require_dist$2, t as require_eslint_utils$2 } from "./eslint-utils-DauzR3x9.mjs";
|
|
3
|
+
import { m as ts } from "./ts-compat-kqrVqnFj.mjs";
|
|
4
|
+
import { t as rulesOf } from "./config-rules-CIyMUUvG.mjs";
|
|
5
|
+
import { a as withTypeInformation, i as withOptionalTypeInformation, t as isTypedRule } from "./typed-rule-DsbM82SI.mjs";
|
|
3
6
|
import module$1 from "node:module";
|
|
4
|
-
import { Array as Array$1, Option,
|
|
7
|
+
import { Array as Array$1, Option, Record, String as String$1, pipe } from "effect";
|
|
5
8
|
import path from "node:path";
|
|
6
9
|
// ../../node_modules/.pnpm/ts-pattern@5.9.2/node_modules/ts-pattern/dist/index.js
|
|
7
10
|
const t$1 = Symbol.for("@ts-pattern/matcher");
|
|
@@ -5418,301 +5421,6 @@ var __exportAll$7 = (all, no_symbols) => {
|
|
|
5418
5421
|
if (!no_symbols) __defProp$7(target, Symbol.toStringTag, { value: "Module" });
|
|
5419
5422
|
return target;
|
|
5420
5423
|
};
|
|
5421
|
-
// ../../node_modules/.pnpm/@typescript-eslint+types@8.72.1/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js
|
|
5422
|
-
var require_ast_spec = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5423
|
-
/**********************************************
|
|
5424
|
-
* DO NOT MODIFY THIS FILE MANUALLY *
|
|
5425
|
-
* *
|
|
5426
|
-
* THIS FILE HAS BEEN COPIED FROM ast-spec. *
|
|
5427
|
-
* ANY CHANGES WILL BE LOST ON THE NEXT BUILD *
|
|
5428
|
-
* *
|
|
5429
|
-
* MAKE CHANGES TO ast-spec AND THEN RUN *
|
|
5430
|
-
* pnpm run build *
|
|
5431
|
-
**********************************************/
|
|
5432
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5433
|
-
exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0;
|
|
5434
|
-
var AST_NODE_TYPES;
|
|
5435
|
-
(function(AST_NODE_TYPES) {
|
|
5436
|
-
AST_NODE_TYPES["AccessorProperty"] = "AccessorProperty";
|
|
5437
|
-
AST_NODE_TYPES["ArrayExpression"] = "ArrayExpression";
|
|
5438
|
-
AST_NODE_TYPES["ArrayPattern"] = "ArrayPattern";
|
|
5439
|
-
AST_NODE_TYPES["ArrowFunctionExpression"] = "ArrowFunctionExpression";
|
|
5440
|
-
AST_NODE_TYPES["AssignmentExpression"] = "AssignmentExpression";
|
|
5441
|
-
AST_NODE_TYPES["AssignmentPattern"] = "AssignmentPattern";
|
|
5442
|
-
AST_NODE_TYPES["AwaitExpression"] = "AwaitExpression";
|
|
5443
|
-
AST_NODE_TYPES["BinaryExpression"] = "BinaryExpression";
|
|
5444
|
-
AST_NODE_TYPES["BlockStatement"] = "BlockStatement";
|
|
5445
|
-
AST_NODE_TYPES["BreakStatement"] = "BreakStatement";
|
|
5446
|
-
AST_NODE_TYPES["CallExpression"] = "CallExpression";
|
|
5447
|
-
AST_NODE_TYPES["CatchClause"] = "CatchClause";
|
|
5448
|
-
AST_NODE_TYPES["ChainExpression"] = "ChainExpression";
|
|
5449
|
-
AST_NODE_TYPES["ClassBody"] = "ClassBody";
|
|
5450
|
-
AST_NODE_TYPES["ClassDeclaration"] = "ClassDeclaration";
|
|
5451
|
-
AST_NODE_TYPES["ClassExpression"] = "ClassExpression";
|
|
5452
|
-
AST_NODE_TYPES["ConditionalExpression"] = "ConditionalExpression";
|
|
5453
|
-
AST_NODE_TYPES["ContinueStatement"] = "ContinueStatement";
|
|
5454
|
-
AST_NODE_TYPES["DebuggerStatement"] = "DebuggerStatement";
|
|
5455
|
-
AST_NODE_TYPES["Decorator"] = "Decorator";
|
|
5456
|
-
AST_NODE_TYPES["DoWhileStatement"] = "DoWhileStatement";
|
|
5457
|
-
AST_NODE_TYPES["EmptyStatement"] = "EmptyStatement";
|
|
5458
|
-
AST_NODE_TYPES["ExportAllDeclaration"] = "ExportAllDeclaration";
|
|
5459
|
-
AST_NODE_TYPES["ExportDefaultDeclaration"] = "ExportDefaultDeclaration";
|
|
5460
|
-
AST_NODE_TYPES["ExportNamedDeclaration"] = "ExportNamedDeclaration";
|
|
5461
|
-
AST_NODE_TYPES["ExportSpecifier"] = "ExportSpecifier";
|
|
5462
|
-
AST_NODE_TYPES["ExpressionStatement"] = "ExpressionStatement";
|
|
5463
|
-
AST_NODE_TYPES["ForInStatement"] = "ForInStatement";
|
|
5464
|
-
AST_NODE_TYPES["ForOfStatement"] = "ForOfStatement";
|
|
5465
|
-
AST_NODE_TYPES["ForStatement"] = "ForStatement";
|
|
5466
|
-
AST_NODE_TYPES["FunctionDeclaration"] = "FunctionDeclaration";
|
|
5467
|
-
AST_NODE_TYPES["FunctionExpression"] = "FunctionExpression";
|
|
5468
|
-
AST_NODE_TYPES["Identifier"] = "Identifier";
|
|
5469
|
-
AST_NODE_TYPES["IfStatement"] = "IfStatement";
|
|
5470
|
-
AST_NODE_TYPES["ImportAttribute"] = "ImportAttribute";
|
|
5471
|
-
AST_NODE_TYPES["ImportDeclaration"] = "ImportDeclaration";
|
|
5472
|
-
AST_NODE_TYPES["ImportDefaultSpecifier"] = "ImportDefaultSpecifier";
|
|
5473
|
-
AST_NODE_TYPES["ImportExpression"] = "ImportExpression";
|
|
5474
|
-
AST_NODE_TYPES["ImportNamespaceSpecifier"] = "ImportNamespaceSpecifier";
|
|
5475
|
-
AST_NODE_TYPES["ImportSpecifier"] = "ImportSpecifier";
|
|
5476
|
-
AST_NODE_TYPES["JSXAttribute"] = "JSXAttribute";
|
|
5477
|
-
AST_NODE_TYPES["JSXClosingElement"] = "JSXClosingElement";
|
|
5478
|
-
AST_NODE_TYPES["JSXClosingFragment"] = "JSXClosingFragment";
|
|
5479
|
-
AST_NODE_TYPES["JSXElement"] = "JSXElement";
|
|
5480
|
-
AST_NODE_TYPES["JSXEmptyExpression"] = "JSXEmptyExpression";
|
|
5481
|
-
AST_NODE_TYPES["JSXExpressionContainer"] = "JSXExpressionContainer";
|
|
5482
|
-
AST_NODE_TYPES["JSXFragment"] = "JSXFragment";
|
|
5483
|
-
AST_NODE_TYPES["JSXIdentifier"] = "JSXIdentifier";
|
|
5484
|
-
AST_NODE_TYPES["JSXMemberExpression"] = "JSXMemberExpression";
|
|
5485
|
-
AST_NODE_TYPES["JSXNamespacedName"] = "JSXNamespacedName";
|
|
5486
|
-
AST_NODE_TYPES["JSXOpeningElement"] = "JSXOpeningElement";
|
|
5487
|
-
AST_NODE_TYPES["JSXOpeningFragment"] = "JSXOpeningFragment";
|
|
5488
|
-
AST_NODE_TYPES["JSXSpreadAttribute"] = "JSXSpreadAttribute";
|
|
5489
|
-
AST_NODE_TYPES["JSXSpreadChild"] = "JSXSpreadChild";
|
|
5490
|
-
AST_NODE_TYPES["JSXText"] = "JSXText";
|
|
5491
|
-
AST_NODE_TYPES["LabeledStatement"] = "LabeledStatement";
|
|
5492
|
-
AST_NODE_TYPES["Literal"] = "Literal";
|
|
5493
|
-
AST_NODE_TYPES["LogicalExpression"] = "LogicalExpression";
|
|
5494
|
-
AST_NODE_TYPES["MemberExpression"] = "MemberExpression";
|
|
5495
|
-
AST_NODE_TYPES["MetaProperty"] = "MetaProperty";
|
|
5496
|
-
AST_NODE_TYPES["MethodDefinition"] = "MethodDefinition";
|
|
5497
|
-
AST_NODE_TYPES["NewExpression"] = "NewExpression";
|
|
5498
|
-
AST_NODE_TYPES["ObjectExpression"] = "ObjectExpression";
|
|
5499
|
-
AST_NODE_TYPES["ObjectPattern"] = "ObjectPattern";
|
|
5500
|
-
AST_NODE_TYPES["PrivateIdentifier"] = "PrivateIdentifier";
|
|
5501
|
-
AST_NODE_TYPES["Program"] = "Program";
|
|
5502
|
-
AST_NODE_TYPES["Property"] = "Property";
|
|
5503
|
-
AST_NODE_TYPES["PropertyDefinition"] = "PropertyDefinition";
|
|
5504
|
-
AST_NODE_TYPES["RestElement"] = "RestElement";
|
|
5505
|
-
AST_NODE_TYPES["ReturnStatement"] = "ReturnStatement";
|
|
5506
|
-
AST_NODE_TYPES["SequenceExpression"] = "SequenceExpression";
|
|
5507
|
-
AST_NODE_TYPES["SpreadElement"] = "SpreadElement";
|
|
5508
|
-
AST_NODE_TYPES["StaticBlock"] = "StaticBlock";
|
|
5509
|
-
AST_NODE_TYPES["Super"] = "Super";
|
|
5510
|
-
AST_NODE_TYPES["SwitchCase"] = "SwitchCase";
|
|
5511
|
-
AST_NODE_TYPES["SwitchStatement"] = "SwitchStatement";
|
|
5512
|
-
AST_NODE_TYPES["TaggedTemplateExpression"] = "TaggedTemplateExpression";
|
|
5513
|
-
AST_NODE_TYPES["TemplateElement"] = "TemplateElement";
|
|
5514
|
-
AST_NODE_TYPES["TemplateLiteral"] = "TemplateLiteral";
|
|
5515
|
-
AST_NODE_TYPES["ThisExpression"] = "ThisExpression";
|
|
5516
|
-
AST_NODE_TYPES["ThrowStatement"] = "ThrowStatement";
|
|
5517
|
-
AST_NODE_TYPES["TryStatement"] = "TryStatement";
|
|
5518
|
-
AST_NODE_TYPES["UnaryExpression"] = "UnaryExpression";
|
|
5519
|
-
AST_NODE_TYPES["UpdateExpression"] = "UpdateExpression";
|
|
5520
|
-
AST_NODE_TYPES["VariableDeclaration"] = "VariableDeclaration";
|
|
5521
|
-
AST_NODE_TYPES["VariableDeclarator"] = "VariableDeclarator";
|
|
5522
|
-
AST_NODE_TYPES["WhileStatement"] = "WhileStatement";
|
|
5523
|
-
AST_NODE_TYPES["WithStatement"] = "WithStatement";
|
|
5524
|
-
AST_NODE_TYPES["YieldExpression"] = "YieldExpression";
|
|
5525
|
-
AST_NODE_TYPES["TSAbstractAccessorProperty"] = "TSAbstractAccessorProperty";
|
|
5526
|
-
AST_NODE_TYPES["TSAbstractKeyword"] = "TSAbstractKeyword";
|
|
5527
|
-
AST_NODE_TYPES["TSAbstractMethodDefinition"] = "TSAbstractMethodDefinition";
|
|
5528
|
-
AST_NODE_TYPES["TSAbstractPropertyDefinition"] = "TSAbstractPropertyDefinition";
|
|
5529
|
-
AST_NODE_TYPES["TSAnyKeyword"] = "TSAnyKeyword";
|
|
5530
|
-
AST_NODE_TYPES["TSArrayType"] = "TSArrayType";
|
|
5531
|
-
AST_NODE_TYPES["TSAsExpression"] = "TSAsExpression";
|
|
5532
|
-
AST_NODE_TYPES["TSAsyncKeyword"] = "TSAsyncKeyword";
|
|
5533
|
-
AST_NODE_TYPES["TSBigIntKeyword"] = "TSBigIntKeyword";
|
|
5534
|
-
AST_NODE_TYPES["TSBooleanKeyword"] = "TSBooleanKeyword";
|
|
5535
|
-
AST_NODE_TYPES["TSCallSignatureDeclaration"] = "TSCallSignatureDeclaration";
|
|
5536
|
-
AST_NODE_TYPES["TSClassImplements"] = "TSClassImplements";
|
|
5537
|
-
AST_NODE_TYPES["TSConditionalType"] = "TSConditionalType";
|
|
5538
|
-
AST_NODE_TYPES["TSConstructorType"] = "TSConstructorType";
|
|
5539
|
-
AST_NODE_TYPES["TSConstructSignatureDeclaration"] = "TSConstructSignatureDeclaration";
|
|
5540
|
-
AST_NODE_TYPES["TSDeclareFunction"] = "TSDeclareFunction";
|
|
5541
|
-
AST_NODE_TYPES["TSDeclareKeyword"] = "TSDeclareKeyword";
|
|
5542
|
-
AST_NODE_TYPES["TSEmptyBodyFunctionExpression"] = "TSEmptyBodyFunctionExpression";
|
|
5543
|
-
AST_NODE_TYPES["TSEnumBody"] = "TSEnumBody";
|
|
5544
|
-
AST_NODE_TYPES["TSEnumDeclaration"] = "TSEnumDeclaration";
|
|
5545
|
-
AST_NODE_TYPES["TSEnumMember"] = "TSEnumMember";
|
|
5546
|
-
AST_NODE_TYPES["TSExportAssignment"] = "TSExportAssignment";
|
|
5547
|
-
AST_NODE_TYPES["TSExportKeyword"] = "TSExportKeyword";
|
|
5548
|
-
AST_NODE_TYPES["TSExternalModuleReference"] = "TSExternalModuleReference";
|
|
5549
|
-
AST_NODE_TYPES["TSFunctionType"] = "TSFunctionType";
|
|
5550
|
-
AST_NODE_TYPES["TSImportEqualsDeclaration"] = "TSImportEqualsDeclaration";
|
|
5551
|
-
AST_NODE_TYPES["TSImportType"] = "TSImportType";
|
|
5552
|
-
AST_NODE_TYPES["TSIndexedAccessType"] = "TSIndexedAccessType";
|
|
5553
|
-
AST_NODE_TYPES["TSIndexSignature"] = "TSIndexSignature";
|
|
5554
|
-
AST_NODE_TYPES["TSInferType"] = "TSInferType";
|
|
5555
|
-
AST_NODE_TYPES["TSInstantiationExpression"] = "TSInstantiationExpression";
|
|
5556
|
-
AST_NODE_TYPES["TSInterfaceBody"] = "TSInterfaceBody";
|
|
5557
|
-
AST_NODE_TYPES["TSInterfaceDeclaration"] = "TSInterfaceDeclaration";
|
|
5558
|
-
AST_NODE_TYPES["TSInterfaceHeritage"] = "TSInterfaceHeritage";
|
|
5559
|
-
AST_NODE_TYPES["TSIntersectionType"] = "TSIntersectionType";
|
|
5560
|
-
AST_NODE_TYPES["TSIntrinsicKeyword"] = "TSIntrinsicKeyword";
|
|
5561
|
-
AST_NODE_TYPES["TSLiteralType"] = "TSLiteralType";
|
|
5562
|
-
AST_NODE_TYPES["TSMappedType"] = "TSMappedType";
|
|
5563
|
-
AST_NODE_TYPES["TSMethodSignature"] = "TSMethodSignature";
|
|
5564
|
-
AST_NODE_TYPES["TSModuleBlock"] = "TSModuleBlock";
|
|
5565
|
-
AST_NODE_TYPES["TSModuleDeclaration"] = "TSModuleDeclaration";
|
|
5566
|
-
AST_NODE_TYPES["TSNamedTupleMember"] = "TSNamedTupleMember";
|
|
5567
|
-
AST_NODE_TYPES["TSNamespaceExportDeclaration"] = "TSNamespaceExportDeclaration";
|
|
5568
|
-
AST_NODE_TYPES["TSNeverKeyword"] = "TSNeverKeyword";
|
|
5569
|
-
AST_NODE_TYPES["TSNonNullExpression"] = "TSNonNullExpression";
|
|
5570
|
-
AST_NODE_TYPES["TSNullKeyword"] = "TSNullKeyword";
|
|
5571
|
-
AST_NODE_TYPES["TSNumberKeyword"] = "TSNumberKeyword";
|
|
5572
|
-
AST_NODE_TYPES["TSObjectKeyword"] = "TSObjectKeyword";
|
|
5573
|
-
AST_NODE_TYPES["TSOptionalType"] = "TSOptionalType";
|
|
5574
|
-
AST_NODE_TYPES["TSParameterProperty"] = "TSParameterProperty";
|
|
5575
|
-
AST_NODE_TYPES["TSPrivateKeyword"] = "TSPrivateKeyword";
|
|
5576
|
-
AST_NODE_TYPES["TSPropertySignature"] = "TSPropertySignature";
|
|
5577
|
-
AST_NODE_TYPES["TSProtectedKeyword"] = "TSProtectedKeyword";
|
|
5578
|
-
AST_NODE_TYPES["TSPublicKeyword"] = "TSPublicKeyword";
|
|
5579
|
-
AST_NODE_TYPES["TSQualifiedName"] = "TSQualifiedName";
|
|
5580
|
-
AST_NODE_TYPES["TSReadonlyKeyword"] = "TSReadonlyKeyword";
|
|
5581
|
-
AST_NODE_TYPES["TSRestType"] = "TSRestType";
|
|
5582
|
-
AST_NODE_TYPES["TSSatisfiesExpression"] = "TSSatisfiesExpression";
|
|
5583
|
-
AST_NODE_TYPES["TSStaticKeyword"] = "TSStaticKeyword";
|
|
5584
|
-
AST_NODE_TYPES["TSStringKeyword"] = "TSStringKeyword";
|
|
5585
|
-
AST_NODE_TYPES["TSSymbolKeyword"] = "TSSymbolKeyword";
|
|
5586
|
-
AST_NODE_TYPES["TSTemplateLiteralType"] = "TSTemplateLiteralType";
|
|
5587
|
-
AST_NODE_TYPES["TSThisType"] = "TSThisType";
|
|
5588
|
-
AST_NODE_TYPES["TSTupleType"] = "TSTupleType";
|
|
5589
|
-
AST_NODE_TYPES["TSTypeAliasDeclaration"] = "TSTypeAliasDeclaration";
|
|
5590
|
-
AST_NODE_TYPES["TSTypeAnnotation"] = "TSTypeAnnotation";
|
|
5591
|
-
AST_NODE_TYPES["TSTypeAssertion"] = "TSTypeAssertion";
|
|
5592
|
-
AST_NODE_TYPES["TSTypeLiteral"] = "TSTypeLiteral";
|
|
5593
|
-
AST_NODE_TYPES["TSTypeOperator"] = "TSTypeOperator";
|
|
5594
|
-
AST_NODE_TYPES["TSTypeParameter"] = "TSTypeParameter";
|
|
5595
|
-
AST_NODE_TYPES["TSTypeParameterDeclaration"] = "TSTypeParameterDeclaration";
|
|
5596
|
-
AST_NODE_TYPES["TSTypeParameterInstantiation"] = "TSTypeParameterInstantiation";
|
|
5597
|
-
AST_NODE_TYPES["TSTypePredicate"] = "TSTypePredicate";
|
|
5598
|
-
AST_NODE_TYPES["TSTypeQuery"] = "TSTypeQuery";
|
|
5599
|
-
AST_NODE_TYPES["TSTypeReference"] = "TSTypeReference";
|
|
5600
|
-
AST_NODE_TYPES["TSUndefinedKeyword"] = "TSUndefinedKeyword";
|
|
5601
|
-
AST_NODE_TYPES["TSUnionType"] = "TSUnionType";
|
|
5602
|
-
AST_NODE_TYPES["TSUnknownKeyword"] = "TSUnknownKeyword";
|
|
5603
|
-
AST_NODE_TYPES["TSVoidKeyword"] = "TSVoidKeyword";
|
|
5604
|
-
})(AST_NODE_TYPES || (exports.AST_NODE_TYPES = AST_NODE_TYPES = {}));
|
|
5605
|
-
var AST_TOKEN_TYPES;
|
|
5606
|
-
(function(AST_TOKEN_TYPES) {
|
|
5607
|
-
AST_TOKEN_TYPES["Boolean"] = "Boolean";
|
|
5608
|
-
AST_TOKEN_TYPES["Identifier"] = "Identifier";
|
|
5609
|
-
AST_TOKEN_TYPES["JSXIdentifier"] = "JSXIdentifier";
|
|
5610
|
-
AST_TOKEN_TYPES["PrivateIdentifier"] = "PrivateIdentifier";
|
|
5611
|
-
AST_TOKEN_TYPES["JSXText"] = "JSXText";
|
|
5612
|
-
AST_TOKEN_TYPES["Keyword"] = "Keyword";
|
|
5613
|
-
AST_TOKEN_TYPES["Null"] = "Null";
|
|
5614
|
-
AST_TOKEN_TYPES["Numeric"] = "Numeric";
|
|
5615
|
-
AST_TOKEN_TYPES["Punctuator"] = "Punctuator";
|
|
5616
|
-
AST_TOKEN_TYPES["RegularExpression"] = "RegularExpression";
|
|
5617
|
-
AST_TOKEN_TYPES["String"] = "String";
|
|
5618
|
-
AST_TOKEN_TYPES["Template"] = "Template";
|
|
5619
|
-
AST_TOKEN_TYPES["Block"] = "Block";
|
|
5620
|
-
AST_TOKEN_TYPES["Line"] = "Line";
|
|
5621
|
-
})(AST_TOKEN_TYPES || (exports.AST_TOKEN_TYPES = AST_TOKEN_TYPES = {}));
|
|
5622
|
-
}));
|
|
5623
|
-
// ../../node_modules/.pnpm/@typescript-eslint+types@8.72.1/node_modules/@typescript-eslint/types/dist/lib.js
|
|
5624
|
-
var require_lib$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5625
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5626
|
-
}));
|
|
5627
|
-
// ../../node_modules/.pnpm/@typescript-eslint+types@8.72.1/node_modules/@typescript-eslint/types/dist/parser-options.js
|
|
5628
|
-
var require_parser_options = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5629
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5630
|
-
}));
|
|
5631
|
-
// ../../node_modules/.pnpm/@typescript-eslint+types@8.72.1/node_modules/@typescript-eslint/types/dist/ts-estree.js
|
|
5632
|
-
var require_ts_estree$1 = /* @__PURE__ */ __commonJSMin(((exports, module, this$14) => {
|
|
5633
|
-
var __createBinding = this$14 && this$14.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
5634
|
-
if (k2 === void 0) k2 = k;
|
|
5635
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5636
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
5637
|
-
enumerable: true,
|
|
5638
|
-
get: function() {
|
|
5639
|
-
return m[k];
|
|
5640
|
-
}
|
|
5641
|
-
};
|
|
5642
|
-
Object.defineProperty(o, k2, desc);
|
|
5643
|
-
}) : (function(o, m, k, k2) {
|
|
5644
|
-
if (k2 === void 0) k2 = k;
|
|
5645
|
-
o[k2] = m[k];
|
|
5646
|
-
}));
|
|
5647
|
-
var __setModuleDefault = this$14 && this$14.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
5648
|
-
Object.defineProperty(o, "default", {
|
|
5649
|
-
enumerable: true,
|
|
5650
|
-
value: v
|
|
5651
|
-
});
|
|
5652
|
-
}) : function(o, v) {
|
|
5653
|
-
o["default"] = v;
|
|
5654
|
-
});
|
|
5655
|
-
var __importStar = this$14 && this$14.__importStar || (function() {
|
|
5656
|
-
var ownKeys = function(o) {
|
|
5657
|
-
ownKeys = Object.getOwnPropertyNames || function(o) {
|
|
5658
|
-
var ar = [];
|
|
5659
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
5660
|
-
return ar;
|
|
5661
|
-
};
|
|
5662
|
-
return ownKeys(o);
|
|
5663
|
-
};
|
|
5664
|
-
return function(mod) {
|
|
5665
|
-
if (mod && mod.__esModule) return mod;
|
|
5666
|
-
var result = {};
|
|
5667
|
-
if (mod != null) {
|
|
5668
|
-
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
5669
|
-
}
|
|
5670
|
-
__setModuleDefault(result, mod);
|
|
5671
|
-
return result;
|
|
5672
|
-
};
|
|
5673
|
-
})();
|
|
5674
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5675
|
-
exports.TSESTree = void 0;
|
|
5676
|
-
exports.TSESTree = __importStar(require_ast_spec());
|
|
5677
|
-
}));
|
|
5678
|
-
// ../../node_modules/.pnpm/@typescript-eslint+types@8.72.1/node_modules/@typescript-eslint/types/dist/index.js
|
|
5679
|
-
var require_dist$2 = /* @__PURE__ */ __commonJSMin(((exports, module, this$13) => {
|
|
5680
|
-
var __createBinding = this$13 && this$13.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
5681
|
-
if (k2 === void 0) k2 = k;
|
|
5682
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5683
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
5684
|
-
enumerable: true,
|
|
5685
|
-
get: function() {
|
|
5686
|
-
return m[k];
|
|
5687
|
-
}
|
|
5688
|
-
};
|
|
5689
|
-
Object.defineProperty(o, k2, desc);
|
|
5690
|
-
}) : (function(o, m, k, k2) {
|
|
5691
|
-
if (k2 === void 0) k2 = k;
|
|
5692
|
-
o[k2] = m[k];
|
|
5693
|
-
}));
|
|
5694
|
-
var __exportStar = this$13 && this$13.__exportStar || function(m, exports) {
|
|
5695
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
5696
|
-
};
|
|
5697
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5698
|
-
exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0;
|
|
5699
|
-
var ast_spec_1 = require_ast_spec();
|
|
5700
|
-
Object.defineProperty(exports, "AST_NODE_TYPES", {
|
|
5701
|
-
enumerable: true,
|
|
5702
|
-
get: function() {
|
|
5703
|
-
return ast_spec_1.AST_NODE_TYPES;
|
|
5704
|
-
}
|
|
5705
|
-
});
|
|
5706
|
-
Object.defineProperty(exports, "AST_TOKEN_TYPES", {
|
|
5707
|
-
enumerable: true,
|
|
5708
|
-
get: function() {
|
|
5709
|
-
return ast_spec_1.AST_TOKEN_TYPES;
|
|
5710
|
-
}
|
|
5711
|
-
});
|
|
5712
|
-
__exportStar(require_lib$2(), exports);
|
|
5713
|
-
__exportStar(require_parser_options(), exports);
|
|
5714
|
-
__exportStar(require_ts_estree$1(), exports);
|
|
5715
|
-
}));
|
|
5716
5424
|
// ../../node_modules/.pnpm/eslint-visitor-keys@3.4.3/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs
|
|
5717
5425
|
var require_eslint_visitor_keys$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5718
5426
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -31099,10 +30807,10 @@ const finalPlugin = {
|
|
|
31099
30807
|
};
|
|
31100
30808
|
// src/react.ts
|
|
31101
30809
|
const PREFIX = "@eslint-react/";
|
|
31102
|
-
const
|
|
31103
|
-
const configs = pipe(
|
|
30810
|
+
const upstreamConfigs = finalPlugin.configs;
|
|
30811
|
+
const configs = pipe(upstreamConfigs, Record.map((config) => ({ rules: Option.getOrUndefined(rulesOf(config)) })));
|
|
31104
30812
|
const upstreamRules = Option.fromNullishOr(finalPlugin.rules).pipe(Option.getOrElse(() => ({})));
|
|
31105
|
-
const typeCheckedIds =
|
|
30813
|
+
const typeCheckedIds = Option.fromNullishOr(configs["disable-type-checked"].rules).pipe(Option.map(Record.keys), Option.getOrElse(() => []), Array$1.map(String$1.replace(PREFIX, "")));
|
|
31106
30814
|
const typeCheckedRules = new Set(pipe(typeCheckedIds, Array$1.flatMap((id) => Option.toArray(Record.get(upstreamRules, id)))));
|
|
31107
30815
|
const withTypes = (rule) => Option.liftPredicate(rule, (candidate) => typeCheckedRules.has(candidate)).pipe(Option.match({
|
|
31108
30816
|
onSome: withTypeInformation,
|