jupyterlite / cockle

In-browser bash-like shell implemented in TypeScript.
BSD 3-Clause "New" or "Revised" License
3 stars 2 forks source link

Add linting #24

Closed ianthomas23 closed 3 months ago

ianthomas23 commented 3 months ago

Fixes #8.

This PR adds linting to the repo using eslint and prettier, based on the approach taken in JupyterLite and the terminal extension. It is quite invasive of course, but most of the changes are adding trailing semicolons and using single quotes. There are a few real improvements though, the use of hasOwnProperty and some comparison operators.

The CI workflow includes linting before testing, and the README indicates how to run it locally.