Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/large-knives-add.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/late-donuts-kiss.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/late-donuts-kiss2.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/late-donuts-kiss3.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/late-donuts-kiss4.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/late-donuts-kiss5.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/late-donuts-kiss6.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/no-math-sumprecise.md

This file was deleted.

20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# eslint-plugin-es-x

## 9.1.0

### Minor Changes

- Add `no-arraybuffer-base64` config ([#249](https://github.com/eslint-community/eslint-plugin-es-x/pull/249))

- Add `es-x/no-uint8array-frombase64` rule ([#249](https://github.com/eslint-community/eslint-plugin-es-x/pull/249))

- Add `es-x/no-uint8array-fromhex` rule ([#249](https://github.com/eslint-community/eslint-plugin-es-x/pull/249))

- Add `es-x/no-uint8array-prototype-setfrombase64` rule ([#249](https://github.com/eslint-community/eslint-plugin-es-x/pull/249))

- Add `es-x/no-uint8array-prototype-setfromhex` rule ([#249](https://github.com/eslint-community/eslint-plugin-es-x/pull/249))

- Add `es-x/no-uint8array-prototype-tobase64` rule ([#249](https://github.com/eslint-community/eslint-plugin-es-x/pull/249))

- Add `es-x/no-uint8array-prototype-tohex` rule ([#249](https://github.com/eslint-community/eslint-plugin-es-x/pull/249))

- Add `es-x/no-math-sumprecise` rule ([#266](https://github.com/eslint-community/eslint-plugin-es-x/pull/266))

## 9.0.0

### Major Changes
Expand Down
1 change: 1 addition & 0 deletions docs/rules/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ There is a config that enables the rules in this category: [`no-new-in-esnext`]
| [es-x/no-asyncdisposablestack](./no-asyncdisposablestack.md) | disallow the `AsyncDisposableStack` class. | |
| [es-x/no-disposablestack](./no-disposablestack.md) | disallow the `DisposableStack` class. | |
| [es-x/no-error-iserror](./no-error-iserror.md) | disallow the `Error.isError` method. | |
| [es-x/no-math-sumprecise](./no-math-sumprecise.md) | disallow the `Math.sumPrecise` method. | |
| [es-x/no-suppressederror](./no-suppressederror.md) | disallow the `SuppressedError` class. | |
| [es-x/no-symbol-asyncdispose](./no-symbol-asyncdispose.md) | disallow the `Symbol.asyncDispose` property. | |
| [es-x/no-symbol-dispose](./no-symbol-dispose.md) | disallow the `Symbol.dispose` property. | |
Expand Down
21 changes: 20 additions & 1 deletion docs/rules/no-math-sumprecise.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
---
title: "es-x/no-math-sumprecise"
description: "disallow the `Math.sumPrecise` method"
since: "v9.1.0"
---

# es-x/no-math-sumprecise
>
> disallow the `Math.sumPrecise` method

- ✅ The following configurations enable this rule: [no-new-in-esnext]

This rule reports ES2026 [`Math.sumPrecise` property](https://github.com/tc39/proposal-math-sum) as errors.

Expand Down Expand Up @@ -37,3 +45,14 @@ This rule has an option.

Configure the allowTestedProperty mode for only this rule.
This is prior to the `settings['es-x'].allowTestedProperty` setting.

## 🚀 Version

This rule was introduced in v9.1.0.

## 📚 References

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

[no-new-in-esnext]: ../configs/index.md#no-new-in-esnext
6 changes: 5 additions & 1 deletion docs/rules/no-uint8array-frombase64.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "es-x/no-uint8array-frombase64"
description: "disallow the `Uint8Array.fromBase64` method"
since: "v9.1.0"
---

# es-x/no-uint8array-frombase64
> disallow the `Uint8Array.fromBase64` 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: [no-arraybuffer-base64] and [no-new-in-esnext]

This rule reports ES2026 [`Uint8Array.fromBase64` method](https://github.com/tc39/proposal-arraybuffer-base64) as errors.
Expand Down Expand Up @@ -46,6 +46,10 @@ This rule has an option.
Configure the allowTestedProperty mode for only this rule.
This is prior to the `settings['es-x'].allowTestedProperty` setting.

## 🚀 Version

This rule was introduced in v9.1.0.

## 📚 References

- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-uint8array-frombase64.js)
Expand Down
6 changes: 5 additions & 1 deletion docs/rules/no-uint8array-fromhex.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "es-x/no-uint8array-fromhex"
description: "disallow the `Uint8Array.fromHex` method"
since: "v9.1.0"
---

# es-x/no-uint8array-fromhex
> disallow the `Uint8Array.fromHex` 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: [no-arraybuffer-base64] and [no-new-in-esnext]

This rule reports ES2026 [`Uint8Array.fromHex` method](https://github.com/tc39/proposal-arraybuffer-hex) as errors.
Expand Down Expand Up @@ -46,6 +46,10 @@ This rule has an option.
Configure the allowTestedProperty mode for only this rule.
This is prior to the `settings['es-x'].allowTestedProperty` setting.

## 🚀 Version

This rule was introduced in v9.1.0.

## 📚 References

- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-uint8array-fromhex.js)
Expand Down
6 changes: 5 additions & 1 deletion docs/rules/no-uint8array-prototype-setfrombase64.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "es-x/no-uint8array-prototype-setfrombase64"
description: "disallow the `Uint8Array.prototype.setFromBase64` method"
since: "v9.1.0"
---

# es-x/no-uint8array-prototype-setfrombase64
> disallow the `Uint8Array.prototype.setFromBase64` 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: [no-arraybuffer-base64] and [no-new-in-esnext]

This rule reports ES2026 [`Uint8Array.prototype.setFromBase64` method](https://github.com/tc39/proposal-arraybuffer-base64) as errors.
Expand Down Expand Up @@ -55,6 +55,10 @@ This is prior to the `settings['es-x'].aggressive` setting.
Configure the allowTestedProperty mode for only this rule.
This is prior to the `settings['es-x'].allowTestedProperty` setting.

## 🚀 Version

This rule was introduced in v9.1.0.

## 📚 References

- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-uint8array-prototype-setfrombase64.js)
Expand Down
6 changes: 5 additions & 1 deletion docs/rules/no-uint8array-prototype-setfromhex.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "es-x/no-uint8array-prototype-setfromhex"
description: "disallow the `Uint8Array.prototype.setFromHex` method"
since: "v9.1.0"
---

# es-x/no-uint8array-prototype-setfromhex
> disallow the `Uint8Array.prototype.setFromHex` 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: [no-arraybuffer-base64] and [no-new-in-esnext]

This rule reports ES2026 [`Uint8Array.prototype.setFromHex` method](https://github.com/tc39/proposal-arraybuffer-base64) as errors.
Expand Down Expand Up @@ -55,6 +55,10 @@ This is prior to the `settings['es-x'].aggressive` setting.
Configure the allowTestedProperty mode for only this rule.
This is prior to the `settings['es-x'].allowTestedProperty` setting.

## 🚀 Version

This rule was introduced in v9.1.0.

## 📚 References

- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-uint8array-prototype-setfromhex.js)
Expand Down
6 changes: 5 additions & 1 deletion docs/rules/no-uint8array-prototype-tobase64.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "es-x/no-uint8array-prototype-tobase64"
description: "disallow the `Uint8Array.prototype.toBase64` method"
since: "v9.1.0"
---

# es-x/no-uint8array-prototype-tobase64
> disallow the `Uint8Array.prototype.toBase64` 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: [no-arraybuffer-base64] and [no-new-in-esnext]

This rule reports ES2026 [`Uint8Array.prototype.toBase64` method](https://github.com/tc39/proposal-arraybuffer-base64) as errors.
Expand Down Expand Up @@ -55,6 +55,10 @@ This is prior to the `settings['es-x'].aggressive` setting.
Configure the allowTestedProperty mode for only this rule.
This is prior to the `settings['es-x'].allowTestedProperty` setting.

## 🚀 Version

This rule was introduced in v9.1.0.

## 📚 References

- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-uint8array-prototype-tobase64.js)
Expand Down
6 changes: 5 additions & 1 deletion docs/rules/no-uint8array-prototype-tohex.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: "es-x/no-uint8array-prototype-tohex"
description: "disallow the `Uint8Array.prototype.toHex` method"
since: "v9.1.0"
---

# es-x/no-uint8array-prototype-tohex
> disallow the `Uint8Array.prototype.toHex` 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: [no-arraybuffer-base64] and [no-new-in-esnext]

This rule reports ES2026 [`Uint8Array.prototype.toHex` method](https://github.com/tc39/proposal-arraybuffer-base64) as errors.
Expand Down Expand Up @@ -55,6 +55,10 @@ This is prior to the `settings['es-x'].aggressive` setting.
Configure the allowTestedProperty mode for only this rule.
This is prior to the `settings['es-x'].allowTestedProperty` setting.

## 🚀 Version

This rule was introduced in v9.1.0.

## 📚 References

- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-uint8array-prototype-tohex.js)
Expand Down
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 @@ -15,6 +15,7 @@ module.exports = {
"es-x/no-asyncdisposablestack": "error",
"es-x/no-disposablestack": "error",
"es-x/no-error-iserror": "error",
"es-x/no-math-sumprecise": "error",
"es-x/no-suppressederror": "error",
"es-x/no-symbol-asyncdispose": "error",
"es-x/no-symbol-dispose": "error",
Expand Down
1 change: 1 addition & 0 deletions lib/configs/no-new-in-esnext.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
"es-x/no-asyncdisposablestack": "error",
"es-x/no-disposablestack": "error",
"es-x/no-error-iserror": "error",
"es-x/no-math-sumprecise": "error",
"es-x/no-suppressederror": "error",
"es-x/no-symbol-asyncdispose": "error",
"es-x/no-symbol-dispose": "error",
Expand Down
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ module.exports = {
"no-math-log10": require("./rules/no-math-log10"),
"no-math-sign": require("./rules/no-math-sign"),
"no-math-sinh": require("./rules/no-math-sinh"),
"no-math-sumprecise": require("./rules/no-math-sumprecise"),
"no-math-tanh": require("./rules/no-math-tanh"),
"no-math-trunc": require("./rules/no-math-trunc"),
"no-modules": require("./rules/no-modules"),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-es-x",
"version": "9.0.0",
"version": "9.1.0",
"description": "ESLint plugin about ECMAScript syntactic features.",
"engines": {
"node": "^20.19.0 || >=22.12.0"
Expand Down