You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(linter): Add configuration option docs for eslint/no-useless-computed-key rule. (#15054)
These docs already existed, just needed to be moved.
Part of #14743.
Generated docs:
```md
## Configuration
This rule accepts a configuration object with the following properties:
### enforceForClassMembers
type: `boolean`
default: `true`
The `enforceForClassMembers` option controls whether the rule applies to
class members (methods and properties).
Examples of **correct** code for this rule with the `{ "enforceForClassMembers": false }` option:
\```js
class SomeClass {
["foo"] = "bar";
[42] = "baz";
get ['b']() {}
set ['c'](value) {}
static ["foo"] = "bar";
}
\```
```
0 commit comments