Skip to content

Commit

Permalink
Update eslint packages and configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
fxha committed Dec 15, 2018
1 parent 73bf934 commit 1a55fd9
Show file tree
Hide file tree
Showing 14 changed files with 1,630 additions and 4,757 deletions.
17 changes: 14 additions & 3 deletions .eslintrc.js
Expand Up @@ -2,24 +2,35 @@ module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
impliedStrict: true
},
sourceType: 'module'
},
env: {
browser: true,
es6: true,
node: true
},
extends: 'standard',
extends: [
'standard',
'eslint:recommended',
'plugin:vue/base' // 'plugin:vue/essential'
],
globals: {
__static: true
},
plugins: [
'html'
'html',
'vue'
],
'rules': {
rules: {
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// allow console
'no-console': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
}
Expand Down

0 comments on commit 1a55fd9

Please sign in to comment.