Open bifurcation opened 8 years ago
a => a.foo()
or (a,b) => a+b
, but not (a) => a.foo()
OK?
// Copyright (c) 2016 the rocket-skates CONTRIBUTORS. All rights reserved.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
Reference needed for es6lint, apparently. Do you just mean eslint in es6 mode?
Yep. Whatever was running with gulp lint
.
One more:
HTTPChallenge
, no HttpChallenge
)Do you have a list of acronyms you want to support? It will be possible to add more later.
One more:
a => a.foo()
or (a,b) => a+b
, but not (a) => a.foo()
As far as acronyms, things that come to mind:
Some of those are going to appear as all-lowercase variable names (e.g., jws
for a variable pointing to a signed object), so maybe that one isn't great to enforce.
What about not needing them uppercase if they're the whole word? http
is ok, but HTTPfoo
.
Draft list of standards to enforce:
'use strict';
)const
, e.g.,const foo = require('foo');
let
(notvar
)es6lint
must pass with no errors (warnings allowed by discouraged).then
and.catch
lines following promises are indented 2 spacesfunction
functions