@fullstacksjs/eslint-config 8.8.2 → 8.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullstacksjs/eslint-config",
3
- "version": "8.8.2",
3
+ "version": "8.9.0",
4
4
  "license": "MIT",
5
5
  "author": "fullstacks <fullstacksjs@gmail.com>",
6
6
  "description": "fullstacks eslint config",
@@ -129,7 +129,14 @@ module.exports = {
129
129
  '@typescript-eslint/no-var-requires': 'error',
130
130
  '@typescript-eslint/object-curly-spacing': 'warn',
131
131
  '@typescript-eslint/parameter-properties': 'off',
132
- '@typescript-eslint/padding-line-between-statements': ['warn', { blankLine: 'always', prev: ['return'], next: ['export'] }],
132
+ '@typescript-eslint/padding-line-between-statements': [
133
+ 'warn',
134
+ { blankLine: 'always', prev: '*', next: ['class', 'for', 'while', 'switch', 'do', 'directive', 'function', 'iife', 'block-like'] },
135
+ { blankLine: 'always', prev: ['block-like', 'block'], next: ['return'] },
136
+ { blankLine: 'always', prev: ['block-like'], next: ['const', 'let', 'var'] },
137
+ { blankLine: 'always', prev: ['const', 'let', 'var'], next: ['type', 'interface'] },
138
+ { blankLine: 'always', prev: ['multiline-const', 'multiline-let', 'multiline-var'], next: ['if'] },
139
+ ],
133
140
  '@typescript-eslint/prefer-as-const': 'warn',
134
141
  '@typescript-eslint/prefer-enum-initializers': 'off',
135
142
  '@typescript-eslint/prefer-for-of': 'warn',