-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
114 lines (106 loc) · 2.61 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
const path = require('path');
module.exports = {
root: true,
parserOptions: {
parser: "babel-eslint",
ecmaVersion: 8,
sourceType: "module"
},
env: {
node: true,
'jest/globals': true,
},
globals: {
context: true
},
extends: [
'plugin:vue/recommended',
'plugin:vue/essential',
'@vue/airbnb',
'plugin:jest/all'
],
plugins: ['vue', 'jest'],
settings: {
'import/extensions': [
".js",
".jsx"
]
},
rules: {
indent: [
'error',
4
],
'no-param-reassign': [
'error',
{
props: false
}
],
'no-unused-vars': [
'error',
{
vars: 'all',
args: 'none',
ignoreRestSiblings: false
}
],
'arrow-body-style': [
'error',
'always'
],
'space-before-function-paren': [
'error',
{
anonymous: 'never',
named: 'never',
asyncArrow: 'always'
}
],
'comma-dangle': [
'error',
'never'
],
'consistent-return': 'off',
'no-shadow': 'off',
'no-plusplus': 'off',
'no-prototype-builtins': 'off',
'no-underscore-dangle': 'off',
'global-require': 'off',
'prefer-promise-reject-errors': 'off',
'function-paren-newline': 'off',
'no-console': 'off',
'prefer-arrow-callback': 'off',
'func-names': 'off',
'max-len': 'off',
'vue/max-attributes-per-line': [
'error',
{
singleline: 1,
multiline: {
max: 1,
allowFirstLine: false
}
}
],
'vue/html-self-closing': 'off',
'no-debugger': 'off',
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true
}
],
'import/extensions': 'off',
eqeqeq: 'off',
'import/prefer-default-export': 'off',
'vue/array-bracket-spacing': 'error',
'vue/arrow-spacing': 'error',
'vue/brace-style': 'error',
'vue/no-restricted-syntax': 'error',
'vue/object-curly-spacing': 'error',
'vue/space-unary-ops': 'error',
'vue/v-on-function-call': 'error',
'vue/camelcase': 'error'
}
};