Skip to content

[pull] main from oxc-project:main#425

Merged
pull[bot] merged 12 commits intoBasixKOR:mainfrom
oxc-project:main
Oct 30, 2025
Merged

[pull] main from oxc-project:main#425
pull[bot] merged 12 commits intoBasixKOR:mainfrom
oxc-project:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Oct 30, 2025

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 : )

connorshea and others added 12 commits October 29, 2025 22:14
…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.
```
#15072)

Part of #14743.

Generated docs:

```md
## Configuration

This rule accepts a configuration object with the following properties:

### tags

type: `string[]`

default: `[]`

Additional tags to check for their descriptions.
```
…e. (#15074)

Part of #14743.

Generated docs:

```md
## Configuration

This rule accepts a configuration object with the following properties:

### noOptionalParamNames

type: `boolean`

default: `false`

If true, report the presence of optional param names (square brackets) on `@param` tags.
```
… 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.
```
@pull pull bot locked and limited conversation to collaborators Oct 30, 2025
@pull pull bot added the ⤵️ pull label Oct 30, 2025
@pull pull bot merged commit e15c91c into BasixKOR:main Oct 30, 2025
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants