@syncfusion/ej2-dropdowns 22.1.39 → 22.2.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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 22.1.39
3
+ * version : 22.2.8
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-dropdowns@*",
3
- "_id": "@syncfusion/ej2-dropdowns@22.1.38",
3
+ "_id": "@syncfusion/ej2-dropdowns@22.2.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-rmkxzqNkvxi1OGMnjl9YUz5iTrvaS4pff5fMYdq1xCccizycwqdNnL5+MNimnSWJqDxpST+SwPiL86NMgVlt6A==",
5
+ "_integrity": "sha512-wf/kIgwTVONADdQEZBFNabfPymGacqM8fjMBZUBuBBtp8SKR+nphlkIVU564UoGLcNOOV1yhUzlpVwEJ/ngabg==",
6
6
  "_location": "/@syncfusion/ej2-dropdowns",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -34,8 +34,8 @@
34
34
  "/@syncfusion/ej2-spreadsheet",
35
35
  "/@syncfusion/ej2-vue-dropdowns"
36
36
  ],
37
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-22.1.38.tgz",
38
- "_shasum": "ce2897f653685a6c96d27245ebab2d45771b75df",
37
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-22.2.5.tgz",
38
+ "_shasum": "194e02353868d6417668cc2fbbc0221ccb79ad36",
39
39
  "_spec": "@syncfusion/ej2-dropdowns@*",
40
40
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
41
41
  "author": {
@@ -43,12 +43,12 @@
43
43
  },
44
44
  "bundleDependencies": false,
45
45
  "dependencies": {
46
- "@syncfusion/ej2-base": "~22.1.38",
47
- "@syncfusion/ej2-data": "~22.1.38",
48
- "@syncfusion/ej2-inputs": "~22.1.39",
49
- "@syncfusion/ej2-lists": "~22.1.34",
50
- "@syncfusion/ej2-navigations": "~22.1.39",
51
- "@syncfusion/ej2-popups": "~22.1.38"
46
+ "@syncfusion/ej2-base": "~22.2.5",
47
+ "@syncfusion/ej2-data": "~22.2.5",
48
+ "@syncfusion/ej2-inputs": "~22.2.7",
49
+ "@syncfusion/ej2-lists": "~22.2.8",
50
+ "@syncfusion/ej2-navigations": "~22.2.8",
51
+ "@syncfusion/ej2-popups": "~22.2.7"
52
52
  },
53
53
  "deprecated": false,
54
54
  "description": "Essential JS 2 DropDown Components",
@@ -73,7 +73,7 @@
73
73
  "module": "./index.js",
74
74
  "name": "@syncfusion/ej2-dropdowns",
75
75
  "typings": "index.d.ts",
76
- "version": "22.1.39",
76
+ "version": "22.2.8",
77
77
  "sideEffects": false,
78
78
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
79
79
  }
@@ -693,21 +693,21 @@ export interface FilteringEventArgs {
693
693
  }
694
694
  export interface PopupEventArgs {
695
695
  /**
696
- * Specifies the popup Object.
696
+ * This property provides access to the Popup object associated with the dropdown list. The Popup object represents the actual popup element that is displayed when the dropdown list is expanded.
697
697
  *
698
698
 
699
699
  */
700
700
  popup: Popup;
701
701
  /**
702
- * Illustrates whether the current action needs to be prevented or not.
702
+ * This property indicates whether the current action should be prevented or not. By setting it to true, you can cancel the default action associated with the event.
703
703
  */
704
704
  cancel?: boolean;
705
705
  /**
706
- * Specifies the animation Object.
706
+ * This property allows you to specify the animation settings for the popup. It accepts an AnimationModel object that defines the animation behavior.
707
707
  */
708
708
  animation?: AnimationModel;
709
709
  /**
710
- * Specifies the event.
710
+ * This property represents the event that triggers the popup. It can be of type MouseEvent, KeyboardEventArgs, TouchEvent, or a generic Object representing the event details.
711
711
  */
712
712
  event?: MouseEvent | KeyboardEventArgs | TouchEvent | Object;
713
713
  }
@@ -1677,20 +1677,20 @@ var DropDownList = /** @class */ (function (_super) {
1677
1677
  var args = { cancel: false };
1678
1678
  this.trigger('beforeOpen', args, function (args) {
1679
1679
  if (!args.cancel) {
1680
- var popupEle_1 = _this.createElement('div', {
1680
+ var popupEle = _this.createElement('div', {
1681
1681
  id: _this.element.id + '_popup', className: 'e-ddl e-popup ' + (_this.cssClass !== null ? _this.cssClass : '')
1682
1682
  });
1683
- var searchBox = _this.setSearchBox(popupEle_1);
1683
+ var searchBox = _this.setSearchBox(popupEle);
1684
1684
  _this.listHeight = formatUnit(_this.popupHeight);
1685
1685
  if (_this.headerTemplate) {
1686
- _this.setHeaderTemplate(popupEle_1);
1686
+ _this.setHeaderTemplate(popupEle);
1687
1687
  }
1688
- append([_this.list], popupEle_1);
1688
+ append([_this.list], popupEle);
1689
1689
  if (_this.footerTemplate) {
1690
- _this.setFooterTemplate(popupEle_1);
1690
+ _this.setFooterTemplate(popupEle);
1691
1691
  }
1692
- document.body.appendChild(popupEle_1);
1693
- popupEle_1.style.visibility = 'hidden';
1692
+ document.body.appendChild(popupEle);
1693
+ popupEle.style.visibility = 'hidden';
1694
1694
  if (_this.popupHeight !== 'auto') {
1695
1695
  _this.searchBoxHeight = 0;
1696
1696
  if (!isNullOrUndefined(searchBox.container)) {
@@ -1698,20 +1698,20 @@ var DropDownList = /** @class */ (function (_super) {
1698
1698
  _this.listHeight = (parseInt(_this.listHeight, 10) - (_this.searchBoxHeight)).toString() + 'px';
1699
1699
  }
1700
1700
  if (_this.headerTemplate) {
1701
- _this.header = _this.header ? _this.header : popupEle_1.querySelector('.e-ddl-header');
1701
+ _this.header = _this.header ? _this.header : popupEle.querySelector('.e-ddl-header');
1702
1702
  var height = Math.round(_this.header.getBoundingClientRect().height);
1703
1703
  _this.listHeight = (parseInt(_this.listHeight, 10) - (height + _this.searchBoxHeight)).toString() + 'px';
1704
1704
  }
1705
1705
  if (_this.footerTemplate) {
1706
- _this.footer = _this.footer ? _this.footer : popupEle_1.querySelector('.e-ddl-footer');
1706
+ _this.footer = _this.footer ? _this.footer : popupEle.querySelector('.e-ddl-footer');
1707
1707
  var height = Math.round(_this.footer.getBoundingClientRect().height);
1708
1708
  _this.listHeight = (parseInt(_this.listHeight, 10) - (height + _this.searchBoxHeight)).toString() + 'px';
1709
1709
  }
1710
1710
  _this.list.style.maxHeight = (parseInt(_this.listHeight, 10) - 2).toString() + 'px'; // due to box-sizing property
1711
- popupEle_1.style.maxHeight = formatUnit(_this.popupHeight);
1711
+ popupEle.style.maxHeight = formatUnit(_this.popupHeight);
1712
1712
  }
1713
1713
  else {
1714
- popupEle_1.style.height = 'auto';
1714
+ popupEle.style.height = 'auto';
1715
1715
  }
1716
1716
  var offsetValue = 0;
1717
1717
  var left = void 0;
@@ -1723,7 +1723,7 @@ var DropDownList = /** @class */ (function (_super) {
1723
1723
  }
1724
1724
  if (Browser.isDevice && (!_this.allowFiltering && (_this.getModuleName() === 'dropdownlist' ||
1725
1725
  (_this.isDropDownClick && _this.getModuleName() === 'combobox')))) {
1726
- offsetValue = _this.getOffsetValue(popupEle_1);
1726
+ offsetValue = _this.getOffsetValue(popupEle);
1727
1727
  var firstItem = _this.isEmptyList() ? _this.list : _this.liCollections[0];
1728
1728
  if (!isNullOrUndefined(_this.inputElement)) {
1729
1729
  left = -(parseInt(getComputedStyle(firstItem).textIndent, 10) -
@@ -1732,9 +1732,8 @@ var DropDownList = /** @class */ (function (_super) {
1732
1732
  }
1733
1733
  }
1734
1734
  _this.getFocusElement();
1735
- _this.createPopup(popupEle_1, offsetValue, left);
1736
- _this.checkCollision(popupEle_1);
1737
- var popupLeft_1 = _this.enableRtl ? parseFloat(popupEle_1.style.left) - (_this.ulElement.parentElement.offsetWidth - _this.inputWrapper.container.offsetWidth) : 0;
1735
+ _this.createPopup(popupEle, offsetValue, left);
1736
+ _this.checkCollision(popupEle);
1738
1737
  if (Browser.isDevice) {
1739
1738
  _this.popupObj.element.classList.add(dropDownListClasses.device);
1740
1739
  if (_this.getModuleName() === 'dropdownlist' || (_this.getModuleName() === 'combobox'
@@ -1754,8 +1753,8 @@ var DropDownList = /** @class */ (function (_super) {
1754
1753
  EventHandler.add(_this.clearIconElement, 'click', _this.clearText, _this);
1755
1754
  }
1756
1755
  }
1757
- popupEle_1.style.visibility = 'visible';
1758
- addClass([popupEle_1], 'e-popup-close');
1756
+ popupEle.style.visibility = 'visible';
1757
+ addClass([popupEle], 'e-popup-close');
1759
1758
  var scrollParentElements = _this.popupObj.getScrollableParent(_this.inputWrapper.container);
1760
1759
  for (var _i = 0, scrollParentElements_1 = scrollParentElements; _i < scrollParentElements_1.length; _i++) {
1761
1760
  var element = scrollParentElements_1[_i];
@@ -1788,9 +1787,6 @@ var DropDownList = /** @class */ (function (_super) {
1788
1787
  _this.beforePopupOpen = false;
1789
1788
  _this.destroyPopup();
1790
1789
  }
1791
- if (_this.enableRtl && popupLeft_1 > 0) {
1792
- popupEle_1.style.left = popupLeft_1 + "px";
1793
- }
1794
1790
  });
1795
1791
  }
1796
1792
  else {
@@ -1818,7 +1814,8 @@ var DropDownList = /** @class */ (function (_super) {
1818
1814
  this.popupObj = new Popup(element, {
1819
1815
  width: this.setWidth(), targetType: 'relative',
1820
1816
  relateTo: this.inputWrapper.container, collision: { X: 'flip', Y: 'flip' }, offsetY: offsetValue,
1821
- enableRtl: this.enableRtl, offsetX: left, position: { X: 'left', Y: 'bottom' },
1817
+ enableRtl: this.enableRtl, offsetX: left,
1818
+ position: this.enableRtl ? { X: 'right', Y: 'bottom' } : { X: 'left', Y: 'bottom' },
1822
1819
  zIndex: this.zIndex,
1823
1820
  close: function () {
1824
1821
  if (!_this.isDocumentClick) {
@@ -2087,6 +2084,9 @@ var DropDownList = /** @class */ (function (_super) {
2087
2084
  }
2088
2085
  }
2089
2086
  });
2087
+ if (this.isReact && this.isFiltering() && this.itemTemplate != null) {
2088
+ this.actionCompleteData.ulElement = this.ulElement.cloneNode(true);
2089
+ }
2090
2090
  };
2091
2091
  DropDownList.prototype.destroyPopup = function () {
2092
2092
  this.isPopupOpen = false;
@@ -1,4 +1,4 @@
1
- import { Input, InputObject, FloatLabelType, TextBox, InputEventArgs } from '@syncfusion/ej2-inputs';import { createCheckBox } from '@syncfusion/ej2-buttons';import { NotifyPropertyChanges, INotifyPropertyChanged, Property, Event, EmitType } from '@syncfusion/ej2-base';import { Component, EventHandler, attributes, formatUnit, ChildProperty, remove, L10n, extend } from '@syncfusion/ej2-base';import { addClass, removeClass, detach, prepend, Complex, closest, setValue, getValue, compile, append } from '@syncfusion/ej2-base';import { select, selectAll, isNullOrUndefined as isNOU, matches, Browser, KeyboardEvents, KeyboardEventArgs } from '@syncfusion/ej2-base';import { DataManager, Query, DataUtil } from '@syncfusion/ej2-data';import { Popup } from '@syncfusion/ej2-popups';import { TreeView, NodeSelectEventArgs, DataBoundEventArgs, FieldsSettingsModel, NodeClickEventArgs, NodeExpandEventArgs } from '@syncfusion/ej2-navigations';import { NodeCheckEventArgs, FailureEventArgs} from '@syncfusion/ej2-navigations';
1
+ import { Input, InputObject, FloatLabelType, TextBox, InputEventArgs } from '@syncfusion/ej2-inputs';import { createCheckBox } from '@syncfusion/ej2-buttons';import { NotifyPropertyChanges, INotifyPropertyChanged, Property, Event, EmitType, SanitizeHtmlHelper } from '@syncfusion/ej2-base';import { Component, EventHandler, attributes, formatUnit, ChildProperty, remove, L10n, extend } from '@syncfusion/ej2-base';import { addClass, removeClass, detach, prepend, Complex, closest, setValue, getValue, compile, append } from '@syncfusion/ej2-base';import { select, selectAll, isNullOrUndefined as isNOU, matches, Browser, KeyboardEvents, KeyboardEventArgs } from '@syncfusion/ej2-base';import { DataManager, Query, DataUtil } from '@syncfusion/ej2-data';import { Popup } from '@syncfusion/ej2-popups';import { TreeView, NodeSelectEventArgs, DataBoundEventArgs, FieldsSettingsModel, NodeClickEventArgs, NodeExpandEventArgs } from '@syncfusion/ej2-navigations';import { NodeCheckEventArgs, FailureEventArgs} from '@syncfusion/ej2-navigations';
2
2
  import {Mode,ExpandOn,TreeFilterType,SortOrder,DdtBeforeOpenEventArgs,DdtChangeEventArgs,DdtPopupEventArgs,DdtDataBoundEventArgs,DdtFilteringEventArgs,DdtFocusEventArgs,DdtKeyPressEventArgs,DdtSelectEventArgs} from "./drop-down-tree";
3
3
  import {ComponentModel} from '@syncfusion/ej2-base';
4
4
 
@@ -19,7 +19,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
19
19
  };
20
20
  import { Input, TextBox } from '@syncfusion/ej2-inputs';
21
21
  import { createCheckBox } from '@syncfusion/ej2-buttons';
22
- import { NotifyPropertyChanges, Property, Event } from '@syncfusion/ej2-base';
22
+ import { NotifyPropertyChanges, Property, Event, SanitizeHtmlHelper } from '@syncfusion/ej2-base';
23
23
  import { Component, EventHandler, attributes, formatUnit, ChildProperty, remove, L10n, extend } from '@syncfusion/ej2-base';
24
24
  import { addClass, removeClass, detach, prepend, Complex, closest, setValue, getValue, compile, append } from '@syncfusion/ej2-base';
25
25
  import { select, selectAll, isNullOrUndefined as isNOU, matches, Browser, KeyboardEvents } from '@syncfusion/ej2-base';
@@ -934,7 +934,7 @@ var DropDownTree = /** @class */ (function (_super) {
934
934
  data += temp;
935
935
  temp = this.overFlowWrapper.innerHTML;
936
936
  if (this.enableHtmlSanitizer) {
937
- this.overFlowWrapper.innerText = data;
937
+ this.overFlowWrapper.innerText = SanitizeHtmlHelper.sanitize(data);
938
938
  }
939
939
  else {
940
940
  this.overFlowWrapper.innerHTML = data;
@@ -1660,7 +1660,7 @@ var DropDownTree = /** @class */ (function (_super) {
1660
1660
  var isFooter = closest(target, '.' + FOOTER);
1661
1661
  var isScroller = target.classList.contains(DROPDOWN) ? true :
1662
1662
  (matches(target, '.e-ddt .e-popup') || matches(target, '.e-ddt .e-treeview'));
1663
- if ((this.isPopupOpen && (this.inputWrapper.contains(target) || isTree || isScroller || isHeader || isFooter)) ||
1663
+ if ((this.isPopupOpen && ((!isNOU(this.inputWrapper) && this.inputWrapper.contains(target)) || isTree || isScroller || isHeader || isFooter)) ||
1664
1664
  ((this.allowMultiSelection || this.showCheckBox) && (this.isPopupOpen && target.classList.contains(CHIP_CLOSE) ||
1665
1665
  (this.isPopupOpen && (target.classList.contains(CHECKALLPARENT) || target.classList.contains(ALLTEXT)
1666
1666
  || target.classList.contains(CHECKBOXFRAME)))))) {
@@ -2298,7 +2298,7 @@ var DropDownTree = /** @class */ (function (_super) {
2298
2298
  var chipContent = this.createElement('span', { className: CHIP_CONTENT });
2299
2299
  var chipClose = this.createElement('span', { className: CHIP_CLOSE + ' ' + ICONS });
2300
2300
  if (this.enableHtmlSanitizer) {
2301
- chipContent.innerText = text;
2301
+ chipContent.innerText = SanitizeHtmlHelper.sanitize(text);
2302
2302
  }
2303
2303
  else {
2304
2304
  chipContent.innerHTML = text;
@@ -2957,10 +2957,34 @@ var DropDownTree = /** @class */ (function (_super) {
2957
2957
  Input.setValue(null, this.inputEle, this.floatLabelType);
2958
2958
  detach(this.inputWrapper);
2959
2959
  detach(this.popupDiv);
2960
+ detach(this.hiddenElement);
2960
2961
  this.element.classList.remove('e-input');
2961
2962
  if (this.showCheckBox || this.allowMultiSelection) {
2962
2963
  this.element.classList.remove(CHIP_INPUT);
2963
2964
  }
2965
+ this.inputObj = null;
2966
+ while (this.hiddenElement.options.length > 0) {
2967
+ this.hiddenElement.remove(0);
2968
+ }
2969
+ this.hiddenElement.innerHTML = '';
2970
+ this.hiddenElement = null;
2971
+ this.inputWrapper = null;
2972
+ this.popupDiv = null;
2973
+ this.tree = null;
2974
+ this.popupObj = null;
2975
+ this.treeObj = null;
2976
+ this.overAllClear = null;
2977
+ this.chipWrapper = null;
2978
+ this.chipCollection = null;
2979
+ this.checkAllParent = null;
2980
+ this.selectAllSpan = null;
2981
+ this.checkBoxElement = null;
2982
+ this.checkWrapper = null;
2983
+ this.popupEle = null;
2984
+ this.header = null;
2985
+ this.footer = null;
2986
+ this.overFlowWrapper = null;
2987
+ this.keyboardModule = null;
2964
2988
  _super.prototype.destroy.call(this);
2965
2989
  };
2966
2990
  DropDownTree.prototype.destroyFilter = function () {
@@ -264,9 +264,6 @@ var MultiSelect = /** @class */ (function (_super) {
264
264
  if (_this.isFirstClick) {
265
265
  _this.loadTemplate();
266
266
  }
267
- if (_this.enableRtl) {
268
- _this.popupWrapper.style.visibility = 'hidden';
269
- }
270
267
  }
271
268
  });
272
269
  };
@@ -2119,7 +2116,8 @@ var MultiSelect = /** @class */ (function (_super) {
2119
2116
  this.list.style.maxHeight = formatUnit(this.popupHeight);
2120
2117
  }
2121
2118
  this.popupObj = new Popup(this.popupWrapper, {
2122
- width: this.calcPopupWidth(), targetType: 'relative', position: { X: 'left', Y: 'bottom' },
2119
+ width: this.calcPopupWidth(), targetType: 'relative',
2120
+ position: this.enableRtl ? { X: 'right', Y: 'bottom' } : { X: 'left', Y: 'bottom' },
2123
2121
  relateTo: this.overAllWrapper, collision: { X: 'flip', Y: 'flip' }, offsetY: 1,
2124
2122
  enableRtl: this.enableRtl, zIndex: this.zIndex,
2125
2123
  close: function () {
@@ -2135,11 +2133,6 @@ var MultiSelect = /** @class */ (function (_super) {
2135
2133
  },
2136
2134
  open: function () {
2137
2135
  _this.popupObj.resolveCollision();
2138
- if (_this.enableRtl) {
2139
- var popupLeft = parseFloat(_this.popupWrapper.style.left) - (_this.popupWrapper.offsetWidth - _this.overAllWrapper.offsetWidth);
2140
- _this.popupWrapper.style.left = popupLeft > 0 ? popupLeft + "px" : _this.popupWrapper.style.left;
2141
- _this.popupWrapper.style.visibility = 'hidden';
2142
- }
2143
2136
  if (!_this.isFirstClick) {
2144
2137
  var ulElement = _this.list.querySelector('ul');
2145
2138
  if (ulElement) {
package/.eslintrc.json DELETED
@@ -1,260 +0,0 @@
1
- {
2
- "env": {
3
- "browser": true,
4
- "es2021": true
5
- },
6
- "extends": [
7
- "eslint:recommended",
8
- "plugin:@typescript-eslint/recommended",
9
- "plugin:jsdoc/recommended",
10
- "plugin:security/recommended"
11
- ],
12
- "parser": "@typescript-eslint/parser",
13
- "parserOptions": {
14
- "ecmaFeatures": { "js": true },
15
- "ecmaVersion": 2018,
16
- "project": "./tsconfig.json",
17
- "sourceType": "module"
18
- },
19
- "plugins": [
20
- "@typescript-eslint",
21
- "@typescript-eslint/tslint",
22
- "eslint-plugin-security",
23
- "jsdoc"
24
- ],
25
- "rules": {
26
- "use-isnan": "error",
27
- "security/detect-unsafe-regex":"error",
28
- "security/detect-buffer-noassert":"error",
29
- "security/detect-child-process":"error",
30
- "security/detect-disable-mustache-escape":"error",
31
- "security/detect-eval-with-expression":"error",
32
- "security/detect-no-csrf-before-method-override":"error",
33
- "security/detect-non-literal-fs-filename":"error",
34
- "security/detect-non-literal-regexp":"error",
35
- "security/detect-non-literal-require":"error",
36
- "security/detect-object-injection":"error",
37
- "security/detect-possible-timing-attacks":"error",
38
- "security/detect-pseudoRandomBytes":"error",
39
- "security/detect-new-buffer":"error",
40
- "security/detect-bidi-characters":"error",
41
- "@typescript-eslint/no-inferrable-types": "off",
42
- "@typescript-eslint/ban-types": ["warn", {
43
- "types": {
44
- "Object": false,
45
- "object": false,
46
- "{}": false,
47
- "Function": false
48
- }
49
- }],
50
- "jsdoc/check-tag-names": 0,
51
- "@typescript-eslint/tslint/config": [
52
- "error",
53
- {
54
- "rules": {
55
- "ban": true,
56
- "chai-vague-errors": true,
57
- "max-func-body-length": [
58
- true,
59
- 120,
60
- {
61
- "ignore-parameters-to-function-regex": "describe"
62
- }
63
- ],
64
- "missing-jsdoc": true,
65
- "no-backbone-get-set-outside-model": false,
66
- "no-cookies": false,
67
- "no-delete-expression": false,
68
- "no-disable-auto-sanitization": true,
69
- "no-duplicate-case": true,
70
- "no-duplicate-parameter-names": true,
71
- "no-empty-interfaces": false,
72
- "no-exec-script": true,
73
- "no-function-expression": false,
74
- "no-multiple-var-decl": false,
75
- "no-string-based-set-immediate": false,
76
- "no-string-based-set-interval": false,
77
- "no-unnecessary-bind": false,
78
- "no-unused-imports": true,
79
- "no-with-statement": false,
80
- "prefer-array-literal": false,
81
- "typedef": [
82
- true,
83
- "call-signature",
84
- "parameter",
85
- "property-declaration",
86
- "variable-declaration",
87
- "arrow-parameter",
88
- "member-variable-declaration"
89
- ],
90
- "use-named-parameter": false,
91
- "valid-typeof": true,
92
- "whitespace": [
93
- true,
94
- "check-branch",
95
- "check-decl",
96
- "check-operator",
97
- "check-separator",
98
- "check-type"
99
- ]
100
- }
101
- }
102
- ],
103
- "no-control-regex": "error",
104
- "no-constant-condition": "error",
105
- "no-invalid-regexp": "error",
106
- "curly": "error",
107
- "eol-last": [
108
- "error",
109
- "always"
110
- ],
111
- "guard-for-in": "error",
112
- "no-labels": "error",
113
- "max-len": [
114
- "error",
115
- {
116
- "code": 140,
117
- "tabWidth": 4,
118
- "ignoreComments": true,
119
- "ignoreStrings": true,
120
- "ignoreTemplateLiterals": true,
121
- "ignoreRegExpLiterals": true
122
- }
123
- ],
124
- "no-console": [
125
- "error",
126
- {
127
- "allow": [
128
- "warn",
129
- "dir",
130
- "timeLog",
131
- "assert",
132
- "clear",
133
- "count",
134
- "countReset",
135
- "group",
136
- "groupEnd",
137
- "table",
138
- "dirxml",
139
- "error",
140
- "groupCollapsed",
141
- "Console",
142
- "profile",
143
- "profileEnd",
144
- "timeStamp",
145
- "context"
146
- ]
147
- }
148
- ],
149
- "no-redeclare": [
150
- "error",
151
- {
152
- "builtinGlobals": true
153
- }
154
- ],
155
- "@typescript-eslint/no-parameter-properties": "error",
156
- "@typescript-eslint/indent": [
157
- "error",
158
- 4,
159
- {
160
- "CallExpression": {
161
- "arguments": "first"
162
- },
163
- "FunctionDeclaration": {
164
- "parameters": "first"
165
- },
166
- "FunctionExpression": {
167
- "parameters": "first"
168
- }
169
- }
170
- ],
171
- "no-debugger": "error",
172
- "no-eval": "error",
173
- "no-extra-semi": "error",
174
- "no-throw-literal": "error",
175
- "no-fallthrough": "error",
176
- "comma-dangle": [
177
- "error",
178
- "never"
179
- ],
180
- "no-trailing-spaces": "error",
181
- "@typescript-eslint/no-unused-expressions": "error",
182
- "@typescript-eslint/no-var-requires": "error",
183
- "one-var": [
184
- "error",
185
- "never"
186
- ],
187
- "@typescript-eslint/no-explicit-any": "error",
188
- "no-cond-assign": [
189
- "error",
190
- "always"
191
- ],
192
- "@typescript-eslint/consistent-type-assertions": "off",
193
- "jsdoc/check-alignment": "error",
194
- "no-empty": "error",
195
- "quotes": [
196
- "error",
197
- "single"
198
- ],
199
- "semi": [
200
- "error",
201
- "always"
202
- ],
203
- "eqeqeq": [
204
- "error",
205
- "smart"
206
- ],
207
- "valid-typeof": [
208
- "error",
209
- {
210
- "requireStringLiterals": true
211
- }
212
- ],
213
- "camelcase": [
214
- "error",
215
- {
216
- "properties": "always",
217
- "ignoreDestructuring": true,
218
- "ignoreImports": true
219
- }
220
- ],
221
- "no-irregular-whitespace": [
222
- "error",
223
- {
224
- "skipStrings": true,
225
- "skipComments": true,
226
- "skipRegExps": true,
227
- "skipTemplates": true
228
- }
229
- ],
230
- "valid-jsdoc": [
231
- "error",
232
- {
233
- "prefer": {
234
- "arg": "param",
235
- "argument": "param",
236
- "class": "constructor",
237
- "return": "returns",
238
- "virtual": "abstract"
239
- }
240
- }
241
- ],
242
- "no-var": "error",
243
- "radix": "error"
244
- },
245
- "reportUnusedDisableDirectives": true,
246
- "overrides": [
247
- {
248
- "files": [
249
- "node_modules",
250
- "dist",
251
- "public",
252
- "coverage",
253
- "test-report"
254
- ],
255
- "rules": {
256
- "no-unused-expressions": "off"
257
- }
258
- }
259
- ]
260
- }