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 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
- files: [
205
- '**/*.test.*',
206
- '**/*_test.*',
207
- '**/*Test.*',
208
- '**/*.spec.*',
209
- '**/*_spec.*',
210
- '**/*Spec.*',
211
- '**/__tests__/*',
212
- ],
213
- rules: {
214
- 'jest-formatting/padding-around-after-all-blocks': 2,
215
- 'jest-formatting/padding-around-after-each-blocks': 2,
216
- 'jest-formatting/padding-around-before-all-blocks': 2,
217
- 'jest-formatting/padding-around-before-each-blocks': 2,
218
- 'jest-formatting/padding-around-describe-blocks': 2,
219
- 'jest-formatting/padding-around-test-blocks': 2,
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
- files: [
227
- '**/*.test.*',
228
- '**/*_test.*',
229
- '**/*Test.*',
230
- '**/*.spec.*',
231
- '**/*_spec.*',
232
- '**/*Spec.*',
233
- '**/__tests__/*',
234
- ],
235
- rules: {
236
- 'jest-formatting/padding-around-all': 2,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-jest-formatting",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "Formatting rules for jest tests",
5
5
  "keywords": [
6
6
  "eslint",
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
- files: [
252
- '**/*.test.*',
253
- '**/*_test.*',
254
- '**/*Test.*',
255
- '**/*.spec.*',
256
- '**/*_spec.*',
257
- '**/*Spec.*',
258
- '**/__tests__/*',
259
- ],
260
- rules: {
261
- 'jest-formatting/padding-around-after-all-blocks': 2,
262
- 'jest-formatting/padding-around-after-each-blocks': 2,
263
- 'jest-formatting/padding-around-before-all-blocks': 2,
264
- 'jest-formatting/padding-around-before-each-blocks': 2,
265
- 'jest-formatting/padding-around-describe-blocks': 2,
266
- 'jest-formatting/padding-around-test-blocks': 2,
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
- files: [
274
- '**/*.test.*',
275
- '**/*_test.*',
276
- '**/*Test.*',
277
- '**/*.spec.*',
278
- '**/*_spec.*',
279
- '**/*Spec.*',
280
- '**/__tests__/*',
281
- ],
282
- rules: {
283
- 'jest-formatting/padding-around-all': 2,
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
  };