Skip to content

Commit

Permalink
符合 Eslint 和更新 Runner.js
Browse files Browse the repository at this point in the history
  • Loading branch information
qoli committed Sep 27, 2018
1 parent 390635d commit 208b8b4
Show file tree
Hide file tree
Showing 14 changed files with 13,615 additions and 711 deletions.
44 changes: 23 additions & 21 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
node: true
},
extends: 'standard',
plugins: [
'html'
],
'rules': {
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
}
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
node: true
},
extends: 'standard',
plugins: [
'html'
],
'rules': {
'indent': 0,
// allow paren-less arrow functions
'space-before-function-paren': 0,
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
}
}
Loading

0 comments on commit 208b8b4

Please sign in to comment.