@alint-js/plugin-js 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 +20 -4
package/dist/index.d.mts CHANGED
@@ -746,7 +746,7 @@ interface Config$1<TIssue extends BaseIssue$1<unknown>> {
746
746
  readonly abortPipeEarly?: boolean | undefined;
747
747
  }
748
748
  //#endregion
749
- //#region ../core/dist/types-BK5CADYK.d.mts
749
+ //#region ../core/dist/types-Cm5Z7Fll.d.mts
750
750
  //#region src/config/types.d.ts
751
751
  type ModelSize = 'large' | 'medium' | 'small';
752
752
  interface RunnerCacheConfig {
@@ -826,6 +826,7 @@ interface AlintConfigItem {
826
826
  files?: readonly (readonly string[] | string)[];
827
827
  ignore?: IgnoreConfig;
828
828
  ignores?: readonly string[];
829
+ integrations?: IntegrationsConfig;
829
830
  language?: string;
830
831
  languageOptions?: Record<string, unknown>;
831
832
  linterOptions?: AlintLinterOptions;
@@ -870,6 +871,9 @@ interface DirectoryTarget {
870
871
  interface IgnoreConfig {
871
872
  gitignore?: boolean;
872
873
  }
874
+ interface IntegrationsConfig {
875
+ stopGate?: StopGateConfig;
876
+ }
873
877
  interface LanguageDefinition {
874
878
  extensions?: readonly string[];
875
879
  extract: (file: SourceFile, context: LanguageContext) => Awaitable<SourceTarget[]>;
@@ -1010,6 +1014,12 @@ interface RuleWithHandler {
1010
1014
  onTargetProject?: never;
1011
1015
  onTargetWith: (target: Target) => Awaitable<void>;
1012
1016
  }
1017
+ interface StopGateConfig {
1018
+ enabled?: boolean;
1019
+ target?: StopGateTarget;
1020
+ timeoutMs?: number;
1021
+ }
1022
+ type StopGateTarget = 'all' | 'dirty-files';
1013
1023
  type Target = DirectoryTarget | PlannedSourceTarget | ProjectTarget;
1014
1024
  //#endregion
1015
1025
  //#region ../../node_modules/.pnpm/valibot@1.4.2_typescript@6.0.3/node_modules/valibot/dist/index.d.mts
package/package.json CHANGED
@@ -1,7 +1,23 @@
1
1
  {
2
2
  "name": "@alint-js/plugin-js",
3
3
  "type": "module",
4
- "version": "0.5.0",
4
+ "version": "0.7.0",
5
+ "description": "Model-backed JavaScript and TypeScript review rules for alint",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/moeru-ai/alint.git",
10
+ "directory": "packages/plugin-js"
11
+ },
12
+ "keywords": [
13
+ "alint",
14
+ "lint",
15
+ "plugin",
16
+ "javascript",
17
+ "typescript",
18
+ "code-analysis",
19
+ "ai"
20
+ ],
5
21
  "exports": {
6
22
  ".": {
7
23
  "types": "./dist/index.d.mts",
@@ -16,9 +32,9 @@
16
32
  "@valibot/to-json-schema": "^1.7.1",
17
33
  "apeira": "^0.0.7",
18
34
  "valibot": "^1.4.2",
19
- "@alint-js/core": "0.5.0",
20
- "@alint-js/plugin": "0.5.0",
21
- "@alint-js/tools-fs": "0.5.0"
35
+ "@alint-js/core": "0.7.0",
36
+ "@alint-js/plugin": "0.7.0",
37
+ "@alint-js/tools-fs": "0.7.0"
22
38
  },
23
39
  "scripts": {
24
40
  "build": "tsdown",