@@ -6,32 +6,38 @@ module.exports = {
6
6
extends : [
7
7
'plugin:jsdoc/recommended' ,
8
8
'airbnb-base' ,
9
+ 'plugin:unicorn/recommended' ,
9
10
'plugin:vue/vue3-recommended' ,
10
11
] ,
11
12
parserOptions : {
12
13
ecmaVersion : '2020' ,
13
14
sourceType : 'module' ,
14
15
} ,
15
- plugins : [
16
- 'vue ' ,
17
- ] ,
16
+ settings : {
17
+ 'import/resolver' : 'webpack ',
18
+ } ,
18
19
rules : {
19
20
indent : [ 'error' , 4 , { SwitchCase : 1 } ] ,
21
+ curly : [ 'error' , 'all' ] ,
20
22
'object-shorthand' : [ 'error' , 'never' ] ,
21
23
'func-names' : [ 'error' , 'never' ] ,
22
24
'no-param-reassign' : 'off' ,
23
25
'class-methods-use-this' : 'off' ,
24
- 'import/no-unresolved' : 'off' ,
25
26
'no-plusplus' : 'off' ,
26
27
'consistent-return' : 'off' ,
27
28
'no-nested-ternary' : 'off' ,
28
29
'default-case' : 'off' ,
29
- 'import/prefer-default-export' : 'off' ,
30
30
'no-console' : [ 'error' , { allow : [ 'warn' , 'error' ] } ] ,
31
+ 'no-restricted-syntax' : 'off' ,
31
32
'no-underscore-dangle' : 'off' ,
32
33
'max-len' : 'off' ,
33
34
'prefer-template' : [ 'off' ] ,
34
35
'no-unused-vars' : [ 'error' , { vars : 'all' , args : 'none' } ] ,
36
+ 'padding-line-between-statements' : [ 'error' , {
37
+ blankLine : 'always' ,
38
+ prev : '*' ,
39
+ next : [ 'continue' , 'break' , 'export' , 'return' , 'throw' ] ,
40
+ } ] ,
35
41
'spaced-comment' : [ 'error' , 'always' , {
36
42
line : {
37
43
markers : [ '/' ] ,
@@ -43,13 +49,30 @@ module.exports = {
43
49
balanced : true ,
44
50
} ,
45
51
} ] ,
52
+ 'import/no-unresolved' : 'off' ,
53
+ 'import/prefer-default-export' : 'off' ,
54
+ 'import/extensions' : [ 'error' , 'always' , {
55
+ '' : 'never' ,
56
+ js : 'never' ,
57
+ vue : 'never' ,
58
+ } ] ,
46
59
'vue/html-indent' : [ 'error' , 4 ] ,
47
60
'jsdoc/require-param' : 'off' ,
48
61
'jsdoc/require-param-description' : 'off' ,
49
62
'jsdoc/require-returns' : 'off' ,
50
63
'jsdoc/require-returns-description' : 'off' ,
51
64
'jsdoc/require-jsdoc' : 'off' ,
52
65
'jsdoc/check-line-alignment' : [ 'error' , 'always' ] ,
66
+ 'unicorn/catch-error-name' : 'off' ,
67
+ 'unicorn/no-array-callback-reference' : 'off' ,
68
+ 'unicorn/no-lonely-if' : 'off' ,
69
+ 'unicorn/no-negated-condition' : 'off' ,
70
+ 'unicorn/no-null' : 'off' ,
71
+ 'unicorn/no-this-assignment' : 'off' ,
72
+ 'unicorn/prefer-logical-operator-over-ternary' : 'off' , // nullish coalescing operator has limited support
73
+ 'unicorn/prefer-module' : 'off' ,
74
+ 'unicorn/prevent-abbreviations' : 'off' ,
75
+ 'unicorn/switch-case-braces' : [ 'error' , 'avoid' ] ,
53
76
} ,
54
77
reportUnusedDisableDirectives : true ,
55
78
} ;
0 commit comments