putout 33.1.1 → 33.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.
package/ChangeLog CHANGED
@@ -1,3 +1,9 @@
1
+ 2023.11.13, v33.2.0
2
+
3
+ feature:
4
+ - 5a7a26ff5 @putout/plugin-apply-consistent-blocks: add
5
+ - afd7ab908 @putout/compare: __body: improve: no node check
6
+
1
7
  2023.11.12, v33.1.1
2
8
 
3
9
  fix:
@@ -30,9 +30,8 @@ module.exports = ({fix, fixCount, isFlow, logError, raw, printer}) => async ({na
30
30
  printer: configurePrinter(name, printer),
31
31
  });
32
32
 
33
- if (e) {
33
+ if (e)
34
34
  raw && logError(e);
35
- }
36
35
 
37
36
  const {code = source} = result || {};
38
37
  const allPlaces = result ? result.places : parseError(e);
package/lib/loader.mjs CHANGED
@@ -32,11 +32,10 @@ export const transformSource = (source, context) => {
32
32
  name,
33
33
  });
34
34
 
35
- if (ignores(cwd, name, options)) {
35
+ if (ignores(cwd, name, options))
36
36
  return {
37
37
  source,
38
38
  };
39
- }
40
39
 
41
40
  const {code} = putout(source, {
42
41
  printer: 'putout',
@@ -23,9 +23,8 @@ module.exports = (name, match) => {
23
23
  dot: true,
24
24
  });
25
25
 
26
- if (isMatch(name)) {
26
+ if (isMatch(name))
27
27
  assign(rules, match[glob]);
28
- }
29
28
  }
30
29
 
31
30
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "33.1.1",
3
+ "version": "33.2.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",
@@ -74,6 +74,7 @@
74
74
  "@putout/operator-filesystem": "^1.0.1",
75
75
  "@putout/operator-regexp": "^1.0.0",
76
76
  "@putout/plugin-apply-at": "^2.0.0",
77
+ "@putout/plugin-apply-consistent-blocks": "^1.0.0",
77
78
  "@putout/plugin-apply-destructuring": "^7.0.0",
78
79
  "@putout/plugin-apply-dot-notation": "^1.0.0",
79
80
  "@putout/plugin-apply-early-return": "^3.0.0",
package/putout.json CHANGED
@@ -31,6 +31,7 @@
31
31
  "remove-empty/import": "off"
32
32
  },
33
33
  "*.md": {
34
+ "apply-consistent-blocks": "off",
34
35
  "maybe": "off",
35
36
  "convert-quotes-to-backticks": "off",
36
37
  "conditions/convert-comparison-to-boolean": "off",
@@ -150,6 +151,7 @@
150
151
  "tape/convert-mock-require-to-mock-import": "off"
151
152
  },
152
153
  "plugins": [
154
+ "apply-consistent-blocks",
153
155
  "apply-at",
154
156
  "apply-dot-notation",
155
157
  "apply-early-return",