@conorroberts/utils 0.0.37 → 0.0.38

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/env.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"env.mjs","names":["invalidKeys: string[]","pairs"],"sources":["../src/env.ts"],"sourcesContent":["import { pipe } from \"remeda\";\nimport * as v from \"valibot\";\n\nconst PUBLIC_ENV_PREFIX = \"PUBLIC_\" as const;\n\n/**\n * Validates your environment variables against the given Valibot schema;\n * @param args\n * @returns An object containing client environment variables and another containing server environment variables\n */\nexport const createEnv = <\n Schema extends Record<string, v.GenericSchema>,\n Env = {\n [K in keyof Schema]: v.InferOutput<Schema[K]>;\n },\n>(args: {\n schema: Schema;\n env: any;\n}) => {\n const pairs = Object.entries(args.schema);\n const serverEnv = new Map();\n const invalidKeys: string[] = [];\n\n for (const [key, value] of pairs) {\n const result = v.safeParse(value, args.env[key] ?? null);\n\n if (!result.success) {\n invalidKeys.push(key);\n }\n\n serverEnv.set(key, result.output);\n }\n\n if (invalidKeys.length > 0) {\n console.error(`Invalid environment variable(s): ${invalidKeys.map((e) => `\"${e}\"`).join(\", \")}`);\n process.exit(1);\n }\n\n type ClientEnvKeys = Exclude<\n {\n [K in keyof Env]: K extends `${typeof PUBLIC_ENV_PREFIX}${string}` ? K : never;\n }[keyof Env],\n undefined\n >;\n\n type ClientEnv = {\n [B in ClientEnvKeys]: Env[B];\n };\n\n const clientEnv = pipe(\n serverEnv,\n (obj) => Array.from(obj.entries()),\n (pairs) => pairs.filter(([k]) => k.startsWith(PUBLIC_ENV_PREFIX)),\n (pairs) => Object.fromEntries(pairs),\n ) as ClientEnv;\n\n return {\n client: clientEnv,\n server: Object.fromEntries(serverEnv.entries()) as Env,\n };\n};\n"],"mappings":";;;;AAGA,MAAM,oBAAoB;;;;;;AAO1B,MAAa,aAKX,SAGI;CACJ,MAAM,QAAQ,OAAO,QAAQ,KAAK,OAAO;CACzC,MAAM,4BAAY,IAAI,KAAK;CAC3B,MAAMA,cAAwB,EAAE;AAEhC,MAAK,MAAM,CAAC,KAAK,UAAU,OAAO;EAChC,MAAM,SAAS,EAAE,UAAU,OAAO,KAAK,IAAI,QAAQ,KAAK;AAExD,MAAI,CAAC,OAAO,QACV,aAAY,KAAK,IAAI;AAGvB,YAAU,IAAI,KAAK,OAAO,OAAO;;AAGnC,KAAI,YAAY,SAAS,GAAG;AAC1B,UAAQ,MAAM,oCAAoC,YAAY,KAAK,MAAM,IAAI,EAAE,GAAG,CAAC,KAAK,KAAK,GAAG;AAChG,UAAQ,KAAK,EAAE;;AAqBjB,QAAO;EACL,QARgB,KAChB,YACC,QAAQ,MAAM,KAAK,IAAI,SAAS,CAAC,GACjC,YAAUC,QAAM,QAAQ,CAAC,OAAO,EAAE,WAAW,kBAAkB,CAAC,GAChE,YAAU,OAAO,YAAYA,QAAM,CACrC;EAIC,QAAQ,OAAO,YAAY,UAAU,SAAS,CAAC;EAChD"}
1
+ {"version":3,"file":"env.mjs","names":["invalidKeys: string[]","pairs"],"sources":["../src/env.ts"],"sourcesContent":["import { pipe } from \"remeda\";\nimport * as v from \"valibot\";\n\nconst PUBLIC_ENV_PREFIX = \"PUBLIC_\" as const;\n\n/**\n * Validates your environment variables against the given Valibot schema;\n * @param args\n * @returns An object containing client environment variables and another containing server environment variables\n */\nexport const createEnv = <\n Schema extends Record<string, v.GenericSchema>,\n Env = {\n [K in keyof Schema]: v.InferOutput<Schema[K]>;\n },\n>(args: {\n schema: Schema;\n // oxlint-disable-next-line no-explicit-any\n env: any;\n}) => {\n const pairs = Object.entries(args.schema);\n const serverEnv = new Map();\n const invalidKeys: string[] = [];\n\n for (const [key, value] of pairs) {\n const result = v.safeParse(value, args.env[key] ?? null);\n\n if (!result.success) {\n invalidKeys.push(key);\n }\n\n serverEnv.set(key, result.output);\n }\n\n if (invalidKeys.length > 0) {\n console.error(`Invalid environment variable(s): ${invalidKeys.map((e) => `\"${e}\"`).join(\", \")}`);\n process.exit(1);\n }\n\n type ClientEnvKeys = Exclude<\n {\n [K in keyof Env]: K extends `${typeof PUBLIC_ENV_PREFIX}${string}` ? K : never;\n }[keyof Env],\n undefined\n >;\n\n type ClientEnv = {\n [B in ClientEnvKeys]: Env[B];\n };\n\n const clientEnv = pipe(\n serverEnv,\n (obj) => Array.from(obj.entries()),\n (pairs) => pairs.filter(([k]) => k.startsWith(PUBLIC_ENV_PREFIX)),\n (pairs) => Object.fromEntries(pairs),\n ) as ClientEnv;\n\n return {\n client: clientEnv,\n server: Object.fromEntries(serverEnv.entries()) as Env,\n };\n};\n"],"mappings":";;;;AAGA,MAAM,oBAAoB;;;;;;AAO1B,MAAa,aAKX,SAII;CACJ,MAAM,QAAQ,OAAO,QAAQ,KAAK,OAAO;CACzC,MAAM,4BAAY,IAAI,KAAK;CAC3B,MAAMA,cAAwB,EAAE;AAEhC,MAAK,MAAM,CAAC,KAAK,UAAU,OAAO;EAChC,MAAM,SAAS,EAAE,UAAU,OAAO,KAAK,IAAI,QAAQ,KAAK;AAExD,MAAI,CAAC,OAAO,QACV,aAAY,KAAK,IAAI;AAGvB,YAAU,IAAI,KAAK,OAAO,OAAO;;AAGnC,KAAI,YAAY,SAAS,GAAG;AAC1B,UAAQ,MAAM,oCAAoC,YAAY,KAAK,MAAM,IAAI,EAAE,GAAG,CAAC,KAAK,KAAK,GAAG;AAChG,UAAQ,KAAK,EAAE;;AAqBjB,QAAO;EACL,QARgB,KAChB,YACC,QAAQ,MAAM,KAAK,IAAI,SAAS,CAAC,GACjC,YAAUC,QAAM,QAAQ,CAAC,OAAO,EAAE,WAAW,kBAAkB,CAAC,GAChE,YAAU,OAAO,YAAYA,QAAM,CACrC;EAIC,QAAQ,OAAO,YAAY,UAAU,SAAS,CAAC;EAChD"}
@@ -0,0 +1,46 @@
1
+ //#region src/.oxlintrc.d.ts
2
+ declare let $schema: string;
3
+ declare let plugins: string[];
4
+ declare namespace env {
5
+ let browser: boolean;
6
+ }
7
+ declare let ignorePatterns: string[];
8
+ declare let settings: {};
9
+ declare let rules: {
10
+ "@typescript-eslint/no-explicit-any": string;
11
+ "@typescript-eslint/no-non-null-assertion": string;
12
+ "react/button-has-type": string;
13
+ "react/rules-of-hooks": string;
14
+ "no-nested-ternary": string;
15
+ "react/exhaustive-deps": string;
16
+ "react/no-unstable-nested-components": string;
17
+ "typescript/no-floating-promises": string;
18
+ "no-unused-vars": string;
19
+ "typescript/no-import-type-side-effects": string;
20
+ "no-inline-components/no-inline-components": string;
21
+ "@typescript-eslint/consistent-type-imports": string;
22
+ "no-switch-plugin/no-switch": string;
23
+ "no-top-level-let/no-top-level-let": string;
24
+ "no-finally/no-finally": string;
25
+ "no-react-namespace/no-react-namespace": string;
26
+ "no-type-cast/no-type-cast": string;
27
+ "no-emoji/no-emoji": string;
28
+ "no-component-date-instantiation/no-component-date-instantiation": string;
29
+ "jsx-component-pascal-case/jsx-component-pascal-case": string;
30
+ "react/self-closing-comp": (string | {
31
+ html: boolean;
32
+ })[];
33
+ };
34
+ declare let overrides: {
35
+ files: string[];
36
+ rules: {
37
+ "@typescript-eslint/no-explicit-any": string;
38
+ "no-type-cast/no-type-cast": string;
39
+ };
40
+ }[];
41
+ declare namespace __json_default_export {
42
+ export { $schema, plugins, env, ignorePatterns, settings, rules, overrides };
43
+ }
44
+ //#endregion
45
+ export { $schema, __json_default_export as default, env, ignorePatterns, overrides, plugins, rules, settings };
46
+ //# sourceMappingURL=config.d.mts.map
@@ -0,0 +1,71 @@
1
+ //#region src/.oxlintrc.json
2
+ var $schema = "../node_modules/oxlint/configuration_schema.json";
3
+ var plugins = [
4
+ "import",
5
+ "typescript",
6
+ "unicorn",
7
+ "react",
8
+ "react-perf",
9
+ "oxc",
10
+ "node",
11
+ "promise"
12
+ ];
13
+ var env = { "browser": true };
14
+ var ignorePatterns = [
15
+ "packages/*/src/routeTree.gen.ts",
16
+ "packages/*/.output",
17
+ "packages/*/vite-plugins",
18
+ "packages/*/dist",
19
+ "packages/common/src/oxlint-plugins",
20
+ "**/node_modules"
21
+ ];
22
+ var settings = {};
23
+ var rules = {
24
+ "@typescript-eslint/no-explicit-any": "error",
25
+ "@typescript-eslint/no-non-null-assertion": "error",
26
+ "react/button-has-type": "deny",
27
+ "react/rules-of-hooks": "deny",
28
+ "no-nested-ternary": "deny",
29
+ "react/exhaustive-deps": "deny",
30
+ "react/no-unstable-nested-components": "error",
31
+ "typescript/no-floating-promises": "off",
32
+ "no-unused-vars": "warn",
33
+ "typescript/no-import-type-side-effects": "deny",
34
+ "no-inline-components/no-inline-components": "error",
35
+ "@typescript-eslint/consistent-type-imports": "deny",
36
+ "no-switch-plugin/no-switch": "error",
37
+ "no-top-level-let/no-top-level-let": "error",
38
+ "no-finally/no-finally": "error",
39
+ "no-react-namespace/no-react-namespace": "error",
40
+ "no-type-cast/no-type-cast": "warn",
41
+ "no-emoji/no-emoji": "error",
42
+ "no-component-date-instantiation/no-component-date-instantiation": "warn",
43
+ "jsx-component-pascal-case/jsx-component-pascal-case": "error",
44
+ "react/self-closing-comp": ["deny", { "html": false }]
45
+ };
46
+ var overrides = [{
47
+ "files": [
48
+ "packages/**/*.test.ts",
49
+ "packages/**/*.test.tsx",
50
+ "packages/**/*.spec.ts",
51
+ "packages/**/*.spec.tsx",
52
+ "packages/**/__tests__/**"
53
+ ],
54
+ "rules": {
55
+ "@typescript-eslint/no-explicit-any": "off",
56
+ "no-type-cast/no-type-cast": "off"
57
+ }
58
+ }];
59
+ var __oxlintrc_default = {
60
+ $schema,
61
+ plugins,
62
+ env,
63
+ ignorePatterns,
64
+ settings,
65
+ rules,
66
+ overrides
67
+ };
68
+
69
+ //#endregion
70
+ export { $schema, __oxlintrc_default as default, env, ignorePatterns, overrides, plugins, rules, settings };
71
+ //# sourceMappingURL=config.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.mjs","names":[],"sources":["../../src/.oxlintrc.json"],"sourcesContent":["{\n\t\"$schema\": \"../node_modules/oxlint/configuration_schema.json\",\n\t\"plugins\": [\n\t\t\"import\",\n\t\t\"typescript\",\n\t\t\"unicorn\",\n\t\t\"react\",\n\t\t\"react-perf\",\n\t\t\"oxc\",\n\t\t\"node\",\n\t\t\"promise\"\n\t],\n\t\"env\": {\n\t\t\"browser\": true\n\t},\n\t\"ignorePatterns\": [\n\t\t\"packages/*/src/routeTree.gen.ts\",\n\t\t\"packages/*/.output\",\n\t\t\"packages/*/vite-plugins\",\n\t\t\"packages/*/dist\",\n\t\t\"packages/common/src/oxlint-plugins\",\n\t\t\"**/node_modules\"\n\t],\n\t\"settings\": {},\n\t\"rules\": {\n\t\t\"@typescript-eslint/no-explicit-any\": \"error\",\n\t\t\"@typescript-eslint/no-non-null-assertion\": \"error\",\n\t\t\"react/button-has-type\": \"deny\",\n\t\t\"react/rules-of-hooks\": \"deny\",\n\t\t\"no-nested-ternary\": \"deny\",\n\t\t\"react/exhaustive-deps\": \"deny\",\n\t\t\"react/no-unstable-nested-components\": \"error\",\n\t\t\"typescript/no-floating-promises\": \"off\",\n\t\t\"no-unused-vars\": \"warn\",\n\t\t\"typescript/no-import-type-side-effects\": \"deny\",\n\t\t\"no-inline-components/no-inline-components\": \"error\",\n\t\t\"@typescript-eslint/consistent-type-imports\": \"deny\",\n\t\t\"no-switch-plugin/no-switch\": \"error\",\n\t\t\"no-top-level-let/no-top-level-let\": \"error\",\n\t\t\"no-finally/no-finally\": \"error\",\n\t\t\"no-react-namespace/no-react-namespace\": \"error\",\n\t\t\"no-type-cast/no-type-cast\": \"warn\",\n\t\t\"no-emoji/no-emoji\": \"error\",\n\t\t\"no-component-date-instantiation/no-component-date-instantiation\": \"warn\",\n\t\t\"jsx-component-pascal-case/jsx-component-pascal-case\": \"error\",\n\t\t\"react/self-closing-comp\": [\n\t\t\t\"deny\",\n\t\t\t{\n\t\t\t\t\"html\": false\n\t\t\t}\n\t\t]\n\t},\n\t\"overrides\": [\n\t\t{\n\t\t\t\"files\": [\n\t\t\t\t\"packages/**/*.test.ts\",\n\t\t\t\t\"packages/**/*.test.tsx\",\n\t\t\t\t\"packages/**/*.spec.ts\",\n\t\t\t\t\"packages/**/*.spec.tsx\",\n\t\t\t\t\"packages/**/__tests__/**\"\n\t\t\t],\n\t\t\t\"rules\": {\n\t\t\t\t\"@typescript-eslint/no-explicit-any\": \"off\",\n\t\t\t\t\"no-type-cast/no-type-cast\": \"off\"\n\t\t\t}\n\t\t},\n\t]\n}"],"mappings":";cACY;cACA;CACV;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;UACM,EACN,WAAW,MACX;qBACiB;CACjB;CACA;CACA;CACA;CACA;CACA;CACA;eACW,EAAE;YACL;CACR,sCAAsC;CACtC,4CAA4C;CAC5C,yBAAyB;CACzB,wBAAwB;CACxB,qBAAqB;CACrB,yBAAyB;CACzB,uCAAuC;CACvC,mCAAmC;CACnC,kBAAkB;CAClB,0CAA0C;CAC1C,6CAA6C;CAC7C,8CAA8C;CAC9C,8BAA8B;CAC9B,qCAAqC;CACrC,yBAAyB;CACzB,yCAAyC;CACzC,6BAA6B;CAC7B,qBAAqB;CACrB,mEAAmE;CACnE,uDAAuD;CACvD,2BAA2B,CAC1B,QACA,EACC,QAAQ,OACR,CACD;CACD;gBACY,CACZ;CACC,SAAS;EACR;EACA;EACA;EACA;EACA;EACA;CACD,SAAS;EACR,sCAAsC;EACtC,6BAA6B;EAC7B;CACD,CACD;yBAlEF"}
@@ -1,20 +1,20 @@
1
- import * as oxlint35 from "oxlint";
1
+ import * as oxlint0 from "oxlint";
2
2
 
3
3
  //#region src/oxlint-plugins/jsx-component-pascal-case.d.ts
4
- declare const jsxComponentPascalCaseRule: oxlint35.Rule;
4
+ declare const jsxComponentPascalCaseRule: oxlint0.Rule;
5
5
  declare namespace _default {
6
6
  namespace meta {
7
7
  let name: string;
8
8
  }
9
9
  let rules: {
10
- "jsx-component-pascal-case": oxlint35.Rule;
10
+ "jsx-component-pascal-case": oxlint0.Rule;
11
11
  };
12
12
  }
13
- type RuleContext = oxlint35.Context;
14
- type ESTNode = oxlint35.ESTree.Node;
15
- type ESTExpression = oxlint35.ESTree.Expression;
16
- type ReturnStatementNode = oxlint35.ESTree.ReturnStatement;
17
- type FunctionLikeNode = oxlint35.ESTree.Function | oxlint35.ESTree.ArrowFunctionExpression;
13
+ type RuleContext = oxlint0.Context;
14
+ type ESTNode = oxlint0.ESTree.Node;
15
+ type ESTExpression = oxlint0.ESTree.Expression;
16
+ type ReturnStatementNode = oxlint0.ESTree.ReturnStatement;
17
+ type FunctionLikeNode = oxlint0.ESTree.Function | oxlint0.ESTree.ArrowFunctionExpression;
18
18
  type FunctionContext = {
19
19
  node: FunctionLikeNode;
20
20
  name: string;
@@ -1,20 +1,20 @@
1
- import * as oxlint2 from "oxlint";
1
+ import * as oxlint7 from "oxlint";
2
2
 
3
3
  //#region src/oxlint-plugins/no-component-date-instantiation.d.ts
4
- declare const noComponentDateInstantiationRule: oxlint2.Rule;
4
+ declare const noComponentDateInstantiationRule: oxlint7.Rule;
5
5
  declare namespace _default {
6
6
  namespace meta {
7
7
  let name: string;
8
8
  }
9
9
  let rules: {
10
- "no-component-date-instantiation": oxlint2.Rule;
10
+ "no-component-date-instantiation": oxlint7.Rule;
11
11
  };
12
12
  }
13
- type RuleContext = oxlint2.Context;
14
- type ESTNode = oxlint2.ESTree.Node;
15
- type NewExpressionNode = oxlint2.ESTree.NewExpression;
16
- type ReturnStatementNode = oxlint2.ESTree.ReturnStatement;
17
- type FunctionLikeNode = oxlint2.ESTree.Function | oxlint2.ESTree.ArrowFunctionExpression;
13
+ type RuleContext = oxlint7.Context;
14
+ type ESTNode = oxlint7.ESTree.Node;
15
+ type NewExpressionNode = oxlint7.ESTree.NewExpression;
16
+ type ReturnStatementNode = oxlint7.ESTree.ReturnStatement;
17
+ type FunctionLikeNode = oxlint7.ESTree.Function | oxlint7.ESTree.ArrowFunctionExpression;
18
18
  type FunctionContext = {
19
19
  node: FunctionLikeNode;
20
20
  parent: FunctionContext | null;
@@ -1,16 +1,16 @@
1
- import * as oxlint13 from "oxlint";
1
+ import * as oxlint15 from "oxlint";
2
2
 
3
3
  //#region src/oxlint-plugins/no-emoji.d.ts
4
- declare const noEmojiRule: oxlint13.Rule;
4
+ declare const noEmojiRule: oxlint15.Rule;
5
5
  declare namespace _default {
6
6
  namespace meta {
7
7
  let name: string;
8
8
  }
9
9
  let rules: {
10
- "no-emoji": oxlint13.Rule;
10
+ "no-emoji": oxlint15.Rule;
11
11
  };
12
12
  }
13
- type ESTNode = oxlint13.ESTree.Node;
13
+ type ESTNode = oxlint15.ESTree.Node;
14
14
  //#endregion
15
15
  export { ESTNode, _default as default, noEmojiRule };
16
16
  //# sourceMappingURL=no-emoji.d.mts.map
@@ -1,16 +1,16 @@
1
- import * as oxlint30 from "oxlint";
1
+ import * as oxlint18 from "oxlint";
2
2
 
3
3
  //#region src/oxlint-plugins/no-finally.d.ts
4
- declare const noFinallyRule: oxlint30.Rule;
4
+ declare const noFinallyRule: oxlint18.Rule;
5
5
  declare namespace _default {
6
6
  namespace meta {
7
7
  let name: string;
8
8
  }
9
9
  let rules: {
10
- "no-finally": oxlint30.Rule;
10
+ "no-finally": oxlint18.Rule;
11
11
  };
12
12
  }
13
- type ESTNode = oxlint30.ESTree.Node;
13
+ type ESTNode = oxlint18.ESTree.Node;
14
14
  //#endregion
15
15
  export { ESTNode, _default as default, noFinallyRule };
16
16
  //# sourceMappingURL=no-finally.d.mts.map
@@ -1,27 +1,27 @@
1
- import * as oxlint16 from "oxlint";
1
+ import * as oxlint32 from "oxlint";
2
2
 
3
3
  //#region src/oxlint-plugins/no-inline-components.d.ts
4
4
  declare function isComponentName(name: unknown): name is string;
5
5
  declare function isHookName(name: unknown): name is string;
6
6
  declare function getEnclosingFunction(node: ESTNode | null | undefined): FunctionLikeNode | null;
7
7
  declare function getFunctionName(node: FunctionLikeNode): string;
8
- declare const noInlineComponentsRule: oxlint16.Rule;
8
+ declare const noInlineComponentsRule: oxlint32.Rule;
9
9
  declare namespace _default {
10
10
  namespace meta {
11
11
  let name: string;
12
12
  }
13
13
  let rules: {
14
- "no-inline-components": oxlint16.Rule;
14
+ "no-inline-components": oxlint32.Rule;
15
15
  };
16
16
  }
17
- type RuleContext = oxlint16.Context;
18
- type ESTNode = oxlint16.ESTree.Node;
19
- type ESTExpression = oxlint16.ESTree.Expression;
20
- type ESTPattern = oxlint16.ESTree.Pattern;
21
- type ReturnStatementNode = oxlint16.ESTree.ReturnStatement;
22
- type VariableDeclaratorNode = oxlint16.ESTree.VariableDeclarator;
23
- type AssignmentExpressionNode = oxlint16.ESTree.AssignmentExpression;
24
- type FunctionLikeNode = oxlint16.ESTree.Function | oxlint16.ESTree.ArrowFunctionExpression;
17
+ type RuleContext = oxlint32.Context;
18
+ type ESTNode = oxlint32.ESTree.Node;
19
+ type ESTExpression = oxlint32.ESTree.Expression;
20
+ type ESTPattern = oxlint32.ESTree.Pattern;
21
+ type ReturnStatementNode = oxlint32.ESTree.ReturnStatement;
22
+ type VariableDeclaratorNode = oxlint32.ESTree.VariableDeclarator;
23
+ type AssignmentExpressionNode = oxlint32.ESTree.AssignmentExpression;
24
+ type FunctionLikeNode = oxlint32.ESTree.Function | oxlint32.ESTree.ArrowFunctionExpression;
25
25
  type RecordedAssignment = {
26
26
  node: ESTExpression;
27
27
  names: string[];
@@ -1,16 +1,16 @@
1
- import * as oxlint27 from "oxlint";
1
+ import * as oxlint21 from "oxlint";
2
2
 
3
3
  //#region src/oxlint-plugins/no-react-namespace.d.ts
4
- declare const noReactNamespaceRule: oxlint27.Rule;
4
+ declare const noReactNamespaceRule: oxlint21.Rule;
5
5
  declare namespace _default {
6
6
  namespace meta {
7
7
  let name: string;
8
8
  }
9
9
  let rules: {
10
- "no-react-namespace": oxlint27.Rule;
10
+ "no-react-namespace": oxlint21.Rule;
11
11
  };
12
12
  }
13
- type ESTNode = oxlint27.ESTree.Node;
13
+ type ESTNode = oxlint21.ESTree.Node;
14
14
  //#endregion
15
15
  export { ESTNode, _default as default, noReactNamespaceRule };
16
16
  //# sourceMappingURL=no-react-namespace.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as oxlint33 from "oxlint";
1
+ import * as oxlint24 from "oxlint";
2
2
 
3
3
  //#region src/oxlint-plugins/no-switch-plugin.d.ts
4
4
  declare namespace _default {
@@ -6,10 +6,10 @@ declare namespace _default {
6
6
  let name: string;
7
7
  }
8
8
  let rules: {
9
- "no-switch": oxlint33.Rule;
9
+ "no-switch": oxlint24.Rule;
10
10
  };
11
11
  }
12
- type ESTNode = oxlint33.ESTree.Node;
12
+ type ESTNode = oxlint24.ESTree.Node;
13
13
  //#endregion
14
14
  export { ESTNode, _default as default };
15
15
  //# sourceMappingURL=no-switch-plugin.d.mts.map
@@ -1,16 +1,16 @@
1
- import * as oxlint10 from "oxlint";
1
+ import * as oxlint26 from "oxlint";
2
2
 
3
3
  //#region src/oxlint-plugins/no-top-level-let.d.ts
4
- declare const noTopLevelLetRule: oxlint10.Rule;
4
+ declare const noTopLevelLetRule: oxlint26.Rule;
5
5
  declare namespace _default {
6
6
  namespace meta {
7
7
  let name: string;
8
8
  }
9
9
  let rules: {
10
- "no-top-level-let": oxlint10.Rule;
10
+ "no-top-level-let": oxlint26.Rule;
11
11
  };
12
12
  }
13
- type ESTNode = oxlint10.ESTree.Node;
13
+ type ESTNode = oxlint26.ESTree.Node;
14
14
  //#endregion
15
15
  export { ESTNode, _default as default, noTopLevelLetRule };
16
16
  //# sourceMappingURL=no-top-level-let.d.mts.map
@@ -1,16 +1,16 @@
1
- import * as oxlint0 from "oxlint";
1
+ import * as oxlint29 from "oxlint";
2
2
 
3
3
  //#region src/oxlint-plugins/no-type-cast.d.ts
4
- declare const noTypeCastRule: oxlint0.Rule;
4
+ declare const noTypeCastRule: oxlint29.Rule;
5
5
  declare namespace _default {
6
6
  namespace meta {
7
7
  let name: string;
8
8
  }
9
9
  let rules: {
10
- "no-type-cast": oxlint0.Rule;
10
+ "no-type-cast": oxlint29.Rule;
11
11
  };
12
12
  }
13
- type ESTNode = oxlint0.ESTree.Node;
13
+ type ESTNode = oxlint29.ESTree.Node;
14
14
  //#endregion
15
15
  export { ESTNode, _default as default, noTypeCastRule };
16
16
  //# sourceMappingURL=no-type-cast.d.mts.map
package/package.json CHANGED
@@ -15,6 +15,9 @@
15
15
  "types": "./dist/images.d.ts",
16
16
  "default": "./dist/images.js"
17
17
  },
18
+ "./oxlint/config": {
19
+ "default": "./dist/oxlint/config.js"
20
+ },
18
21
  "./oxlint/jsx-component-pascal-case": {
19
22
  "types": "./dist/oxlint/jsx-component-pascal-case.d.ts",
20
23
  "default": "./dist/oxlint/jsx-component-pascal-case.js"
@@ -70,7 +73,7 @@
70
73
  "typescript": "5.9.3",
71
74
  "vitest": "4.0.15"
72
75
  },
73
- "version": "0.0.37",
76
+ "version": "0.0.38",
74
77
  "scripts": {
75
78
  "dev": "tsdown --watch",
76
79
  "build": "tsc --noEmit && tsdown",