0%

webstorm-tips

webstorm-tips

Conflict between prettier and eslint

[ESlint] delete cr (prettier/prettier)

Resolution: put the following config in your .eslintrc.js under project root.

1
2
3
4
5
6
7
8
9
rules: {
...
'prettier/prettier': [
'error',
{
'endOfLine': 'auto' // This line will remove the warning
}
]
},