I was able to fix this issue by adding this to rules in .eslintrc.js
'prettier/prettier': ['error', { endOfLine: 'auto' }],
hope it helps