Closed kaizhu256 closed 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.
k, would tightening rule to 80-column limit "max-len": { code: 80 }
be acceptably motivated?
yes, it's ok
intend to begin work linting directories /test/ (and possible /examples/). need to address:
use
var
orlet/const
?var
, should add eslint-rule"block-scoped-var": "on"
, to guard against current code likefor (var i = 0; i < argc; i += 1)
(var i
is actually scoped outside the for-loop)let/const
, should remove the var eslint-rules:"no-var": "off"
"vars-on-top": "off"
2-space indent or 4-space indent?
use async/await or Promise(...).then(...)?
limit column-width to 80, 100, 120, 160?
"max-len": { code: 80 }
)these are some of the styleguide-incompatibilities i see though i'm sure there's more