koa2-api-scaffold/.eslintrc.js
2019-04-07 23:03:32 +08:00

27 lines
567 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 2017, //指定ECMAScript支持的版本6为ES6这里为了兼容async和await设置为2017
sourceType: 'module'
},
extends: 'standard',
plugins: [
'html',
'promise'
],
env: {
'node': true
},
rules: {
// allow console
'no-console': 0,
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': 0
}
}