File tree 3 files changed +12
-5
lines changed
3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -112,17 +112,26 @@ describe('getEslintPrompts', () => {
112
112
'dolor' : {
113
113
meta : {
114
114
docs : {
115
- category : 'base ' ,
115
+ category : 'strongly-recommended ' ,
116
116
description : 'Dolor description' ,
117
117
url : 'http://test.com/dolor'
118
118
}
119
119
}
120
+ } ,
121
+ 'sit' : {
122
+ meta : {
123
+ docs : {
124
+ category : 'base' ,
125
+ description : 'Sit description' ,
126
+ url : 'http://test.com/sit'
127
+ }
128
+ }
120
129
}
121
130
}
122
131
123
132
const prompts = getEslintPrompts ( data , rules )
124
133
125
- it ( 'creates an array with three settings' , ( ) => {
134
+ it ( 'creates an array with 3 settings, leaving out category "base" ' , ( ) => {
126
135
expect ( prompts ) . toHaveLength ( 3 )
127
136
} )
128
137
@@ -147,7 +156,7 @@ describe('getEslintPrompts', () => {
147
156
expect ( prompts [ 2 ] . choices ) . toHaveLength ( 4 )
148
157
} )
149
158
150
- it ( 'sets a default value to "ERROR" for rule that belong to the choosen config' , ( ) => {
159
+ it ( 'sets a default value to "ERROR" for rule that belong to the chosen config' , ( ) => {
151
160
expect ( prompts [ 0 ] . default ) . toBe ( '"error"' )
152
161
expect ( prompts [ 1 ] . default ) . toBe ( '"error"' )
153
162
expect ( prompts [ 2 ] . default ) . toBe ( '"off"' )
Original file line number Diff line number Diff line change 1
1
const CONFIG = 'org.vue.eslintrc'
2
2
3
3
const CATEGORIES = [
4
- 'base' ,
5
4
'essential' ,
6
5
'strongly-recommended' ,
7
6
'recommended' ,
Original file line number Diff line number Diff line change 584
584
"essential" : " Essential" ,
585
585
"strongly-recommended" : " Strongly recommended" ,
586
586
"recommended" : " Recommended" ,
587
- "use-with-caution" : " Use with caution" ,
588
587
"uncategorized" : " Uncategorized"
589
588
},
590
589
"setting" : {
You can’t perform that action at this time.
0 commit comments