]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/docs/src/rules/class-methods-use-this.md
import 8.41.0 source
[pve-eslint.git] / eslint / docs / src / rules / class-methods-use-this.md
index 49c74e66116c220d6f4722b2691136a8b5ea135a..2269fac8effdc543603d709e779f413f496e0d72 100644 (file)
@@ -1,6 +1,5 @@
 ---
 title: class-methods-use-this
-layout: doc
 rule_type: suggestion
 further_reading:
 - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes
@@ -119,9 +118,9 @@ This rule has two options:
 "class-methods-use-this": [<enabled>, { "exceptMethods": [<...exceptions>] }]
 ```
 
-The `exceptMethods` option allows you to pass an array of method names for which you would like to ignore warnings. For example, you might have a spec from an external library that requires you to overwrite a method as a regular function (and not as a static method) and does not use `this` inside the function body. In this case, you can add that method to ignore in the warnings.
+The `"exceptMethods"` option allows you to pass an array of method names for which you would like to ignore warnings. For example, you might have a spec from an external library that requires you to overwrite a method as a regular function (and not as a static method) and does not use `this` inside the function body. In this case, you can add that method to ignore in the warnings.
 
-Examples of **incorrect** code for this rule when used without exceptMethods:
+Examples of **incorrect** code for this rule when used without `"exceptMethods"`:
 
 ::: incorrect