@alint-js/core 0.0.6 → 0.0.7
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 +2 -0
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -221,6 +221,7 @@ interface RuleContext {
|
|
|
221
221
|
recordUsage: (usage: RuleInferenceUsageRecord) => void;
|
|
222
222
|
};
|
|
223
223
|
model: (selector?: ModelRequirement | string) => Promise<ResolvedModel>;
|
|
224
|
+
outputLanguage?: string;
|
|
224
225
|
report: (diagnostic: DiagnosticDescriptor) => void;
|
|
225
226
|
settings: Record<string, unknown>;
|
|
226
227
|
src: SourceRuntime;
|
|
@@ -386,6 +387,7 @@ interface RunOptions {
|
|
|
386
387
|
cwd?: string;
|
|
387
388
|
files?: string[];
|
|
388
389
|
modelOverride?: string;
|
|
390
|
+
outputLanguage?: string;
|
|
389
391
|
progress?: ProgressReporter;
|
|
390
392
|
runner?: RunnerOptions;
|
|
391
393
|
setupConfig?: SetupConfig;
|
package/dist/index.mjs
CHANGED
|
@@ -647,7 +647,7 @@ function createBuiltInLanguageRegistry() {
|
|
|
647
647
|
}
|
|
648
648
|
//#endregion
|
|
649
649
|
//#region package.json
|
|
650
|
-
var version = "0.0.
|
|
650
|
+
var version = "0.0.7";
|
|
651
651
|
//#endregion
|
|
652
652
|
//#region src/dsl/registry.ts
|
|
653
653
|
function buildRuleRegistry(config) {
|
|
@@ -957,6 +957,7 @@ async function runAlint(options = {}) {
|
|
|
957
957
|
fileEntryKeys: /* @__PURE__ */ new Map(),
|
|
958
958
|
modelHash: stableHash({
|
|
959
959
|
modelOverride: options.modelOverride,
|
|
960
|
+
outputLanguage: options.outputLanguage,
|
|
960
961
|
setupConfig
|
|
961
962
|
}),
|
|
962
963
|
store: cacheStore
|
|
@@ -1204,6 +1205,7 @@ function createRuleRuntimes(options) {
|
|
|
1204
1205
|
if (state) state.currentModel = toDiagnosticModel(resolvedModel, request);
|
|
1205
1206
|
return resolvedModel;
|
|
1206
1207
|
},
|
|
1208
|
+
outputLanguage: options.options.outputLanguage,
|
|
1207
1209
|
report: (descriptor) => {
|
|
1208
1210
|
const state = executionState.getStore();
|
|
1209
1211
|
const filePath = descriptor.filePath ?? state?.activeFilePath;
|