saito-lite icon indicating copy to clipboard operation
saito-lite copied to clipboard

chore: add eslint/prettier and npm task

Open escapedcat opened this issue 4 years ago • 2 comments

Background for this PR

Linting the code will make sure on the long run code is consistent. Every touched or newly added code will be linted.
Prettier takes care of formatting the code. Eslint will take care of checking the JS-parts and providing info on what should be improved.

You can always skip linting using --no-verify during a commit.

To let prettier do it's job on "file save" in code you can install this extension: https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode

image

escapedcat avatar Nov 23 '20 05:11 escapedcat

This would be nice...

clayrab avatar Oct 12 '21 08:10 clayrab

After this is merged we should add a check to Github-actions for this as well

escapedcat avatar Nov 26 '21 07:11 escapedcat