axa-group / bauta.js

Bauta.js is an add-on for your Node.js applications such as Express.js or Fastify.
Other
42 stars 3 forks source link

update eslint rule to avoid unnecessary warning #46

Closed Xavier-Redondo closed 1 year ago

Xavier-Redondo commented 2 years ago

Current rule in .eslintrc

"class-methods-use-this": "warn"

should be changed to:

"class-methods-use-this": ["error", { "enforceForClassFields": false }]

This way we remove a warning and we ensure that no class methods use this incorrectly. Further details here.

Keith-Web3 commented 1 year ago

Hey @Xavier-Redondo, can I work on this or has it been resolved?

franher commented 1 year ago

@Keith-Web3 go ahead! PR are welcome! Thank you