-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
69 lines (69 loc) · 2.5 KB
/
index.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
60
61
62
63
64
65
66
67
68
69
module.exports = {
"extends": ["airbnb-base", "plugin:vue/base", "plugin:vue/vue3-essential", "plugin:vue/vue3-strongly-recommended"],
"parser": "vue-eslint-parser", // You don't need this line. It's just extra.
rules: {
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
indent: ['error', 4, {
SwitchCase: 1,
VariableDeclarator: 1,
outerIIFEBody: 1,
// MemberExpression: null,
FunctionDeclaration: {
parameters: 1,
body: 1
},
FunctionExpression: {
parameters: 1,
body: 1
},
CallExpression: {
arguments: 1
},
ArrayExpression: 1,
ObjectExpression: 1,
ImportDeclaration: 1,
flatTernaryExpressions: false,
// list derived from https://github.com/benjamn/ast-types/blob/HEAD/def/jsx.js
ignoredNodes: ['JSXElement', 'JSXElement > *', 'JSXAttribute', 'JSXIdentifier', 'JSXNamespacedName', 'JSXMemberExpression', 'JSXSpreadAttribute', 'JSXExpressionContainer', 'JSXOpeningElement', 'JSXClosingElement', 'JSXText', 'JSXEmptyExpression', 'JSXSpreadChild'],
ignoreComments: false
}],
"vue/html-indent": ["error", 4, {
"attribute": 1,
"baseIndent": 1,
"closeBracket": 0,
"alignAttributesVertically": true,
"ignores": []
}],
'vue/require-prop-types': 'off', //in future I need this,
'vue/require-default-prop': 'off', //in future I can fix this
'no-mixed-spaces-and-tabs': 'off', //we want to use js keychain dots of methods ...
'import/no-unresolved': 'off',
'import/first': 'off',
'no-undef': 'off', //bug in app.js because required vue..
'import/no-extraneous-dependencies': 'off', //some are set to devDepen
'no-use-before-define': 'off',
'prefer-destructuring': ['error', {
VariableDeclarator: {
array: false,
object: true,
},
AssignmentExpression: {
array: true,
object: false, //that was stupid in canvas..
},
}, {
enforceForRenamedProperties: false,
}],
'no-tabs': 'off', //why shouldn't I use tab?
},
"globals": {
"trans": false //ignores trans in vue
}
};