oxlint 1.63.0 → 1.65.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 +2392 -5
- package/dist/bindings.js +26 -26
- package/dist/index.d.ts +797 -1
- package/dist/lint.js +12 -12
- package/dist/plugins-dev.d.ts +2231 -2205
- package/package.json +20 -20
package/dist/lint.js
CHANGED
|
@@ -821,11 +821,11 @@ const NodeProto = ObjectCreate(ObjectPrototype, { loc: {
|
|
|
821
821
|
},
|
|
822
822
|
enumerable: !0
|
|
823
823
|
} });
|
|
824
|
-
function deserializeProgramOnly(buffer, sourceText,
|
|
825
|
-
return
|
|
824
|
+
function deserializeProgramOnly(buffer, sourceText, sourceStartPos, sourceByteLen) {
|
|
825
|
+
return deserializeWith(buffer, sourceText, sourceStartPos, sourceByteLen, deserializeProgram);
|
|
826
826
|
}
|
|
827
|
-
function deserializeWith(buffer, sourceTextInput, sourceByteLen, deserialize) {
|
|
828
|
-
if (uint8 = buffer, int32 = buffer.int32, float64 = buffer.float64, sourceText$1 = sourceTextInput, sourceText$1.length === sourceByteLen) firstNonAsciiPos = sourceStartPos$1 + sourceByteLen, sourceTextLatin = sourceText$1;
|
|
827
|
+
function deserializeWith(buffer, sourceTextInput, sourceStartPosInput, sourceByteLen, deserialize) {
|
|
828
|
+
if (uint8 = buffer, int32 = buffer.int32, float64 = buffer.float64, sourceText$1 = sourceTextInput, sourceStartPos$1 = sourceStartPosInput, sourceText$1.length === sourceByteLen) firstNonAsciiPos = sourceStartPos$1 + sourceByteLen, sourceTextLatin = sourceText$1;
|
|
829
829
|
else {
|
|
830
830
|
let i = sourceStartPos$1, sourceEndPos = sourceStartPos$1 + sourceByteLen;
|
|
831
831
|
for (; i < sourceEndPos && uint8[i] < 128; i++);
|
|
@@ -14099,7 +14099,7 @@ function resetSettings() {
|
|
|
14099
14099
|
}
|
|
14100
14100
|
//#endregion
|
|
14101
14101
|
//#region package.json
|
|
14102
|
-
var version = "1.
|
|
14102
|
+
var version = "1.65.0";
|
|
14103
14103
|
//#endregion
|
|
14104
14104
|
//#region src-js/plugins/context.ts
|
|
14105
14105
|
let filePath = null, cwd = null;
|
|
@@ -17706,7 +17706,7 @@ function conformHookFn(hookFn, hookName) {
|
|
|
17706
17706
|
return hookFn;
|
|
17707
17707
|
}
|
|
17708
17708
|
//#endregion
|
|
17709
|
-
//#region ../../node_modules/.pnpm/eslint@10.
|
|
17709
|
+
//#region ../../node_modules/.pnpm/eslint@10.3.0/node_modules/eslint/lib/shared/assert.js
|
|
17710
17710
|
/**
|
|
17711
17711
|
* @fileoverview Assertion utilities equivalent to the Node.js node:asserts module.
|
|
17712
17712
|
* @author Josh Goldberg
|
|
@@ -19802,8 +19802,8 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19802
19802
|
return node.parent.type === "LabeledStatement" ? node.parent.label.name : null;
|
|
19803
19803
|
}
|
|
19804
19804
|
/**
|
|
19805
|
-
* Checks whether
|
|
19806
|
-
*
|
|
19805
|
+
* Checks whether a given logical expression node takes different paths for the
|
|
19806
|
+
* `true` and `false` cases.
|
|
19807
19807
|
* @param {ASTNode} node A node to check.
|
|
19808
19808
|
* @returns {boolean} `true` if the node is a test of a choice statement.
|
|
19809
19809
|
*/
|
|
@@ -19823,8 +19823,8 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19823
19823
|
/**
|
|
19824
19824
|
* Gets the boolean value of a given literal node.
|
|
19825
19825
|
*
|
|
19826
|
-
* This is used to detect
|
|
19827
|
-
* Statements preceded by an
|
|
19826
|
+
* This is used to detect infinite loops (e.g. `while (true) {}`).
|
|
19827
|
+
* Statements preceded by an infinite loop are unreachable if the loop didn't
|
|
19828
19828
|
* have any `break` statement.
|
|
19829
19829
|
* @param {ASTNode} node A node to get.
|
|
19830
19830
|
* @returns {boolean|undefined} a boolean value if the node is a Literal node,
|
|
@@ -19889,8 +19889,8 @@ var require_assert = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19889
19889
|
}
|
|
19890
19890
|
}
|
|
19891
19891
|
/**
|
|
19892
|
-
* Updates the current segment with empty.
|
|
19893
|
-
* This is called
|
|
19892
|
+
* Updates the current segment with an empty array.
|
|
19893
|
+
* This is called when a code path ends.
|
|
19894
19894
|
* @param {CodePathAnalyzer} analyzer The instance.
|
|
19895
19895
|
* @param {ASTNode} node The current AST node.
|
|
19896
19896
|
* @returns {void}
|