@vizejs/nuxt-lint-config 0.502.0 → 0.504.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/index.d.mts +5 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -201,6 +201,8 @@ declare const NUXT_CONFIG_GLOBS: readonly ["**/.config/nuxt.?([cm])[jt]s?(x)", "
|
|
|
201
201
|
declare const NUXT_LINT_IGNORES: readonly ["**/dist", "**/node_modules", "**/.nuxt", "**/.output", "**/.vercel", "**/.netlify", "**/public"];
|
|
202
202
|
/** A severity as it appears in the plan. */
|
|
203
203
|
type NuxtLintSeverity = "off" | "warn" | "error";
|
|
204
|
+
/** A rule severity with optional Oxlint-compatible positional options. */
|
|
205
|
+
type NuxtLintRuleConfig = NuxtLintSeverity | readonly [NuxtLintSeverity, ...unknown[]];
|
|
204
206
|
/** One item of the generated config: a named block of rules over a glob set. */
|
|
205
207
|
interface NuxtLintConfigItem {
|
|
206
208
|
/** Stable identity, matching `@nuxt/eslint`'s config item names. */
|
|
@@ -210,7 +212,9 @@ interface NuxtLintConfigItem {
|
|
|
210
212
|
/** Paths excluded from linting entirely. */
|
|
211
213
|
ignores?: string[];
|
|
212
214
|
/** Rule severities keyed by eslint-compatible rule id. */
|
|
213
|
-
rules?: Record<string,
|
|
215
|
+
rules?: Record<string, NuxtLintRuleConfig>;
|
|
216
|
+
/** Oxlint-owned rules that must keep their authored namespace. */
|
|
217
|
+
nativeRules?: Record<string, NuxtLintRuleConfig>;
|
|
214
218
|
/** Globals the block declares, so undefined-variable rules stay quiet. */
|
|
215
219
|
globals?: Record<string, "readonly" | "writable">;
|
|
216
220
|
}
|