0+ use "ignorePatterns": []. You can tell ESLint to ignore specific files and directories using ignorePatterns in your config files.
If you want to disable multiple ESLint errors, you can do the following (note the commas):
// eslint-disable-next-line no-return-assign, no-param-reassign
( your code... )
( your code... ) // eslint-disable-line no-return-assign, no-param-reassign
/* eslint-disable no-return-assign, no-param-reassign */
( your code... )
/* eslint-enable no-return-assign, no-param-reassign */
See the Configuring Rules section of the ESLint documentation.
(Though it might be a better choice to simply disable these errors in your .eslintrc
file if you can't follow certain rules all the time.)
You should use commas instead.
/* eslint-disable-next-line no-return-assign, no-param-reassign */
const subTotal = orderInfo.details.reduce((acc, cv) => acc += Number(cv.price) * Number(cv.quantity), 0);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With