-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
74 lines (73 loc) · 1.83 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
const path = require('path');
module.exports = {
'plugins': [
'jasmine',
'sort-imports-es6-autofix',
],
'env': {
'jasmine': true,
},
'extends': [
'airbnb-base',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:vue/recommended',
],
settings: {
'import/resolver': {
webpack: {
config: 'build/webpack-dev.config.js'
}
}
},
'parserOptions': {
'ecmaVersion': 7,
'sourceType': 'module',
},
'rules': {
'comma-dangle': ['error', 'always-multiline'],
'func-names': 0,
'import/first': 0,
'import/no-extraneous-dependencies': ['error', {'devDependencies': true}],
'import/no-nodejs-modules': 0,
'import/order': 0,
'import/prefer-default-export': 0,
'indent': 'off',
'max-len': ['error', {
'code': 120,
'ignoreStrings': true,
'ignoreTemplateLiterals': true,
}],
'no-mixed-spaces-and-tabs': 0,
'no-plusplus': ['error', {'allowForLoopAfterthoughts': true}],
'no-tabs': 0,
'no-underscore-dangle': 0,
'object-curly-newline': ['error', {
'ObjectExpression': {'multiline': true},
'ObjectPattern': {'multiline': true}
}],
'sort-imports-es6-autofix/sort-imports-es6': [2, {
ignoreCase: false,
ignoreMemberSort: false,
memberSyntaxSortOrder: ['none', 'all', 'single', 'multiple'],
}],
'vue/order-in-components': [2, {
order: ['name',
'props',
'extends',
'components',
'directives',
'data',
'computed',
'methods',
'watch',
'filters',
'LIFECYCLE_HOOKS',
'mixins',
['delimiters', 'functional', 'model', 'parent', 'provide', 'inject', 'el', 'template', 'propsData', 'render', 'renderError'],
],
}],
'vue/require-v-for-key': 0,
'vue/valid-v-for': 0,
},
};