@mkaradeniz/eslint-config 4.0.6 → 4.0.7

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": "@mkaradeniz/eslint-config",
3
- "version": "4.0.6",
3
+ "version": "4.0.7",
4
4
  "private": false,
5
5
  "files": [
6
6
  "base.mjs",
@@ -102,39 +102,6 @@ export const baseRules = {
102
102
  'no-var': ['warn'],
103
103
  'no-with': ['warn'],
104
104
  'object-shorthand': ['warn'],
105
- 'padding-line-between-statements': [
106
- 'warn',
107
- {
108
- blankLine: 'always',
109
- prev: '*',
110
- next: [
111
- 'block',
112
- 'break',
113
- 'class',
114
- 'continue',
115
- 'debugger',
116
- 'do',
117
- 'for',
118
- 'function',
119
- 'if',
120
- 'iife',
121
- 'multiline-const',
122
- 'return',
123
- 'switch',
124
- 'throw',
125
- 'try',
126
- 'while',
127
- 'with',
128
- ],
129
- },
130
- {
131
- blankLine: 'always',
132
- prev: ['case', 'default', 'directive'],
133
- next: '*',
134
- },
135
- { blankLine: 'always', prev: 'directive', next: '*' },
136
- { blankLine: 'any', prev: 'directive', next: 'directive' },
137
- ],
138
105
  'prefer-arrow-callback': ['warn', { allowNamedFunctions: false, allowUnboundThis: true }],
139
106
  'prefer-const': ['warn'],
140
107
  'prefer-numeric-literals': ['warn'],
@@ -101,6 +101,37 @@ export const typescriptRules = {
101
101
  */
102
102
  '@stylistic/padding-line-between-statements': [
103
103
  'warn',
104
+ {
105
+ blankLine: 'always',
106
+ prev: '*',
107
+ next: [
108
+ 'block',
109
+ 'break',
110
+ 'class',
111
+ 'continue',
112
+ 'debugger',
113
+ 'do',
114
+ 'for',
115
+ 'function',
116
+ 'if',
117
+ 'iife',
118
+ 'multiline-const',
119
+ 'return',
120
+ 'switch',
121
+ 'throw',
122
+ 'try',
123
+ 'while',
124
+ 'with',
125
+ ],
126
+ },
127
+ {
128
+ blankLine: 'always',
129
+ prev: ['case', 'default', 'directive'],
130
+ next: '*',
131
+ },
132
+ { blankLine: 'always', prev: 'directive', next: '*' },
133
+ { blankLine: 'any', prev: 'directive', next: 'directive' },
134
+ { blankLine: 'never', prev: 'case', next: 'case' },
104
135
  { blankLine: 'always', prev: '*', next: ['enum', 'interface', 'type'] },
105
136
  { blankLine: 'never', prev: 'function-overload', next: 'function' },
106
137
  ],