putout 37.9.0 → 37.11.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/ChangeLog CHANGED
@@ -1,3 +1,28 @@
1
+ 2025.01.05, v37.11.0
2
+
3
+ fix:
4
+ - f871b5344 @putout/plugin-apply-arrow: find top scope
5
+
6
+ feature:
7
+ - ebdccbaa4 putout: @putout/plugin-types v6.0.0
8
+ - b8b25399c @putout/plugin-types: convert-typeof-to-is-type: add support of isError
9
+ - b3fe00dfb @putout/plugin-types: drop support of 🐊 < 37
10
+ - fdc62279f @putout/plugin-types: declare: isError: add
11
+ - b49445435 @putout/plugin-apply-arrow: different scopes
12
+ - bf73e15cb @putout/apply-arrow: handle case when no loc found
13
+ - 90146fe82 @putout/plugin-apply-arrow: exclude long lines
14
+
15
+ 2025.01.04, v37.10.0
16
+
17
+ feature:
18
+ - 4eb7a3f17 @putout/plugin-apply-arrow: add
19
+ - aa76ecb28 @putout/plugin-tape: remove-only: exclude not Identifier
20
+ - ee4b52b27 putout: @putout/plugin-package-json v9.0.0
21
+ - d3b2cae5f @putout/plugin-package-json: drop support of 🐊 < 37
22
+ - aae27cc74 @putout/plugin-package-json: remove-exports-with-missing-files: node
23
+ - 594f88fb3 @putout/plugin-conditions: reverse-condition: and: add
24
+ - 91b35fe43 @putout/operate: delete duplicate comments
25
+
1
26
  2025.01.04, v37.9.0
2
27
 
3
28
  feature:
@@ -6,7 +31,7 @@ feature:
6
31
  - 3c7c632d2 @putout/plugin-package-json: drop support of 🐊 < 37
7
32
  - d00da6ede @putout/plugin-package-json: remove-exports-with-missing-files: node
8
33
  - 45a2f5a79 @putout/plugin-conditions: reverse-condition: and: add
9
- - 70db84bf2 @putout/operate:
34
+ - 70db84bf2 @putout/operate: delete duplicate comments
10
35
  - 29f9f2206 @putout/plugin-math: remove-unchanged-zero-declaration: exclude assertions
11
36
  - 374ae6466 @putout/plugin-math: remove-unchanged-zero-declaration: exclude not referenced
12
37
  - f9dc5980d @putout/eslint: eslint: when output is empty string return it, instead of source
@@ -19,6 +19,4 @@ module.exports = (e, type = 'parser') => {
19
19
  }];
20
20
  };
21
21
 
22
- function cutBrackets(a) {
23
- return a.replace(/\s\(\d:\d+\)/, '');
24
- }
22
+ const cutBrackets = (a) => a.replace(/\s\(\d:\d+\)/, '');
@@ -8,34 +8,30 @@ module.exports = ({type}, options) => {
8
8
  assign(options, merge(options, rules));
9
9
  };
10
10
 
11
- function commonjs() {
12
- return {
13
- match: {
14
- '*.js': {
15
- 'nodejs/convert-esm-to-commonjs': 'on',
16
- },
17
- '.eslintrc.json': {
18
- 'eslint': 'on',
19
- 'eslint/convert-require-to-import': 'off',
20
- },
11
+ const commonjs = () => ({
12
+ match: {
13
+ '*.js': {
14
+ 'nodejs/convert-esm-to-commonjs': 'on',
21
15
  },
22
- };
23
- }
16
+ '.eslintrc.json': {
17
+ 'eslint': 'on',
18
+ 'eslint/convert-require-to-import': 'off',
19
+ },
20
+ },
21
+ });
24
22
 
25
- function esm() {
26
- return {
27
- match: {
28
- '*.js': {
29
- 'nodejs/convert-commonjs-to-esm': 'on',
30
- 'nodejs/add-strict-mode': 'off',
31
- },
32
- '{test,*.spec.js}': {
33
- 'tape/convert-mock-require-to-mock-import': 'on',
34
- },
35
- '.eslintrc.json': {
36
- 'eslint': 'on',
37
- 'eslint/convert-require-to-import': 'on',
38
- },
23
+ const esm = () => ({
24
+ match: {
25
+ '*.js': {
26
+ 'nodejs/convert-commonjs-to-esm': 'on',
27
+ 'nodejs/add-strict-mode': 'off',
28
+ },
29
+ '{test,*.spec.js}': {
30
+ 'tape/convert-mock-require-to-mock-import': 'on',
31
+ },
32
+ '.eslintrc.json': {
33
+ 'eslint': 'on',
34
+ 'eslint/convert-require-to-import': 'on',
39
35
  },
40
- };
41
- }
36
+ },
37
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "37.9.0",
3
+ "version": "37.11.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊 Pluggable and configurable code transformer with built-in ESLint, Babel and support of js, jsx, typescript, flow, markdown, yaml and json",
@@ -83,6 +83,7 @@
83
83
  "@putout/operator-match-files": "^5.0.0",
84
84
  "@putout/operator-regexp": "^1.0.0",
85
85
  "@putout/operator-rename-files": "^2.0.0",
86
+ "@putout/plugin-apply-arrow": "^1.0.0",
86
87
  "@putout/plugin-apply-at": "^2.0.0",
87
88
  "@putout/plugin-apply-destructuring": "^7.0.0",
88
89
  "@putout/plugin-apply-dot-notation": "^2.0.0",
@@ -181,7 +182,7 @@
181
182
  "@putout/plugin-split-variable-declarations": "^3.0.0",
182
183
  "@putout/plugin-tape": "^16.0.0",
183
184
  "@putout/plugin-try-catch": "^4.0.0",
184
- "@putout/plugin-types": "^5.0.0",
185
+ "@putout/plugin-types": "^6.0.0",
185
186
  "@putout/plugin-typescript": "^9.0.0",
186
187
  "@putout/plugin-webpack": "^3.0.0",
187
188
  "@putout/processor-css": "^9.0.0",
package/putout.json CHANGED
@@ -47,6 +47,7 @@
47
47
  "putout-config/remove-empty-file": "on"
48
48
  },
49
49
  "*.md": {
50
+ "apply-arrow": "off",
50
51
  "convert-assignment-to-declaration": "off",
51
52
  "conditions/apply-consistent-blocks": "off",
52
53
  "conditions/convert-comparison-to-boolean": "off",
@@ -191,6 +192,7 @@
191
192
  "plugins": [
192
193
  "parens",
193
194
  "apply-at",
195
+ "apply-arrow",
194
196
  "apply-dot-notation",
195
197
  "apply-early-return",
196
198
  "apply-flat-map",