ESLint checks for syntax and formatting errors. Prettier will automatically format your code to those stands.
Note upon Prettier placing trailing commas : It is an ES5 standard to place a trailing comma after the last property of an object to ease workflow and reduce chances of a comma being overlooked when new properties are added. This is not an error.
- Download Prettier and ESLint extension from marketplace to install into VS Code.
- Download ESLint and Prettier into your project
$ npm install --save-dev eslint eslint-config-prettier eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks prettier