Skip to content

Commit

Permalink
chore: run update
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Mar 22, 2024
1 parent b06263b commit 367bc31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/rules/no-arraybuffer-prototype-transfer.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: "disallow the `ArrayBuffer.prototype.transfer` method"
> disallow the `ArrayBuffer.prototype.transfer` method
- ❗ <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
- ✅ The following configurations enable this rule: `plugin:es-x/no-new-in-esnext`
- ✅ The following configurations enable this rule: [no-new-in-esnext]

This rule reports ES2024 [``ArrayBuffer.prototype.transfer`` methods](https://github.com/tc39/proposal-arraybuffer-transfer) as errors.

Expand Down Expand Up @@ -54,3 +54,5 @@ This is prior to the `settings['es-x'].aggressive` setting.

- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-arraybuffer-prototype-transfer.js)
- [Test source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/tests/lib/rules/no-arraybuffer-prototype-transfer.js)

[no-new-in-esnext]: ../configs/index.md#no-new-in-esnext
1 change: 1 addition & 0 deletions lib/configs/flat/no-new-in-esnext.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
},
},
rules: {
"es-x/no-arraybuffer-prototype-transfer": "error",
"es-x/no-atomics-waitasync": "error",
"es-x/no-object-map-groupby": "error",
"es-x/no-promise-withresolvers": "error",
Expand Down

0 comments on commit 367bc31

Please sign in to comment.