stable

Clone or download

Read-only

request #11531 - Introduce Prettier to ESLint so they make children

This patch introduces Prettier, a code formatter to be used with ESLint. How to test: - Create a new js file containing poorly formatted code: function doSomething() { const foo = 1; if( foo === 1){ return true; } else { return false } } doSomething(); - git add - git commit --> pre-commit-04-eslint stops the commit process and shows you the errors found by Prettier and ESLint --> A command is displayed on the output - run this command - git commit -a - you are allowed to commit Change-Id: Iab5a40b81955ed5c89c83e698dae7ad58251d496

Modified Files

Name
M .eslintrc +8 −3 Go to diff View file
A .prettierrc +7 −0 Go to diff View file
M package-lock.json +2615 −5069 Go to diff View file
M package.json +3 −0 Go to diff View file
M tools/utils/githooks/pre-commit-04-eslint +8 −1 Go to diff View file