oxlint 1.58.0 → 1.60.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.
- package/configuration_schema.json +2 -2
- package/dist/bindings.js +26 -26
- package/dist/cli.js +2 -2
- package/dist/js_config.js +52 -36
- package/dist/lint.js +1915 -1473
- package/dist/plugins-dev.js +2 -2
- package/package.json +22 -21
package/dist/plugins-dev.js
CHANGED
|
@@ -79,7 +79,7 @@ function parse(path, sourceText, options) {
|
|
|
79
79
|
if (maxSourceByteLen > 1073741824) throw Error("Source text is too long");
|
|
80
80
|
let sourceStartPos = ACTIVE_SIZE - maxSourceByteLen, sourceBuffer = new Uint8Array(buffer.buffer, buffer.byteOffset + sourceStartPos, maxSourceByteLen), { read, written: sourceByteLen } = textEncoder.encodeInto(sourceText, sourceBuffer);
|
|
81
81
|
if (read !== sourceText.length) throw Error("Failed to write source text into buffer");
|
|
82
|
-
if (parseRawSync(path, buffer, sourceStartPos, sourceByteLen, options), buffer.
|
|
82
|
+
if (parseRawSync(path, buffer, sourceStartPos, sourceByteLen, options), buffer.int32[536870900] === 0) throw Error("Parsing failed");
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
85
|
* Create a `Uint8Array` which is 2 GiB in size, with its start aligned on 4 GiB.
|
|
@@ -98,7 +98,7 @@ function parse(path, sourceText, options) {
|
|
|
98
98
|
*/
|
|
99
99
|
function initBuffer() {
|
|
100
100
|
let arrayBuffer = new ArrayBuffer(ARRAY_BUFFER_SIZE), offset = getBufferOffset(new Uint8Array(arrayBuffer));
|
|
101
|
-
buffer = new Uint8Array(arrayBuffer, offset, BUFFER_SIZE), buffer.
|
|
101
|
+
buffer = new Uint8Array(arrayBuffer, offset, BUFFER_SIZE), buffer.int32 = new Int32Array(arrayBuffer, offset, BUFFER_SIZE / 4), buffer.float64 = new Float64Array(arrayBuffer, offset, BUFFER_SIZE / 8), buffers.push(buffer);
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
104
|
* Returns `true` if raw transfer is supported.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.60.0",
|
|
4
4
|
"description": "Linter for the JavaScript Oxidation Compiler",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"./plugins-dev": {
|
|
43
43
|
"types": "./dist/plugins-dev.d.ts",
|
|
44
44
|
"default": "./dist/plugins-dev.js"
|
|
45
|
-
}
|
|
45
|
+
},
|
|
46
|
+
"./package.json": "./package.json"
|
|
46
47
|
},
|
|
47
48
|
"peerDependencies": {
|
|
48
49
|
"oxlint-tsgolint": ">=0.18.0"
|
|
@@ -82,24 +83,24 @@
|
|
|
82
83
|
},
|
|
83
84
|
"preferUnplugged": true,
|
|
84
85
|
"optionalDependencies": {
|
|
85
|
-
"@oxlint/binding-darwin-arm64": "1.
|
|
86
|
-
"@oxlint/binding-android-arm64": "1.
|
|
87
|
-
"@oxlint/binding-win32-arm64-msvc": "1.
|
|
88
|
-
"@oxlint/binding-linux-arm64-gnu": "1.
|
|
89
|
-
"@oxlint/binding-linux-arm64-musl": "1.
|
|
90
|
-
"@oxlint/binding-openharmony-arm64": "1.
|
|
91
|
-
"@oxlint/binding-android-arm-eabi": "1.
|
|
92
|
-
"@oxlint/binding-linux-arm-gnueabihf": "1.
|
|
93
|
-
"@oxlint/binding-linux-arm-musleabihf": "1.
|
|
94
|
-
"@oxlint/binding-win32-ia32-msvc": "1.
|
|
95
|
-
"@oxlint/binding-linux-ppc64-gnu": "1.
|
|
96
|
-
"@oxlint/binding-linux-riscv64-gnu": "1.
|
|
97
|
-
"@oxlint/binding-linux-riscv64-musl": "1.
|
|
98
|
-
"@oxlint/binding-linux-s390x-gnu": "1.
|
|
99
|
-
"@oxlint/binding-darwin-x64": "1.
|
|
100
|
-
"@oxlint/binding-win32-x64-msvc": "1.
|
|
101
|
-
"@oxlint/binding-freebsd-x64": "1.
|
|
102
|
-
"@oxlint/binding-linux-x64-gnu": "1.
|
|
103
|
-
"@oxlint/binding-linux-x64-musl": "1.
|
|
86
|
+
"@oxlint/binding-darwin-arm64": "1.60.0",
|
|
87
|
+
"@oxlint/binding-android-arm64": "1.60.0",
|
|
88
|
+
"@oxlint/binding-win32-arm64-msvc": "1.60.0",
|
|
89
|
+
"@oxlint/binding-linux-arm64-gnu": "1.60.0",
|
|
90
|
+
"@oxlint/binding-linux-arm64-musl": "1.60.0",
|
|
91
|
+
"@oxlint/binding-openharmony-arm64": "1.60.0",
|
|
92
|
+
"@oxlint/binding-android-arm-eabi": "1.60.0",
|
|
93
|
+
"@oxlint/binding-linux-arm-gnueabihf": "1.60.0",
|
|
94
|
+
"@oxlint/binding-linux-arm-musleabihf": "1.60.0",
|
|
95
|
+
"@oxlint/binding-win32-ia32-msvc": "1.60.0",
|
|
96
|
+
"@oxlint/binding-linux-ppc64-gnu": "1.60.0",
|
|
97
|
+
"@oxlint/binding-linux-riscv64-gnu": "1.60.0",
|
|
98
|
+
"@oxlint/binding-linux-riscv64-musl": "1.60.0",
|
|
99
|
+
"@oxlint/binding-linux-s390x-gnu": "1.60.0",
|
|
100
|
+
"@oxlint/binding-darwin-x64": "1.60.0",
|
|
101
|
+
"@oxlint/binding-win32-x64-msvc": "1.60.0",
|
|
102
|
+
"@oxlint/binding-freebsd-x64": "1.60.0",
|
|
103
|
+
"@oxlint/binding-linux-x64-gnu": "1.60.0",
|
|
104
|
+
"@oxlint/binding-linux-x64-musl": "1.60.0"
|
|
104
105
|
}
|
|
105
106
|
}
|