Rule: prefer-function-over-method

Warns for class methods that do not use ‘this’.

Config

“allow-public” excludes checking of public methods. “allow-protected” excludes checking of protected methods.

Config examples
"prefer-function-over-method": true
"prefer-function-over-method": [true, "allow-public", "allow-protected"]
Schema
{
  "type": "string",
  "enum": [
    "allow-public",
    "allow-protected"
  ]
}