提交 4dc56f6d 编写于 作者: K Konstantin Vyatkin 提交者: Yiyu He

chore: update ESLint and plugins/configs (#1407)

上级 be7d3347
......@@ -7,13 +7,13 @@ const app = new Koa();
// number of middleware
let n = parseInt(process.env.MW || '1', 10);
let useAsync = process.env.USE_ASYNC === 'true';
const useAsync = process.env.USE_ASYNC === 'true';
console.log(` ${n}${useAsync ? ' async' : ''} middleware`);
while (n--) {
if (useAsync) {
app.use(async(ctx, next) => await next());
app.use(async(ctx, next) => next());
} else {
app.use((ctx, next) => next());
}
......
env:
jest: true
mocha: true
rules:
space-before-blocks: [2, {functions: never, keywords: always}]
no-unused-expressions: 0
node/no-deprecated-api: 'warn'
quote-props: 'warn'
no-prototype-builtins: 'warn'
array-bracket-spacing: 'warn'
object-curly-spacing: 'warn'
dot-notation: 'warn'
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册