I would like to implement a feature like, if any of the file code is not formatted or not followed the standard then build has to show the errors with the line numbers, eg. Semistandard in JS. Likewise for TS.
Because, team members are not formatting the code, and other developers are feeling hard to code. So until they fix the formatting issues, the build should not be succeed. Is there any way to achieve this with the npm command.
For Eg. npm start: "node server.ts && npm run format".
Any medium, dev.io, etc link for reference is also worth to watch.
I have the following with me: TSLint + Node + Express + Prettier + VSCode.
Any Prettier config with best practices would be greatly appreciable. eg. .prettierrc and how to configure in VSCode
The above is for express-server. Similarly i need to achieve the same in front end Angular
Source: Angular Questions