Skip to content

Commit b64ebf8

Browse files
fterdalglebec
authored andcommitted
Remove rule to enforce class methods using (#47)
* Remove rule to enforce class methods using * don't enforce that class methods use this * Keep the default description
1 parent c4a6050 commit b64ebf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/base.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = {
4646
'accessor-pairs': 2, // enforce getter and setter pairs in objects
4747
'array-callback-return': 0, // enforce `return` statements in callbacks of array methods
4848
'block-scoped-var': 0, // enforce the use of variables within the scope they are defined
49-
'class-methods-use-this': 1, // enforce that class methods utilize `this`
49+
'class-methods-use-this': 0, // enforce that class methods utilize `this`
5050
'complexity': [1, {max: 8}], // enforce a maximum cyclomatic complexity allowed in a program
5151
'consistent-return': 0, // require return statements to either always or never specify values
5252
'curly': [1, 'multi-line', 'consistent'], // enforce consistent brace style for all control statements

0 commit comments

Comments
 (0)