putout 35.22.3 → 35.22.4

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,8 @@
1
+ 2024.05.09, v35.22.4
2
+
3
+ fix:
4
+ - d376eb082 putout: always show ESLint parser error, even when 🐊Putout can parse
5
+
1
6
  2024.05.09, v35.22.3
2
7
 
3
8
  feature:
@@ -9,7 +9,6 @@ const parseMatch = require('../parse-options/parse-match');
9
9
 
10
10
  const {simpleImport} = require('./simple-import');
11
11
  const parseError = require('./parse-error');
12
- const isParserError = ([a]) => a?.rule.includes('parser');
13
12
 
14
13
  const getMatchedOptions = (name, options) => {
15
14
  if (!name.includes('{'))
@@ -66,10 +65,7 @@ module.exports = ({fix, fixCount, isFlow, logError, raw, printer}) => async func
66
65
  fix,
67
66
  });
68
67
 
69
- const wasParserError = isParserError(newPlaces);
70
-
71
- if (e || !wasParserError)
72
- allPlaces.push(...newPlaces);
68
+ allPlaces.push(...newPlaces);
73
69
 
74
70
  const places = formatPlaces(startLine, allPlaces);
75
71
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "35.22.3",
3
+ "version": "35.22.4",
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",