-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc.js
59 lines (59 loc) · 1.52 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
50
51
52
53
54
55
56
57
58
59
module.exports = {
"extends": [
"airbnb-base",
"plugin:vue/recommended",
"prettier",
"prettier/vue"
],
"parserOptions": {
"parser": "babel-eslint",
"ecmaVersion": 2017,
"sourceType": "module"
},
"prettier": {
"trailingComma": "es5",
"semi": false
},
"globals": {
OneDrive: true,
Dropbox: true,
gapi: true,
addEventListener: true,
history: true
},
"env": {
"browser": true
},
// check if imports actually resolve
'rules': {
// don't require .vue extension when importing
'import/extensions': ['error', 'always', {
'js': 'never',
'vue': 'never'
}],
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': 'off',
'import/extensions': 'off',
"import/no-named-as-default": 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-console': process.env.NODE_ENV === 'production' ? 2 : 0,
'import/first': 0,
'comma-dangle': 0,
"prefer-destructuring": 0,
"semi": 0,
"arrow-body-style": ["error", "as-needed", { "requireReturnForObjectLiteral": true }],
"no-param-reassign": 0,
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"no-new": 0,
"max-len": ["warn", 200],
"no-else-return": 0,
"func-names": ["warn", "as-needed"],
"vue/valid-template-root": 0,
"vue/max-attributes-per-line": ["warn", {
"singleline": 3
}],
"vue/singleline-html-element-content-newline": 0,
"quotes": 0
}
};