解决方案:
1)进入项目根目录;
npm i eslint prettier-eslint eslint-config-prettier --save-dev
原因:
I just had this error: I was manually installing the prettier modules, and only hadeslint-plugin-prettier
but noteslint-config-prettier
.
解决方案:
1)进入项目根目录;
npm i eslint prettier-eslint eslint-config-prettier --save-dev
原因:
I just had this error: I was manually installing the prettier modules, and only hadeslint-plugin-prettier
but noteslint-config-prettier
.