routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
//#region \0rolldown/runtime.js
|
||||
var __defProp = Object.defineProperty;
|
||||
var __exportAll = (all, no_symbols) => {
|
||||
let target = {};
|
||||
for (var name in all) __defProp(target, name, {
|
||||
get: all[name],
|
||||
enumerable: true
|
||||
});
|
||||
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
||||
return target;
|
||||
};
|
||||
//#endregion
|
||||
export { __exportAll as t };
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
import { Rule } from "eslint";
|
||||
import { JSONSchema4 } from "json-schema";
|
||||
|
||||
//#region lib/types.d.ts
|
||||
type RuleListener = Rule.RuleListener;
|
||||
interface RuleModule {
|
||||
meta: RuleMetaData;
|
||||
create(context: Rule.RuleContext): RuleListener;
|
||||
}
|
||||
type RuleCategory = "Possible Errors" | "Best Practices" | "Stylistic Issues";
|
||||
type SeverityString = "error" | "warn" | "off";
|
||||
interface RuleMetaData {
|
||||
docs: {
|
||||
description: string;
|
||||
category: RuleCategory;
|
||||
recommended: boolean;
|
||||
url: string;
|
||||
ruleId: string;
|
||||
ruleName: string;
|
||||
default?: Exclude<SeverityString, "off">;
|
||||
};
|
||||
messages: {
|
||||
[messageId: string]: string;
|
||||
};
|
||||
fixable?: "code" | "whitespace";
|
||||
schema: JSONSchema4 | JSONSchema4[];
|
||||
deprecated?: boolean;
|
||||
replacedBy?: string[];
|
||||
type: "problem" | "suggestion" | "layout";
|
||||
hasSuggestions?: boolean;
|
||||
}
|
||||
//#endregion
|
||||
//#region lib/configs/rules/recommended.d.ts
|
||||
declare const rules$2: Record<string, SeverityString>;
|
||||
declare namespace recommended_d_exports {
|
||||
export { plugins$1 as plugins, rules$2 as rules };
|
||||
}
|
||||
declare const plugins$1: {
|
||||
readonly regexp: {
|
||||
configs: {
|
||||
recommended: typeof recommended_d_exports;
|
||||
all: typeof all_d_exports;
|
||||
"flat/all": typeof all_d_exports;
|
||||
"flat/recommended": typeof recommended_d_exports;
|
||||
};
|
||||
rules: {
|
||||
[key: string]: RuleModule;
|
||||
};
|
||||
meta: {
|
||||
name: string;
|
||||
version: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
//#endregion
|
||||
//#region lib/configs/rules/all.d.ts
|
||||
declare const rules$1: {
|
||||
[x: string]: SeverityString;
|
||||
};
|
||||
declare namespace all_d_exports {
|
||||
export { plugins, rules$1 as rules };
|
||||
}
|
||||
declare const plugins: {
|
||||
readonly regexp: {
|
||||
configs: {
|
||||
recommended: typeof recommended_d_exports;
|
||||
all: typeof all_d_exports;
|
||||
"flat/all": typeof all_d_exports;
|
||||
"flat/recommended": typeof recommended_d_exports;
|
||||
};
|
||||
rules: {
|
||||
[key: string]: RuleModule;
|
||||
};
|
||||
meta: {
|
||||
name: string;
|
||||
version: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
//#endregion
|
||||
//#region lib/index.d.ts
|
||||
declare const meta: {
|
||||
name: string;
|
||||
version: string;
|
||||
};
|
||||
declare const configs: {
|
||||
recommended: typeof recommended_d_exports;
|
||||
all: typeof all_d_exports;
|
||||
"flat/all": typeof all_d_exports;
|
||||
"flat/recommended": typeof recommended_d_exports;
|
||||
};
|
||||
declare const rules: {
|
||||
[key: string]: RuleModule;
|
||||
};
|
||||
declare const regexp: {
|
||||
configs: {
|
||||
recommended: typeof recommended_d_exports;
|
||||
all: typeof all_d_exports;
|
||||
"flat/all": typeof all_d_exports;
|
||||
"flat/recommended": typeof recommended_d_exports;
|
||||
};
|
||||
rules: {
|
||||
[key: string]: RuleModule;
|
||||
};
|
||||
meta: {
|
||||
name: string;
|
||||
version: string;
|
||||
};
|
||||
};
|
||||
//#endregion
|
||||
export { configs, regexp as default, meta, rules };
|
||||
+15311
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user