eslint-plugin-jest-formatting 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/docs/rules/padding-around-all.md +13 -0
- package/lib/index.js +35 -31
- package/package.json +1 -1
- package/src/index.ts +35 -31
package/README.md
CHANGED
|
@@ -73,6 +73,7 @@ We also support a "strict" settings which enabled all of the rules for you
|
|
|
73
73
|
- [padding-around-expect-groups](docs/rules/padding-around-expect-groups.md)
|
|
74
74
|
- [padding-around-describe-blocks](docs/rules/padding-around-describe-blocks.md)
|
|
75
75
|
- [padding-around-test-blocks](docs/rules/padding-around-test-blocks.md)
|
|
76
|
+
- [padding-around-all](docs/rules/padding-around-all.md)
|
|
76
77
|
|
|
77
78
|
### Deprecated
|
|
78
79
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# padding-around-all
|
|
2
|
+
|
|
3
|
+
## Rule Details
|
|
4
|
+
|
|
5
|
+
This is a meta rule that simply enables all of the following rules:
|
|
6
|
+
|
|
7
|
+
- [padding-around-after-all-blocks](padding-around-after-all-blocks.md)
|
|
8
|
+
- [padding-around-after-each-blocks](padding-around-after-each-blocks.md)
|
|
9
|
+
- [padding-around-before-all-blocks](padding-around-before-all-blocks.md)
|
|
10
|
+
- [padding-around-before-each-blocks](padding-around-before-each-blocks.md)
|
|
11
|
+
- [padding-around-expect-groups](padding-around-expect-groups.md)
|
|
12
|
+
- [padding-around-describe-blocks](padding-around-describe-blocks.md)
|
|
13
|
+
- [padding-around-test-blocks](padding-around-test-blocks.md)
|
package/lib/index.js
CHANGED
|
@@ -200,41 +200,45 @@ exports.rules = {
|
|
|
200
200
|
exports.configs = {
|
|
201
201
|
recommended: {
|
|
202
202
|
plugins: ['jest-formatting'],
|
|
203
|
-
overrides:
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
203
|
+
overrides: [
|
|
204
|
+
{
|
|
205
|
+
files: [
|
|
206
|
+
'**/*.test.*',
|
|
207
|
+
'**/*_test.*',
|
|
208
|
+
'**/*Test.*',
|
|
209
|
+
'**/*.spec.*',
|
|
210
|
+
'**/*_spec.*',
|
|
211
|
+
'**/*Spec.*',
|
|
212
|
+
'**/__tests__/*',
|
|
213
|
+
],
|
|
214
|
+
rules: {
|
|
215
|
+
'jest-formatting/padding-around-after-all-blocks': 2,
|
|
216
|
+
'jest-formatting/padding-around-after-each-blocks': 2,
|
|
217
|
+
'jest-formatting/padding-around-before-all-blocks': 2,
|
|
218
|
+
'jest-formatting/padding-around-before-each-blocks': 2,
|
|
219
|
+
'jest-formatting/padding-around-describe-blocks': 2,
|
|
220
|
+
'jest-formatting/padding-around-test-blocks': 2,
|
|
221
|
+
},
|
|
220
222
|
},
|
|
221
|
-
|
|
223
|
+
],
|
|
222
224
|
},
|
|
223
225
|
strict: {
|
|
224
226
|
plugins: ['jest-formatting'],
|
|
225
|
-
overrides:
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
227
|
+
overrides: [
|
|
228
|
+
{
|
|
229
|
+
files: [
|
|
230
|
+
'**/*.test.*',
|
|
231
|
+
'**/*_test.*',
|
|
232
|
+
'**/*Test.*',
|
|
233
|
+
'**/*.spec.*',
|
|
234
|
+
'**/*_spec.*',
|
|
235
|
+
'**/*Spec.*',
|
|
236
|
+
'**/__tests__/*',
|
|
237
|
+
],
|
|
238
|
+
rules: {
|
|
239
|
+
'jest-formatting/padding-around-all': 2,
|
|
240
|
+
},
|
|
237
241
|
},
|
|
238
|
-
|
|
242
|
+
],
|
|
239
243
|
},
|
|
240
244
|
};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -247,41 +247,45 @@ export const rules = {
|
|
|
247
247
|
export const configs = {
|
|
248
248
|
recommended: {
|
|
249
249
|
plugins: ['jest-formatting'],
|
|
250
|
-
overrides:
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
250
|
+
overrides: [
|
|
251
|
+
{
|
|
252
|
+
files: [
|
|
253
|
+
'**/*.test.*',
|
|
254
|
+
'**/*_test.*',
|
|
255
|
+
'**/*Test.*',
|
|
256
|
+
'**/*.spec.*',
|
|
257
|
+
'**/*_spec.*',
|
|
258
|
+
'**/*Spec.*',
|
|
259
|
+
'**/__tests__/*',
|
|
260
|
+
],
|
|
261
|
+
rules: {
|
|
262
|
+
'jest-formatting/padding-around-after-all-blocks': 2,
|
|
263
|
+
'jest-formatting/padding-around-after-each-blocks': 2,
|
|
264
|
+
'jest-formatting/padding-around-before-all-blocks': 2,
|
|
265
|
+
'jest-formatting/padding-around-before-each-blocks': 2,
|
|
266
|
+
'jest-formatting/padding-around-describe-blocks': 2,
|
|
267
|
+
'jest-formatting/padding-around-test-blocks': 2,
|
|
268
|
+
},
|
|
267
269
|
},
|
|
268
|
-
|
|
270
|
+
],
|
|
269
271
|
},
|
|
270
272
|
strict: {
|
|
271
273
|
plugins: ['jest-formatting'],
|
|
272
|
-
overrides:
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
274
|
+
overrides: [
|
|
275
|
+
{
|
|
276
|
+
files: [
|
|
277
|
+
'**/*.test.*',
|
|
278
|
+
'**/*_test.*',
|
|
279
|
+
'**/*Test.*',
|
|
280
|
+
'**/*.spec.*',
|
|
281
|
+
'**/*_spec.*',
|
|
282
|
+
'**/*Spec.*',
|
|
283
|
+
'**/__tests__/*',
|
|
284
|
+
],
|
|
285
|
+
rules: {
|
|
286
|
+
'jest-formatting/padding-around-all': 2,
|
|
287
|
+
},
|
|
284
288
|
},
|
|
285
|
-
|
|
289
|
+
],
|
|
286
290
|
},
|
|
287
291
|
};
|