@eslint-react/kit
Advanced tools
Comparing version
import * as typescript from 'typescript'; | ||
import * as tseslint from '@typescript-eslint/utils/ts-eslint'; | ||
import { ReportDescriptor } from '@typescript-eslint/utils/ts-eslint'; | ||
import * as z from 'zod'; | ||
import { z } from 'zod/v4'; | ||
import { _ } from '@eslint-react/eff'; | ||
@@ -84,23 +84,9 @@ import { TSESTree } from '@typescript-eslint/utils'; | ||
declare const LanguagePreferenceSchema: z.ZodObject<{ | ||
indentStyle: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"tab">, z.ZodLiteral<"space">]>>; | ||
indentStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"tab">, z.ZodLiteral<"space">]>>; | ||
indentWidth: z.ZodOptional<z.ZodNumber>; | ||
quoteStyle: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"single">, z.ZodLiteral<"double">]>>; | ||
semicolons: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"always">, z.ZodLiteral<"asNeeded">]>>; | ||
trailingCommas: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"es5">, z.ZodLiteral<"none">]>>; | ||
jsxQuoteStyle: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"single">, z.ZodLiteral<"double">]>>; | ||
}, "strip", z.ZodTypeAny, { | ||
indentStyle?: "tab" | "space" | undefined; | ||
indentWidth?: number | undefined; | ||
quoteStyle?: "single" | "double" | undefined; | ||
semicolons?: "always" | "asNeeded" | undefined; | ||
trailingCommas?: "all" | "es5" | "none" | undefined; | ||
jsxQuoteStyle?: "single" | "double" | undefined; | ||
}, { | ||
indentStyle?: "tab" | "space" | undefined; | ||
indentWidth?: number | undefined; | ||
quoteStyle?: "single" | "double" | undefined; | ||
semicolons?: "always" | "asNeeded" | undefined; | ||
trailingCommas?: "all" | "es5" | "none" | undefined; | ||
jsxQuoteStyle?: "single" | "double" | undefined; | ||
}>; | ||
quoteStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"single">, z.ZodLiteral<"double">]>>; | ||
semicolons: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"always">, z.ZodLiteral<"asNeeded">]>>; | ||
trailingCommas: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodLiteral<"es5">, z.ZodLiteral<"none">]>>; | ||
jsxQuoteStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"single">, z.ZodLiteral<"double">]>>; | ||
}, z.core.$strip>; | ||
@@ -107,0 +93,0 @@ /** |
'use strict'; | ||
var eff = require('@eslint-react/eff'); | ||
var z = require('zod'); | ||
var v4 = require('zod/v4'); | ||
function _interopNamespace(e) { | ||
if (e && e.__esModule) return e; | ||
var n = Object.create(null); | ||
if (e) { | ||
Object.keys(e).forEach(function (k) { | ||
if (k !== 'default') { | ||
var d = Object.getOwnPropertyDescriptor(e, k); | ||
Object.defineProperty(n, k, d.get ? d : { | ||
enumerable: true, | ||
get: function () { return e[k]; } | ||
}); | ||
} | ||
}); | ||
} | ||
n.default = e; | ||
return Object.freeze(n); | ||
} | ||
var z__namespace = /*#__PURE__*/_interopNamespace(z); | ||
var __defProp = Object.defineProperty; | ||
@@ -161,34 +141,34 @@ var __export = (target, all) => { | ||
} | ||
var LanguagePreferenceSchema = z__namespace.object({ | ||
indentStyle: z__namespace.optional( | ||
z__namespace.union([ | ||
z__namespace.literal("tab"), | ||
z__namespace.literal("space") | ||
var LanguagePreferenceSchema = v4.z.object({ | ||
indentStyle: v4.z.optional( | ||
v4.z.union([ | ||
v4.z.literal("tab"), | ||
v4.z.literal("space") | ||
]) | ||
), | ||
indentWidth: z__namespace.optional(z__namespace.number()), | ||
quoteStyle: z__namespace.optional( | ||
z__namespace.union([ | ||
z__namespace.literal("single"), | ||
z__namespace.literal("double") | ||
indentWidth: v4.z.optional(v4.z.number()), | ||
quoteStyle: v4.z.optional( | ||
v4.z.union([ | ||
v4.z.literal("single"), | ||
v4.z.literal("double") | ||
]) | ||
), | ||
semicolons: z__namespace.optional( | ||
z__namespace.union([ | ||
z__namespace.literal("always"), | ||
z__namespace.literal("asNeeded") | ||
semicolons: v4.z.optional( | ||
v4.z.union([ | ||
v4.z.literal("always"), | ||
v4.z.literal("asNeeded") | ||
]) | ||
), | ||
trailingCommas: z__namespace.optional( | ||
z__namespace.union([ | ||
z__namespace.literal("all"), | ||
z__namespace.literal("es5"), | ||
z__namespace.literal("none") | ||
trailingCommas: v4.z.optional( | ||
v4.z.union([ | ||
v4.z.literal("all"), | ||
v4.z.literal("es5"), | ||
v4.z.literal("none") | ||
]) | ||
), | ||
// JSX specific options | ||
jsxQuoteStyle: z__namespace.optional( | ||
z__namespace.union([ | ||
z__namespace.literal("single"), | ||
z__namespace.literal("double") | ||
jsxQuoteStyle: v4.z.optional( | ||
v4.z.union([ | ||
v4.z.literal("single"), | ||
v4.z.literal("double") | ||
]) | ||
@@ -195,0 +175,0 @@ ) |
{ | ||
"name": "@eslint-react/kit", | ||
"version": "1.50.0-beta.5", | ||
"version": "1.50.0-beta.6", | ||
"description": "ESLint React's plugin kit for building plugins and rules.", | ||
@@ -41,3 +41,3 @@ "homepage": "https://github.com/Rel1cx/eslint-react", | ||
"zod": "^3.25.28", | ||
"@eslint-react/eff": "1.50.0-beta.5" | ||
"@eslint-react/eff": "1.50.0-beta.6" | ||
}, | ||
@@ -44,0 +44,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
39257
-4.4%689
-4.44%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed