webauthn icon indicating copy to clipboard operation
webauthn copied to clipboard

Add eslint and "lint" npm scripts

Open eheikes opened this issue 6 years ago • 2 comments

Adds linting to the project (for the client and server packages) using ESLint and lint npm scripts. It does both traditional linting (looking for problematic patterns) and style checking (enforcement of conventions). The rules were selected to match the existing code as closely as possible.

Run lerna run lint to test it out.

eheikes avatar Nov 04 '19 17:11 eheikes

Thanks but I'd rather have prettier handle the formatting itself by adding eslint-prettier-config and eslint-prettier-plugin

djhi avatar Nov 14 '19 09:11 djhi

Okay, I added the Prettier plugins and use them to format the code.

eheikes avatar Nov 18 '19 18:11 eheikes