How to make prettier run before ESLint on save?

I just saw Theo's latest video where he recommended we configure prettier/eslint so that prettier runs first on save for style corrections, then afterwards ESLint does another pass for code quality. How do I ensure that this order occurs upon save?

Is it enough to just have the following settings?
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
  "source.fixAll.eslint": true
},


thanks!
Was this page helpful?