From 78757fdb96d8962a6895cdecd21e41b00d99ac98 Mon Sep 17 00:00:00 2001 From: miZyind Date: Fri, 29 Apr 2022 10:14:49 +0700 Subject: [PATCH] docs: correct doc of parameter-properties to match the code --- .../eslint-plugin/docs/rules/parameter-properties.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/eslint-plugin/docs/rules/parameter-properties.md b/packages/eslint-plugin/docs/rules/parameter-properties.md index 0974300bce3d..55320177c0a3 100644 --- a/packages/eslint-plugin/docs/rules/parameter-properties.md +++ b/packages/eslint-plugin/docs/rules/parameter-properties.md @@ -15,10 +15,10 @@ declare all properties in the class. This rule, in its default state, does not require any argument and would completely disallow the use of parameter properties. It may take an options object containing either or both of: -- `"allows"`: allowing certain kinds of properties to be ignored -- `"prefer"`: either `"class-properties"` _(default)_ or `"parameter-properties"` +- `"allow"`: allowing certain kinds of properties to be ignored +- `"prefer"`: either `"class-property"` _(default)_ or `"parameter-property"` -### `"allows"` +### `"allow"` If you would like to ignore certain kinds of properties then you may pass an object containing `"allows"` as an array of any of the following options: @@ -46,10 +46,10 @@ For example, to ignore `public` properties: ### `"prefer"` -By default, the rule prefers class properties (`"class-properties"`). -You can switch it to instead preferring parameter properties with (`"parameter-properties"`). +By default, the rule prefers class property (`"class-property"`). +You can switch it to instead preferring parameter property with (`"parameter-property"`). -In `"parameter-properties"` mode, the rule will issue a report when: +In `"parameter-property"` mode, the rule will issue a report when: - A class property and constructor parameter have the same name and type - The constructor parameter is assigned to the class property at the beginning of the constructor pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy