@syncfusion/ej2-dropdowns 21.1.39 → 21.1.41

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 : 21.1.39
3
+ * version : 21.1.41
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@21.1.38",
3
+ "_id": "@syncfusion/ej2-dropdowns@21.1.39",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-bgFJ9w349eBLXYNpagCVatm/G/3fXwSngP9B0w6ilE8P0s1/sIkUnC1f0V7tLEdtuckbli7kvqKN0AOzasJdww==",
5
+ "_integrity": "sha512-bXqP2npzcbIF+Xw8qGhaIVs9CNEqnv0N26wvYDreqGf1FOgo8zdTWDa/7v+iWgfAVMOcE0ZEFJr8ukgjVtSefQ==",
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-21.1.38.tgz",
38
- "_shasum": "88d99e1b3f49f61a702e9c0b149160d3ef053e11",
37
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-21.1.39.tgz",
38
+ "_shasum": "8e5d468eeb0d6336e003e619657f6fce7661e111",
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": "~21.1.39",
46
+ "@syncfusion/ej2-base": "~21.1.40",
47
47
  "@syncfusion/ej2-data": "~21.1.38",
48
48
  "@syncfusion/ej2-inputs": "~21.1.39",
49
- "@syncfusion/ej2-lists": "~21.1.39",
49
+ "@syncfusion/ej2-lists": "~21.1.41",
50
50
  "@syncfusion/ej2-navigations": "~21.1.39",
51
- "@syncfusion/ej2-popups": "~21.1.37"
51
+ "@syncfusion/ej2-popups": "~21.1.41"
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": "21.1.39",
76
+ "version": "21.1.41",
77
77
  "sideEffects": false,
78
78
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
79
79
  }
@@ -248,6 +248,9 @@ var DropDownBase = /** @class */ (function (_super) {
248
248
  var noDataCompTemp = compiledString({}, this, templateName, templateId, this.isStringTemplate, null, ele);
249
249
  if (noDataCompTemp && noDataCompTemp.length > 0) {
250
250
  for (var i = 0; i < noDataCompTemp.length; i++) {
251
+ if (this.getModuleName() === 'listbox' && templateName === 'noRecordsTemplate') {
252
+ noDataCompTemp[i].classList.add('e-list-nr-template');
253
+ }
251
254
  ele.appendChild(noDataCompTemp[i]);
252
255
  }
253
256
  }
@@ -288,7 +291,13 @@ var DropDownBase = /** @class */ (function (_super) {
288
291
  };
289
292
  DropDownBase.prototype.getFormattedValue = function (value) {
290
293
  if (this.listData && this.listData.length) {
291
- var item = this.typeOfData(this.listData);
294
+ var item = void 0;
295
+ if (this.properties.allowCustomValue && this.properties.value && this.properties.value instanceof Array && this.properties.value.length > 0) {
296
+ item = this.typeOfData(this.properties.value);
297
+ }
298
+ else {
299
+ item = this.typeOfData(this.listData);
300
+ }
292
301
  if (typeof getValue((this.fields.value ? this.fields.value : 'value'), item.item) === 'number'
293
302
  || item.typeof === 'number') {
294
303
  return parseFloat(value);
@@ -345,6 +345,7 @@ export declare class DropDownTree extends Component<HTMLElement> implements INot
345
345
  private clearIconWidth;
346
346
  private isClicked;
347
347
  private isCheckAllCalled;
348
+ private isFromFilterChange;
348
349
  /**
349
350
  * Specifies the template that renders to the popup list content of the
350
351
  * Dropdown Tree component when the data fetch request from the remote server fails.
@@ -170,6 +170,7 @@ var DropDownTree = /** @class */ (function (_super) {
170
170
  _this.isClicked = false;
171
171
  // Specifies if the checkAll method has been called
172
172
  _this.isCheckAllCalled = false;
173
+ _this.isFromFilterChange = false;
173
174
  return _this;
174
175
  }
175
176
  /**
@@ -383,6 +384,7 @@ var DropDownTree = /** @class */ (function (_super) {
383
384
  };
384
385
  DropDownTree.prototype.filterHandler = function (value, event) {
385
386
  var _this = this;
387
+ this.isFromFilterChange = true;
386
388
  if (!this.isFilteredData) {
387
389
  this.treeData = this.treeObj.getTreeData();
388
390
  }
@@ -1659,7 +1661,7 @@ var DropDownTree = /** @class */ (function (_super) {
1659
1661
  this.isDocumentClick = false;
1660
1662
  e.preventDefault();
1661
1663
  }
1662
- else if (this.inputWrapper != null && !this.inputWrapper.contains(target) && this.inputFocus && !isFilter) {
1664
+ else if (!isNOU(this.inputWrapper) && !this.inputWrapper.contains(target) && this.inputFocus && !isFilter) {
1663
1665
  this.focusOut(e);
1664
1666
  }
1665
1667
  };
@@ -2078,7 +2080,8 @@ var DropDownTree = /** @class */ (function (_super) {
2078
2080
  };
2079
2081
  DropDownTree.prototype.setMultiSelectValue = function (newValues) {
2080
2082
  if (!this.isFilteredData) {
2081
- this.setProperties({ value: newValues }, true);
2083
+ this.setProperties({ value: this.isFromFilterChange && newValues && newValues.length == 0 ? this.value : newValues }, true);
2084
+ this.isFromFilterChange = false;
2082
2085
  if (newValues && newValues.length !== 0 && !this.showCheckBox) {
2083
2086
  this.treeObj.selectedNodes = this.value.slice();
2084
2087
  this.treeObj.dataBind();
@@ -427,17 +427,26 @@ var ListBox = /** @class */ (function (_super) {
427
427
  var scrollMoved = 36;
428
428
  var scrollHeight = 10;
429
429
  if (this.itemTemplate && args.target) {
430
- scrollHeight = args.target.scrollHeight;
430
+ if (args.target && args.target.closest('.e-list-item')) {
431
+ scrollHeight = args.target.closest('.e-list-item').scrollHeight;
432
+ }
433
+ else {
434
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
435
+ var listItem = args.element.querySelector('.e-list-item');
436
+ if (listItem) {
437
+ scrollHeight = listItem.scrollHeight;
438
+ }
439
+ }
431
440
  }
432
441
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
433
442
  var event = args.event;
434
443
  var wrapper;
435
444
  if (args.target && (args.target.classList.contains('e-listbox-wrapper') || args.target.classList.contains('e-list-item')
436
- || (args.target.parentElement && args.target.parentElement.classList.contains('e-list-item'))
437
- || args.target.classList.contains('e-filter-parent') || args.target.classList.contains('e-input-group'))) {
445
+ || args.target.classList.contains('e-filter-parent') || args.target.classList.contains('e-input-group')
446
+ || args.target.closest('.e-list-item'))) {
438
447
  if (args.target.classList.contains('e-list-item') || args.target.classList.contains('e-filter-parent')
439
- || (args.target.parentElement && args.target.parentElement.classList.contains('e-list-item'))
440
- || args.target.classList.contains('e-input-group')) {
448
+ || args.target.classList.contains('e-input-group')
449
+ || args.target.closest('.e-list-item')) {
441
450
  wrapper = args.target.closest('.e-listbox-wrapper');
442
451
  }
443
452
  else {
@@ -245,7 +245,9 @@ var MultiSelect = /** @class */ (function (_super) {
245
245
  this.trigger('open', eventArgs, function (eventArgs) {
246
246
  if (!eventArgs.cancel) {
247
247
  _this.focusAtFirstListItem();
248
- document.body.appendChild(_this.popupObj.element);
248
+ if (_this.popupObj) {
249
+ document.body.appendChild(_this.popupObj.element);
250
+ }
249
251
  if (_this.mode === 'CheckBox' && _this.enableGroupCheckBox && !isNullOrUndefined(_this.fields.groupBy)) {
250
252
  _this.updateListItems(_this.list.querySelectorAll('li.e-list-item'), _this.mainList.querySelectorAll('li.e-list-item'));
251
253
  }
@@ -254,7 +256,9 @@ var MultiSelect = /** @class */ (function (_super) {
254
256
  }
255
257
  _this.refreshPopup();
256
258
  _this.renderReactTemplates();
257
- _this.popupObj.show(eventArgs.animation, (_this.zIndex === 1000) ? _this.element : null);
259
+ if (_this.popupObj) {
260
+ _this.popupObj.show(eventArgs.animation, (_this.zIndex === 1000) ? _this.element : null);
261
+ }
258
262
  attributes(_this.inputElement, { 'aria-expanded': 'true', 'aria-owns': _this.inputElement.id + '_options' });
259
263
  _this.updateAriaActiveDescendant();
260
264
  if (_this.isFirstClick) {
@@ -1428,6 +1432,9 @@ var MultiSelect = /** @class */ (function (_super) {
1428
1432
  this.refreshSelection();
1429
1433
  }
1430
1434
  }
1435
+ else if (!isNullOrUndefined(this.fields.groupBy) && this.value && this.value.length) {
1436
+ this.refreshSelection();
1437
+ }
1431
1438
  };
1432
1439
  MultiSelect.prototype.removeSelectedChip = function (e) {
1433
1440
  var selectedElem = this.chipCollectionWrapper.querySelector('span.' + CHIP_SELECTED);
@@ -3044,7 +3051,7 @@ var MultiSelect = /** @class */ (function (_super) {
3044
3051
  overAllContainer = this.componentWrapper.offsetWidth -
3045
3052
  parseInt(window.getComputedStyle(this.componentWrapper).paddingLeft, 10) -
3046
3053
  parseInt(window.getComputedStyle(this.componentWrapper).paddingRight, 10);
3047
- if ((wrapperleng + downIconWidth + this.clearIconWidth) >= overAllContainer) {
3054
+ if ((wrapperleng + downIconWidth + this.clearIconWidth) > overAllContainer) {
3048
3055
  if (tempData !== undefined && tempData !== '') {
3049
3056
  temp = tempData;
3050
3057
  index = tempIndex + 1;
@@ -3053,7 +3060,7 @@ var MultiSelect = /** @class */ (function (_super) {
3053
3060
  remaining = this.value.length - index;
3054
3061
  wrapperleng = this.viewWrapper.offsetWidth +
3055
3062
  parseInt(window.getComputedStyle(this.viewWrapper).paddingRight, 10);
3056
- while (((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) >= overAllContainer) && wrapperleng !== 0
3063
+ while (((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) > overAllContainer) && wrapperleng !== 0
3057
3064
  && this.viewWrapper.innerHTML !== '') {
3058
3065
  var textArr = [];
3059
3066
  this.viewWrapper.innerHTML = textArr.join(this.delimiterChar);
@@ -3063,7 +3070,7 @@ var MultiSelect = /** @class */ (function (_super) {
3063
3070
  }
3064
3071
  break;
3065
3072
  }
3066
- else if ((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) < overAllContainer) {
3073
+ else if ((wrapperleng + remainSize + downIconWidth + this.clearIconWidth) <= overAllContainer) {
3067
3074
  tempData = data;
3068
3075
  tempIndex = index;
3069
3076
  }
@@ -1553,7 +1553,7 @@ ejs-dropdownlist {
1553
1553
  margin-top: -38px;
1554
1554
  right: 18px;
1555
1555
  top: 100%;
1556
- width: 16px;
1556
+ width: 32px;
1557
1557
  }
1558
1558
 
1559
1559
  .e-multiselect.e-filled .e-multi-select-wrapper .e-chips-close.e-close-hooker {
@@ -1561,16 +1561,16 @@ ejs-dropdownlist {
1561
1561
  margin-top: -35px;
1562
1562
  right: 18px;
1563
1563
  top: 100%;
1564
- width: 16px;
1564
+ width: 32px;
1565
1565
  }
1566
1566
 
1567
1567
  .e-multiselect.e-outline .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker,
1568
1568
  .e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
1569
- right: 52px;
1569
+ right: 30px;
1570
1570
  }
1571
1571
 
1572
1572
  .e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
1573
- right: 52px;
1573
+ right: 30px;
1574
1574
  }
1575
1575
 
1576
1576
  .e-bigger.e-small.e-multiselect.e-outline .e-multi-select-wrapper .e-chips-close.e-close-hooker,
@@ -1608,7 +1608,7 @@ ejs-dropdownlist {
1608
1608
  margin-top: -38px;
1609
1609
  right: 18px;
1610
1610
  top: 100%;
1611
- width: 16px;
1611
+ width: 32px;
1612
1612
  }
1613
1613
 
1614
1614
  .e-multiselect.e-filled .e-multi-select-wrapper .e-chips-close.e-close-hooker {
@@ -1616,16 +1616,16 @@ ejs-dropdownlist {
1616
1616
  margin-top: -35px;
1617
1617
  right: 18px;
1618
1618
  top: 100%;
1619
- width: 16px;
1619
+ width: 32px;
1620
1620
  }
1621
1621
 
1622
1622
  .e-multiselect.e-outline .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker,
1623
1623
  .e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
1624
- right: 52px;
1624
+ right: 30px;
1625
1625
  }
1626
1626
 
1627
1627
  .e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
1628
- right: 52px;
1628
+ right: 30px;
1629
1629
  }
1630
1630
 
1631
1631
  .e-bigger.e-small.e-multiselect.e-outline .e-multi-select-wrapper .e-chips-close.e-close-hooker,
@@ -30,7 +30,7 @@
30
30
  margin-top: -38px;
31
31
  right: 18px;
32
32
  top: 100%;
33
- width: 16px;
33
+ width: 32px;
34
34
  }
35
35
  }
36
36
 
@@ -40,20 +40,20 @@
40
40
  margin-top: -35px;
41
41
  right: 18px;
42
42
  top: 100%;
43
- width: 16px;
43
+ width: 32px;
44
44
  }
45
45
  }
46
46
 
47
47
  .e-multiselect.e-outline .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker,
48
48
  .e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
49
49
  @if $ddl-multiselect-skin-name == 'material' {
50
- right: 52px;
50
+ right: 30px;
51
51
  }
52
52
  }
53
53
 
54
54
  .e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
55
55
  @if $ddl-multiselect-skin-name == 'material' {
56
- right: 52px;
56
+ right: 30px;
57
57
  }
58
58
  }
59
59
 
@@ -30,7 +30,7 @@
30
30
  margin-top: -38px;
31
31
  right: 18px;
32
32
  top: 100%;
33
- width: 16px;
33
+ width: 32px;
34
34
  }
35
35
  }
36
36
 
@@ -40,20 +40,20 @@
40
40
  margin-top: -35px;
41
41
  right: 18px;
42
42
  top: 100%;
43
- width: 16px;
43
+ width: 32px;
44
44
  }
45
45
  }
46
46
 
47
47
  .e-multiselect.e-outline .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker,
48
48
  .e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
49
49
  @if $ddl-multiselect-skin-name == 'material' {
50
- right: 52px;
50
+ right: 30px;
51
51
  }
52
52
  }
53
53
 
54
54
  .e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
55
55
  @if $ddl-multiselect-skin-name == 'material' {
56
- right: 52px;
56
+ right: 30px;
57
57
  }
58
58
  }
59
59
 
@@ -65,7 +65,7 @@
65
65
  margin-top: -38px;
66
66
  right: 18px;
67
67
  top: 100%;
68
- width: 16px;
68
+ width: 32px;
69
69
  }
70
70
 
71
71
  .e-multiselect.e-filled .e-multi-select-wrapper .e-chips-close.e-close-hooker {
@@ -73,16 +73,16 @@
73
73
  margin-top: -35px;
74
74
  right: 18px;
75
75
  top: 100%;
76
- width: 16px;
76
+ width: 32px;
77
77
  }
78
78
 
79
79
  .e-multiselect.e-outline .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker,
80
80
  .e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
81
- right: 52px;
81
+ right: 30px;
82
82
  }
83
83
 
84
84
  .e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
85
- right: 52px;
85
+ right: 30px;
86
86
  }
87
87
 
88
88
  .e-bigger.e-small.e-multiselect.e-outline .e-multi-select-wrapper .e-chips-close.e-close-hooker,
@@ -73,7 +73,7 @@
73
73
  margin-top: -38px;
74
74
  right: 18px;
75
75
  top: 100%;
76
- width: 16px;
76
+ width: 32px;
77
77
  }
78
78
 
79
79
  .e-multiselect.e-filled .e-multi-select-wrapper .e-chips-close.e-close-hooker {
@@ -81,16 +81,16 @@
81
81
  margin-top: -35px;
82
82
  right: 18px;
83
83
  top: 100%;
84
- width: 16px;
84
+ width: 32px;
85
85
  }
86
86
 
87
87
  .e-multiselect.e-outline .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker,
88
88
  .e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
89
- right: 52px;
89
+ right: 30px;
90
90
  }
91
91
 
92
92
  .e-multiselect.e-filled .e-multi-select-wrapper.e-down-icon .e-chips-close.e-close-hooker {
93
- right: 52px;
93
+ right: 30px;
94
94
  }
95
95
 
96
96
  .e-bigger.e-small.e-multiselect.e-outline .e-multi-select-wrapper .e-chips-close.e-close-hooker,
package/.eslintrc.json DELETED
@@ -1,259 +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
- "@typescript-eslint/no-inferrable-types": "off",
41
- "@typescript-eslint/ban-types": ["warn", {
42
- "types": {
43
- "Object": false,
44
- "object": false,
45
- "{}": false,
46
- "Function": false
47
- }
48
- }],
49
- "jsdoc/check-tag-names": 0,
50
- "@typescript-eslint/tslint/config": [
51
- "error",
52
- {
53
- "rules": {
54
- "ban": true,
55
- "chai-vague-errors": true,
56
- "max-func-body-length": [
57
- true,
58
- 120,
59
- {
60
- "ignore-parameters-to-function-regex": "describe"
61
- }
62
- ],
63
- "missing-jsdoc": true,
64
- "no-backbone-get-set-outside-model": false,
65
- "no-cookies": false,
66
- "no-delete-expression": false,
67
- "no-disable-auto-sanitization": true,
68
- "no-duplicate-case": true,
69
- "no-duplicate-parameter-names": true,
70
- "no-empty-interfaces": false,
71
- "no-exec-script": true,
72
- "no-function-expression": false,
73
- "no-multiple-var-decl": false,
74
- "no-string-based-set-immediate": false,
75
- "no-string-based-set-interval": false,
76
- "no-unnecessary-bind": false,
77
- "no-unused-imports": true,
78
- "no-with-statement": false,
79
- "prefer-array-literal": false,
80
- "typedef": [
81
- true,
82
- "call-signature",
83
- "parameter",
84
- "property-declaration",
85
- "variable-declaration",
86
- "arrow-parameter",
87
- "member-variable-declaration"
88
- ],
89
- "use-named-parameter": false,
90
- "valid-typeof": true,
91
- "whitespace": [
92
- true,
93
- "check-branch",
94
- "check-decl",
95
- "check-operator",
96
- "check-separator",
97
- "check-type"
98
- ]
99
- }
100
- }
101
- ],
102
- "no-control-regex": "error",
103
- "no-constant-condition": "error",
104
- "no-invalid-regexp": "error",
105
- "curly": "error",
106
- "eol-last": [
107
- "error",
108
- "always"
109
- ],
110
- "guard-for-in": "error",
111
- "no-labels": "error",
112
- "max-len": [
113
- "error",
114
- {
115
- "code": 140,
116
- "tabWidth": 4,
117
- "ignoreComments": true,
118
- "ignoreStrings": true,
119
- "ignoreTemplateLiterals": true,
120
- "ignoreRegExpLiterals": true
121
- }
122
- ],
123
- "no-console": [
124
- "error",
125
- {
126
- "allow": [
127
- "warn",
128
- "dir",
129
- "timeLog",
130
- "assert",
131
- "clear",
132
- "count",
133
- "countReset",
134
- "group",
135
- "groupEnd",
136
- "table",
137
- "dirxml",
138
- "error",
139
- "groupCollapsed",
140
- "Console",
141
- "profile",
142
- "profileEnd",
143
- "timeStamp",
144
- "context"
145
- ]
146
- }
147
- ],
148
- "no-redeclare": [
149
- "error",
150
- {
151
- "builtinGlobals": true
152
- }
153
- ],
154
- "@typescript-eslint/no-parameter-properties": "error",
155
- "@typescript-eslint/indent": [
156
- "error",
157
- 4,
158
- {
159
- "CallExpression": {
160
- "arguments": "first"
161
- },
162
- "FunctionDeclaration": {
163
- "parameters": "first"
164
- },
165
- "FunctionExpression": {
166
- "parameters": "first"
167
- }
168
- }
169
- ],
170
- "no-debugger": "error",
171
- "no-eval": "error",
172
- "no-extra-semi": "error",
173
- "no-throw-literal": "error",
174
- "no-fallthrough": "error",
175
- "comma-dangle": [
176
- "error",
177
- "never"
178
- ],
179
- "no-trailing-spaces": "error",
180
- "@typescript-eslint/no-unused-expressions": "error",
181
- "@typescript-eslint/no-var-requires": "error",
182
- "one-var": [
183
- "error",
184
- "never"
185
- ],
186
- "@typescript-eslint/no-explicit-any": "error",
187
- "no-cond-assign": [
188
- "error",
189
- "always"
190
- ],
191
- "@typescript-eslint/consistent-type-assertions": "off",
192
- "jsdoc/check-alignment": "error",
193
- "no-empty": "error",
194
- "quotes": [
195
- "error",
196
- "single"
197
- ],
198
- "semi": [
199
- "error",
200
- "always"
201
- ],
202
- "eqeqeq": [
203
- "error",
204
- "smart"
205
- ],
206
- "valid-typeof": [
207
- "error",
208
- {
209
- "requireStringLiterals": true
210
- }
211
- ],
212
- "camelcase": [
213
- "error",
214
- {
215
- "properties": "always",
216
- "ignoreDestructuring": true,
217
- "ignoreImports": true
218
- }
219
- ],
220
- "no-irregular-whitespace": [
221
- "error",
222
- {
223
- "skipStrings": true,
224
- "skipComments": true,
225
- "skipRegExps": true,
226
- "skipTemplates": true
227
- }
228
- ],
229
- "valid-jsdoc": [
230
- "error",
231
- {
232
- "prefer": {
233
- "arg": "param",
234
- "argument": "param",
235
- "class": "constructor",
236
- "return": "returns",
237
- "virtual": "abstract"
238
- }
239
- }
240
- ],
241
- "no-var": "error",
242
- "radix": "error"
243
- },
244
- "reportUnusedDisableDirectives": true,
245
- "overrides": [
246
- {
247
- "files": [
248
- "node_modules",
249
- "dist",
250
- "public",
251
- "coverage",
252
- "test-report"
253
- ],
254
- "rules": {
255
- "no-unused-expressions": "off"
256
- }
257
- }
258
- ]
259
- }