putout 35.21.1 β†’ 35.22.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/ChangeLog CHANGED
@@ -1,3 +1,17 @@
1
+ 2024.05.07, v35.22.1
2
+
3
+ feature:
4
+ - 947c377ef putout: eslint.config.js: disable putout/convert-match-to-flat
5
+
6
+ 2024.05.07, v35.22.0
7
+
8
+ feature:
9
+ - 300976b97 putout: @putout/plugin-promises v15.0.0
10
+ - 84f082b24 @putout/plugin-promises: drop support of 🐊 < 35
11
+ - 6cb1598b8 putout: process-file: do not show ESLint parser errors when 🐊Putout can parse
12
+ - 2b8b8be6c @putout/engine-parser: add ability to parse await without async
13
+ - ca781d676 @putout/plugin-promises: add-missing-async: add
14
+
1
15
  2024.05.07, v35.21.1
2
16
 
3
17
  feature:
@@ -9,6 +9,7 @@ const parseMatch = require('../parse-options/parse-match');
9
9
  const {lintSyntax} = require('./syntax/syntax');
10
10
 
11
11
  const parseError = require('./parse-error');
12
+ const isParserError = ([a]) => a?.rule.includes('parser');
12
13
 
13
14
  const getMatchedOptions = (name, options) => {
14
15
  if (!name.includes('{'))
@@ -60,7 +61,10 @@ module.exports = ({fix, fixCount, isFlow, logError, raw, printer}) => async ({na
60
61
  fix,
61
62
  });
62
63
 
63
- allPlaces.push(...newPlaces);
64
+ const wasParserError = isParserError(newPlaces);
65
+
66
+ if (e || !wasParserError)
67
+ allPlaces.push(...newPlaces);
64
68
 
65
69
  const places = formatPlaces(startLine, allPlaces);
66
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "35.21.1",
3
+ "version": "35.22.1",
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",
@@ -133,7 +133,7 @@
133
133
  "@putout/plugin-nodejs": "^11.0.0",
134
134
  "@putout/plugin-npmignore": "^5.0.0",
135
135
  "@putout/plugin-package-json": "^7.0.0",
136
- "@putout/plugin-promises": "^14.0.0",
136
+ "@putout/plugin-promises": "^15.0.0",
137
137
  "@putout/plugin-putout": "^19.0.0",
138
138
  "@putout/plugin-putout-config": "^5.0.0",
139
139
  "@putout/plugin-regexp": "^8.0.0",
package/putout.json CHANGED
@@ -106,7 +106,8 @@
106
106
  "eslint/apply-match-to-flat": "off"
107
107
  },
108
108
  "eslint.config.*": {
109
- "eslint": "on"
109
+ "eslint": "on",
110
+ "putout/convert-match-to-function": "off"
110
111
  },
111
112
  "package.json": {
112
113
  "package-json": "on"