File tree Expand file tree Collapse file tree 1 file changed +22
-16
lines changed Expand file tree Collapse file tree 1 file changed +22
-16
lines changed Original file line number Diff line number Diff line change 15
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
*/
17
17
18
+ const commaDangle = {
19
+ arrays : 'always-multiline' ,
20
+ objects : 'always-multiline' ,
21
+ imports : 'always-multiline' ,
22
+ exports : 'always-multiline' ,
23
+ functions : 'only-multiline' ,
24
+ }
25
+
18
26
module . exports = {
19
27
root : true ,
20
28
parserOptions : {
@@ -32,40 +40,38 @@ module.exports = {
32
40
rules : {
33
41
'comma-dangle' : [
34
42
'error' ,
35
- {
36
- arrays : 'only-multiline' ,
37
- objects : 'only-multiline' ,
38
- imports : 'only-multiline' ,
39
- exports : 'only-multiline' ,
40
- functions : 'only-multiline' ,
41
- } ,
43
+ commaDangle ,
44
+ ] ,
45
+ 'vue/comma-dangle' : [
46
+ 'error' ,
47
+ commaDangle ,
42
48
] ,
43
49
'no-console' : [
44
50
'error' ,
45
51
{
46
- allow : [ 'warn' , 'error' ]
47
- }
52
+ allow : [ 'warn' , 'error' ] ,
53
+ } ,
48
54
] ,
49
55
'template-curly-spacing' : [
50
- 'off'
56
+ 'off' ,
51
57
] ,
52
58
'vue/multi-word-component-names' : [
53
- 'off'
59
+ 'off' ,
54
60
] ,
55
61
'vue/valid-v-slot' : [
56
62
'error' ,
57
63
{
58
- allowModifiers : true
59
- }
64
+ allowModifiers : true ,
65
+ } ,
60
66
] ,
61
67
'promise/param-names' : [
62
- 'error'
68
+ 'error' ,
63
69
] ,
64
70
'promise/no-return-wrap' : [
65
- 'error'
71
+ 'error' ,
66
72
] ,
67
73
'cypress/unsafe-to-chain-command' : [
68
- 'off'
74
+ 'off' ,
69
75
] ,
70
76
} ,
71
77
}
You can’t perform that action at this time.
0 commit comments