eslint-plugin-putout 27.1.0 → 27.2.1
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/lib/ts.mjs +16 -1
- package/package.json +2 -2
package/lib/ts.mjs
CHANGED
|
@@ -46,6 +46,7 @@ const extensionRules = {
|
|
|
46
46
|
|
|
47
47
|
'@stylistic/lines-between-class-members': 'off',
|
|
48
48
|
|
|
49
|
+
'@stylistic/operator-linebreak': getOperatorLinebreak(rules['@stylistic/operator-linebreak']),
|
|
49
50
|
'@stylistic/padding-line-between-statements': convertPaddingLines(rules['@stylistic/padding-line-between-statements']),
|
|
50
51
|
|
|
51
52
|
'@stylistic/object-curly-spacing': rules['@stylistic/object-curly-spacing'],
|
|
@@ -57,7 +58,7 @@ const extensionRules = {
|
|
|
57
58
|
'@stylistic/space-before-function-paren': rules['@stylistic/space-before-function-paren'],
|
|
58
59
|
|
|
59
60
|
...reEnable('object-curly-spacing'),
|
|
60
|
-
...reEnable('
|
|
61
|
+
...reEnable('function-call-spacing'),
|
|
61
62
|
'@typescript-eslint/no-array-constructor': 'off',
|
|
62
63
|
'@typescript-eslint/no-implied-eval': 'off',
|
|
63
64
|
|
|
@@ -158,3 +159,17 @@ function convertPaddingLines([state, ...lines]) {
|
|
|
158
159
|
...newLines,
|
|
159
160
|
];
|
|
160
161
|
}
|
|
162
|
+
|
|
163
|
+
function getOperatorLinebreak(options) {
|
|
164
|
+
const [error, after, {overrides}] = options;
|
|
165
|
+
const newOverrides = assign({}, overrides);
|
|
166
|
+
|
|
167
|
+
delete newOverrides['='];
|
|
168
|
+
|
|
169
|
+
return [
|
|
170
|
+
error,
|
|
171
|
+
after, {
|
|
172
|
+
overrides: newOverrides,
|
|
173
|
+
},
|
|
174
|
+
];
|
|
175
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-putout",
|
|
3
|
-
"version": "27.1
|
|
3
|
+
"version": "27.2.1",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "ESLint plugin for 🐊Putout",
|
|
6
6
|
"release": false,
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@putout/eslint": "^4.0.0",
|
|
45
45
|
"@putout/eslint-config": "^12.0.0",
|
|
46
46
|
"@putout/eslint-flat": "^3.0.0",
|
|
47
|
-
"@stylistic/eslint-plugin": "^
|
|
47
|
+
"@stylistic/eslint-plugin": "^5.0.0",
|
|
48
48
|
"@typescript-eslint/eslint-plugin": "^8.3.0",
|
|
49
49
|
"@typescript-eslint/parser": "^8.3.0",
|
|
50
50
|
"align-spaces": "^2.0.0",
|