eslint-config-un 0.1.0 → 0.1.2

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/dist/index.cjs CHANGED
@@ -785,17 +785,17 @@ var require_visit = __commonJS({
785
785
  visit.BREAK = BREAK;
786
786
  visit.SKIP = SKIP;
787
787
  visit.REMOVE = REMOVE;
788
- function visit_(key, node, visitor, path) {
789
- const ctrl = callVisitor(key, node, visitor, path);
788
+ function visit_(key, node, visitor, path2) {
789
+ const ctrl = callVisitor(key, node, visitor, path2);
790
790
  if (identity.isNode(ctrl) || identity.isPair(ctrl)) {
791
- replaceNode(key, path, ctrl);
792
- return visit_(key, ctrl, visitor, path);
791
+ replaceNode(key, path2, ctrl);
792
+ return visit_(key, ctrl, visitor, path2);
793
793
  }
794
794
  if (typeof ctrl !== "symbol") {
795
795
  if (identity.isCollection(node)) {
796
- path = Object.freeze(path.concat(node));
796
+ path2 = Object.freeze(path2.concat(node));
797
797
  for (let i = 0; i < node.items.length; ++i) {
798
- const ci = visit_(i, node.items[i], visitor, path);
798
+ const ci = visit_(i, node.items[i], visitor, path2);
799
799
  if (typeof ci === "number")
800
800
  i = ci - 1;
801
801
  else if (ci === BREAK)
@@ -806,13 +806,13 @@ var require_visit = __commonJS({
806
806
  }
807
807
  }
808
808
  } else if (identity.isPair(node)) {
809
- path = Object.freeze(path.concat(node));
810
- const ck = visit_("key", node.key, visitor, path);
809
+ path2 = Object.freeze(path2.concat(node));
810
+ const ck = visit_("key", node.key, visitor, path2);
811
811
  if (ck === BREAK)
812
812
  return BREAK;
813
813
  else if (ck === REMOVE)
814
814
  node.key = null;
815
- const cv = visit_("value", node.value, visitor, path);
815
+ const cv = visit_("value", node.value, visitor, path2);
816
816
  if (cv === BREAK)
817
817
  return BREAK;
818
818
  else if (cv === REMOVE)
@@ -833,17 +833,17 @@ var require_visit = __commonJS({
833
833
  visitAsync.BREAK = BREAK;
834
834
  visitAsync.SKIP = SKIP;
835
835
  visitAsync.REMOVE = REMOVE;
836
- async function visitAsync_(key, node, visitor, path) {
837
- const ctrl = await callVisitor(key, node, visitor, path);
836
+ async function visitAsync_(key, node, visitor, path2) {
837
+ const ctrl = await callVisitor(key, node, visitor, path2);
838
838
  if (identity.isNode(ctrl) || identity.isPair(ctrl)) {
839
- replaceNode(key, path, ctrl);
840
- return visitAsync_(key, ctrl, visitor, path);
839
+ replaceNode(key, path2, ctrl);
840
+ return visitAsync_(key, ctrl, visitor, path2);
841
841
  }
842
842
  if (typeof ctrl !== "symbol") {
843
843
  if (identity.isCollection(node)) {
844
- path = Object.freeze(path.concat(node));
844
+ path2 = Object.freeze(path2.concat(node));
845
845
  for (let i = 0; i < node.items.length; ++i) {
846
- const ci = await visitAsync_(i, node.items[i], visitor, path);
846
+ const ci = await visitAsync_(i, node.items[i], visitor, path2);
847
847
  if (typeof ci === "number")
848
848
  i = ci - 1;
849
849
  else if (ci === BREAK)
@@ -854,13 +854,13 @@ var require_visit = __commonJS({
854
854
  }
855
855
  }
856
856
  } else if (identity.isPair(node)) {
857
- path = Object.freeze(path.concat(node));
858
- const ck = await visitAsync_("key", node.key, visitor, path);
857
+ path2 = Object.freeze(path2.concat(node));
858
+ const ck = await visitAsync_("key", node.key, visitor, path2);
859
859
  if (ck === BREAK)
860
860
  return BREAK;
861
861
  else if (ck === REMOVE)
862
862
  node.key = null;
863
- const cv = await visitAsync_("value", node.value, visitor, path);
863
+ const cv = await visitAsync_("value", node.value, visitor, path2);
864
864
  if (cv === BREAK)
865
865
  return BREAK;
866
866
  else if (cv === REMOVE)
@@ -887,23 +887,23 @@ var require_visit = __commonJS({
887
887
  }
888
888
  return visitor;
889
889
  }
890
- function callVisitor(key, node, visitor, path) {
890
+ function callVisitor(key, node, visitor, path2) {
891
891
  if (typeof visitor === "function")
892
- return visitor(key, node, path);
892
+ return visitor(key, node, path2);
893
893
  if (identity.isMap(node))
894
- return visitor.Map?.(key, node, path);
894
+ return visitor.Map?.(key, node, path2);
895
895
  if (identity.isSeq(node))
896
- return visitor.Seq?.(key, node, path);
896
+ return visitor.Seq?.(key, node, path2);
897
897
  if (identity.isPair(node))
898
- return visitor.Pair?.(key, node, path);
898
+ return visitor.Pair?.(key, node, path2);
899
899
  if (identity.isScalar(node))
900
- return visitor.Scalar?.(key, node, path);
900
+ return visitor.Scalar?.(key, node, path2);
901
901
  if (identity.isAlias(node))
902
- return visitor.Alias?.(key, node, path);
902
+ return visitor.Alias?.(key, node, path2);
903
903
  return void 0;
904
904
  }
905
- function replaceNode(key, path, node) {
906
- const parent = path[path.length - 1];
905
+ function replaceNode(key, path2, node) {
906
+ const parent = path2[path2.length - 1];
907
907
  if (identity.isCollection(parent)) {
908
908
  parent.items[key] = node;
909
909
  } else if (identity.isPair(parent)) {
@@ -1510,10 +1510,10 @@ var require_Collection = __commonJS({
1510
1510
  var createNode = require_createNode();
1511
1511
  var identity = require_identity();
1512
1512
  var Node = require_Node();
1513
- function collectionFromPath(schema, path, value) {
1513
+ function collectionFromPath(schema, path2, value) {
1514
1514
  let v = value;
1515
- for (let i = path.length - 1; i >= 0; --i) {
1516
- const k = path[i];
1515
+ for (let i = path2.length - 1; i >= 0; --i) {
1516
+ const k = path2[i];
1517
1517
  if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
1518
1518
  const a = [];
1519
1519
  a[k] = v;
@@ -1532,7 +1532,7 @@ var require_Collection = __commonJS({
1532
1532
  sourceObjects: /* @__PURE__ */ new Map()
1533
1533
  });
1534
1534
  }
1535
- var isEmptyPath = (path) => path == null || typeof path === "object" && !!path[Symbol.iterator]().next().done;
1535
+ var isEmptyPath = (path2) => path2 == null || typeof path2 === "object" && !!path2[Symbol.iterator]().next().done;
1536
1536
  var Collection = class extends Node.NodeBase {
1537
1537
  constructor(type, schema) {
1538
1538
  super(type);
@@ -1562,11 +1562,11 @@ var require_Collection = __commonJS({
1562
1562
  * be a Pair instance or a `{ key, value }` object, which may not have a key
1563
1563
  * that already exists in the map.
1564
1564
  */
1565
- addIn(path, value) {
1566
- if (isEmptyPath(path))
1565
+ addIn(path2, value) {
1566
+ if (isEmptyPath(path2))
1567
1567
  this.add(value);
1568
1568
  else {
1569
- const [key, ...rest] = path;
1569
+ const [key, ...rest] = path2;
1570
1570
  const node = this.get(key, true);
1571
1571
  if (identity.isCollection(node))
1572
1572
  node.addIn(rest, value);
@@ -1580,8 +1580,8 @@ var require_Collection = __commonJS({
1580
1580
  * Removes a value from the collection.
1581
1581
  * @returns `true` if the item was found and removed.
1582
1582
  */
1583
- deleteIn(path) {
1584
- const [key, ...rest] = path;
1583
+ deleteIn(path2) {
1584
+ const [key, ...rest] = path2;
1585
1585
  if (rest.length === 0)
1586
1586
  return this.delete(key);
1587
1587
  const node = this.get(key, true);
@@ -1595,8 +1595,8 @@ var require_Collection = __commonJS({
1595
1595
  * scalar values from their surrounding node; to disable set `keepScalar` to
1596
1596
  * `true` (collections are always returned intact).
1597
1597
  */
1598
- getIn(path, keepScalar) {
1599
- const [key, ...rest] = path;
1598
+ getIn(path2, keepScalar) {
1599
+ const [key, ...rest] = path2;
1600
1600
  const node = this.get(key, true);
1601
1601
  if (rest.length === 0)
1602
1602
  return !keepScalar && identity.isScalar(node) ? node.value : node;
@@ -1614,8 +1614,8 @@ var require_Collection = __commonJS({
1614
1614
  /**
1615
1615
  * Checks if the collection includes a value with the key `key`.
1616
1616
  */
1617
- hasIn(path) {
1618
- const [key, ...rest] = path;
1617
+ hasIn(path2) {
1618
+ const [key, ...rest] = path2;
1619
1619
  if (rest.length === 0)
1620
1620
  return this.has(key);
1621
1621
  const node = this.get(key, true);
@@ -1625,8 +1625,8 @@ var require_Collection = __commonJS({
1625
1625
  * Sets a value in this collection. For `!!set`, `value` needs to be a
1626
1626
  * boolean to add/remove the item from the set.
1627
1627
  */
1628
- setIn(path, value) {
1629
- const [key, ...rest] = path;
1628
+ setIn(path2, value) {
1629
+ const [key, ...rest] = path2;
1630
1630
  if (rest.length === 0) {
1631
1631
  this.set(key, value);
1632
1632
  } else {
@@ -4108,9 +4108,9 @@ var require_Document = __commonJS({
4108
4108
  this.contents.add(value);
4109
4109
  }
4110
4110
  /** Adds a value to the document. */
4111
- addIn(path, value) {
4111
+ addIn(path2, value) {
4112
4112
  if (assertCollection(this.contents))
4113
- this.contents.addIn(path, value);
4113
+ this.contents.addIn(path2, value);
4114
4114
  }
4115
4115
  /**
4116
4116
  * Create a new `Alias` node, ensuring that the target `node` has the required anchor.
@@ -4185,14 +4185,14 @@ var require_Document = __commonJS({
4185
4185
  * Removes a value from the document.
4186
4186
  * @returns `true` if the item was found and removed.
4187
4187
  */
4188
- deleteIn(path) {
4189
- if (Collection.isEmptyPath(path)) {
4188
+ deleteIn(path2) {
4189
+ if (Collection.isEmptyPath(path2)) {
4190
4190
  if (this.contents == null)
4191
4191
  return false;
4192
4192
  this.contents = null;
4193
4193
  return true;
4194
4194
  }
4195
- return assertCollection(this.contents) ? this.contents.deleteIn(path) : false;
4195
+ return assertCollection(this.contents) ? this.contents.deleteIn(path2) : false;
4196
4196
  }
4197
4197
  /**
4198
4198
  * Returns item at `key`, or `undefined` if not found. By default unwraps
@@ -4207,10 +4207,10 @@ var require_Document = __commonJS({
4207
4207
  * scalar values from their surrounding node; to disable set `keepScalar` to
4208
4208
  * `true` (collections are always returned intact).
4209
4209
  */
4210
- getIn(path, keepScalar) {
4211
- if (Collection.isEmptyPath(path))
4210
+ getIn(path2, keepScalar) {
4211
+ if (Collection.isEmptyPath(path2))
4212
4212
  return !keepScalar && identity.isScalar(this.contents) ? this.contents.value : this.contents;
4213
- return identity.isCollection(this.contents) ? this.contents.getIn(path, keepScalar) : void 0;
4213
+ return identity.isCollection(this.contents) ? this.contents.getIn(path2, keepScalar) : void 0;
4214
4214
  }
4215
4215
  /**
4216
4216
  * Checks if the document includes a value with the key `key`.
@@ -4221,10 +4221,10 @@ var require_Document = __commonJS({
4221
4221
  /**
4222
4222
  * Checks if the document includes a value at `path`.
4223
4223
  */
4224
- hasIn(path) {
4225
- if (Collection.isEmptyPath(path))
4224
+ hasIn(path2) {
4225
+ if (Collection.isEmptyPath(path2))
4226
4226
  return this.contents !== void 0;
4227
- return identity.isCollection(this.contents) ? this.contents.hasIn(path) : false;
4227
+ return identity.isCollection(this.contents) ? this.contents.hasIn(path2) : false;
4228
4228
  }
4229
4229
  /**
4230
4230
  * Sets a value in this document. For `!!set`, `value` needs to be a
@@ -4241,13 +4241,13 @@ var require_Document = __commonJS({
4241
4241
  * Sets a value in this document. For `!!set`, `value` needs to be a
4242
4242
  * boolean to add/remove the item from the set.
4243
4243
  */
4244
- setIn(path, value) {
4245
- if (Collection.isEmptyPath(path)) {
4244
+ setIn(path2, value) {
4245
+ if (Collection.isEmptyPath(path2)) {
4246
4246
  this.contents = value;
4247
4247
  } else if (this.contents == null) {
4248
- this.contents = Collection.collectionFromPath(this.schema, Array.from(path), value);
4248
+ this.contents = Collection.collectionFromPath(this.schema, Array.from(path2), value);
4249
4249
  } else if (assertCollection(this.contents)) {
4250
- this.contents.setIn(path, value);
4250
+ this.contents.setIn(path2, value);
4251
4251
  }
4252
4252
  }
4253
4253
  /**
@@ -6182,9 +6182,9 @@ var require_cst_visit = __commonJS({
6182
6182
  visit.BREAK = BREAK;
6183
6183
  visit.SKIP = SKIP;
6184
6184
  visit.REMOVE = REMOVE;
6185
- visit.itemAtPath = (cst, path) => {
6185
+ visit.itemAtPath = (cst, path2) => {
6186
6186
  let item = cst;
6187
- for (const [field, index] of path) {
6187
+ for (const [field, index] of path2) {
6188
6188
  const tok = item?.[field];
6189
6189
  if (tok && "items" in tok) {
6190
6190
  item = tok.items[index];
@@ -6193,23 +6193,23 @@ var require_cst_visit = __commonJS({
6193
6193
  }
6194
6194
  return item;
6195
6195
  };
6196
- visit.parentCollection = (cst, path) => {
6197
- const parent = visit.itemAtPath(cst, path.slice(0, -1));
6198
- const field = path[path.length - 1][0];
6196
+ visit.parentCollection = (cst, path2) => {
6197
+ const parent = visit.itemAtPath(cst, path2.slice(0, -1));
6198
+ const field = path2[path2.length - 1][0];
6199
6199
  const coll = parent?.[field];
6200
6200
  if (coll && "items" in coll)
6201
6201
  return coll;
6202
6202
  throw new Error("Parent collection not found");
6203
6203
  };
6204
- function _visit(path, item, visitor) {
6205
- let ctrl = visitor(item, path);
6204
+ function _visit(path2, item, visitor) {
6205
+ let ctrl = visitor(item, path2);
6206
6206
  if (typeof ctrl === "symbol")
6207
6207
  return ctrl;
6208
6208
  for (const field of ["key", "value"]) {
6209
6209
  const token = item[field];
6210
6210
  if (token && "items" in token) {
6211
6211
  for (let i = 0; i < token.items.length; ++i) {
6212
- const ci = _visit(Object.freeze(path.concat([[field, i]])), token.items[i], visitor);
6212
+ const ci = _visit(Object.freeze(path2.concat([[field, i]])), token.items[i], visitor);
6213
6213
  if (typeof ci === "number")
6214
6214
  i = ci - 1;
6215
6215
  else if (ci === BREAK)
@@ -6220,10 +6220,10 @@ var require_cst_visit = __commonJS({
6220
6220
  }
6221
6221
  }
6222
6222
  if (typeof ctrl === "function" && field === "key")
6223
- ctrl = ctrl(item, path);
6223
+ ctrl = ctrl(item, path2);
6224
6224
  }
6225
6225
  }
6226
- return typeof ctrl === "function" ? ctrl(item, path) : ctrl;
6226
+ return typeof ctrl === "function" ? ctrl(item, path2) : ctrl;
6227
6227
  }
6228
6228
  exports2.visit = visit;
6229
6229
  }
@@ -10629,11 +10629,11 @@ var require_lodash = __commonJS({
10629
10629
  return isFunction(object[key]);
10630
10630
  });
10631
10631
  }
10632
- function baseGet(object, path) {
10633
- path = castPath(path, object);
10634
- var index = 0, length = path.length;
10632
+ function baseGet(object, path2) {
10633
+ path2 = castPath(path2, object);
10634
+ var index = 0, length = path2.length;
10635
10635
  while (object != null && index < length) {
10636
- object = object[toKey(path[index++])];
10636
+ object = object[toKey(path2[index++])];
10637
10637
  }
10638
10638
  return index && index == length ? object : undefined2;
10639
10639
  }
@@ -10697,10 +10697,10 @@ var require_lodash = __commonJS({
10697
10697
  });
10698
10698
  return accumulator;
10699
10699
  }
10700
- function baseInvoke(object, path, args) {
10701
- path = castPath(path, object);
10702
- object = parent(object, path);
10703
- var func = object == null ? object : object[toKey(last(path))];
10700
+ function baseInvoke(object, path2, args) {
10701
+ path2 = castPath(path2, object);
10702
+ object = parent(object, path2);
10703
+ var func = object == null ? object : object[toKey(last(path2))];
10704
10704
  return func == null ? undefined2 : apply(func, object, args);
10705
10705
  }
10706
10706
  function baseIsArguments(value) {
@@ -10856,13 +10856,13 @@ var require_lodash = __commonJS({
10856
10856
  return object === source || baseIsMatch(object, source, matchData);
10857
10857
  };
10858
10858
  }
10859
- function baseMatchesProperty(path, srcValue) {
10860
- if (isKey(path) && isStrictComparable(srcValue)) {
10861
- return matchesStrictComparable(toKey(path), srcValue);
10859
+ function baseMatchesProperty(path2, srcValue) {
10860
+ if (isKey(path2) && isStrictComparable(srcValue)) {
10861
+ return matchesStrictComparable(toKey(path2), srcValue);
10862
10862
  }
10863
10863
  return function(object) {
10864
- var objValue = get(object, path);
10865
- return objValue === undefined2 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
10864
+ var objValue = get(object, path2);
10865
+ return objValue === undefined2 && objValue === srcValue ? hasIn(object, path2) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
10866
10866
  };
10867
10867
  }
10868
10868
  function baseMerge(object, source, srcIndex, customizer, stack) {
@@ -10959,23 +10959,23 @@ var require_lodash = __commonJS({
10959
10959
  });
10960
10960
  }
10961
10961
  function basePick(object, paths) {
10962
- return basePickBy(object, paths, function(value, path) {
10963
- return hasIn(object, path);
10962
+ return basePickBy(object, paths, function(value, path2) {
10963
+ return hasIn(object, path2);
10964
10964
  });
10965
10965
  }
10966
10966
  function basePickBy(object, paths, predicate) {
10967
10967
  var index = -1, length = paths.length, result2 = {};
10968
10968
  while (++index < length) {
10969
- var path = paths[index], value = baseGet(object, path);
10970
- if (predicate(value, path)) {
10971
- baseSet(result2, castPath(path, object), value);
10969
+ var path2 = paths[index], value = baseGet(object, path2);
10970
+ if (predicate(value, path2)) {
10971
+ baseSet(result2, castPath(path2, object), value);
10972
10972
  }
10973
10973
  }
10974
10974
  return result2;
10975
10975
  }
10976
- function basePropertyDeep(path) {
10976
+ function basePropertyDeep(path2) {
10977
10977
  return function(object) {
10978
- return baseGet(object, path);
10978
+ return baseGet(object, path2);
10979
10979
  };
10980
10980
  }
10981
10981
  function basePullAll(array, values2, iteratee2, comparator) {
@@ -11049,14 +11049,14 @@ var require_lodash = __commonJS({
11049
11049
  var array = values(collection);
11050
11050
  return shuffleSelf(array, baseClamp(n, 0, array.length));
11051
11051
  }
11052
- function baseSet(object, path, value, customizer) {
11052
+ function baseSet(object, path2, value, customizer) {
11053
11053
  if (!isObject(object)) {
11054
11054
  return object;
11055
11055
  }
11056
- path = castPath(path, object);
11057
- var index = -1, length = path.length, lastIndex = length - 1, nested = object;
11056
+ path2 = castPath(path2, object);
11057
+ var index = -1, length = path2.length, lastIndex = length - 1, nested = object;
11058
11058
  while (nested != null && ++index < length) {
11059
- var key = toKey(path[index]), newValue = value;
11059
+ var key = toKey(path2[index]), newValue = value;
11060
11060
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
11061
11061
  return object;
11062
11062
  }
@@ -11064,7 +11064,7 @@ var require_lodash = __commonJS({
11064
11064
  var objValue = nested[key];
11065
11065
  newValue = customizer ? customizer(objValue, key, nested) : undefined2;
11066
11066
  if (newValue === undefined2) {
11067
- newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
11067
+ newValue = isObject(objValue) ? objValue : isIndex(path2[index + 1]) ? [] : {};
11068
11068
  }
11069
11069
  }
11070
11070
  assignValue(nested, key, newValue);
@@ -11230,13 +11230,13 @@ var require_lodash = __commonJS({
11230
11230
  }
11231
11231
  return result2;
11232
11232
  }
11233
- function baseUnset(object, path) {
11234
- path = castPath(path, object);
11235
- object = parent(object, path);
11236
- return object == null || delete object[toKey(last(path))];
11233
+ function baseUnset(object, path2) {
11234
+ path2 = castPath(path2, object);
11235
+ object = parent(object, path2);
11236
+ return object == null || delete object[toKey(last(path2))];
11237
11237
  }
11238
- function baseUpdate(object, path, updater, customizer) {
11239
- return baseSet(object, path, updater(baseGet(object, path)), customizer);
11238
+ function baseUpdate(object, path2, updater, customizer) {
11239
+ return baseSet(object, path2, updater(baseGet(object, path2)), customizer);
11240
11240
  }
11241
11241
  function baseWhile(array, predicate, isDrop, fromRight) {
11242
11242
  var length = array.length, index = fromRight ? length : -1;
@@ -12119,11 +12119,11 @@ var require_lodash = __commonJS({
12119
12119
  var match = source.match(reWrapDetails);
12120
12120
  return match ? match[1].split(reSplitDetails) : [];
12121
12121
  }
12122
- function hasPath(object, path, hasFunc) {
12123
- path = castPath(path, object);
12124
- var index = -1, length = path.length, result2 = false;
12122
+ function hasPath(object, path2, hasFunc) {
12123
+ path2 = castPath(path2, object);
12124
+ var index = -1, length = path2.length, result2 = false;
12125
12125
  while (++index < length) {
12126
- var key = toKey(path[index]);
12126
+ var key = toKey(path2[index]);
12127
12127
  if (!(result2 = object != null && hasFunc(object, key))) {
12128
12128
  break;
12129
12129
  }
@@ -12325,8 +12325,8 @@ var require_lodash = __commonJS({
12325
12325
  return apply(func, this, otherArgs);
12326
12326
  };
12327
12327
  }
12328
- function parent(object, path) {
12329
- return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
12328
+ function parent(object, path2) {
12329
+ return path2.length < 2 ? object : baseGet(object, baseSlice(path2, 0, -1));
12330
12330
  }
12331
12331
  function reorder(array, indexes) {
12332
12332
  var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
@@ -12961,10 +12961,10 @@ var require_lodash = __commonJS({
12961
12961
  }
12962
12962
  return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
12963
12963
  }
12964
- var invokeMap = baseRest(function(collection, path, args) {
12965
- var index = -1, isFunc = typeof path == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
12964
+ var invokeMap = baseRest(function(collection, path2, args) {
12965
+ var index = -1, isFunc = typeof path2 == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
12966
12966
  baseEach(collection, function(value) {
12967
- result2[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
12967
+ result2[++index] = isFunc ? apply(path2, value, args) : baseInvoke(value, path2, args);
12968
12968
  });
12969
12969
  return result2;
12970
12970
  });
@@ -13616,15 +13616,15 @@ var require_lodash = __commonJS({
13616
13616
  function functionsIn(object) {
13617
13617
  return object == null ? [] : baseFunctions(object, keysIn(object));
13618
13618
  }
13619
- function get(object, path, defaultValue) {
13620
- var result2 = object == null ? undefined2 : baseGet(object, path);
13619
+ function get(object, path2, defaultValue) {
13620
+ var result2 = object == null ? undefined2 : baseGet(object, path2);
13621
13621
  return result2 === undefined2 ? defaultValue : result2;
13622
13622
  }
13623
- function has(object, path) {
13624
- return object != null && hasPath(object, path, baseHas);
13623
+ function has(object, path2) {
13624
+ return object != null && hasPath(object, path2, baseHas);
13625
13625
  }
13626
- function hasIn(object, path) {
13627
- return object != null && hasPath(object, path, baseHasIn);
13626
+ function hasIn(object, path2) {
13627
+ return object != null && hasPath(object, path2, baseHasIn);
13628
13628
  }
13629
13629
  var invert = createInverter(function(result2, value, key) {
13630
13630
  if (value != null && typeof value.toString != "function") {
@@ -13677,10 +13677,10 @@ var require_lodash = __commonJS({
13677
13677
  return result2;
13678
13678
  }
13679
13679
  var isDeep = false;
13680
- paths = arrayMap(paths, function(path) {
13681
- path = castPath(path, object);
13682
- isDeep || (isDeep = path.length > 1);
13683
- return path;
13680
+ paths = arrayMap(paths, function(path2) {
13681
+ path2 = castPath(path2, object);
13682
+ isDeep || (isDeep = path2.length > 1);
13683
+ return path2;
13684
13684
  });
13685
13685
  copyObject(object, getAllKeysIn(object), result2);
13686
13686
  if (isDeep) {
@@ -13706,19 +13706,19 @@ var require_lodash = __commonJS({
13706
13706
  return [prop];
13707
13707
  });
13708
13708
  predicate = getIteratee(predicate);
13709
- return basePickBy(object, props, function(value, path) {
13710
- return predicate(value, path[0]);
13709
+ return basePickBy(object, props, function(value, path2) {
13710
+ return predicate(value, path2[0]);
13711
13711
  });
13712
13712
  }
13713
- function result(object, path, defaultValue) {
13714
- path = castPath(path, object);
13715
- var index = -1, length = path.length;
13713
+ function result(object, path2, defaultValue) {
13714
+ path2 = castPath(path2, object);
13715
+ var index = -1, length = path2.length;
13716
13716
  if (!length) {
13717
13717
  length = 1;
13718
13718
  object = undefined2;
13719
13719
  }
13720
13720
  while (++index < length) {
13721
- var value = object == null ? undefined2 : object[toKey(path[index])];
13721
+ var value = object == null ? undefined2 : object[toKey(path2[index])];
13722
13722
  if (value === undefined2) {
13723
13723
  index = length;
13724
13724
  value = defaultValue;
@@ -13727,12 +13727,12 @@ var require_lodash = __commonJS({
13727
13727
  }
13728
13728
  return object;
13729
13729
  }
13730
- function set(object, path, value) {
13731
- return object == null ? object : baseSet(object, path, value);
13730
+ function set(object, path2, value) {
13731
+ return object == null ? object : baseSet(object, path2, value);
13732
13732
  }
13733
- function setWith(object, path, value, customizer) {
13733
+ function setWith(object, path2, value, customizer) {
13734
13734
  customizer = typeof customizer == "function" ? customizer : undefined2;
13735
- return object == null ? object : baseSet(object, path, value, customizer);
13735
+ return object == null ? object : baseSet(object, path2, value, customizer);
13736
13736
  }
13737
13737
  var toPairs = createToPairs(keys);
13738
13738
  var toPairsIn = createToPairs(keysIn);
@@ -13754,15 +13754,15 @@ var require_lodash = __commonJS({
13754
13754
  });
13755
13755
  return accumulator;
13756
13756
  }
13757
- function unset(object, path) {
13758
- return object == null ? true : baseUnset(object, path);
13757
+ function unset(object, path2) {
13758
+ return object == null ? true : baseUnset(object, path2);
13759
13759
  }
13760
- function update(object, path, updater) {
13761
- return object == null ? object : baseUpdate(object, path, castFunction(updater));
13760
+ function update(object, path2, updater) {
13761
+ return object == null ? object : baseUpdate(object, path2, castFunction(updater));
13762
13762
  }
13763
- function updateWith(object, path, updater, customizer) {
13763
+ function updateWith(object, path2, updater, customizer) {
13764
13764
  customizer = typeof customizer == "function" ? customizer : undefined2;
13765
- return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
13765
+ return object == null ? object : baseUpdate(object, path2, castFunction(updater), customizer);
13766
13766
  }
13767
13767
  function values(object) {
13768
13768
  return object == null ? [] : baseValues(object, keys(object));
@@ -14143,17 +14143,17 @@ var require_lodash = __commonJS({
14143
14143
  function matches(source) {
14144
14144
  return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
14145
14145
  }
14146
- function matchesProperty(path, srcValue) {
14147
- return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
14146
+ function matchesProperty(path2, srcValue) {
14147
+ return baseMatchesProperty(path2, baseClone(srcValue, CLONE_DEEP_FLAG));
14148
14148
  }
14149
- var method = baseRest(function(path, args) {
14149
+ var method = baseRest(function(path2, args) {
14150
14150
  return function(object) {
14151
- return baseInvoke(object, path, args);
14151
+ return baseInvoke(object, path2, args);
14152
14152
  };
14153
14153
  });
14154
14154
  var methodOf = baseRest(function(object, args) {
14155
- return function(path) {
14156
- return baseInvoke(object, path, args);
14155
+ return function(path2) {
14156
+ return baseInvoke(object, path2, args);
14157
14157
  };
14158
14158
  });
14159
14159
  function mixin(object, source, options) {
@@ -14200,12 +14200,12 @@ var require_lodash = __commonJS({
14200
14200
  var over = createOver(arrayMap);
14201
14201
  var overEvery = createOver(arrayEvery);
14202
14202
  var overSome = createOver(arraySome);
14203
- function property(path) {
14204
- return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
14203
+ function property(path2) {
14204
+ return isKey(path2) ? baseProperty(toKey(path2)) : basePropertyDeep(path2);
14205
14205
  }
14206
14206
  function propertyOf(object) {
14207
- return function(path) {
14208
- return object == null ? undefined2 : baseGet(object, path);
14207
+ return function(path2) {
14208
+ return object == null ? undefined2 : baseGet(object, path2);
14209
14209
  };
14210
14210
  }
14211
14211
  var range = createRange();
@@ -14658,12 +14658,12 @@ var require_lodash = __commonJS({
14658
14658
  LazyWrapper.prototype.findLast = function(predicate) {
14659
14659
  return this.reverse().find(predicate);
14660
14660
  };
14661
- LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {
14662
- if (typeof path == "function") {
14661
+ LazyWrapper.prototype.invokeMap = baseRest(function(path2, args) {
14662
+ if (typeof path2 == "function") {
14663
14663
  return new LazyWrapper(this);
14664
14664
  }
14665
14665
  return this.map(function(value) {
14666
- return baseInvoke(value, path, args);
14666
+ return baseInvoke(value, path2, args);
14667
14667
  });
14668
14668
  });
14669
14669
  LazyWrapper.prototype.reject = function(predicate) {
@@ -15169,6 +15169,7 @@ var GLOB_VUE = "**/*.vue";
15169
15169
 
15170
15170
  // src/utils.ts
15171
15171
  init_cjs_shims();
15172
+ var import_node_path = __toESM(require("path"), 1);
15172
15173
  var genFlatConfigEntryName = (name) => `eslint-config-un/${name}`;
15173
15174
  var createPluginObjectRenamer = (from, to) => {
15174
15175
  const fromRegex = new RegExp(`^${from}/`);
@@ -15184,6 +15185,10 @@ var assignOptions = (options, key) => ({
15184
15185
  });
15185
15186
  var arraify = (value) => Array.isArray(value) ? value : value == null ? [] : [value];
15186
15187
  var isNonEmptyArray = (value) => Array.isArray(value) && value.length > 0;
15188
+ var joinPaths = (paths) => (
15189
+ // eslint-disable-next-line unicorn/prefer-native-coercion-functions
15190
+ import_node_path.default.posix.join(...arraify(paths).filter((v) => Boolean(v)))
15191
+ );
15187
15192
  var ConfigEntryBuilder = class {
15188
15193
  constructor(options, internalOptions) {
15189
15194
  this.options = options;
@@ -15574,7 +15579,9 @@ var tsEslintConfig = (options = {}, internalOptions = {}) => {
15574
15579
  ERROR,
15575
15580
  [
15576
15581
  {
15577
- allowConstantLoopConditions: true
15582
+ allowConstantLoopConditions: true,
15583
+ checkTypePredicates: true
15584
+ // >=8.8.0
15578
15585
  }
15579
15586
  ],
15580
15587
  { disableAutofix: true }
@@ -15681,7 +15688,7 @@ var vueEslintConfig = (options, internalOptions = {}) => {
15681
15688
  (entry) => entry.name === "vue:recommended:rules" || entry.name === "vue:vue2-recommended:rules"
15682
15689
  )?.rules
15683
15690
  );
15684
- const nuxtLayoutsFiles = `${options.nuxtOrVueProjectDir}layouts/**/*.vue`;
15691
+ const nuxtLayoutsFilesGlob = joinPaths([options.nuxtOrVueProjectDir, "layouts/**/*.vue"]);
15685
15692
  const builder = new ConfigEntryBuilder(options, internalOptions);
15686
15693
  builder.addConfig("vue/setup", {
15687
15694
  plugins: {
@@ -15706,7 +15713,9 @@ var vueEslintConfig = (options, internalOptions = {}) => {
15706
15713
  }
15707
15714
  }
15708
15715
  });
15709
- builder.addConfig(["vue", { includeDefaultFilesAndIgnores: true }]).addBulkRules(recommendedRules).addRule("vue/component-tags-order", OFF).addRule("vue/comment-directive", ERROR, [
15716
+ builder.addConfig(["vue", { includeDefaultFilesAndIgnores: true }], {
15717
+ files
15718
+ }).addBulkRules(recommendedRules).addRule("vue/component-tags-order", OFF).addRule("vue/comment-directive", ERROR, [
15710
15719
  // false by default
15711
15720
  { reportUnusedDisableDirectives: options.reportUnusedDisableDirectives ?? true }
15712
15721
  ]).addRule("vue/no-deprecated-scope-attribute", isLess2_5 ? OFF : ERROR).addRule("vue/no-deprecated-slot-attribute", isLess2_6 ? OFF : ERROR).addRule("vue/no-deprecated-slot-scope-attribute", isLess2_6 ? OFF : ERROR).addRule("vue/no-deprecated-v-is", isLess3_1 ? OFF : ERROR).addRule("vue/html-self-closing", ERROR, [
@@ -15808,14 +15817,14 @@ var vueEslintConfig = (options, internalOptions = {}) => {
15808
15817
  ).addRule("vue/eqeqeq", ERROR, RULE_EQEQEQ_OPTIONS).addRule("vue/no-console", ERROR).addRule("vue/no-constant-condition", WARNING).addRule("vue/no-empty-pattern", ERROR).addRule("vue/no-irregular-whitespace", ERROR).addRule("vue/no-loss-of-precision", ERROR).addRule("vue/no-sparse-arrays", ERROR).addRule("vue/no-useless-concat", ERROR).addRule("vue/object-shorthand", ERROR).addRule("vue/prefer-template", ERROR).addAnyRule("@typescript-eslint/prefer-function-type", OFF).addAnyRule("@typescript-eslint/unified-signatures", OFF).addAnyRule("import/first", OFF).addAnyRule("import/no-default-export", OFF).addAnyRule("no-useless-assignment", OFF).addOverrides();
15809
15818
  builder.addConfig("vue/allow-single-word-component-names", {
15810
15819
  files: [
15811
- `${options.nuxtOrVueProjectDir}pages/**/*.vue`,
15812
- `${options.nuxtOrVueProjectDir}views/**/*.vue`,
15813
- isNuxtEnabled && [nuxtLayoutsFiles, "app.vue", "error.vue"],
15814
- ...arraify(options.doNotRequireComponentNamesToBeMultiWordForPatterns)
15815
- ].filter((v) => v !== false)
15820
+ joinPaths([options.nuxtOrVueProjectDir, "pages/**/*.vue"]),
15821
+ joinPaths([options.nuxtOrVueProjectDir, "views/**/*.vue"]),
15822
+ isNuxtEnabled && [nuxtLayoutsFilesGlob, "app.vue", "error.vue"],
15823
+ options.doNotRequireComponentNamesToBeMultiWordForPatterns
15824
+ ].flat().filter((v) => v !== false && v != null)
15816
15825
  }).addRule("vue/multi-word-component-names", OFF);
15817
15826
  const vueAllowImplicitSlotsConfig = builder.addConfig("vue/allow-implicit-slots", {
15818
- files: [nuxtLayoutsFiles]
15827
+ files: [nuxtLayoutsFilesGlob]
15819
15828
  });
15820
15829
  if (isNuxtEnabled) {
15821
15830
  vueAllowImplicitSlotsConfig.addRule("vue/require-explicit-slots", OFF);
@@ -15824,10 +15833,10 @@ var vueEslintConfig = (options, internalOptions = {}) => {
15824
15833
  files: [
15825
15834
  GLOB_VUE,
15826
15835
  isNuxtEnabled && [
15827
- `${options.nuxtOrVueProjectDir}plugins/**/*.*`,
15828
- `${options.nuxtOrVueProjectDir}server/**/*.*`
15836
+ joinPaths([options.nuxtOrVueProjectDir, "plugins/**/*.*"]),
15837
+ joinPaths([options.nuxtOrVueProjectDir, "server/**/*.*"])
15829
15838
  ]
15830
- ].filter((v) => v !== false)
15839
+ ].flat().filter((v) => v !== false)
15831
15840
  }).addAnyRule("import/no-default-export", OFF);
15832
15841
  const a11yConfig = builder.addConfig("vue/a11y", {
15833
15842
  files,