Edit .eslintrc.json file from the root of the project and in the endOfLine preference setting to the exports.

module.exports = {
arrowParens: ‘avoid’,
bracketSameLine: true,
bracketSpacing: false,
singleQuote: true,
trailingComma: ‘all’,
"endOfLine": 'auto',
};

Close visual code and open it again for the changes to be applied. You will no longer see the warning message again.