File tree Expand file tree Collapse file tree 4 files changed +10
-24
lines changed Expand file tree Collapse file tree 4 files changed +10
-24
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ it by setting it to `false`.
71
71
72
72
##### ` contexts `
73
73
74
- Set this to a string or array of strings representing the AST context
74
+ Set this to an array of strings representing the AST context
75
75
where you wish the rule to be applied (e.g., ` ClassDeclaration ` for ES6 classes).
76
76
Overrides the defaults.
77
77
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ be checked by the rule.
34
34
- ` FunctionExpression `
35
35
- ` MethodDefinition `
36
36
37
- - ` contexts ` - Set this to a string or array of strings representing the additional
37
+ - ` contexts ` - Set this to an array of strings representing the additional
38
38
AST context where you wish the rule to be applied (e.g., ` Property ` for properties).
39
39
40
40
|||
Original file line number Diff line number Diff line change @@ -71,17 +71,10 @@ export default iterateJsdoc(({
71
71
additionalProperties : false ,
72
72
properties : {
73
73
contexts : {
74
- oneOf : [
75
- {
76
- items : {
77
- type : 'string'
78
- } ,
79
- type : 'array'
80
- } ,
81
- {
82
- type : 'string'
83
- }
84
- ]
74
+ items : {
75
+ type : 'string'
76
+ } ,
77
+ type : 'array'
85
78
} ,
86
79
mainDescription : {
87
80
oneOf : [
Original file line number Diff line number Diff line change @@ -8,17 +8,10 @@ const OPTIONS_SCHEMA = {
8
8
additionalProperties : false ,
9
9
properties : {
10
10
contexts : {
11
- oneOf : [
12
- {
13
- items : {
14
- type : 'string'
15
- } ,
16
- type : 'array'
17
- } ,
18
- {
19
- type : 'string'
20
- }
21
- ]
11
+ items : {
12
+ type : 'string'
13
+ } ,
14
+ type : 'array'
22
15
} ,
23
16
publicOnly : {
24
17
oneOf : [
You can’t perform that action at this time.
0 commit comments