@venos-inc/venos 0.1.9 → 0.1.11
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 +10 -9
- package/dist/index.js +75 -79
- package/etc/mcp-server/bin.js +2 -2
- package/etc/mcp-server/client.js +23 -0
- package/etc/mcp-server/node_modules/@babel/core/node_modules/.bin/json5 +2 -2
- package/etc/mcp-server/node_modules/@babel/core/node_modules/.bin/parser +2 -2
- package/etc/mcp-server/node_modules/@babel/core/node_modules/.bin/semver +2 -2
- package/etc/mcp-server/node_modules/@babel/generator/node_modules/.bin/jsesc +2 -2
- package/etc/mcp-server/node_modules/@babel/generator/node_modules/.bin/parser +2 -2
- package/etc/mcp-server/node_modules/@babel/helper-compilation-targets/node_modules/.bin/browserslist +2 -2
- package/etc/mcp-server/node_modules/@babel/helper-compilation-targets/node_modules/.bin/semver +2 -2
- package/etc/mcp-server/node_modules/@babel/template/node_modules/.bin/parser +2 -2
- package/etc/mcp-server/node_modules/@babel/traverse/node_modules/.bin/parser +2 -2
- package/etc/mcp-server/node_modules/@eslint/core/README.md +3 -3
- package/etc/mcp-server/node_modules/@eslint/core/dist/cjs/types.d.cts +47 -9
- package/etc/mcp-server/node_modules/@eslint/core/dist/esm/types.d.ts +47 -9
- package/etc/mcp-server/node_modules/@eslint/core/package.json +5 -5
- package/etc/mcp-server/node_modules/@eslint/eslintrc/node_modules/.bin/js-yaml +2 -2
- package/etc/mcp-server/node_modules/@eslint/plugin-kit/README.md +9 -11
- package/etc/mcp-server/node_modules/@eslint/plugin-kit/dist/cjs/index.cjs +21 -12
- package/etc/mcp-server/node_modules/@eslint/plugin-kit/dist/cjs/index.d.cts +31 -19
- package/etc/mcp-server/node_modules/@eslint/plugin-kit/dist/esm/index.d.ts +31 -19
- package/etc/mcp-server/node_modules/@eslint/plugin-kit/dist/esm/index.js +21 -12
- package/etc/mcp-server/node_modules/@eslint/plugin-kit/package.json +6 -9
- package/etc/mcp-server/node_modules/@eslint-community/eslint-utils/node_modules/.bin/eslint +2 -2
- package/etc/mcp-server/node_modules/@types/babel__core/node_modules/.bin/parser +2 -2
- package/etc/mcp-server/node_modules/@types/babel__template/node_modules/.bin/parser +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/eslint-plugin/node_modules/.bin/eslint +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/eslint-plugin/node_modules/.bin/tsc +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/eslint-plugin/node_modules/.bin/tsserver +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/parser/node_modules/.bin/eslint +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/parser/node_modules/.bin/tsc +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/parser/node_modules/.bin/tsserver +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/project-service/node_modules/.bin/tsc +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/project-service/node_modules/.bin/tsserver +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/tsconfig-utils/node_modules/.bin/tsc +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/tsconfig-utils/node_modules/.bin/tsserver +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/type-utils/node_modules/.bin/eslint +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/type-utils/node_modules/.bin/tsc +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/type-utils/node_modules/.bin/tsserver +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/typescript-estree/node_modules/.bin/semver +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/typescript-estree/node_modules/.bin/tsc +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/typescript-estree/node_modules/.bin/tsserver +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/utils/node_modules/.bin/eslint +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/utils/node_modules/.bin/tsc +2 -2
- package/etc/mcp-server/node_modules/@typescript-eslint/utils/node_modules/.bin/tsserver +2 -2
- package/etc/mcp-server/node_modules/@vitest/mocker/node_modules/.bin/vite +2 -2
- package/etc/mcp-server/node_modules/acorn-jsx/node_modules/.bin/acorn +2 -2
- package/etc/mcp-server/node_modules/browserslist/node_modules/.bin/baseline-browser-mapping +2 -2
- package/etc/mcp-server/node_modules/browserslist/node_modules/.bin/update-browserslist-db +2 -2
- package/etc/mcp-server/node_modules/cross-spawn/node_modules/.bin/node-which +2 -2
- package/etc/mcp-server/node_modules/espree/node_modules/.bin/acorn +2 -2
- package/etc/mcp-server/node_modules/postcss/node_modules/.bin/nanoid +2 -2
- package/etc/mcp-server/node_modules/sharp/node_modules/.bin/semver +2 -2
- package/etc/mcp-server/node_modules/ts-api-utils/node_modules/.bin/tsc +2 -2
- package/etc/mcp-server/node_modules/ts-api-utils/node_modules/.bin/tsserver +2 -2
- package/etc/mcp-server/node_modules/typescript-eslint/node_modules/.bin/eslint +2 -2
- package/etc/mcp-server/node_modules/typescript-eslint/node_modules/.bin/tsc +2 -2
- package/etc/mcp-server/node_modules/typescript-eslint/node_modules/.bin/tsserver +2 -2
- package/etc/mcp-server/node_modules/update-browserslist-db/node_modules/.bin/browserslist +2 -2
- package/etc/mcp-server/node_modules/vite/node_modules/.bin/esbuild +2 -2
- package/etc/mcp-server/node_modules/vite/node_modules/.bin/rollup +2 -2
- package/etc/mcp-server/node_modules/vite-node/node_modules/.bin/vite +2 -2
- package/etc/mcp-server/node_modules/vitest/node_modules/.bin/vite +2 -2
- package/etc/mcp-server/node_modules/vitest/node_modules/.bin/vite-node +2 -2
- package/etc/mcp-server/node_modules/vitest/node_modules/.bin/why-is-node-running +2 -2
- package/etc/mcp-server/tools.js +172 -138
- package/package.json +1 -1
package/etc/mcp-server/bin.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
// {
|
|
7
7
|
// "mcpServers": {
|
|
8
8
|
// "venos": {
|
|
9
|
-
// "command": "
|
|
10
|
-
// "args": ["
|
|
9
|
+
// "command": "node",
|
|
10
|
+
// "args": ["/absolute/path/to/venos/packages/mcp-server/dist/bin.js"],
|
|
11
11
|
// "env": {
|
|
12
12
|
// "VENOS_URL": "http://localhost:8787",
|
|
13
13
|
// "VENOS_ORG_ID": "your-org-id",
|
package/etc/mcp-server/client.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// Typed client for the venos orchestrator REST API.
|
|
2
2
|
// All methods return plain objects — no SDK dependency here.
|
|
3
|
+
import { readFile } from "node:fs/promises";
|
|
4
|
+
import { basename } from "node:path";
|
|
3
5
|
import { deviceFields } from "./device.js";
|
|
4
6
|
export class VenosClient {
|
|
5
7
|
cfg;
|
|
@@ -39,6 +41,27 @@ export class VenosClient {
|
|
|
39
41
|
throw new Error(`venos API ${path} → ${res.status} ${res.statusText}`);
|
|
40
42
|
return res.json();
|
|
41
43
|
}
|
|
44
|
+
// classifyDocument uploads a local file to the DSPM document-classify endpoint,
|
|
45
|
+
// which extracts text (OCR for scans, backend selectable server-side) and runs
|
|
46
|
+
// it through the venos engine. orgId rides in the query string; the bearer key,
|
|
47
|
+
// when present, pins the trusted org server-side.
|
|
48
|
+
async classifyDocument(filePath) {
|
|
49
|
+
const bytes = await readFile(filePath);
|
|
50
|
+
const form = new FormData();
|
|
51
|
+
form.append("file", new Blob([new Uint8Array(bytes)]), basename(filePath));
|
|
52
|
+
form.append("orgId", this.cfg.orgId);
|
|
53
|
+
const url = new URL("/api/dspm/documents/classify", this.cfg.baseUrl);
|
|
54
|
+
url.searchParams.set("orgId", this.cfg.orgId);
|
|
55
|
+
const headers = {};
|
|
56
|
+
if (this.cfg.apiKey)
|
|
57
|
+
headers["Authorization"] = `Bearer ${this.cfg.apiKey}`;
|
|
58
|
+
const res = await fetch(url.toString(), { method: "POST", headers, body: form });
|
|
59
|
+
if (!res.ok) {
|
|
60
|
+
throw new Error(`venos API /api/dspm/documents/classify → ${res.status} ${res.statusText}`);
|
|
61
|
+
}
|
|
62
|
+
const data = (await res.json());
|
|
63
|
+
return data.document;
|
|
64
|
+
}
|
|
42
65
|
async openLoop(input) {
|
|
43
66
|
return this.post("/api/loops", input);
|
|
44
67
|
}
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
9
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/json5@2.2.3/node_modules/json5/lib/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/json5@2.2.3/node_modules/json5/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/json5@2.2.3/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
11
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/json5@2.2.3/node_modules/json5/lib/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/json5@2.2.3/node_modules/json5/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/json5@2.2.3/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../../../../../../json5@2.2.3/node_modules/json5/lib/cli.js" "$@"
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
9
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/bin/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
11
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/bin/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../../../../../../@babel+parser@7.29.7/node_modules/@babel/parser/bin/babel-parser.js" "$@"
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
9
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/semver@6.3.1/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
11
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/semver@6.3.1/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../../../../../../semver@6.3.1/node_modules/semver/bin/semver.js" "$@"
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
9
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/jsesc@3.1.0/node_modules/jsesc/bin/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/jsesc@3.1.0/node_modules/jsesc/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/jsesc@3.1.0/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
11
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/jsesc@3.1.0/node_modules/jsesc/bin/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/jsesc@3.1.0/node_modules/jsesc/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/jsesc@3.1.0/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../../../../../../jsesc@3.1.0/node_modules/jsesc/bin/jsesc" "$@"
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
9
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/bin/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
11
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/bin/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../../../../../../@babel+parser@7.29.7/node_modules/@babel/parser/bin/babel-parser.js" "$@"
|
package/etc/mcp-server/node_modules/@babel/helper-compilation-targets/node_modules/.bin/browserslist
CHANGED
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
9
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/browserslist@4.28.2/node_modules/browserslist/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/browserslist@4.28.2/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
11
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/browserslist@4.28.2/node_modules/browserslist/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/browserslist@4.28.2/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../../../../../../browserslist@4.28.2/node_modules/browserslist/cli.js" "$@"
|
package/etc/mcp-server/node_modules/@babel/helper-compilation-targets/node_modules/.bin/semver
CHANGED
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
9
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/semver@6.3.1/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
11
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/semver@6.3.1/node_modules/semver/bin/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/semver@6.3.1/node_modules/semver/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/semver@6.3.1/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../../../../../../semver@6.3.1/node_modules/semver/bin/semver.js" "$@"
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
9
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/bin/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
11
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/bin/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../../../../../../@babel+parser@7.29.7/node_modules/@babel/parser/bin/babel-parser.js" "$@"
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
9
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/bin/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
11
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/bin/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/@babel+parser@7.29.7/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../../../../../../@babel+parser@7.29.7/node_modules/@babel/parser/bin/babel-parser.js" "$@"
|
|
@@ -20,9 +20,9 @@ to get your logo on our READMEs and [website](https://eslint.org/sponsors).
|
|
|
20
20
|
|
|
21
21
|
<h3>Platinum Sponsors</h3>
|
|
22
22
|
<p><a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="128"></a> <a href="https://www.airbnb.com/"><img src="https://images.opencollective.com/airbnb/d327d66/logo.png" alt="Airbnb" height="128"></a></p><h3>Gold Sponsors</h3>
|
|
23
|
-
<p><a href="https://qlty.sh/"><img src="https://images.opencollective.com/qltysh/33d157d/logo.png" alt="Qlty Software" height="96"></a> <a href="https://trunk.io/"><img src="https://images.opencollective.com/trunkio/fb92d60/avatar.png" alt="trunk.io" height="96"></a></p><h3>Silver Sponsors</h3>
|
|
24
|
-
<p><a href="https://vite.dev/"><img src="https://images.opencollective.com/vite/e6d15e1/logo.png" alt="Vite" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/5c4fa84/logo.png" alt="Liftoff" height="64"></a> <a href="https://stackblitz.com"><img src="https://avatars.githubusercontent.com/u/28635252" alt="StackBlitz" height="64"></a></p><h3>Bronze Sponsors</h3>
|
|
25
|
-
<p><a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://
|
|
23
|
+
<p><a href="https://qlty.sh/"><img src="https://images.opencollective.com/qltysh/33d157d/logo.png" alt="Qlty Software" height="96"></a> <a href="https://trunk.io/"><img src="https://images.opencollective.com/trunkio/fb92d60/avatar.png" alt="trunk.io" height="96"></a> <a href="https://shopify.engineering/"><img src="https://avatars.githubusercontent.com/u/8085" alt="Shopify" height="96"></a></p><h3>Silver Sponsors</h3>
|
|
24
|
+
<p><a href="https://vite.dev/"><img src="https://images.opencollective.com/vite/e6d15e1/logo.png" alt="Vite" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/5c4fa84/logo.png" alt="Liftoff" height="64"></a> <a href="https://americanexpress.io"><img src="https://avatars.githubusercontent.com/u/3853301" alt="American Express" height="64"></a> <a href="https://stackblitz.com"><img src="https://avatars.githubusercontent.com/u/28635252" alt="StackBlitz" height="64"></a></p><h3>Bronze Sponsors</h3>
|
|
25
|
+
<p><a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://www.crosswordsolver.org/anagram-solver/"><img src="https://images.opencollective.com/anagram-solver/2666271/logo.png" alt="Anagram Solver" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340" alt="GitBook" height="32"></a> <a href="https://nx.dev"><img src="https://avatars.githubusercontent.com/u/23692104" alt="Nx" height="32"></a> <a href="https://opensource.mercedes-benz.com/"><img src="https://avatars.githubusercontent.com/u/34240465" alt="Mercedes-Benz Group" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774" alt="HeroCoders" height="32"></a> <a href="https://www.lambdatest.com"><img src="https://avatars.githubusercontent.com/u/171592363" alt="LambdaTest" height="32"></a></p>
|
|
26
26
|
<h3>Technology Sponsors</h3>
|
|
27
27
|
Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work.
|
|
28
28
|
<p><a href="https://netlify.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/netlify-icon.svg" alt="Netlify" height="32"></a> <a href="https://algolia.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/algolia-icon.svg" alt="Algolia" height="32"></a> <a href="https://1password.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/1password-icon.svg" alt="1Password" height="32"></a></p>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @fileoverview Shared types for ESLint Core.
|
|
3
3
|
*/
|
|
4
|
-
import { JSONSchema4 } from "json-schema";
|
|
4
|
+
import type { JSONSchema4 } from "json-schema";
|
|
5
5
|
/**
|
|
6
6
|
* Represents an error inside of a file.
|
|
7
7
|
*/
|
|
@@ -90,8 +90,10 @@ export interface RulesMetaDocs {
|
|
|
90
90
|
category?: string | undefined;
|
|
91
91
|
/**
|
|
92
92
|
* Indicates if the rule is generally recommended for all users.
|
|
93
|
+
*
|
|
94
|
+
* Note - this will always be a boolean for core rules, but may be used in any way by plugins.
|
|
93
95
|
*/
|
|
94
|
-
recommended?:
|
|
96
|
+
recommended?: unknown;
|
|
95
97
|
/**
|
|
96
98
|
* Indicates if the rule is frozen (no longer accepting feature requests).
|
|
97
99
|
*/
|
|
@@ -453,6 +455,33 @@ export interface RuleDefinition<Options extends RuleDefinitionTypeOptions = Rule
|
|
|
453
455
|
MessageIds: Options["MessageIds"];
|
|
454
456
|
}>): Options["Visitor"];
|
|
455
457
|
}
|
|
458
|
+
/**
|
|
459
|
+
* Defaults for non-language-related `RuleDefinition` options.
|
|
460
|
+
*/
|
|
461
|
+
export interface CustomRuleTypeDefinitions {
|
|
462
|
+
RuleOptions: unknown[];
|
|
463
|
+
MessageIds: string;
|
|
464
|
+
ExtRuleDocs: Record<string, unknown>;
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* A helper type to define language specific specializations of the `RuleDefinition` type.
|
|
468
|
+
*
|
|
469
|
+
* @example
|
|
470
|
+
* ```ts
|
|
471
|
+
* type YourRuleDefinition<
|
|
472
|
+
* Options extends Partial<CustomRuleTypeDefinitions> = {},
|
|
473
|
+
* > = CustomRuleDefinitionType<
|
|
474
|
+
* {
|
|
475
|
+
* LangOptions: YourLanguageOptions;
|
|
476
|
+
* Code: YourSourceCode;
|
|
477
|
+
* Visitor: YourRuleVisitor;
|
|
478
|
+
* Node: YourNode;
|
|
479
|
+
* },
|
|
480
|
+
* Options
|
|
481
|
+
* >;
|
|
482
|
+
* ```
|
|
483
|
+
*/
|
|
484
|
+
export type CustomRuleDefinitionType<LanguageSpecificOptions extends Omit<RuleDefinitionTypeOptions, keyof CustomRuleTypeDefinitions>, Options extends Partial<CustomRuleTypeDefinitions>> = RuleDefinition<LanguageSpecificOptions & Required<Options & Omit<CustomRuleTypeDefinitions, keyof Options>>>;
|
|
456
485
|
/**
|
|
457
486
|
* The human readable severity level used in a configuration.
|
|
458
487
|
*/
|
|
@@ -481,19 +510,28 @@ export interface LinterOptionsConfig {
|
|
|
481
510
|
* Indicates what to do when an unused disable directive is found.
|
|
482
511
|
*/
|
|
483
512
|
reportUnusedDisableDirectives?: boolean | Severity;
|
|
513
|
+
/**
|
|
514
|
+
* A severity value indicating if and how unused inline configs should be
|
|
515
|
+
* tracked and reported.
|
|
516
|
+
*/
|
|
517
|
+
reportUnusedInlineConfigs?: Severity;
|
|
484
518
|
}
|
|
485
|
-
/**
|
|
486
|
-
* Shared settings that are accessible from within plugins.
|
|
487
|
-
*/
|
|
488
|
-
export type SettingsConfig = Record<string, unknown>;
|
|
489
519
|
/**
|
|
490
520
|
* The configuration for a rule.
|
|
491
521
|
*/
|
|
492
|
-
export type RuleConfig = Severity | [Severity, ...
|
|
522
|
+
export type RuleConfig<RuleOptions extends unknown[] = unknown[]> = Severity | [Severity, ...Partial<RuleOptions>];
|
|
493
523
|
/**
|
|
494
524
|
* A collection of rules and their configurations.
|
|
495
525
|
*/
|
|
496
|
-
export
|
|
526
|
+
export interface RulesConfig {
|
|
527
|
+
[key: string]: RuleConfig;
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* A collection of settings.
|
|
531
|
+
*/
|
|
532
|
+
export interface SettingsConfig {
|
|
533
|
+
[key: string]: unknown;
|
|
534
|
+
}
|
|
497
535
|
/**
|
|
498
536
|
* Generic options for the `Language` type.
|
|
499
537
|
*/
|
|
@@ -656,7 +694,7 @@ interface InlineConfigElement {
|
|
|
656
694
|
/**
|
|
657
695
|
* Generic options for the `SourceCodeBase` type.
|
|
658
696
|
*/
|
|
659
|
-
interface SourceCodeBaseTypeOptions {
|
|
697
|
+
export interface SourceCodeBaseTypeOptions {
|
|
660
698
|
LangOptions: LanguageOptions;
|
|
661
699
|
RootNode: unknown;
|
|
662
700
|
SyntaxElementWithLoc: unknown;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @fileoverview Shared types for ESLint Core.
|
|
3
3
|
*/
|
|
4
|
-
import { JSONSchema4 } from "json-schema";
|
|
4
|
+
import type { JSONSchema4 } from "json-schema";
|
|
5
5
|
/**
|
|
6
6
|
* Represents an error inside of a file.
|
|
7
7
|
*/
|
|
@@ -90,8 +90,10 @@ export interface RulesMetaDocs {
|
|
|
90
90
|
category?: string | undefined;
|
|
91
91
|
/**
|
|
92
92
|
* Indicates if the rule is generally recommended for all users.
|
|
93
|
+
*
|
|
94
|
+
* Note - this will always be a boolean for core rules, but may be used in any way by plugins.
|
|
93
95
|
*/
|
|
94
|
-
recommended?:
|
|
96
|
+
recommended?: unknown;
|
|
95
97
|
/**
|
|
96
98
|
* Indicates if the rule is frozen (no longer accepting feature requests).
|
|
97
99
|
*/
|
|
@@ -453,6 +455,33 @@ export interface RuleDefinition<Options extends RuleDefinitionTypeOptions = Rule
|
|
|
453
455
|
MessageIds: Options["MessageIds"];
|
|
454
456
|
}>): Options["Visitor"];
|
|
455
457
|
}
|
|
458
|
+
/**
|
|
459
|
+
* Defaults for non-language-related `RuleDefinition` options.
|
|
460
|
+
*/
|
|
461
|
+
export interface CustomRuleTypeDefinitions {
|
|
462
|
+
RuleOptions: unknown[];
|
|
463
|
+
MessageIds: string;
|
|
464
|
+
ExtRuleDocs: Record<string, unknown>;
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* A helper type to define language specific specializations of the `RuleDefinition` type.
|
|
468
|
+
*
|
|
469
|
+
* @example
|
|
470
|
+
* ```ts
|
|
471
|
+
* type YourRuleDefinition<
|
|
472
|
+
* Options extends Partial<CustomRuleTypeDefinitions> = {},
|
|
473
|
+
* > = CustomRuleDefinitionType<
|
|
474
|
+
* {
|
|
475
|
+
* LangOptions: YourLanguageOptions;
|
|
476
|
+
* Code: YourSourceCode;
|
|
477
|
+
* Visitor: YourRuleVisitor;
|
|
478
|
+
* Node: YourNode;
|
|
479
|
+
* },
|
|
480
|
+
* Options
|
|
481
|
+
* >;
|
|
482
|
+
* ```
|
|
483
|
+
*/
|
|
484
|
+
export type CustomRuleDefinitionType<LanguageSpecificOptions extends Omit<RuleDefinitionTypeOptions, keyof CustomRuleTypeDefinitions>, Options extends Partial<CustomRuleTypeDefinitions>> = RuleDefinition<LanguageSpecificOptions & Required<Options & Omit<CustomRuleTypeDefinitions, keyof Options>>>;
|
|
456
485
|
/**
|
|
457
486
|
* The human readable severity level used in a configuration.
|
|
458
487
|
*/
|
|
@@ -481,19 +510,28 @@ export interface LinterOptionsConfig {
|
|
|
481
510
|
* Indicates what to do when an unused disable directive is found.
|
|
482
511
|
*/
|
|
483
512
|
reportUnusedDisableDirectives?: boolean | Severity;
|
|
513
|
+
/**
|
|
514
|
+
* A severity value indicating if and how unused inline configs should be
|
|
515
|
+
* tracked and reported.
|
|
516
|
+
*/
|
|
517
|
+
reportUnusedInlineConfigs?: Severity;
|
|
484
518
|
}
|
|
485
|
-
/**
|
|
486
|
-
* Shared settings that are accessible from within plugins.
|
|
487
|
-
*/
|
|
488
|
-
export type SettingsConfig = Record<string, unknown>;
|
|
489
519
|
/**
|
|
490
520
|
* The configuration for a rule.
|
|
491
521
|
*/
|
|
492
|
-
export type RuleConfig = Severity | [Severity, ...
|
|
522
|
+
export type RuleConfig<RuleOptions extends unknown[] = unknown[]> = Severity | [Severity, ...Partial<RuleOptions>];
|
|
493
523
|
/**
|
|
494
524
|
* A collection of rules and their configurations.
|
|
495
525
|
*/
|
|
496
|
-
export
|
|
526
|
+
export interface RulesConfig {
|
|
527
|
+
[key: string]: RuleConfig;
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* A collection of settings.
|
|
531
|
+
*/
|
|
532
|
+
export interface SettingsConfig {
|
|
533
|
+
[key: string]: unknown;
|
|
534
|
+
}
|
|
497
535
|
/**
|
|
498
536
|
* Generic options for the `Language` type.
|
|
499
537
|
*/
|
|
@@ -656,7 +694,7 @@ interface InlineConfigElement {
|
|
|
656
694
|
/**
|
|
657
695
|
* Generic options for the `SourceCodeBase` type.
|
|
658
696
|
*/
|
|
659
|
-
interface SourceCodeBaseTypeOptions {
|
|
697
|
+
export interface SourceCodeBaseTypeOptions {
|
|
660
698
|
LangOptions: LanguageOptions;
|
|
661
699
|
RootNode: unknown;
|
|
662
700
|
SyntaxElementWithLoc: unknown;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"description": "Runtime-agnostic core of ESLint",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/esm/types.d.ts",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
|
-
"url": "git+https://github.com/eslint/rewrite.git"
|
|
27
|
+
"url": "git+https://github.com/eslint/rewrite.git",
|
|
28
|
+
"directory": "packages/core"
|
|
28
29
|
},
|
|
29
30
|
"keywords": [
|
|
30
31
|
"eslint",
|
|
@@ -35,13 +36,12 @@
|
|
|
35
36
|
"bugs": {
|
|
36
37
|
"url": "https://github.com/eslint/rewrite/issues"
|
|
37
38
|
},
|
|
38
|
-
"homepage": "https://github.com/eslint/rewrite#readme",
|
|
39
|
+
"homepage": "https://github.com/eslint/rewrite/tree/main/packages/core#readme",
|
|
39
40
|
"dependencies": {
|
|
40
41
|
"@types/json-schema": "^7.0.15"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
|
-
"json-schema": "^0.4.0"
|
|
44
|
-
"typescript": "^5.4.5"
|
|
44
|
+
"json-schema": "^0.4.0"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
@@ -6,9 +6,9 @@ case `uname` in
|
|
|
6
6
|
esac
|
|
7
7
|
|
|
8
8
|
if [ -z "$NODE_PATH" ]; then
|
|
9
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
9
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/js-yaml@4.2.0/node_modules/js-yaml/bin/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/js-yaml@4.2.0/node_modules/js-yaml/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/js-yaml@4.2.0/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules"
|
|
10
10
|
else
|
|
11
|
-
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.
|
|
11
|
+
export NODE_PATH="/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/js-yaml@4.2.0/node_modules/js-yaml/bin/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/js-yaml@4.2.0/node_modules/js-yaml/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/js-yaml@4.2.0/node_modules:/Users/baraklagziel/code/venos/.worktrees/cli-publish-0.1.11/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
14
|
exec "$basedir/node" "$basedir/../../../../../../js-yaml@4.2.0/node_modules/js-yaml/bin/js-yaml.js" "$@"
|
|
@@ -15,7 +15,7 @@ yarn add @eslint/plugin-kit
|
|
|
15
15
|
# or
|
|
16
16
|
pnpm install @eslint/plugin-kit
|
|
17
17
|
# or
|
|
18
|
-
bun
|
|
18
|
+
bun add @eslint/plugin-kit
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
For Deno:
|
|
@@ -28,10 +28,10 @@ deno add @eslint/plugin-kit
|
|
|
28
28
|
|
|
29
29
|
This package exports the following utilities:
|
|
30
30
|
|
|
31
|
-
- `ConfigCommentParser` - used to parse ESLint configuration comments (i.e., `/* eslint-disable rule */`)
|
|
32
|
-
- `VisitNodeStep` and `CallMethodStep` - used to help implement `SourceCode#traverse()`
|
|
33
|
-
- `Directive` - used to help implement `SourceCode#getDisableDirectives()`
|
|
34
|
-
- `TextSourceCodeBase` - base class to help implement the `SourceCode` interface
|
|
31
|
+
- [`ConfigCommentParser`](#configcommentparser) - used to parse ESLint configuration comments (i.e., `/* eslint-disable rule */`)
|
|
32
|
+
- [`VisitNodeStep` and `CallMethodStep`](#visitnodestep-and-callmethodstep) - used to help implement `SourceCode#traverse()`
|
|
33
|
+
- [`Directive`](#directive) - used to help implement `SourceCode#getDisableDirectives()`
|
|
34
|
+
- [`TextSourceCodeBase`](#textsourcecodebase) - base class to help implement the `SourceCode` interface
|
|
35
35
|
|
|
36
36
|
### `ConfigCommentParser`
|
|
37
37
|
|
|
@@ -52,7 +52,7 @@ const directive = commentParser.parseDirective(
|
|
|
52
52
|
if (directive) {
|
|
53
53
|
console.log(directive.label); // "eslint-disable"
|
|
54
54
|
console.log(directive.value); // "prefer-const, semi"
|
|
55
|
-
console.log(directive.justification); // "I don't want to use these"
|
|
55
|
+
console.log(directive.justification); // "I don't want to use these."
|
|
56
56
|
}
|
|
57
57
|
```
|
|
58
58
|
|
|
@@ -124,9 +124,7 @@ For example:
|
|
|
124
124
|
import { VisitNodeStep, CallMethodStep } from "@eslint/plugin-kit";
|
|
125
125
|
|
|
126
126
|
class MySourceCode {
|
|
127
|
-
|
|
128
127
|
traverse() {
|
|
129
|
-
|
|
130
128
|
const steps = [];
|
|
131
129
|
|
|
132
130
|
for (const { node, parent, phase } of iterator(this.ast)) {
|
|
@@ -264,9 +262,9 @@ to get your logo on our READMEs and [website](https://eslint.org/sponsors).
|
|
|
264
262
|
|
|
265
263
|
<h3>Platinum Sponsors</h3>
|
|
266
264
|
<p><a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="128"></a> <a href="https://www.airbnb.com/"><img src="https://images.opencollective.com/airbnb/d327d66/logo.png" alt="Airbnb" height="128"></a></p><h3>Gold Sponsors</h3>
|
|
267
|
-
<p><a href="https://qlty.sh/"><img src="https://images.opencollective.com/qltysh/33d157d/logo.png" alt="Qlty Software" height="96"></a> <a href="https://trunk.io/"><img src="https://images.opencollective.com/trunkio/fb92d60/avatar.png" alt="trunk.io" height="96"></a></p><h3>Silver Sponsors</h3>
|
|
268
|
-
<p><a href="https://vite.dev/"><img src="https://images.opencollective.com/vite/e6d15e1/logo.png" alt="Vite" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/5c4fa84/logo.png" alt="Liftoff" height="64"></a> <a href="https://stackblitz.com"><img src="https://avatars.githubusercontent.com/u/28635252" alt="StackBlitz" height="64"></a></p><h3>Bronze Sponsors</h3>
|
|
269
|
-
<p><a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://
|
|
265
|
+
<p><a href="https://qlty.sh/"><img src="https://images.opencollective.com/qltysh/33d157d/logo.png" alt="Qlty Software" height="96"></a> <a href="https://trunk.io/"><img src="https://images.opencollective.com/trunkio/fb92d60/avatar.png" alt="trunk.io" height="96"></a> <a href="https://shopify.engineering/"><img src="https://avatars.githubusercontent.com/u/8085" alt="Shopify" height="96"></a></p><h3>Silver Sponsors</h3>
|
|
266
|
+
<p><a href="https://vite.dev/"><img src="https://images.opencollective.com/vite/e6d15e1/logo.png" alt="Vite" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/5c4fa84/logo.png" alt="Liftoff" height="64"></a> <a href="https://americanexpress.io"><img src="https://avatars.githubusercontent.com/u/3853301" alt="American Express" height="64"></a> <a href="https://stackblitz.com"><img src="https://avatars.githubusercontent.com/u/28635252" alt="StackBlitz" height="64"></a></p><h3>Bronze Sponsors</h3>
|
|
267
|
+
<p><a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://sentry.io"><img src="https://github.com/getsentry.png" alt="Sentry" height="32"></a> <a href="https://www.crosswordsolver.org/anagram-solver/"><img src="https://images.opencollective.com/anagram-solver/2666271/logo.png" alt="Anagram Solver" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340" alt="GitBook" height="32"></a> <a href="https://nx.dev"><img src="https://avatars.githubusercontent.com/u/23692104" alt="Nx" height="32"></a> <a href="https://opensource.mercedes-benz.com/"><img src="https://avatars.githubusercontent.com/u/34240465" alt="Mercedes-Benz Group" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774" alt="HeroCoders" height="32"></a> <a href="https://www.lambdatest.com"><img src="https://avatars.githubusercontent.com/u/171592363" alt="LambdaTest" height="32"></a></p>
|
|
270
268
|
<h3>Technology Sponsors</h3>
|
|
271
269
|
Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work.
|
|
272
270
|
<p><a href="https://netlify.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/netlify-icon.svg" alt="Netlify" height="32"></a> <a href="https://algolia.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/algolia-icon.svg" alt="Algolia" height="32"></a> <a href="https://1password.com"><img src="https://raw.githubusercontent.com/eslint/eslint.org/main/src/assets/images/techsponsors/1password-icon.svg" alt="1Password" height="32"></a></p>
|