@alint-js/plugin 0.3.2 → 0.5.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 +6 -4
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -803,7 +803,7 @@ interface Config<TIssue extends BaseIssue<unknown>> {
|
|
|
803
803
|
readonly abortPipeEarly?: boolean | undefined;
|
|
804
804
|
}
|
|
805
805
|
//#endregion
|
|
806
|
-
//#region ../core/dist/types-
|
|
806
|
+
//#region ../core/dist/types-BK5CADYK.d.mts
|
|
807
807
|
//#region src/config/types.d.ts
|
|
808
808
|
type ModelSize = 'large' | 'medium' | 'small';
|
|
809
809
|
interface RunnerCacheConfig {
|
|
@@ -1040,8 +1040,10 @@ interface RuleInferenceUsageRecord {
|
|
|
1040
1040
|
totalTokens?: number;
|
|
1041
1041
|
}
|
|
1042
1042
|
/**
|
|
1043
|
-
* - `'any'` — every
|
|
1044
|
-
*
|
|
1043
|
+
* - `'any'` — every language except `plaintext`, and never a failure. Plain text is what a file
|
|
1044
|
+
* falls back to when no language claims it, so a rule asking for any language is asking for a
|
|
1045
|
+
* real one. Rules that work from `FunctionInfo` alone want this: install another language pack
|
|
1046
|
+
* and they cover it too, unchanged.
|
|
1045
1047
|
* - A list of language ids — `LanguageDefinition.name` values such as `go` or `typescript`, never
|
|
1046
1048
|
* file extensions. The rule handles exactly these. Files of other languages are skipped
|
|
1047
1049
|
* rather than failed, so one plugin can carry rules for several languages behind one `files:`
|
|
@@ -1082,7 +1084,7 @@ interface RuleWithHandler {
|
|
|
1082
1084
|
}
|
|
1083
1085
|
type Target = DirectoryTarget | PlannedSourceTarget | ProjectTarget;
|
|
1084
1086
|
//#endregion
|
|
1085
|
-
//#region ../core/dist/define-
|
|
1087
|
+
//#region ../core/dist/define-CNfm3wZW.d.mts
|
|
1086
1088
|
//#region src/dsl/define.d.ts
|
|
1087
1089
|
type AnyRuleDefinition = RuleDefinition<any>;
|
|
1088
1090
|
type ConfigItemWithPluginRules<Plugins, Rules> = Omit<AlintConfigItem, 'plugins' | 'rules'> & {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alint-js/plugin",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.mts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"valibot": "^1.4.2",
|
|
17
|
-
"@alint-js/core": "0.
|
|
17
|
+
"@alint-js/core": "0.5.0"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "tsdown",
|