@putout/eslint-config 6.13.0 → 6.16.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/eslintrc.js +17 -4
  2. package/package.json +1 -1
package/eslintrc.js CHANGED
@@ -66,6 +66,7 @@ module.exports = {
66
66
  'no-implicit-coercion': ['error', {
67
67
  allow: ['~'],
68
68
  }],
69
+ 'no-unsafe-negation': 'off',
69
70
  'no-duplicate-case': 'off',
70
71
  'no-cond-assign': 'off',
71
72
  'no-empty-pattern': 'off',
@@ -101,10 +102,6 @@ module.exports = {
101
102
  ...getPaddingImport(),
102
103
  ...getPaddingCjsImport(),
103
104
  {
104
- blankLine: 'always',
105
- prev: 'block-like',
106
- next: 'for',
107
- }, {
108
105
  blankLine: 'always',
109
106
  prev: '*',
110
107
  next: 'if',
@@ -120,10 +117,26 @@ module.exports = {
120
117
  blankLine: 'always',
121
118
  prev: 'if',
122
119
  next: 'const',
120
+ }, {
121
+ blankLine: 'always',
122
+ prev: 'if',
123
+ next: 'throw',
123
124
  }, {
124
125
  blankLine: 'always',
125
126
  prev: 'for',
126
127
  next: 'return',
128
+ }, {
129
+ blankLine: 'always',
130
+ prev: 'block-like',
131
+ next: 'for',
132
+ }, {
133
+ blankLine: 'always',
134
+ prev: ['const', 'let'],
135
+ next: 'for',
136
+ }, {
137
+ blankLine: 'always',
138
+ prev: 'for',
139
+ next: ['const', 'let'],
127
140
  }, {
128
141
  blankLine: 'always',
129
142
  prev: 'while',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/eslint-config",
3
- "version": "6.13.0",
3
+ "version": "6.16.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "putout config for eslint",