-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
40 lines (40 loc) · 1.06 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module.exports = {
root: true,
env: {
node: true,
browser: true,
es6: true
},
extends: [
'plugin:vue/recommended',
'eslint:recommended'
],
rules: {
semi: ['error', 'never'],
indent: ['error', 2],
'max-len': ['error', { code: 150, tabWidth: 2 }],
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/max-attributes-per-line': 'off',
'vue/html-indent': ['warn', 2],
'vue/no-unused-vars': 'error',
'vue/html-self-closing': 'off',
'new-cap': 'error',
'comma-spacing': 'error',
'arrow-spacing': 'error',
'key-spacing': 'error',
'no-mixed-spaces-and-tabs': 'error',
'space-before-function-paren': 'error',
'space-infix-ops': 'error',
'space-unary-ops': 'error',
'spaced-comment': 'error',
'no-var': 'error',
'no-useless-constructor': 'error',
quotes: ['error', 'single']
},
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module',
ecmaVersion: 2018
}
}