Skip to content

Commit

Permalink
Added eslint files
Browse files Browse the repository at this point in the history
  • Loading branch information
nwittwer committed Jan 29, 2019
1 parent 9171a4f commit 6b27673
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Empty file added .eslintignore
Empty file.
28 changes: 28 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
node: true
},
extends: 'standard',
globals: {
__static: true
},
plugins: [
'html'
],
'rules': {
// allow paren-less arrow functions
'arrow-parens': 0,
// stop being annoying about spaces before parameters
'space-before-function-paren': 0,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
}
}

0 comments on commit 6b27673

Please sign in to comment.