Permalink
Browse files

Added missing eslint config

  • Loading branch information...
Zetaphor committed Dec 21, 2016
1 parent b8d5a6a commit 023a53ec71c011933c88a29b99bb1aabd8ec2032
Showing with 33 additions and 0 deletions.
  1. +9 −0 .editorconfig
  2. +2 −0 .eslintignore
  3. +22 −0 .eslintrc.js
View
@@ -0,0 +1,9 @@
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
View
@@ -0,0 +1,2 @@
build/*.js
config/*.js
View
@@ -0,0 +1,22 @@
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: 'standard',
// required to lint *.vue files
plugins: [
'html'
],
// add your custom rules here
'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
}
}

0 comments on commit 023a53e

Please sign in to comment.