How do you disable no-plusplus when using eslint?
You can also write variable += 1
instead, as suggested by ESLint.
You can just override it in your .eslintrc.js
file as follows:
'no-plusplus': 'off'
or if you don't want to disable it completely but only for for-loops
:
'no-plusplus': [2, { allowForLoopAfterthoughts: true }]