@pobammer-ts/eslint-cease-nonsense-rules 1.9.0 → 1.9.2
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/build-metadata.json +3 -3
- package/dist/index.js +35 -1718
- package/dist/index.js.map +3 -10
- package/dist/oxfmt-worker.js +1 -2
- package/dist/oxfmt-worker.js.map +2 -2
- package/package.json +14 -14
- package/dist/resolver.linux-x64-gnu-hcjn12y1.node +0 -0
- package/dist/resolver.linux-x64-musl-gnkc267h.node +0 -0
package/dist/oxfmt-worker.js
CHANGED
|
@@ -25,7 +25,6 @@ var __export = (target, all) => {
|
|
|
25
25
|
set: (newValue) => all[name] = () => newValue
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
|
-
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
29
28
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
30
29
|
|
|
31
30
|
// src/oxfmt-worker.ts
|
|
@@ -70,4 +69,4 @@ port.on("message", (request) => {
|
|
|
70
69
|
})();
|
|
71
70
|
});
|
|
72
71
|
|
|
73
|
-
//# debugId=
|
|
72
|
+
//# debugId=5C74956811C84DD864756E2164756E21
|
package/dist/oxfmt-worker.js.map
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"sourcesContent": [
|
|
5
5
|
"import { workerData } from \"node:worker_threads\";\nimport type { FormatOptions } from \"oxfmt\";\n\nexport type { FormatOptions } from \"oxfmt\";\n\nexport interface FormatRequest {\n\treadonly controlBuffer: SharedArrayBuffer;\n\treadonly fileName: string;\n\treadonly options: FormatOptions;\n\treadonly sourceText: string;\n}\n\nexport interface FormatResponse {\n\treadonly code?: string;\n\treadonly error?: string;\n}\n\ninterface WorkerData {\n\treadonly requestPort: MessagePort;\n}\n\n// oxlint-disable-next-line consistent-type-imports\ntype FormatFunction = typeof import(\"oxfmt\").format;\n\nconst OXFMT_NOT_INSTALLED_ERROR = \"oxfmt is not installed. Install it with: bun add -D oxfmt (or npm install -D oxfmt)\";\n\nlet oxfmtFormat: FormatFunction | undefined;\nlet loadError: string | undefined;\n\ntry {\n\tconst oxfmt = await import(\"oxfmt\");\n\toxfmtFormat = oxfmt.format;\n} catch {\n\tloadError = OXFMT_NOT_INSTALLED_ERROR;\n}\n\nfunction isWorkerData(value: unknown): value is WorkerData {\n\treturn (\n\t\ttypeof value === \"object\" &&\n\t\tvalue !== null &&\n\t\t\"requestPort\" in value &&\n\t\tvalue.requestPort instanceof MessagePort\n\t);\n}\n\nif (!isWorkerData(workerData)) {\n\tthrow new Error(\"oxfmt-worker must be run as a worker thread with requestPort in workerData\");\n}\n\nconst port = workerData.requestPort;\n\nport.on(\"message\", (request: FormatRequest) => {\n\tvoid (async (): Promise<void> => {\n\t\tconst control = new Int32Array(request.controlBuffer);\n\t\ttry {\n\t\t\tif (oxfmtFormat === undefined) {\n\t\t\t\tport.postMessage({ error: loadError ?? OXFMT_NOT_INSTALLED_ERROR } satisfies FormatResponse);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst result = await oxfmtFormat(request.fileName, request.sourceText, request.options);\n\t\t\tif (result.errors.length > 0) {\n\t\t\t\tconst errorMessages = result.errors.map(({ message }) => message).join(\"; \");\n\t\t\t\tport.postMessage({ error: `Oxfmt error: ${errorMessages}` } satisfies FormatResponse);\n\t\t\t} else port.postMessage({ code: result.code } satisfies FormatResponse);\n\t\t} catch (error) {\n\t\t\tconst message = error instanceof Error ? error.message : String(error);\n\t\t\tport.postMessage({ error: `Oxfmt error: ${message}` } satisfies FormatResponse);\n\t\t} finally {\n\t\t\tAtomics.store(control, 0, 1);\n\t\t\tAtomics.notify(control, 0);\n\t\t}\n\t})();\n});\n"
|
|
6
6
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
7
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAwBA,IAAM,4BAA4B;AAElC,IAAI;AACJ,IAAI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
10
10
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"dependencies": {
|
|
4
4
|
"arkregex": "^0.0.5",
|
|
5
5
|
"fast-diff": "^1.3.0",
|
|
6
|
-
"oxc-parser": "^0.
|
|
6
|
+
"oxc-parser": "^0.105.0",
|
|
7
7
|
"oxc-resolver": "^11.16.0",
|
|
8
8
|
"typebox": "^1.0.64"
|
|
9
9
|
},
|
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
"@jsr/cliffy__command": "^1.0.0-rc.8",
|
|
14
14
|
"@mitata/counters": "^0.0.8",
|
|
15
15
|
"@octokit/rest": "^22.0.1",
|
|
16
|
-
"@opencode-ai/plugin": "^1.0.
|
|
16
|
+
"@opencode-ai/plugin": "^1.0.186",
|
|
17
17
|
"@toon-format/toon": "^2.1.0",
|
|
18
18
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
19
19
|
"@types/bun": "^1.3.5",
|
|
20
20
|
"@types/estree": "^1.0.8",
|
|
21
21
|
"@types/node": "^20.14.11",
|
|
22
|
-
"@typescript-eslint/parser": "^8.
|
|
23
|
-
"@typescript-eslint/scope-manager": "^8.50.
|
|
24
|
-
"@typescript-eslint/types": "^8.
|
|
25
|
-
"@typescript-eslint/utils": "^8.
|
|
26
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
22
|
+
"@typescript-eslint/parser": "^8.50.1",
|
|
23
|
+
"@typescript-eslint/scope-manager": "^8.50.1",
|
|
24
|
+
"@typescript-eslint/types": "^8.50.1",
|
|
25
|
+
"@typescript-eslint/utils": "^8.50.1",
|
|
26
|
+
"@typescript/native-preview": "7.0.0-dev.20251222.1",
|
|
27
27
|
"arkenv": "^0.7.6",
|
|
28
28
|
"arktype": "^2.1.29",
|
|
29
29
|
"bumpp": "^10.3.2",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"consola": "^3.4.2",
|
|
32
32
|
"eslint": "9.39.2",
|
|
33
33
|
"fast-xml-parser": "^5.3.2",
|
|
34
|
-
"knip": "^5.76.
|
|
34
|
+
"knip": "^5.76.3",
|
|
35
35
|
"lint-staged": "^16.2.7",
|
|
36
36
|
"mitata": "^1.0.34",
|
|
37
|
-
"oxfmt": "^0.
|
|
38
|
-
"oxlint": "^1.
|
|
37
|
+
"oxfmt": "^0.20.0",
|
|
38
|
+
"oxlint": "^1.35.0",
|
|
39
39
|
"oxlint-tsgolint": "^0.10.0",
|
|
40
40
|
"picocolors": "^1.1.1",
|
|
41
41
|
"pretty-bytes": "^7.1.0",
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"name": "@pobammer-ts/eslint-cease-nonsense-rules",
|
|
66
66
|
"packageManager": "bun@1.3.5",
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"@typescript-eslint/parser": "^8.
|
|
69
|
-
"@typescript-eslint/utils": "^8.
|
|
68
|
+
"@typescript-eslint/parser": "^8.50.1",
|
|
69
|
+
"@typescript-eslint/utils": "^8.50.1",
|
|
70
70
|
"eslint": "^9.39.2",
|
|
71
|
-
"oxfmt": "
|
|
71
|
+
"oxfmt": ">0.19.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependenciesMeta": {
|
|
74
74
|
"oxfmt": {
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
},
|
|
106
106
|
"type": "module",
|
|
107
107
|
"types": "./dist/index.d.ts",
|
|
108
|
-
"version": "1.9.
|
|
108
|
+
"version": "1.9.2"
|
|
109
109
|
}
|
|
Binary file
|
|
Binary file
|