Skip to content

Commit e2eb852

Browse files
committed
6.0.0
1 parent 54a867f commit e2eb852

23 files changed

+111
-23
lines changed

docs/rules/no-array-prototype-toreversed.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: "es-x/no-array-prototype-toreversed"
33
description: "disallow the `Array.prototype.toReversed` method"
4+
since: "v6.0.0"
45
---
56

67
# es-x/no-array-prototype-toreversed
78
> disallow the `Array.prototype.toReversed` method
89
9-
- ❗ <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
1010
- ✅ The following configurations enable this rule: `plugin:es-x/no-new-in-esnext`
1111

1212
This rule reports ES2023 [`Array.prototype.toReversed` methods](https://github.com/tc39/proposal-change-array-by-copy) as errors.
@@ -40,6 +40,10 @@ rules:
4040
Configure the aggressive mode for only this rule.
4141
This is prior to the `settings['es-x'].aggressive` setting.
4242

43+
## 🚀 Version
44+
45+
This rule was introduced in v6.0.0.
46+
4347
## 📚 References
4448

4549
- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-array-prototype-toreversed.js)

docs/rules/no-array-prototype-tosorted.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: "es-x/no-array-prototype-tosorted"
33
description: "disallow the `Array.prototype.toSorted` method"
4+
since: "v6.0.0"
45
---
56

67
# es-x/no-array-prototype-tosorted
78
> disallow the `Array.prototype.toSorted` method
89
9-
- ❗ <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
1010
- ✅ The following configurations enable this rule: `plugin:es-x/no-new-in-esnext`
1111

1212
This rule reports ES2023 [`Array.prototype.toSorted` methods](https://github.com/tc39/proposal-change-array-by-copy) as errors.
@@ -40,6 +40,10 @@ rules:
4040
Configure the aggressive mode for only this rule.
4141
This is prior to the `settings['es-x'].aggressive` setting.
4242

43+
## 🚀 Version
44+
45+
This rule was introduced in v6.0.0.
46+
4347
## 📚 References
4448

4549
- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-array-prototype-tosorted.js)

docs/rules/no-array-prototype-tospliced.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: "es-x/no-array-prototype-tospliced"
33
description: "disallow the `Array.prototype.toSpliced` method"
4+
since: "v6.0.0"
45
---
56

67
# es-x/no-array-prototype-tospliced
78
> disallow the `Array.prototype.toSpliced` method
89
9-
- ❗ <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
1010
- ✅ The following configurations enable this rule: `plugin:es-x/no-new-in-esnext`
1111

1212
This rule reports ES2023 [`Array.prototype.toSpliced` methods](https://github.com/tc39/proposal-change-array-by-copy) as errors.
@@ -40,6 +40,10 @@ rules:
4040
Configure the aggressive mode for only this rule.
4141
This is prior to the `settings['es-x'].aggressive` setting.
4242

43+
## 🚀 Version
44+
45+
This rule was introduced in v6.0.0.
46+
4347
## 📚 References
4448

4549
- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-array-prototype-tospliced.js)

docs/rules/no-array-prototype-with.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: "es-x/no-array-prototype-with"
33
description: "disallow the `Array.prototype.with` method"
4+
since: "v6.0.0"
45
---
56

67
# es-x/no-array-prototype-with
78
> disallow the `Array.prototype.with` method
89
9-
- ❗ <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
1010
- ✅ The following configurations enable this rule: `plugin:es-x/no-new-in-esnext`
1111

1212
This rule reports ES2023 [`Array.prototype.with` methods](https://github.com/tc39/proposal-change-array-by-copy) as errors.
@@ -40,6 +40,10 @@ rules:
4040
Configure the aggressive mode for only this rule.
4141
This is prior to the `settings['es-x'].aggressive` setting.
4242

43+
## 🚀 Version
44+
45+
This rule was introduced in v6.0.0.
46+
4347
## 📚 References
4448

4549
- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-array-prototype-with.js)

docs/rules/no-error-cause.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: "es-x/no-error-cause"
33
description: "disallow Error Cause"
4+
since: "v6.0.0"
45
---
56

67
# es-x/no-error-cause
78
> disallow Error Cause
89
9-
- ❗ <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
1010
- ✅ The following configurations enable this rule: `plugin:es-x/no-new-in-es2022`, `plugin:es-x/restrict-to-es3`, `plugin:es-x/restrict-to-es5`, `plugin:es-x/restrict-to-es2015`, `plugin:es-x/restrict-to-es2016`, `plugin:es-x/restrict-to-es2017`, `plugin:es-x/restrict-to-es2018`, `plugin:es-x/restrict-to-es2019`, `plugin:es-x/restrict-to-es2020`, and `plugin:es-x/restrict-to-es2021`
1111

1212
This rule reports ES2022 [Error Cause](https://github.com/tc39/proposal-error-cause).
@@ -24,6 +24,10 @@ throw new Error('failed', { cause: err });
2424

2525
</eslint-playground>
2626

27+
## 🚀 Version
28+
29+
This rule was introduced in v6.0.0.
30+
2731
## 📚 References
2832

2933
- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-error-cause.js)

docs/rules/no-intl-datetimeformat-prototype-formatrange.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: "es-x/no-intl-datetimeformat-prototype-formatrange"
33
description: "disallow the `Intl.DateTimeFormat.prototype.formatRange` method"
4+
since: "v6.0.0"
45
---
56

67
# es-x/no-intl-datetimeformat-prototype-formatrange
78
> disallow the `Intl.DateTimeFormat.prototype.formatRange` method
89
9-
- ❗ <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
1010
- ✅ The following configurations enable this rule: `plugin:es-x/no-new-in-es2021-intl-api`, `plugin:es-x/restrict-to-es-intl-api-1st-edition`, `plugin:es-x/restrict-to-es2015-intl-api`, `plugin:es-x/restrict-to-es2016-intl-api`, `plugin:es-x/restrict-to-es2017-intl-api`, `plugin:es-x/restrict-to-es2018-intl-api`, `plugin:es-x/restrict-to-es2019-intl-api`, and `plugin:es-x/restrict-to-es2020-intl-api`
1111

1212
This rule reports ES2021 Intl API `Intl.DateTimeFormat.prototype.formatRange` as errors.
@@ -41,6 +41,10 @@ rules:
4141
Configure the aggressive mode for only this rule.
4242
This is prior to the `settings['es-x'].aggressive` setting.
4343

44+
## 🚀 Version
45+
46+
This rule was introduced in v6.0.0.
47+
4448
## 📚 References
4549

4650
- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-intl-datetimeformat-prototype-formatrange.js)

docs/rules/no-intl-datetimeformat-prototype-formattoparts.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: "es-x/no-intl-datetimeformat-prototype-formattoparts"
33
description: "disallow the `DateTimeFormat.prototype.formatToParts` method"
4+
since: "v6.0.0"
45
---
56

67
# es-x/no-intl-datetimeformat-prototype-formattoparts
78
> disallow the `DateTimeFormat.prototype.formatToParts` method
89
9-
- ❗ <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
1010
- ✅ The following configurations enable this rule: `plugin:es-x/no-new-in-es2017-intl-api`, `plugin:es-x/restrict-to-es-intl-api-1st-edition`, `plugin:es-x/restrict-to-es2015-intl-api`, and `plugin:es-x/restrict-to-es2016-intl-api`
1111

1212
This rule reports ES2017 Intl API `DateTimeFormat.prototype.formatToParts` as errors.
@@ -45,6 +45,10 @@ rules:
4545
Configure the aggressive mode for only this rule.
4646
This is prior to the `settings['es-x'].aggressive` setting.
4747

48+
## 🚀 Version
49+
50+
This rule was introduced in v6.0.0.
51+
4852
## 📚 References
4953

5054
- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-intl-datetimeformat-prototype-formattoparts.js)

docs/rules/no-intl-displaynames.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: "es-x/no-intl-displaynames"
33
description: "disallow the `Intl.DisplayNames` object"
4+
since: "v6.0.0"
45
---
56

67
# es-x/no-intl-displaynames
78
> disallow the `Intl.DisplayNames` object
89
9-
- ❗ <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
1010
- ✅ The following configurations enable this rule: `plugin:es-x/no-new-in-es2021-intl-api`, `plugin:es-x/restrict-to-es-intl-api-1st-edition`, `plugin:es-x/restrict-to-es2015-intl-api`, `plugin:es-x/restrict-to-es2016-intl-api`, `plugin:es-x/restrict-to-es2017-intl-api`, `plugin:es-x/restrict-to-es2018-intl-api`, `plugin:es-x/restrict-to-es2019-intl-api`, and `plugin:es-x/restrict-to-es2020-intl-api`
1111

1212
This rule reports ES2021 Intl API `Intl.DisplayNames` object as errors.
@@ -24,6 +24,10 @@ const dn = new Intl.DisplayNames('en', {type: 'calendar'});
2424

2525
</eslint-playground>
2626

27+
## 🚀 Version
28+
29+
This rule was introduced in v6.0.0.
30+
2731
## 📚 References
2832

2933
- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-intl-displaynames.js)

docs/rules/no-intl-getcanonicallocales.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: "es-x/no-intl-getcanonicallocales"
33
description: "disallow the `Intl.getCanonicalLocales` method"
4+
since: "v6.0.0"
45
---
56

67
# es-x/no-intl-getcanonicallocales
78
> disallow the `Intl.getCanonicalLocales` method
89
9-
- ❗ <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
1010
- ✅ The following configurations enable this rule: `plugin:es-x/no-new-in-es2016-intl-api`, `plugin:es-x/restrict-to-es-intl-api-1st-edition`, and `plugin:es-x/restrict-to-es2015-intl-api`
1111

1212
This rule reports ES2016 Intl API `Intl.getCanonicalLocales` method as errors.
@@ -24,6 +24,10 @@ console.log(Intl.getCanonicalLocales('EN-US'));
2424

2525
</eslint-playground>
2626

27+
## 🚀 Version
28+
29+
This rule was introduced in v6.0.0.
30+
2731
## 📚 References
2832

2933
- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-intl-getcanonicallocales.js)

docs/rules/no-intl-listformat.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: "es-x/no-intl-listformat"
33
description: "disallow the `Intl.ListFormat` object"
4+
since: "v6.0.0"
45
---
56

67
# es-x/no-intl-listformat
78
> disallow the `Intl.ListFormat` object
89
9-
- ❗ <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
1010
- ✅ The following configurations enable this rule: `plugin:es-x/no-new-in-es2021-intl-api`, `plugin:es-x/restrict-to-es-intl-api-1st-edition`, `plugin:es-x/restrict-to-es2015-intl-api`, `plugin:es-x/restrict-to-es2016-intl-api`, `plugin:es-x/restrict-to-es2017-intl-api`, `plugin:es-x/restrict-to-es2018-intl-api`, `plugin:es-x/restrict-to-es2019-intl-api`, and `plugin:es-x/restrict-to-es2020-intl-api`
1111

1212
This rule reports ES2021 Intl API `Intl.ListFormat` object as errors.
@@ -24,6 +24,10 @@ const formatter = new Intl.ListFormat('en', { style: 'long', type: 'conjunction'
2424

2525
</eslint-playground>
2626

27+
## 🚀 Version
28+
29+
This rule was introduced in v6.0.0.
30+
2731
## 📚 References
2832

2933
- [Rule source](https://github.com/eslint-community/eslint-plugin-es-x/blob/master/lib/rules/no-intl-listformat.js)

0 commit comments

Comments
 (0)