---
title: class-methods-use-this
-layout: doc
rule_type: suggestion
further_reading:
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes
"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