@syncfusion/ej2-richtexteditor 20.3.50 → 20.3.59

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.
Files changed (47) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/ej2-richtexteditor.min.js +2 -2
  3. package/dist/ej2-richtexteditor.umd.min.js +2 -2
  4. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-richtexteditor.es2015.js +14 -4
  6. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  7. package/dist/es6/ej2-richtexteditor.es5.js +14 -4
  8. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  9. package/dist/global/ej2-richtexteditor.min.js +2 -2
  10. package/dist/global/ej2-richtexteditor.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +13 -13
  13. package/src/editor-manager/plugin/ms-word-clean-up.js +1 -2
  14. package/src/rich-text-editor/actions/enter-key.js +8 -2
  15. package/src/rich-text-editor/actions/html-editor.js +5 -0
  16. package/styles/bootstrap-dark.css +1 -1
  17. package/styles/bootstrap.css +1 -1
  18. package/styles/bootstrap4.css +1 -1
  19. package/styles/bootstrap5-dark.css +1 -1
  20. package/styles/bootstrap5.css +1 -1
  21. package/styles/fabric-dark.css +1 -1
  22. package/styles/fabric.css +1 -1
  23. package/styles/fluent-dark.css +1 -1
  24. package/styles/fluent.css +1 -1
  25. package/styles/highcontrast-light.css +1 -1
  26. package/styles/highcontrast.css +1 -1
  27. package/styles/material-dark.css +1 -1
  28. package/styles/material.css +1 -1
  29. package/styles/rich-text-editor/bootstrap-dark.css +1 -1
  30. package/styles/rich-text-editor/bootstrap.css +1 -1
  31. package/styles/rich-text-editor/bootstrap4.css +1 -1
  32. package/styles/rich-text-editor/bootstrap5-dark.css +1 -1
  33. package/styles/rich-text-editor/bootstrap5.css +1 -1
  34. package/styles/rich-text-editor/fabric-dark.css +1 -1
  35. package/styles/rich-text-editor/fabric.css +1 -1
  36. package/styles/rich-text-editor/fluent-dark.css +1 -1
  37. package/styles/rich-text-editor/fluent.css +1 -1
  38. package/styles/rich-text-editor/highcontrast-light.css +1 -1
  39. package/styles/rich-text-editor/highcontrast.css +1 -1
  40. package/styles/rich-text-editor/material-dark.css +1 -1
  41. package/styles/rich-text-editor/material.css +1 -1
  42. package/styles/rich-text-editor/tailwind-dark.css +1 -1
  43. package/styles/rich-text-editor/tailwind.css +1 -1
  44. package/styles/tailwind-dark.css +1 -1
  45. package/styles/tailwind.css +1 -1
  46. package/.eslintrc.json +0 -244
  47. package/tslint.json +0 -111
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.3.50
3
+ * version : 20.3.59
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-richtexteditor@*",
3
- "_id": "@syncfusion/ej2-richtexteditor@20.3.47",
3
+ "_id": "@syncfusion/ej2-richtexteditor@20.3.56",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-sR1PTDb2civRyF9GrPTyTq1kw7/pwF1za5yGXl5KhpHJAlHzby7GYFaFihYOKnAIA8I9TE8iq5rnMCxL+TqrVg==",
5
+ "_integrity": "sha512-GX0LVZvQQDLl5IjbQCCiHxI1SsLtTTKpOq3j8e4Xgs/7SPn/ZVNWdV9K1wLcHer8DFruuZMW/4vsw0bDDn2mBg==",
6
6
  "_location": "/@syncfusion/ej2-richtexteditor",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -26,10 +26,10 @@
26
26
  "/@syncfusion/ej2-react-richtexteditor",
27
27
  "/@syncfusion/ej2-vue-richtexteditor"
28
28
  ],
29
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-20.3.47.tgz",
30
- "_shasum": "a4625621b42dbb6e52e3cee775237515d3ebe16b",
29
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-20.3.56.tgz",
30
+ "_shasum": "95846fbcc0d3e51f0339f71e72c675b64323b020",
31
31
  "_spec": "@syncfusion/ej2-richtexteditor@*",
32
- "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
32
+ "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
33
33
  "author": {
34
34
  "name": "Syncfusion Inc."
35
35
  },
@@ -38,13 +38,13 @@
38
38
  },
39
39
  "bundleDependencies": false,
40
40
  "dependencies": {
41
- "@syncfusion/ej2-base": "~20.3.50",
42
- "@syncfusion/ej2-buttons": "~20.3.50",
43
- "@syncfusion/ej2-filemanager": "~20.3.49",
44
- "@syncfusion/ej2-inputs": "~20.3.50",
45
- "@syncfusion/ej2-navigations": "~20.3.50",
46
- "@syncfusion/ej2-popups": "~20.3.50",
47
- "@syncfusion/ej2-splitbuttons": "~20.3.47"
41
+ "@syncfusion/ej2-base": "~20.3.56",
42
+ "@syncfusion/ej2-buttons": "~20.3.58",
43
+ "@syncfusion/ej2-filemanager": "~20.3.56",
44
+ "@syncfusion/ej2-inputs": "~20.3.57",
45
+ "@syncfusion/ej2-navigations": "~20.3.58",
46
+ "@syncfusion/ej2-popups": "~20.3.59",
47
+ "@syncfusion/ej2-splitbuttons": "~20.3.56"
48
48
  },
49
49
  "deprecated": false,
50
50
  "description": "Essential JS 2 RichTextEditor component",
@@ -70,6 +70,6 @@
70
70
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
71
71
  },
72
72
  "typings": "index.d.ts",
73
- "version": "20.3.50",
73
+ "version": "20.3.59",
74
74
  "sideEffects": false
75
75
  }
@@ -347,8 +347,7 @@ var MsWordPaste = /** @class */ (function () {
347
347
  }
348
348
  }
349
349
  }
350
- values[i] = valueSplit.join(';') + ';';
351
- var changedValue = styleProperty + values[i];
350
+ var changedValue = styleProperty + valueSplit.join(';') + ';';
352
351
  resultElem[j].setAttribute('style', changedValue);
353
352
  }
354
353
  else {
@@ -200,9 +200,15 @@ var EnterKeyAction = /** @class */ (function () {
200
200
  if (!isNearBlockLengthZero) {
201
201
  var currentFocusElem = insertElem;
202
202
  var finalFocusElem = void 0;
203
- while (!isNOU(currentFocusElem) && currentFocusElem.nodeName !== '#text') {
203
+ if (_this.range.startOffset === _this.range.endOffset && _this.range.startOffset != 0) {
204
+ while (!isNOU(currentFocusElem) && currentFocusElem.nodeName !== '#text' &&
205
+ currentFocusElem.nodeName !== 'BR') {
206
+ finalFocusElem = currentFocusElem;
207
+ currentFocusElem = currentFocusElem.lastChild;
208
+ }
209
+ }
210
+ else {
204
211
  finalFocusElem = currentFocusElem;
205
- currentFocusElem = currentFocusElem.lastChild;
206
212
  }
207
213
  finalFocusElem.innerHTML = '<br>';
208
214
  if (!isImageNode) {
@@ -278,6 +278,11 @@ var HtmlEditor = /** @class */ (function () {
278
278
  if (e.args.code === 'Backspace' && e.args.keyCode === 8 && currentRange.startOffset === 0 &&
279
279
  currentRange.endOffset === 0 && this.parent.getSelection().length === 0 && currentRange.startContainer.textContent.length > 0 &&
280
280
  currentRange.startContainer.parentElement.tagName !== 'TD' && currentRange.startContainer.parentElement.tagName !== 'TH') {
281
+ var checkNode = currentRange.startContainer.nodeName === '#text' ? currentRange.startContainer.parentElement : currentRange.startContainer;
282
+ if (!this.parent.formatter.editorManager.domNode.isBlockNode(checkNode) &&
283
+ !isNOU(checkNode.previousSibling) && checkNode.previousSibling.nodeName === 'BR') {
284
+ return;
285
+ }
281
286
  this.rangeElement = this.getRootBlockNode(currentRange.startContainer);
282
287
  if (this.rangeElement.tagName === 'OL' || this.rangeElement.tagName === 'UL') {
283
288
  var liElement = this.getRangeLiNode(currentRange.startContainer);
@@ -748,7 +748,7 @@
748
748
  }
749
749
  @media screen and (min-width: 992px) {
750
750
  .e-richtexteditor .e-rte-content .e-content,
751
- .e-richtexteditor .e-source-content .e-content {
751
+ .e-richtexteditor .e-source-content .e-content {
752
752
  font-size: 14px;
753
753
  }
754
754
  }
@@ -889,7 +889,7 @@
889
889
  }
890
890
  @media screen and (min-width: 992px) {
891
891
  .e-richtexteditor .e-rte-content .e-content,
892
- .e-richtexteditor .e-source-content .e-content {
892
+ .e-richtexteditor .e-source-content .e-content {
893
893
  font-size: 14px;
894
894
  }
895
895
  }
@@ -984,7 +984,7 @@
984
984
  }
985
985
  @media screen and (min-width: 992px) {
986
986
  .e-richtexteditor .e-rte-content .e-content,
987
- .e-richtexteditor .e-source-content .e-content {
987
+ .e-richtexteditor .e-source-content .e-content {
988
988
  font-size: 14px;
989
989
  }
990
990
  }
@@ -756,7 +756,7 @@
756
756
  }
757
757
  @media screen and (min-width: 992px) {
758
758
  .e-richtexteditor .e-rte-content .e-content,
759
- .e-richtexteditor .e-source-content .e-content {
759
+ .e-richtexteditor .e-source-content .e-content {
760
760
  font-size: 14px;
761
761
  }
762
762
  }
@@ -756,7 +756,7 @@
756
756
  }
757
757
  @media screen and (min-width: 992px) {
758
758
  .e-richtexteditor .e-rte-content .e-content,
759
- .e-richtexteditor .e-source-content .e-content {
759
+ .e-richtexteditor .e-source-content .e-content {
760
760
  font-size: 14px;
761
761
  }
762
762
  }
@@ -737,7 +737,7 @@
737
737
  }
738
738
  @media screen and (min-width: 992px) {
739
739
  .e-richtexteditor .e-rte-content .e-content,
740
- .e-richtexteditor .e-source-content .e-content {
740
+ .e-richtexteditor .e-source-content .e-content {
741
741
  font-size: 14px;
742
742
  }
743
743
  }
package/styles/fabric.css CHANGED
@@ -737,7 +737,7 @@
737
737
  }
738
738
  @media screen and (min-width: 992px) {
739
739
  .e-richtexteditor .e-rte-content .e-content,
740
- .e-richtexteditor .e-source-content .e-content {
740
+ .e-richtexteditor .e-source-content .e-content {
741
741
  font-size: 14px;
742
742
  }
743
743
  }
@@ -740,7 +740,7 @@
740
740
  }
741
741
  @media screen and (min-width: 992px) {
742
742
  .e-richtexteditor .e-rte-content .e-content,
743
- .e-richtexteditor .e-source-content .e-content {
743
+ .e-richtexteditor .e-source-content .e-content {
744
744
  font-size: 14px;
745
745
  }
746
746
  }
package/styles/fluent.css CHANGED
@@ -740,7 +740,7 @@
740
740
  }
741
741
  @media screen and (min-width: 992px) {
742
742
  .e-richtexteditor .e-rte-content .e-content,
743
- .e-richtexteditor .e-source-content .e-content {
743
+ .e-richtexteditor .e-source-content .e-content {
744
744
  font-size: 14px;
745
745
  }
746
746
  }
@@ -737,7 +737,7 @@
737
737
  }
738
738
  @media screen and (min-width: 992px) {
739
739
  .e-richtexteditor .e-rte-content .e-content,
740
- .e-richtexteditor .e-source-content .e-content {
740
+ .e-richtexteditor .e-source-content .e-content {
741
741
  font-size: 14px;
742
742
  }
743
743
  }
@@ -737,7 +737,7 @@
737
737
  }
738
738
  @media screen and (min-width: 992px) {
739
739
  .e-richtexteditor .e-rte-content .e-content,
740
- .e-richtexteditor .e-source-content .e-content {
740
+ .e-richtexteditor .e-source-content .e-content {
741
741
  font-size: 14px;
742
742
  }
743
743
  }
@@ -738,7 +738,7 @@
738
738
  }
739
739
  @media screen and (min-width: 992px) {
740
740
  .e-richtexteditor .e-rte-content .e-content,
741
- .e-richtexteditor .e-source-content .e-content {
741
+ .e-richtexteditor .e-source-content .e-content {
742
742
  font-size: 14px;
743
743
  }
744
744
  }
@@ -738,7 +738,7 @@
738
738
  }
739
739
  @media screen and (min-width: 992px) {
740
740
  .e-richtexteditor .e-rte-content .e-content,
741
- .e-richtexteditor .e-source-content .e-content {
741
+ .e-richtexteditor .e-source-content .e-content {
742
742
  font-size: 14px;
743
743
  }
744
744
  }
@@ -748,7 +748,7 @@
748
748
  }
749
749
  @media screen and (min-width: 992px) {
750
750
  .e-richtexteditor .e-rte-content .e-content,
751
- .e-richtexteditor .e-source-content .e-content {
751
+ .e-richtexteditor .e-source-content .e-content {
752
752
  font-size: 14px;
753
753
  }
754
754
  }
@@ -889,7 +889,7 @@
889
889
  }
890
890
  @media screen and (min-width: 992px) {
891
891
  .e-richtexteditor .e-rte-content .e-content,
892
- .e-richtexteditor .e-source-content .e-content {
892
+ .e-richtexteditor .e-source-content .e-content {
893
893
  font-size: 14px;
894
894
  }
895
895
  }
@@ -984,7 +984,7 @@
984
984
  }
985
985
  @media screen and (min-width: 992px) {
986
986
  .e-richtexteditor .e-rte-content .e-content,
987
- .e-richtexteditor .e-source-content .e-content {
987
+ .e-richtexteditor .e-source-content .e-content {
988
988
  font-size: 14px;
989
989
  }
990
990
  }
@@ -756,7 +756,7 @@
756
756
  }
757
757
  @media screen and (min-width: 992px) {
758
758
  .e-richtexteditor .e-rte-content .e-content,
759
- .e-richtexteditor .e-source-content .e-content {
759
+ .e-richtexteditor .e-source-content .e-content {
760
760
  font-size: 14px;
761
761
  }
762
762
  }
@@ -756,7 +756,7 @@
756
756
  }
757
757
  @media screen and (min-width: 992px) {
758
758
  .e-richtexteditor .e-rte-content .e-content,
759
- .e-richtexteditor .e-source-content .e-content {
759
+ .e-richtexteditor .e-source-content .e-content {
760
760
  font-size: 14px;
761
761
  }
762
762
  }
@@ -737,7 +737,7 @@
737
737
  }
738
738
  @media screen and (min-width: 992px) {
739
739
  .e-richtexteditor .e-rte-content .e-content,
740
- .e-richtexteditor .e-source-content .e-content {
740
+ .e-richtexteditor .e-source-content .e-content {
741
741
  font-size: 14px;
742
742
  }
743
743
  }
@@ -737,7 +737,7 @@
737
737
  }
738
738
  @media screen and (min-width: 992px) {
739
739
  .e-richtexteditor .e-rte-content .e-content,
740
- .e-richtexteditor .e-source-content .e-content {
740
+ .e-richtexteditor .e-source-content .e-content {
741
741
  font-size: 14px;
742
742
  }
743
743
  }
@@ -740,7 +740,7 @@
740
740
  }
741
741
  @media screen and (min-width: 992px) {
742
742
  .e-richtexteditor .e-rte-content .e-content,
743
- .e-richtexteditor .e-source-content .e-content {
743
+ .e-richtexteditor .e-source-content .e-content {
744
744
  font-size: 14px;
745
745
  }
746
746
  }
@@ -740,7 +740,7 @@
740
740
  }
741
741
  @media screen and (min-width: 992px) {
742
742
  .e-richtexteditor .e-rte-content .e-content,
743
- .e-richtexteditor .e-source-content .e-content {
743
+ .e-richtexteditor .e-source-content .e-content {
744
744
  font-size: 14px;
745
745
  }
746
746
  }
@@ -737,7 +737,7 @@
737
737
  }
738
738
  @media screen and (min-width: 992px) {
739
739
  .e-richtexteditor .e-rte-content .e-content,
740
- .e-richtexteditor .e-source-content .e-content {
740
+ .e-richtexteditor .e-source-content .e-content {
741
741
  font-size: 14px;
742
742
  }
743
743
  }
@@ -737,7 +737,7 @@
737
737
  }
738
738
  @media screen and (min-width: 992px) {
739
739
  .e-richtexteditor .e-rte-content .e-content,
740
- .e-richtexteditor .e-source-content .e-content {
740
+ .e-richtexteditor .e-source-content .e-content {
741
741
  font-size: 14px;
742
742
  }
743
743
  }
@@ -738,7 +738,7 @@
738
738
  }
739
739
  @media screen and (min-width: 992px) {
740
740
  .e-richtexteditor .e-rte-content .e-content,
741
- .e-richtexteditor .e-source-content .e-content {
741
+ .e-richtexteditor .e-source-content .e-content {
742
742
  font-size: 14px;
743
743
  }
744
744
  }
@@ -738,7 +738,7 @@
738
738
  }
739
739
  @media screen and (min-width: 992px) {
740
740
  .e-richtexteditor .e-rte-content .e-content,
741
- .e-richtexteditor .e-source-content .e-content {
741
+ .e-richtexteditor .e-source-content .e-content {
742
742
  font-size: 14px;
743
743
  }
744
744
  }
@@ -743,7 +743,7 @@
743
743
  }
744
744
  @media screen and (min-width: 992px) {
745
745
  .e-richtexteditor .e-rte-content .e-content,
746
- .e-richtexteditor .e-source-content .e-content {
746
+ .e-richtexteditor .e-source-content .e-content {
747
747
  font-size: 14px;
748
748
  }
749
749
  }
@@ -743,7 +743,7 @@
743
743
  }
744
744
  @media screen and (min-width: 992px) {
745
745
  .e-richtexteditor .e-rte-content .e-content,
746
- .e-richtexteditor .e-source-content .e-content {
746
+ .e-richtexteditor .e-source-content .e-content {
747
747
  font-size: 14px;
748
748
  }
749
749
  }
@@ -743,7 +743,7 @@
743
743
  }
744
744
  @media screen and (min-width: 992px) {
745
745
  .e-richtexteditor .e-rte-content .e-content,
746
- .e-richtexteditor .e-source-content .e-content {
746
+ .e-richtexteditor .e-source-content .e-content {
747
747
  font-size: 14px;
748
748
  }
749
749
  }
@@ -743,7 +743,7 @@
743
743
  }
744
744
  @media screen and (min-width: 992px) {
745
745
  .e-richtexteditor .e-rte-content .e-content,
746
- .e-richtexteditor .e-source-content .e-content {
746
+ .e-richtexteditor .e-source-content .e-content {
747
747
  font-size: 14px;
748
748
  }
749
749
  }
package/.eslintrc.json DELETED
@@ -1,244 +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
- ],
11
- "parser": "@typescript-eslint/parser",
12
- "parserOptions": {
13
- "ecmaFeatures": { "js": true },
14
- "ecmaVersion": 2018,
15
- "project": "./tsconfig.json",
16
- "sourceType": "module"
17
- },
18
- "plugins": [
19
- "@typescript-eslint",
20
- "@typescript-eslint/tslint",
21
- "jsdoc"
22
- ],
23
- "rules": {
24
- "use-isnan": "error",
25
- "@typescript-eslint/no-inferrable-types": "off",
26
- "@typescript-eslint/ban-types": ["warn", {
27
- "types": {
28
- "Object": false,
29
- "object": false,
30
- "{}": false,
31
- "Function": false
32
- }
33
- }],
34
- "jsdoc/check-tag-names": 0,
35
- "@typescript-eslint/tslint/config": [
36
- "error",
37
- {
38
- "rules": {
39
- "ban": true,
40
- "chai-vague-errors": true,
41
- "max-func-body-length": [
42
- true,
43
- 120,
44
- {
45
- "ignore-parameters-to-function-regex": "describe"
46
- }
47
- ],
48
- "missing-jsdoc": true,
49
- "no-backbone-get-set-outside-model": false,
50
- "no-cookies": false,
51
- "no-delete-expression": false,
52
- "no-disable-auto-sanitization": true,
53
- "no-duplicate-case": true,
54
- "no-duplicate-parameter-names": true,
55
- "no-empty-interfaces": false,
56
- "no-exec-script": true,
57
- "no-function-expression": false,
58
- "no-multiple-var-decl": false,
59
- "no-string-based-set-immediate": false,
60
- "no-string-based-set-interval": false,
61
- "no-unnecessary-bind": false,
62
- "no-unused-imports": true,
63
- "no-with-statement": false,
64
- "prefer-array-literal": false,
65
- "typedef": [
66
- true,
67
- "call-signature",
68
- "parameter",
69
- "property-declaration",
70
- "variable-declaration",
71
- "arrow-parameter",
72
- "member-variable-declaration"
73
- ],
74
- "use-named-parameter": false,
75
- "valid-typeof": true,
76
- "whitespace": [
77
- true,
78
- "check-branch",
79
- "check-decl",
80
- "check-operator",
81
- "check-separator",
82
- "check-type"
83
- ]
84
- }
85
- }
86
- ],
87
- "no-control-regex": "error",
88
- "no-constant-condition": "error",
89
- "no-invalid-regexp": "error",
90
- "curly": "error",
91
- "eol-last": [
92
- "error",
93
- "always"
94
- ],
95
- "guard-for-in": "error",
96
- "no-labels": "error",
97
- "max-len": [
98
- "error",
99
- {
100
- "code": 140,
101
- "tabWidth": 4,
102
- "ignoreComments": true,
103
- "ignoreStrings": true,
104
- "ignoreTemplateLiterals": true,
105
- "ignoreRegExpLiterals": true
106
- }
107
- ],
108
- "no-console": [
109
- "error",
110
- {
111
- "allow": [
112
- "warn",
113
- "dir",
114
- "timeLog",
115
- "assert",
116
- "clear",
117
- "count",
118
- "countReset",
119
- "group",
120
- "groupEnd",
121
- "table",
122
- "dirxml",
123
- "error",
124
- "groupCollapsed",
125
- "Console",
126
- "profile",
127
- "profileEnd",
128
- "timeStamp",
129
- "context"
130
- ]
131
- }
132
- ],
133
- "no-redeclare": [
134
- "error",
135
- {
136
- "builtinGlobals": true
137
- }
138
- ],
139
- "@typescript-eslint/no-parameter-properties": "error",
140
- "@typescript-eslint/indent": [
141
- "error",
142
- 4,
143
- {
144
- "CallExpression": {
145
- "arguments": "first"
146
- },
147
- "FunctionDeclaration": {
148
- "parameters": "first"
149
- },
150
- "FunctionExpression": {
151
- "parameters": "first"
152
- }
153
- }
154
- ],
155
- "no-debugger": "error",
156
- "no-eval": "error",
157
- "no-extra-semi": "error",
158
- "no-throw-literal": "error",
159
- "no-fallthrough": "error",
160
- "comma-dangle": [
161
- "error",
162
- "never"
163
- ],
164
- "no-trailing-spaces": "error",
165
- "@typescript-eslint/no-unused-expressions": "error",
166
- "@typescript-eslint/no-var-requires": "error",
167
- "one-var": [
168
- "error",
169
- "never"
170
- ],
171
- "@typescript-eslint/no-explicit-any": "error",
172
- "no-cond-assign": [
173
- "error",
174
- "always"
175
- ],
176
- "@typescript-eslint/consistent-type-assertions": "off",
177
- "jsdoc/check-alignment": "error",
178
- "no-empty": "error",
179
- "quotes": [
180
- "error",
181
- "single"
182
- ],
183
- "semi": [
184
- "error",
185
- "always"
186
- ],
187
- "eqeqeq": [
188
- "error",
189
- "smart"
190
- ],
191
- "valid-typeof": [
192
- "error",
193
- {
194
- "requireStringLiterals": true
195
- }
196
- ],
197
- "camelcase": [
198
- "error",
199
- {
200
- "properties": "always",
201
- "ignoreDestructuring": true,
202
- "ignoreImports": true
203
- }
204
- ],
205
- "no-irregular-whitespace": [
206
- "error",
207
- {
208
- "skipStrings": true,
209
- "skipComments": true,
210
- "skipRegExps": true,
211
- "skipTemplates": true
212
- }
213
- ],
214
- "valid-jsdoc": [
215
- "error",
216
- {
217
- "prefer": {
218
- "arg": "param",
219
- "argument": "param",
220
- "class": "constructor",
221
- "return": "returns",
222
- "virtual": "abstract"
223
- }
224
- }
225
- ],
226
- "no-var": "error",
227
- "radix": "error"
228
- },
229
- "reportUnusedDisableDirectives": true,
230
- "overrides": [
231
- {
232
- "files": [
233
- "node_modules",
234
- "dist",
235
- "public",
236
- "coverage",
237
- "test-report"
238
- ],
239
- "rules": {
240
- "no-unused-expressions": "off"
241
- }
242
- }
243
- ]
244
- }