-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Before You File a Documentation Request Please Confirm You Have Done The Following...
- I have looked for existing open or closed documentation requests that match my proposal.
- I have read the FAQ and my problem is not listed.
Suggested Changes
Syntax error (playground)
typescript-eslint/packages/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md
Line 60 in 7246e56
const x = { foo(arg: string[]): void; }; |
Should not be in Correct example as it's actually incorrect (playground):
typescript-eslint/packages/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md
Line 94 in 7246e56
function union(arg: readonly string[] | ReadonlyArray<number[]>) {} |
enum
is a reserved word (playground):
typescript-eslint/packages/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md
Lines 108 to 109 in 7246e56
enum Foo { a, b } | |
function enum(arg: Foo) {} |
Syntax error (playground):
typescript-eslint/packages/eslint-plugin/docs/rules/prefer-readonly-parameter-types.md
Line 122 in 7246e56
const x = { foo(arg: readonly string[]): void; }; |
Affected URL(s)
https://typescript-eslint.io/rules/prefer-readonly-parameter-types