putout 34.0.7 → 34.0.8

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,11 @@
1
+ 2023.12.12, v34.0.8
2
+
3
+ fix:
4
+ - 55153c19d putout: merge: rules options
5
+
6
+ feature:
7
+ - 7c645f911 eslint-plugin-putout: markdown: disable config override
8
+
1
9
  2023.12.11, v34.0.7
2
10
 
3
11
  fix:
package/lib/merge.js CHANGED
@@ -3,8 +3,15 @@
3
3
  const deepmerge = require('deepmerge');
4
4
 
5
5
  const isString = (a) => typeof a === 'string';
6
- const arrayUnion = (...a) => {
7
- const flatten = a.flat();
6
+ const arrayUnion = (a, b) => {
7
+ if (/^(on|off)$/.test(a[0]))
8
+ return a;
9
+
10
+ const flatten = [
11
+ ...a,
12
+ ...b,
13
+ ].flat();
14
+
8
15
  return mergeIgnore(Array.from(new Set(flatten)));
9
16
  };
10
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "34.0.7",
3
+ "version": "34.0.8",
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",