@alint-js/languages 0.5.0 → 0.7.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.
Files changed (2) hide show
  1. package/dist/index.d.mts +11 -1
  2. package/package.json +19 -4
package/dist/index.d.mts CHANGED
@@ -747,7 +747,7 @@ interface Config<TIssue extends BaseIssue<unknown>> {
747
747
  readonly abortPipeEarly?: boolean | undefined;
748
748
  }
749
749
  //#endregion
750
- //#region ../core/dist/types-BK5CADYK.d.mts
750
+ //#region ../core/dist/types-Cm5Z7Fll.d.mts
751
751
  //#region src/config/types.d.ts
752
752
  type ModelSize = 'large' | 'medium' | 'small';
753
753
  interface RunnerCacheConfig {
@@ -827,6 +827,7 @@ interface AlintConfigItem {
827
827
  files?: readonly (readonly string[] | string)[];
828
828
  ignore?: IgnoreConfig;
829
829
  ignores?: readonly string[];
830
+ integrations?: IntegrationsConfig;
830
831
  language?: string;
831
832
  languageOptions?: Record<string, unknown>;
832
833
  linterOptions?: AlintLinterOptions;
@@ -871,6 +872,9 @@ interface DirectoryTarget {
871
872
  interface IgnoreConfig {
872
873
  gitignore?: boolean;
873
874
  }
875
+ interface IntegrationsConfig {
876
+ stopGate?: StopGateConfig;
877
+ }
874
878
  interface LanguageDefinition {
875
879
  extensions?: readonly string[];
876
880
  extract: (file: SourceFile$1, context: LanguageContext) => Awaitable<SourceTarget$1[]>;
@@ -1011,6 +1015,12 @@ interface RuleWithHandler {
1011
1015
  onTargetProject?: never;
1012
1016
  onTargetWith: (target: Target) => Awaitable<void>;
1013
1017
  }
1018
+ interface StopGateConfig {
1019
+ enabled?: boolean;
1020
+ target?: StopGateTarget;
1021
+ timeoutMs?: number;
1022
+ }
1023
+ type StopGateTarget = 'all' | 'dirty-files';
1014
1024
  type Target = DirectoryTarget | PlannedSourceTarget | ProjectTarget;
1015
1025
  //#endregion
1016
1026
  //#region src/extract.d.ts
package/package.json CHANGED
@@ -1,7 +1,22 @@
1
1
  {
2
2
  "name": "@alint-js/languages",
3
3
  "type": "module",
4
- "version": "0.5.0",
4
+ "version": "0.7.0",
5
+ "description": "First-party Go, Python, and Rust language support for alint",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/moeru-ai/alint.git",
10
+ "directory": "packages/languages"
11
+ },
12
+ "keywords": [
13
+ "alint",
14
+ "lint",
15
+ "tree-sitter",
16
+ "go",
17
+ "python",
18
+ "rust"
19
+ ],
5
20
  "exports": {
6
21
  ".": {
7
22
  "types": "./dist/index.d.mts",
@@ -13,15 +28,15 @@
13
28
  "dist"
14
29
  ],
15
30
  "peerDependencies": {
16
- "@alint-js/core": "0.5.0"
31
+ "@alint-js/core": "0.7.0"
17
32
  },
18
33
  "dependencies": {
19
34
  "tree-sitter-wasms": "^0.1.13",
20
35
  "web-tree-sitter": "^0.24.7"
21
36
  },
22
37
  "devDependencies": {
23
- "@alint-js/core": "0.5.0",
24
- "@alint-js/plugin": "0.5.0"
38
+ "@alint-js/core": "0.7.0",
39
+ "@alint-js/plugin": "0.7.0"
25
40
  },
26
41
  "scripts": {
27
42
  "build": "tsdown",