Browse Source

use eslint-config-vue

dev
Evan You 9 years ago
parent
commit
d1abc2fe2e
  1. 4
      .eslintrc
  2. 15
      .eslintrc.js
  3. 4
      package.json

4
.eslintrc

@ -0,0 +1,4 @@
{
"root": true,
"extends": "vue"
}

15
.eslintrc.js

@ -1,15 +0,0 @@
module.exports = {
root: true,
extends: 'standard',
'rules': {
'prefer-const': 2,
'arrow-parens': [2, 'as-needed'],
'no-new-func': 0,
'no-new': 0,
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'standard/object-curly-even-spacing': [2, 'always', {
objectsInObjects: false
}],
'standard/array-bracket-even-spacing': [2, 'never']
}
}

4
package.json

@ -43,10 +43,8 @@
"cross-spawn": "2.2.x",
"entities": "1.1.x",
"eslint": "2.9.x",
"eslint-config-standard": "5.2.x",
"eslint-config-vue": "1.0.x",
"eslint-loader": "1.3.x",
"eslint-plugin-promise": "1.1.x",
"eslint-plugin-standard": "1.3.x",
"http-server": "0.9.x",
"isparta-loader": "2.0.x",
"jasmine": "2.4.x",

Loading…
Cancel
Save