@putout/eslint-config 7.0.0 → 7.3.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/eslintrc.js +3 -14
- package/package.json +3 -4
package/eslintrc.js
CHANGED
|
@@ -14,6 +14,7 @@ module.exports = {
|
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
rules: {
|
|
17
|
+
'array-bracket-spacing': 'error',
|
|
17
18
|
'arrow-parens': ['error', 'always'],
|
|
18
19
|
'arrow-spacing': 'error',
|
|
19
20
|
'brace-style': 'error',
|
|
@@ -121,7 +122,7 @@ module.exports = {
|
|
|
121
122
|
next: 'function',
|
|
122
123
|
}],
|
|
123
124
|
'require-atomic-updates': 'off',
|
|
124
|
-
'yoda': '
|
|
125
|
+
'yoda': 'off',
|
|
125
126
|
},
|
|
126
127
|
extends: [
|
|
127
128
|
'eslint:recommended',
|
|
@@ -184,19 +185,7 @@ function getPaddingIf() {
|
|
|
184
185
|
}, {
|
|
185
186
|
blankLine: 'always',
|
|
186
187
|
prev: 'if',
|
|
187
|
-
next: '
|
|
188
|
-
}, {
|
|
189
|
-
blankLine: 'always',
|
|
190
|
-
prev: 'if',
|
|
191
|
-
next: 'expression',
|
|
192
|
-
}, {
|
|
193
|
-
blankLine: 'always',
|
|
194
|
-
prev: 'if',
|
|
195
|
-
next: 'const',
|
|
196
|
-
}, {
|
|
197
|
-
blankLine: 'always',
|
|
198
|
-
prev: 'if',
|
|
199
|
-
next: 'throw',
|
|
188
|
+
next: '*',
|
|
200
189
|
}];
|
|
201
190
|
}
|
|
202
191
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/eslint-config",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
|
-
"description": "
|
|
6
|
+
"description": "🐊Putout config for ESLint",
|
|
7
7
|
"homepage": "https://github.com/coderaiser/putout/tree/master/packages/eslint-config#readme",
|
|
8
8
|
"main": "./eslintrc.js",
|
|
9
9
|
"exports": "./eslintrc.js",
|
|
@@ -21,8 +21,7 @@
|
|
|
21
21
|
"fresh:lint": "madrun fresh:lint",
|
|
22
22
|
"lint:fresh": "madrun lint:fresh",
|
|
23
23
|
"fix:lint": "madrun fix:lint",
|
|
24
|
-
"prepublishOnly": "madrun prepublishOnly"
|
|
25
|
-
"wisdom": "madrun wisdom"
|
|
24
|
+
"prepublishOnly": "madrun prepublishOnly"
|
|
26
25
|
},
|
|
27
26
|
"dependencies": {},
|
|
28
27
|
"peerDependencies": {
|