Skip to content

Commit

Permalink
fix: update info (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Jul 23, 2024
1 parent 8c1d721 commit bf179f6
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 23 deletions.
2 changes: 1 addition & 1 deletion docs/no-async-generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ These will not be allowed because they are not supported in the following browse

You can safely manually create generator functions that yield promises, however an example is out of scope of this document.

This can be safely disabled if you intend to compile code with the `@babel/plugin-proposal-async-generator-functions` Babel plugin, or `@babel/preset-env`.
This can be safely disabled if you intend to compile code with the `@babel/plugin-transform-async-generator-functions` Babel plugin, or `@babel/preset-env`.
2 changes: 1 addition & 1 deletion docs/no-bigint.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This prevents the use of BigInt numeric literals.
These will not be allowed because they are not supported in the following browsers:

- Edge < 79
- Safari (any version at the time of writing)
- Safari < 14
- Firefox < 68
- Chrome < 67

Expand Down
4 changes: 2 additions & 2 deletions docs/no-class-static-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ These will not be allowed because they are not supported in the following
browsers:

- Edge < 94
- Safari > 0
- Safari < 16.4
- Firefox < 93
- Chrome < 94

Expand Down Expand Up @@ -43,5 +43,5 @@ class Foo {
```

This can be safely disabled if you intend to compile code with the
`@babel/plugin-proposal-class-static-block` Babel plugin, or
`@babel/plugin-transform-class-static-block` Babel plugin, or
`@babel/preset-env`.
2 changes: 1 addition & 1 deletion docs/no-computed-public-class-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ Object.defineProperty(Foo, computed, { configurable: true, enumerable: true, wri
Foo[computed] = 1
```

This can be safely disabled if you intend to compile code with the `@babel/plugin-proposal-class-properties` Babel plugin.
This can be safely disabled if you intend to compile code with the `@babel/plugin-transform-class-properties` Babel plugin.
3 changes: 2 additions & 1 deletion docs/no-numeric-separators.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ These will not be allowed because they are not supported in the following browse

## What is the Fix?

This can be safely disabled if you intend to compile code with the `@babel/plugin-proposal-numeric-separator` Babel plugin.
This can be safely disabled if you intend to compile code with the `@babel/plugin-transform-numeric-separator` Babel plugin, or
`@babel/preset-env`.
2 changes: 1 addition & 1 deletion docs/no-object-rest-spread.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ let a = obj.a, x = without(obj, 'a')

You can also use Lodash's [`without`](https://lodash.com/docs/4.17.11#without) method, or Ramda's [`omit`](https://ramdajs.com/docs/#omit).

This can be safely disabled if you intend to compile code with the `@babel/plugin-proposal-object-rest-spread` Babel plugin, or `@babel/preset-env`.
This can be safely disabled if you intend to compile code with the `@babel/plugin-transform-object-rest-spread` Babel plugin, or `@babel/preset-env`.
3 changes: 2 additions & 1 deletion docs/no-optional-chaining.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ Lastly, you could consider using a utility function such as [lodash' `get`](http
const baz = _.get(obj, 'foo.bar.baz')
```
This can be safely disabled if you intend to compile code with the `@babel/plugin-proposal-optional-chaining` Babel plugin.
This can be safely disabled if you intend to compile code with the `@babel/plugin-transform-optional-chaining` Babel plugin, or
`@babel/preset-env`.
7 changes: 4 additions & 3 deletions docs/no-private-class-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class Foo {
These will not be allowed because they are not supported in the following browsers:

- Edge < 79
- Safari (any version at the time of writing)
- Firefox (any version at the time of writing)
- Safari < 14.1
- Firefox < 90
- Chrome < 74


Expand All @@ -39,4 +39,5 @@ class Foo {
}
```

This can be safely disabled if you intend to compile code with the `@babel/plugin-proposal-class-properties` Babel plugin.
This can be safely disabled if you intend to compile code with the `@babel/plugin-transform-private-property-in-object` Babel plugin, or
`@babel/preset-env`.
7 changes: 4 additions & 3 deletions docs/no-public-instance-class-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class Foo {
These will not be allowed because they are not supported in the following browsers:

- Edge < 79
- Safari (any version at the time of writing)
- Safari < 16.0
- Firefox < 69
- Chrome < 74
- Chrome < 72


## What is the Fix?
Expand All @@ -36,4 +36,5 @@ class Foo {
}
```

This can be safely disabled if you intend to compile code with the `@babel/plugin-proposal-class-properties` Babel plugin.
This can be safely disabled if you intend to compile code with the `@babel/plugin-transform-class-properties` Babel plugin, or
`@babel/preset-env`.
9 changes: 5 additions & 4 deletions docs/no-public-static-class-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class Foo {
These will not be allowed because they are not supported in the following browsers:

- Edge < 79
- Safari (any version at the time of writing)
- Firefox (any version at the time of writing)
- Chrome < 74
- Safari < 14.1
- Firefox < 75
- Chrome < 72


## What is the Fix?
Expand All @@ -30,4 +30,5 @@ class Foo {}
Foo.bar = 1
```

This can be safely disabled if you intend to compile code with the `@babel/plugin-proposal-class-properties` Babel plugin.
This can be safely disabled if you intend to compile code with the `@babel/plugin-transform-class-properties` Babel plugin, or
`@babel/preset-env`.
4 changes: 2 additions & 2 deletions docs/no-regexp-lookbehind.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ new RegExp("/(?<=a)b")
These will not be allowed because they are not supported in the following browsers:

- Edge < 79
- Safari (any version at the time of writing)
- Firefox (any version at the time of writing)
- Safari < 16.4
- Firefox < 78
- Chrome < 62

## What is the Fix?
Expand Down
2 changes: 1 addition & 1 deletion docs/no-regexp-named-group.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ These will not be allowed because they are not supported in the following browse

- Edge < 79
- Safari < 11.1
- Firefox (any version at the time of writing)
- Firefox < 78
- Chrome < 64


Expand Down
2 changes: 1 addition & 1 deletion docs/no-regexp-s-flag.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ These will not be allowed because they are not supported in the following browse

- Edge < 79
- Safari < 11.1
- Firefox (any version at the time of writing)
- Firefox < 78
- Chrome < 62


Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ createRule(
);
createRule(
"no-class-static-blocks",
"edge < 94, safari > 0, firefox < 94, chrome < 94",
"edge < 94, safari < 16.4, firefox < 93, chrome < 94",
"disallow static blocks like `static { x = 1 }`",
{ ts: 2022 }
);
Expand Down

0 comments on commit bf179f6

Please sign in to comment.