-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy path.eslintrc.js
More file actions
50 lines (50 loc) · 1.14 KB
/
.eslintrc.js
File metadata and controls
50 lines (50 loc) · 1.14 KB
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
50
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'@vue/standard'
],
parserOptions: {
parser: 'babel-eslint'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'space-in-parens': 0,
'no-multiple-empty-lines': 0,
indent: 'off', //['error', 4],
semi: 0,
quotes: [2, 'single'],
'comma-dangle': 0,
'space-before-function-paren': 0,
'block-spacing': 0,
'space-before-blocks': 0,
'spaced-comment': 0,
'no-unused-vars': 'off',
'import/no-named-as-default': 'off',
'import/prefer-default-export': 'off',
'vue/script-indent': ['error', 4, {
baseIndent: 1
}]
},
overrides: [
{
files: ['*.vue'],
rules: {
indent: 'off'
}
},
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)',
],
env: {
jest: true
}
}
]
}