sql-js / sql.js

A javascript library to run SQLite on the web.
http://sql.js.org
Other
12.79k stars 1.06k forks source link

discussion - javascript styleguide-incompatibilities between /src/, /test/, /examples/ #382

Closed kaizhu256 closed 4 years ago

kaizhu256 commented 4 years ago

intend to begin work linting directories /test/ (and possible /examples/). need to address:

use var or let/const?

2-space indent or 4-space indent?

use async/await or Promise(...).then(...)?

limit column-width to 80, 100, 120, 160?

these are some of the styleguide-incompatibilities i see though i'm sure there's more

lovasoa commented 4 years ago

I'd like to avoid unmotivated style changes to api.js, but that's all. It may be nice to have a single code style for the api and the tests, but I don't have any strong opinion on this, you can do as you see fit @kaizhu256.

kaizhu256 commented 4 years ago

k, would tightening rule to 80-column limit "max-len": { code: 80 } be acceptably motivated?

lovasoa commented 4 years ago

yes, it's ok