-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
49 lines (49 loc) · 1.01 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
41
42
43
44
45
46
47
48
49
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'@vue/standard',
'eslint:recommended'
],
// required to lint *.vue files
plugins: [
'vue'
],
parserOptions: {
parser: 'babel-eslint'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
// is rules
'strict': [
2,
'function'
],
'camelcase': 0,
'no-bitwise': 0,
'curly': 2,
'eqeqeq': [2, 'smart'],
'guard-for-in': 2,
'wrap-iife': [
2,
'any'
],
'no-empty': 2,
'no-use-before-define': 0,
'new-cap': 2,
'no-caller': 2,
'no-undef': 2,
'no-new': 2,
'no-eq-null': 0,
'linebreak-style': 2,
'dot-notation': 0,
'semi': [2, 'always'],
'object-curly-spacing': ['error', 'always'],
'quotes': [2, 'single', { 'avoidEscape': true }],
'no-trailing-spaces': [2, { 'skipBlankLines': true }]
}
}