-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
48 lines (48 loc) · 1.09 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
module.exports = {
root: true,
parserOptions: {
'parser': 'babel-eslint',
'ecmaVersion': 2017,
'sourceType': 'module'
},
env: {
browser: true,
jest: true
},
extends: [
"eslint:recommended",
"plugin:vue/recommended",
"standard"
],
plugins: [
'vue'
],
rules: {
'import/extensions': ['error', 'always', {
'js': 'never',
'vue': 'never'
}],
'import/no-extraneous-dependencies': 0,
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'import/no-duplicates': 0,
'import/no-extraneous-dependencies': 0,
'import/extensions': 0,
'import/named': 0,
'import/namespace': 0,
'import/no-unresolved': 0,
'import/no-named-as-default': 0,
'import/prefer-default-export': 0,
'comma-dangle': 0,
'indent': [2, 2, {'SwitchCase': 1}],
'no-console': 0,
'no-alert': 0,
'semi': ['error', 'never'],
'no-var': 2,
'space-before-blocks': 2,
'keyword-spacing': 2,
'no-global-assign': 0,
'no-unsafe-negation': 0,
'linebreak-style': 0,
'no-use-before-define': 0
}
}