-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
47 lines (47 loc) · 1.07 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
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module',
},
env: {
browser: true,
jest: true,
},
extends: [
'airbnb-base',
'plugin:vue/recommended',
],
plugins: [
'vue',
],
globals: {
cordova: true,
ContactFindOptions: true,
jest: true,
sms: true,
QRScanner: true,
StatusBar: true,
IRoot: true,
NavigationBar: true,
},
rules: {
'vue/require-default-prop': 0,
'no-param-reassign': 0,
'import/first': 0,
'import/named': 2,
'import/namespace': 2,
'import/default': 2,
'import/export': 2,
'import/prefer-default-export': 0,
'import/extensions': 0,
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0,
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'arrow-body-style': ['error', 'always'],
'vue/component-name-in-template-casing': 0,
'curly': [2, 'all'],
'no-magic-numbers': ['error', {'ignore': [-1, 0, 1, 2, 10, 420], 'ignoreArrayIndexes': true }],
'linebreak-style': 0,
},
};