eslint-config-xo 0.44.0 → 0.45.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.
Files changed (2) hide show
  1. package/index.js +17 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -374,11 +374,24 @@ module.exports = {
374
374
  ],
375
375
  'lines-between-class-members': [
376
376
  'error',
377
- 'always',
378
377
  {
379
- // Workaround to allow class fields to not have lines between them.
380
- // TODO: Get ESLint to add an option to ignore class fields.
381
- exceptAfterSingleLine: true,
378
+ enforce: [
379
+ {
380
+ blankLine: 'always',
381
+ prev: '*',
382
+ next: 'method',
383
+ },
384
+ {
385
+ blankLine: 'always',
386
+ prev: 'method',
387
+ next: 'field',
388
+ },
389
+ {
390
+ blankLine: 'never',
391
+ prev: 'field',
392
+ next: 'field',
393
+ },
394
+ ],
382
395
  },
383
396
  ],
384
397
  'logical-assignment-operators': [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-xo",
3
- "version": "0.44.0",
3
+ "version": "0.45.0",
4
4
  "description": "ESLint shareable config for XO",
5
5
  "license": "MIT",
6
6
  "repository": "xojs/eslint-config-xo",