@alint-js/cli 0.0.25 → 0.0.28
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/README.md +33 -2
- package/dist/bin/index.mjs +1 -1
- package/dist/{cli-eKRENWVY.mjs → cli-DEGDq_sM.mjs} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
|
+
<picture>
|
|
2
|
+
<source
|
|
3
|
+
width="200"
|
|
4
|
+
srcset="./docs/assets/alint-logo.svg"
|
|
5
|
+
media="(prefers-color-scheme: dark)"
|
|
6
|
+
/>
|
|
7
|
+
<source
|
|
8
|
+
width="200"
|
|
9
|
+
srcset="./docs/assets/alint-logo.svg"
|
|
10
|
+
media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
|
|
11
|
+
/>
|
|
12
|
+
<img width="200" src="./docs/assets/alint-logo.svg" alt="Alint Logo" />
|
|
13
|
+
</picture>
|
|
14
|
+
|
|
1
15
|
# `alint`
|
|
2
16
|
|
|
3
|
-
![
|
|
17
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
18
|
+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
19
|
+
[![bundle][bundle-src]][bundle-href]
|
|
20
|
+
[![JSDocs][jsdocs-src]][jsdocs-href]
|
|
21
|
+
[![License][license-src]][license-href]
|
|
22
|
+
|
|
23
|
+

|
|
4
24
|
|
|
5
25
|
`alint` is an [`eslint`](https://eslint.org/) inspired agentic code analysis tool for vibe-coded code that needs another look. It runs model-backed rules against source files, reports diagnostics in a familiar lint format, and lets rule authors use plain model calls or swappable tool-using agents when a rule needs deeper context.
|
|
6
26
|
|
|
@@ -140,7 +160,7 @@ Ask model-backed rules to write diagnostics in a specific language:
|
|
|
140
160
|
alint --lang zh-CN src
|
|
141
161
|
```
|
|
142
162
|
|
|
143
|
-
`alint` returns exit code `
|
|
163
|
+
`alint` returns exit code `0` when diagnostics contain no errors, including warning-only runs. It returns `1` when at least one error diagnostic is reported and `2` when the command cannot complete because of a configuration, input, or runtime failure. `alint output inspect` uses the same exit-code behavior for saved results.
|
|
144
164
|
|
|
145
165
|
### Inspect Configuration and Output
|
|
146
166
|
|
|
@@ -517,3 +537,14 @@ pnpm lint
|
|
|
517
537
|
## License
|
|
518
538
|
|
|
519
539
|
MIT
|
|
540
|
+
|
|
541
|
+
[npm-version-src]: https://img.shields.io/npm/v/@alint-js/cli?style=flat&colorA=080f12&colorB=1fa669
|
|
542
|
+
[npm-version-href]: https://npmjs.com/package/@alint-js/cli
|
|
543
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/@alint-js/core?style=flat&colorA=080f12&colorB=1fa669
|
|
544
|
+
[npm-downloads-href]: https://npmjs.com/package/@alint-js/core
|
|
545
|
+
[bundle-src]: https://img.shields.io/bundlephobia/minzip/@alint-js/cli?style=flat&colorA=080f12&colorB=1fa669&label=minzip
|
|
546
|
+
[bundle-href]: https://bundlephobia.com/result?p=@alint-js/cli
|
|
547
|
+
[license-src]: https://img.shields.io/github/license/moeru-ai/alint.svg?style=flat&colorA=080f12&colorB=1fa669
|
|
548
|
+
[license-href]: https://github.com/moeru-ai/alint/blob/main/LICENSE
|
|
549
|
+
[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669
|
|
550
|
+
[jsdocs-href]: https://www.jsdocs.io/package/@alint-js/cli
|
package/dist/bin/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import Gitignore from "gitignore-fs";
|
|
|
14
14
|
import { Minimatch, minimatch } from "minimatch";
|
|
15
15
|
import { errorMessageFrom as errorMessageFrom$1 } from "@moeru/std";
|
|
16
16
|
//#region package.json
|
|
17
|
-
var version = "0.0.
|
|
17
|
+
var version = "0.0.28";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/cli/commands/command.ts
|
|
20
20
|
function defineCommand(node) {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import "cac";
|
|
1
2
|
import { ignorePatternsAIAgents, ignorePatternsBuildOutputs, ignorePatternsCaches, ignorePatternsCommon, ignorePatternsEslintDefaults, ignorePatternsGenerated } from "@alint-js/config";
|
|
2
3
|
import { AlintConfig, AlintConfigItem, Diagnostic, RunResult, RunnerConfig, defineConfig } from "@alint-js/core";
|
|
3
|
-
|
|
4
4
|
//#region src/cli/types.d.ts
|
|
5
5
|
interface CliIo {
|
|
6
6
|
cwd: string;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as formatJson, n as formatDiagnostics, r as formatStylish, t as executeCli } from "./cli-
|
|
1
|
+
import { i as formatJson, n as formatDiagnostics, r as formatStylish, t as executeCli } from "./cli-DEGDq_sM.mjs";
|
|
2
2
|
import { ignorePatternsAIAgents, ignorePatternsBuildOutputs, ignorePatternsCaches, ignorePatternsCommon, ignorePatternsEslintDefaults, ignorePatternsGenerated } from "@alint-js/config";
|
|
3
3
|
import { defineConfig } from "@alint-js/core";
|
|
4
4
|
export { defineConfig, executeCli, formatDiagnostics, formatJson, formatStylish, ignorePatternsAIAgents, ignorePatternsBuildOutputs, ignorePatternsCaches, ignorePatternsCommon, ignorePatternsEslintDefaults, ignorePatternsGenerated };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alint-js/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.28",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.mts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@clack/prompts": "^1.
|
|
19
|
+
"@clack/prompts": "^1.7.0",
|
|
20
20
|
"@moeru/std": "^0.1.0-beta.18",
|
|
21
21
|
"cac": "^7.0.0",
|
|
22
22
|
"cli-spinners": "^3.4.0",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"pathe": "^2.0.3",
|
|
26
26
|
"table": "^6.9.0",
|
|
27
27
|
"tinyrainbow": "^3.1.0",
|
|
28
|
-
"@alint-js/
|
|
29
|
-
"@alint-js/
|
|
28
|
+
"@alint-js/config": "0.0.28",
|
|
29
|
+
"@alint-js/core": "0.0.28"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@pnpm/find-workspace-dir": "^1000.1.5",
|