[pull] main from oxc-project:main#425
Merged
pull[bot] merged 12 commits intoBasixKOR:mainfrom Oct 30, 2025
Merged
Conversation
…ing rule. (#15071) Part of #14743. Generated docs: ```md ## Configuration This rule accepts a configuration object with the following properties: ### message type: `string` default: `""` A custom help message to display when optional chaining is found. For example, "Our output target is ES2016, and optional chaining results in verbose helpers and should be avoided." ```
…operties rule. (#15070) Part of #14743. Generated docs: ```md ## Configuration This rule accepts a configuration object with the following properties: ### objectRestMessage type: `string` default: `""` A message to display when object rest properties are found. ### objectSpreadMessage type: `string` default: `""` A message to display when object spread properties are found. ```
… rule. (#15076) Part of #14743. Generated docs: ```md ## Configuration This rule accepts a configuration object with the following properties: ### definedTags type: `string[]` default: `[]` Additional tag names to allow. ### jsxTags type: `boolean` default: `false` Whether to allow JSX-related tags: - `jsx` - `jsxFrag` - `jsxImportSource` - `jsxRuntime` ### typed type: `boolean` default: `false` If typed is `true`, disallow tags that are unnecessary/duplicative of TypeScript functionality. ```
…le. (#15077) Mostly just moving around the existing docs. Part of #14743. Generated docs: ```md ## Configuration This rule accepts a configuration object with the following properties: ### allowConditionalRequire type: `boolean` default: `true` When set to `true`, allows conditional `require()` calls (e.g., inside `if` statements or try-catch blocks). This is useful for places where you need to conditionally load via commonjs requires if ESM imports are not supported. ### allowPrimitiveModules type: `boolean` default: `false` If `allowPrimitiveModules` option is set to true, the following is valid: \```js module.exports = "foo"; module.exports = function rule(context) { return { /* ... */ }; }; \``` but this is still reported: \```js module.exports = { x: "y" }; exports.z = function bark() { /* ... */ }; \``` ### allowRequire type: `boolean` default: `false` If set to `true`, `require` calls are valid: \```js var mod = require("./mod"); \``` but `module.exports` is reported as usual. ```
…ts rule. (#15079) Part of #14743. Generated docs: ```md ## Configuration This rule accepts a configuration object with the following properties: ### allowedSnapshots type: `Record<string, array>` default: `{}` A map of snapshot file paths to arrays of snapshot names that are allowed to exceed the size limit. Snapshot names can be specified as regular expressions. ### inlineMaxSize type: `integer` default: `50` Maximum number of lines allowed for inline snapshots. ### maxSize type: `integer` default: `50` Maximum number of lines allowed for external snapshot files. ```
…rule. (#15081) Part of #14743. Generated docs: ```md ## Configuration This rule accepts a configuration object with the following properties: ### allowImplicit type: `boolean` default: `false` When set to `true`, allows getters to implicitly return `undefined` with a `return` statement containing no expression. ```
#15083) Part of #14743. Generated docs: ```md ## Configuration This rule accepts a configuration object with the following properties: ### exceptionPatterns type: `string[]` An array of regex patterns for identifiers to exclude from the rule. For example, `["^x.*"]` would exclude all identifiers starting with "x". ### exceptions type: `string[]` default: `[]` An array of identifier names that are excluded from the rule. For example, `["x", "y", "z"]` would allow single-letter identifiers "x", "y", and "z". ### max type: `integer` default: `18446744073709551615` The maximum number of graphemes allowed in an identifier. Defaults to no maximum (effectively unlimited). ### min type: `integer` default: `2` The minimum number of graphemes required in an identifier. ### properties type: `"always" | "never"` When set to `"never"`, property names are not checked for length. When set to `"always"` (default), property names are checked just like other identifiers. ```
…ons rule. (#15085) Part of #14743. Generated docs: ```md ## Configuration This rule accepts a configuration object with the following properties: ### ignoreForLoopInit type: `boolean` default: `false` When set to `true`, allows uninitialized variables in the init expression of `for`, `for-in`, and `for-of` loops. Only applies when mode is set to `"never"`. ### mode type: `"always" | "never"` When set to `"always"` (default), requires that variables be initialized on declaration. When set to `"never"`, disallows initialization during declaration. ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )