eslint-plugin-putout 27.0.0 → 27.2.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/lib/ts.mjs +15 -1
  2. package/package.json +4 -4
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('func-call-spacing'),
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,16 @@ function convertPaddingLines([state, ...lines]) {
158
159
  ...newLines,
159
160
  ];
160
161
  }
162
+
163
+ function getOperatorLinebreak(options) {
164
+ const [error, after, {overrides}] = options;
165
+
166
+ delete overrides['='];
167
+
168
+ return [
169
+ error,
170
+ after, {
171
+ overrides,
172
+ },
173
+ ];
174
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-putout",
3
- "version": "27.0.0",
3
+ "version": "27.2.0",
4
4
  "type": "commonjs",
5
5
  "description": "ESLint plugin for 🐊Putout",
6
6
  "release": false,
@@ -40,16 +40,16 @@
40
40
  "@babel/core": "^8.0.0-alpha.1",
41
41
  "@babel/eslint-parser": "^8.0.0-alpha.1",
42
42
  "@eslint/eslintrc": "^3.0.0",
43
- "@putout/engine-parser": "^13.0.0",
43
+ "@putout/engine-parser": "^14.0.0",
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": "^4.4.0",
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",
51
51
  "eslint-plugin-n": "^17.0.0",
52
- "eslint-plugin-putout": "^26.0.0",
52
+ "eslint-plugin-putout": "^27.0.0",
53
53
  "eslint-plugin-react": "^7.32.2",
54
54
  "globals": "^16.0.0",
55
55
  "parse-import-specifiers": "^1.0.1",