@syncfusion/ej2-richtexteditor 27.1.55 → 27.1.57-643705

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 (233) hide show
  1. package/.eslintignore +4 -4
  2. package/.eslintrc.json +260 -260
  3. package/README.md +76 -76
  4. package/dist/ej2-richtexteditor.umd.min.js +1 -10
  5. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-richtexteditor.es2015.js +985 -738
  7. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  8. package/dist/es6/ej2-richtexteditor.es5.js +601 -352
  9. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  10. package/ej2-richtexteditor-component.sln +30 -0
  11. package/helpers/e2e/index.js +3 -3
  12. package/helpers/e2e/rte-helper.js +13 -13
  13. package/license +9 -9
  14. package/package.json +85 -85
  15. package/src/common/config.d.ts +7 -0
  16. package/src/common/config.js +12 -0
  17. package/src/common/interface.d.ts +10 -8
  18. package/src/common/util.js +2 -1
  19. package/src/editor-manager/base/classes.d.ts +1 -1
  20. package/src/editor-manager/base/classes.js +1 -1
  21. package/src/editor-manager/base/constant.d.ts +4 -0
  22. package/src/editor-manager/base/constant.js +4 -0
  23. package/src/editor-manager/base/editor-manager.d.ts +3 -3
  24. package/src/editor-manager/base/editor-manager.js +3 -3
  25. package/src/editor-manager/base/enum.d.ts +2 -2
  26. package/src/editor-manager/base/interface.d.ts +9 -9
  27. package/src/editor-manager/base/types.d.ts +1 -1
  28. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  29. package/src/editor-manager/plugin/alignments.js +2 -2
  30. package/src/editor-manager/plugin/audio.d.ts +3 -3
  31. package/src/editor-manager/plugin/audio.js +3 -3
  32. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  33. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  34. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  35. package/src/editor-manager/plugin/clearformat.js +1 -1
  36. package/src/editor-manager/plugin/dom-node.d.ts +36 -36
  37. package/src/editor-manager/plugin/dom-node.js +36 -36
  38. package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
  39. package/src/editor-manager/plugin/format-painter-actions.js +1 -1
  40. package/src/editor-manager/plugin/formats.d.ts +3 -2
  41. package/src/editor-manager/plugin/formats.js +27 -2
  42. package/src/editor-manager/plugin/image.d.ts +3 -3
  43. package/src/editor-manager/plugin/image.js +11 -5
  44. package/src/editor-manager/plugin/indents.d.ts +2 -2
  45. package/src/editor-manager/plugin/indents.js +2 -2
  46. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  47. package/src/editor-manager/plugin/insert-methods.js +4 -4
  48. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  49. package/src/editor-manager/plugin/insert-text.js +2 -2
  50. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  51. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  52. package/src/editor-manager/plugin/inserthtml.d.ts +4 -2
  53. package/src/editor-manager/plugin/inserthtml.js +98 -19
  54. package/src/editor-manager/plugin/isformatted.d.ts +9 -9
  55. package/src/editor-manager/plugin/isformatted.js +9 -9
  56. package/src/editor-manager/plugin/link.d.ts +2 -2
  57. package/src/editor-manager/plugin/link.js +2 -2
  58. package/src/editor-manager/plugin/lists.d.ts +2 -2
  59. package/src/editor-manager/plugin/lists.js +2 -2
  60. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +2 -1
  61. package/src/editor-manager/plugin/ms-word-clean-up.js +17 -1
  62. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  63. package/src/editor-manager/plugin/nodecutter.js +8 -8
  64. package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
  65. package/src/editor-manager/plugin/selection-commands.js +1 -1
  66. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  67. package/src/editor-manager/plugin/selection-exec.js +2 -2
  68. package/src/editor-manager/plugin/table.d.ts +2 -2
  69. package/src/editor-manager/plugin/table.js +2 -2
  70. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  71. package/src/editor-manager/plugin/toolbar-status.js +2 -2
  72. package/src/editor-manager/plugin/undo.d.ts +6 -6
  73. package/src/editor-manager/plugin/undo.js +6 -6
  74. package/src/editor-manager/plugin/video.d.ts +3 -3
  75. package/src/editor-manager/plugin/video.js +3 -3
  76. package/src/markdown-parser/base/interface.d.ts +10 -10
  77. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  78. package/src/markdown-parser/base/markdown-parser.js +3 -3
  79. package/src/markdown-parser/base/types.d.ts +1 -1
  80. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  81. package/src/markdown-parser/plugin/clearformat.js +2 -2
  82. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  83. package/src/markdown-parser/plugin/formats.js +2 -2
  84. package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
  85. package/src/markdown-parser/plugin/insert-text.js +2 -2
  86. package/src/markdown-parser/plugin/link.d.ts +2 -2
  87. package/src/markdown-parser/plugin/link.js +2 -2
  88. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  89. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  90. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  91. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  92. package/src/markdown-parser/plugin/table.d.ts +3 -3
  93. package/src/markdown-parser/plugin/table.js +3 -3
  94. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  95. package/src/markdown-parser/plugin/undo.js +6 -6
  96. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
  97. package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
  98. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  99. package/src/rich-text-editor/actions/base-toolbar.js +3 -3
  100. package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
  101. package/src/rich-text-editor/actions/color-picker.js +2 -2
  102. package/src/rich-text-editor/actions/count.d.ts +3 -3
  103. package/src/rich-text-editor/actions/count.js +3 -3
  104. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  105. package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
  106. package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
  107. package/src/rich-text-editor/actions/emoji-picker.js +1 -1
  108. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  109. package/src/rich-text-editor/actions/full-screen.js +3 -3
  110. package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
  111. package/src/rich-text-editor/actions/html-editor.js +12 -4
  112. package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
  113. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  114. package/src/rich-text-editor/actions/keyboard.js +20 -20
  115. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  116. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  117. package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
  118. package/src/rich-text-editor/actions/paste-clean-up.js +49 -22
  119. package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
  120. package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
  121. package/src/rich-text-editor/actions/resize.js +4 -0
  122. package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
  123. package/src/rich-text-editor/actions/toolbar.js +13 -13
  124. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  125. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  126. package/src/rich-text-editor/base/classes.d.ts +125 -125
  127. package/src/rich-text-editor/base/classes.js +125 -125
  128. package/src/rich-text-editor/base/constant.d.ts +158 -158
  129. package/src/rich-text-editor/base/constant.js +158 -158
  130. package/src/rich-text-editor/base/enum.d.ts +1 -1
  131. package/src/rich-text-editor/base/enum.js +1 -1
  132. package/src/rich-text-editor/base/interface.d.ts +51 -51
  133. package/src/rich-text-editor/base/interface.js +1 -1
  134. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +958 -958
  135. package/src/rich-text-editor/base/rich-text-editor.d.ts +62 -62
  136. package/src/rich-text-editor/base/rich-text-editor.js +68 -65
  137. package/src/rich-text-editor/base/util.d.ts +1 -1
  138. package/src/rich-text-editor/base/util.js +1 -1
  139. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  140. package/src/rich-text-editor/formatter/formatter.js +8 -8
  141. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  142. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  143. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  144. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  145. package/src/rich-text-editor/models/iframe-settings-model.d.ts +38 -38
  146. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  147. package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
  148. package/src/rich-text-editor/models/inline-mode.js +19 -19
  149. package/src/rich-text-editor/models/slash-menu-settings-model.d.ts +25 -25
  150. package/src/rich-text-editor/models/slash-menu-settings.js +19 -19
  151. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +807 -807
  152. package/src/rich-text-editor/models/toolbar-settings.js +19 -19
  153. package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
  154. package/src/rich-text-editor/renderer/audio-module.js +8 -2
  155. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  156. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  157. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
  158. package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
  159. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  160. package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
  161. package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
  162. package/src/rich-text-editor/renderer/image-module.js +58 -21
  163. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  164. package/src/rich-text-editor/renderer/link-module.js +4 -1
  165. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  166. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  167. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  168. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  169. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  170. package/src/rich-text-editor/renderer/render.js +2 -2
  171. package/src/rich-text-editor/renderer/slash-menu.js +9 -0
  172. package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
  173. package/src/rich-text-editor/renderer/table-module.js +5 -4
  174. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
  175. package/src/rich-text-editor/renderer/toolbar-renderer.js +9 -9
  176. package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
  177. package/src/rich-text-editor/renderer/video-module.js +8 -2
  178. package/src/rich-text-editor/renderer/view-source.d.ts +5 -5
  179. package/src/rich-text-editor/renderer/view-source.js +5 -5
  180. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  181. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  182. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  183. package/src/rich-text-editor/services/service-locator.js +3 -3
  184. package/src/selection/selection.d.ts +24 -23
  185. package/src/selection/selection.js +37 -34
  186. package/styles/_all.scss +1 -1
  187. package/styles/material3-dark.scss +1 -1
  188. package/styles/material3.scss +1 -1
  189. package/styles/rich-text-editor/_all.scss +2 -2
  190. package/styles/rich-text-editor/_bds-definition.scss +290 -290
  191. package/styles/rich-text-editor/_bigger.scss +610 -610
  192. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +291 -291
  193. package/styles/rich-text-editor/_bootstrap-definition.scss +349 -349
  194. package/styles/rich-text-editor/_bootstrap4-definition.scss +476 -476
  195. package/styles/rich-text-editor/_bootstrap5-definition.scss +278 -278
  196. package/styles/rich-text-editor/_bootstrap5.3-definition.scss +278 -278
  197. package/styles/rich-text-editor/_fabric-dark-definition.scss +275 -275
  198. package/styles/rich-text-editor/_fabric-definition.scss +273 -273
  199. package/styles/rich-text-editor/_fluent-definition.scss +279 -279
  200. package/styles/rich-text-editor/_fluent2-definition.scss +287 -287
  201. package/styles/rich-text-editor/_fusionnew-definition.scss +276 -276
  202. package/styles/rich-text-editor/_highcontrast-definition.scss +274 -274
  203. package/styles/rich-text-editor/_highcontrast-light-definition.scss +273 -273
  204. package/styles/rich-text-editor/_layout.scss +2180 -2180
  205. package/styles/rich-text-editor/_material-dark-definition.scss +278 -278
  206. package/styles/rich-text-editor/_material-definition.scss +276 -276
  207. package/styles/rich-text-editor/_material3-definition.scss +278 -278
  208. package/styles/rich-text-editor/_tailwind-definition.scss +273 -273
  209. package/styles/rich-text-editor/_theme.scss +844 -844
  210. package/styles/rich-text-editor/icons/_bds.scss +372 -372
  211. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +373 -373
  212. package/styles/rich-text-editor/icons/_bootstrap.scss +373 -373
  213. package/styles/rich-text-editor/icons/_bootstrap4.scss +373 -373
  214. package/styles/rich-text-editor/icons/_bootstrap5.3.scss +372 -372
  215. package/styles/rich-text-editor/icons/_bootstrap5.scss +372 -372
  216. package/styles/rich-text-editor/icons/_fabric-dark.scss +373 -373
  217. package/styles/rich-text-editor/icons/_fabric.scss +373 -373
  218. package/styles/rich-text-editor/icons/_fluent.scss +372 -372
  219. package/styles/rich-text-editor/icons/_fluent2.scss +369 -369
  220. package/styles/rich-text-editor/icons/_fusionnew.scss +357 -357
  221. package/styles/rich-text-editor/icons/_highcontrast-light.scss +361 -361
  222. package/styles/rich-text-editor/icons/_highcontrast.scss +373 -373
  223. package/styles/rich-text-editor/icons/_material-dark.scss +373 -373
  224. package/styles/rich-text-editor/icons/_material.scss +373 -373
  225. package/styles/rich-text-editor/icons/_material3.scss +372 -372
  226. package/styles/rich-text-editor/icons/_tailwind.scss +372 -372
  227. package/styles/rich-text-editor/material3-dark.scss +1 -1
  228. package/styles/rich-text-editor/material3.scss +1 -1
  229. package/dist/ej2-richtexteditor.min.js +0 -10
  230. package/dist/global/ej2-richtexteditor.min.js +0 -11
  231. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  232. package/dist/global/index.d.ts +0 -14
  233. package/tslint.json +0 -111
package/.eslintignore CHANGED
@@ -1,5 +1,5 @@
1
- /spec
2
- /dist
3
- /public
4
- /node_modules
1
+ /spec
2
+ /dist
3
+ /public
4
+ /node_modules
5
5
  /demos
package/.eslintrc.json CHANGED
@@ -1,261 +1,261 @@
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
- "ignorePatterns": ["*.d.ts", "*.js"],
20
- "plugins": [
21
- "@typescript-eslint",
22
- "@typescript-eslint/tslint",
23
- "eslint-plugin-security",
24
- "jsdoc"
25
- ],
26
- "rules": {
27
- "use-isnan": "error",
28
- "security/detect-unsafe-regex":"error",
29
- "security/detect-buffer-noassert":"error",
30
- "security/detect-child-process":"error",
31
- "security/detect-disable-mustache-escape":"error",
32
- "security/detect-eval-with-expression":"error",
33
- "security/detect-no-csrf-before-method-override":"error",
34
- "security/detect-non-literal-fs-filename":"error",
35
- "security/detect-non-literal-regexp":"error",
36
- "security/detect-non-literal-require":"error",
37
- "security/detect-object-injection":"error",
38
- "security/detect-possible-timing-attacks":"error",
39
- "security/detect-pseudoRandomBytes":"error",
40
- "security/detect-new-buffer":"error",
41
- "security/detect-bidi-characters":"error",
42
- "@typescript-eslint/no-inferrable-types": "off",
43
- "@typescript-eslint/ban-types": ["warn", {
44
- "types": {
45
- "Object": false,
46
- "object": false,
47
- "{}": false,
48
- "Function": false
49
- }
50
- }],
51
- "jsdoc/check-tag-names": 0,
52
- "@typescript-eslint/tslint/config": [
53
- "error",
54
- {
55
- "rules": {
56
- "ban": true,
57
- "chai-vague-errors": true,
58
- "max-func-body-length": [
59
- true,
60
- 120,
61
- {
62
- "ignore-parameters-to-function-regex": "describe"
63
- }
64
- ],
65
- "missing-jsdoc": true,
66
- "no-backbone-get-set-outside-model": false,
67
- "no-cookies": false,
68
- "no-delete-expression": false,
69
- "no-disable-auto-sanitization": true,
70
- "no-duplicate-case": true,
71
- "no-duplicate-parameter-names": true,
72
- "no-empty-interfaces": false,
73
- "no-exec-script": true,
74
- "no-function-expression": false,
75
- "no-multiple-var-decl": false,
76
- "no-string-based-set-immediate": false,
77
- "no-string-based-set-interval": false,
78
- "no-unnecessary-bind": false,
79
- "no-unused-imports": true,
80
- "no-with-statement": false,
81
- "prefer-array-literal": false,
82
- "typedef": [
83
- true,
84
- "call-signature",
85
- "parameter",
86
- "property-declaration",
87
- "variable-declaration",
88
- "arrow-parameter",
89
- "member-variable-declaration"
90
- ],
91
- "use-named-parameter": false,
92
- "valid-typeof": true,
93
- "whitespace": [
94
- true,
95
- "check-branch",
96
- "check-decl",
97
- "check-operator",
98
- "check-separator",
99
- "check-type"
100
- ]
101
- }
102
- }
103
- ],
104
- "no-control-regex": "error",
105
- "no-constant-condition": "error",
106
- "no-invalid-regexp": "error",
107
- "curly": "error",
108
- "eol-last": [
109
- "error",
110
- "always"
111
- ],
112
- "guard-for-in": "error",
113
- "no-labels": "error",
114
- "max-len": [
115
- "error",
116
- {
117
- "code": 140,
118
- "tabWidth": 4,
119
- "ignoreComments": true,
120
- "ignoreStrings": true,
121
- "ignoreTemplateLiterals": true,
122
- "ignoreRegExpLiterals": true
123
- }
124
- ],
125
- "no-console": [
126
- "error",
127
- {
128
- "allow": [
129
- "warn",
130
- "dir",
131
- "timeLog",
132
- "assert",
133
- "clear",
134
- "count",
135
- "countReset",
136
- "group",
137
- "groupEnd",
138
- "table",
139
- "dirxml",
140
- "error",
141
- "groupCollapsed",
142
- "Console",
143
- "profile",
144
- "profileEnd",
145
- "timeStamp",
146
- "context"
147
- ]
148
- }
149
- ],
150
- "no-redeclare": [
151
- "error",
152
- {
153
- "builtinGlobals": true
154
- }
155
- ],
156
- "@typescript-eslint/no-parameter-properties": "error",
157
- "@typescript-eslint/indent": [
158
- "error",
159
- 4,
160
- {
161
- "CallExpression": {
162
- "arguments": "first"
163
- },
164
- "FunctionDeclaration": {
165
- "parameters": "first"
166
- },
167
- "FunctionExpression": {
168
- "parameters": "first"
169
- }
170
- }
171
- ],
172
- "no-debugger": "error",
173
- "no-eval": "error",
174
- "no-extra-semi": "error",
175
- "no-throw-literal": "error",
176
- "no-fallthrough": "error",
177
- "comma-dangle": [
178
- "error",
179
- "never"
180
- ],
181
- "no-trailing-spaces": "error",
182
- "@typescript-eslint/no-unused-expressions": "error",
183
- "@typescript-eslint/no-var-requires": "error",
184
- "one-var": [
185
- "error",
186
- "never"
187
- ],
188
- "@typescript-eslint/no-explicit-any": "warn",
189
- "no-cond-assign": [
190
- "error",
191
- "always"
192
- ],
193
- "@typescript-eslint/consistent-type-assertions": "off",
194
- "jsdoc/check-alignment": "error",
195
- "no-empty": "error",
196
- "quotes": [
197
- "error",
198
- "single"
199
- ],
200
- "semi": [
201
- "error",
202
- "always"
203
- ],
204
- "eqeqeq": [
205
- "error",
206
- "smart"
207
- ],
208
- "valid-typeof": [
209
- "error",
210
- {
211
- "requireStringLiterals": true
212
- }
213
- ],
214
- "camelcase": [
215
- "error",
216
- {
217
- "properties": "always",
218
- "ignoreDestructuring": true,
219
- "ignoreImports": true
220
- }
221
- ],
222
- "no-irregular-whitespace": [
223
- "error",
224
- {
225
- "skipStrings": true,
226
- "skipComments": true,
227
- "skipRegExps": true,
228
- "skipTemplates": true
229
- }
230
- ],
231
- "valid-jsdoc": [
232
- "error",
233
- {
234
- "prefer": {
235
- "arg": "param",
236
- "argument": "param",
237
- "class": "constructor",
238
- "return": "returns",
239
- "virtual": "abstract"
240
- }
241
- }
242
- ],
243
- "no-var": "error",
244
- "radix": "error"
245
- },
246
- "reportUnusedDisableDirectives": true,
247
- "overrides": [
248
- {
249
- "files": [
250
- "node_modules",
251
- "dist",
252
- "public",
253
- "coverage",
254
- "test-report"
255
- ],
256
- "rules": {
257
- "no-unused-expressions": "off"
258
- }
259
- }
260
- ]
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
+ "ignorePatterns": ["*.d.ts", "*.js"],
20
+ "plugins": [
21
+ "@typescript-eslint",
22
+ "@typescript-eslint/tslint",
23
+ "eslint-plugin-security",
24
+ "jsdoc"
25
+ ],
26
+ "rules": {
27
+ "use-isnan": "error",
28
+ "security/detect-unsafe-regex":"error",
29
+ "security/detect-buffer-noassert":"error",
30
+ "security/detect-child-process":"error",
31
+ "security/detect-disable-mustache-escape":"error",
32
+ "security/detect-eval-with-expression":"error",
33
+ "security/detect-no-csrf-before-method-override":"error",
34
+ "security/detect-non-literal-fs-filename":"error",
35
+ "security/detect-non-literal-regexp":"error",
36
+ "security/detect-non-literal-require":"error",
37
+ "security/detect-object-injection":"error",
38
+ "security/detect-possible-timing-attacks":"error",
39
+ "security/detect-pseudoRandomBytes":"error",
40
+ "security/detect-new-buffer":"error",
41
+ "security/detect-bidi-characters":"error",
42
+ "@typescript-eslint/no-inferrable-types": "off",
43
+ "@typescript-eslint/ban-types": ["warn", {
44
+ "types": {
45
+ "Object": false,
46
+ "object": false,
47
+ "{}": false,
48
+ "Function": false
49
+ }
50
+ }],
51
+ "jsdoc/check-tag-names": 0,
52
+ "@typescript-eslint/tslint/config": [
53
+ "error",
54
+ {
55
+ "rules": {
56
+ "ban": true,
57
+ "chai-vague-errors": true,
58
+ "max-func-body-length": [
59
+ true,
60
+ 120,
61
+ {
62
+ "ignore-parameters-to-function-regex": "describe"
63
+ }
64
+ ],
65
+ "missing-jsdoc": true,
66
+ "no-backbone-get-set-outside-model": false,
67
+ "no-cookies": false,
68
+ "no-delete-expression": false,
69
+ "no-disable-auto-sanitization": true,
70
+ "no-duplicate-case": true,
71
+ "no-duplicate-parameter-names": true,
72
+ "no-empty-interfaces": false,
73
+ "no-exec-script": true,
74
+ "no-function-expression": false,
75
+ "no-multiple-var-decl": false,
76
+ "no-string-based-set-immediate": false,
77
+ "no-string-based-set-interval": false,
78
+ "no-unnecessary-bind": false,
79
+ "no-unused-imports": true,
80
+ "no-with-statement": false,
81
+ "prefer-array-literal": false,
82
+ "typedef": [
83
+ true,
84
+ "call-signature",
85
+ "parameter",
86
+ "property-declaration",
87
+ "variable-declaration",
88
+ "arrow-parameter",
89
+ "member-variable-declaration"
90
+ ],
91
+ "use-named-parameter": false,
92
+ "valid-typeof": true,
93
+ "whitespace": [
94
+ true,
95
+ "check-branch",
96
+ "check-decl",
97
+ "check-operator",
98
+ "check-separator",
99
+ "check-type"
100
+ ]
101
+ }
102
+ }
103
+ ],
104
+ "no-control-regex": "error",
105
+ "no-constant-condition": "error",
106
+ "no-invalid-regexp": "error",
107
+ "curly": "error",
108
+ "eol-last": [
109
+ "error",
110
+ "always"
111
+ ],
112
+ "guard-for-in": "error",
113
+ "no-labels": "error",
114
+ "max-len": [
115
+ "error",
116
+ {
117
+ "code": 140,
118
+ "tabWidth": 4,
119
+ "ignoreComments": true,
120
+ "ignoreStrings": true,
121
+ "ignoreTemplateLiterals": true,
122
+ "ignoreRegExpLiterals": true
123
+ }
124
+ ],
125
+ "no-console": [
126
+ "error",
127
+ {
128
+ "allow": [
129
+ "warn",
130
+ "dir",
131
+ "timeLog",
132
+ "assert",
133
+ "clear",
134
+ "count",
135
+ "countReset",
136
+ "group",
137
+ "groupEnd",
138
+ "table",
139
+ "dirxml",
140
+ "error",
141
+ "groupCollapsed",
142
+ "Console",
143
+ "profile",
144
+ "profileEnd",
145
+ "timeStamp",
146
+ "context"
147
+ ]
148
+ }
149
+ ],
150
+ "no-redeclare": [
151
+ "error",
152
+ {
153
+ "builtinGlobals": true
154
+ }
155
+ ],
156
+ "@typescript-eslint/no-parameter-properties": "error",
157
+ "@typescript-eslint/indent": [
158
+ "error",
159
+ 4,
160
+ {
161
+ "CallExpression": {
162
+ "arguments": "first"
163
+ },
164
+ "FunctionDeclaration": {
165
+ "parameters": "first"
166
+ },
167
+ "FunctionExpression": {
168
+ "parameters": "first"
169
+ }
170
+ }
171
+ ],
172
+ "no-debugger": "error",
173
+ "no-eval": "error",
174
+ "no-extra-semi": "error",
175
+ "no-throw-literal": "error",
176
+ "no-fallthrough": "error",
177
+ "comma-dangle": [
178
+ "error",
179
+ "never"
180
+ ],
181
+ "no-trailing-spaces": "error",
182
+ "@typescript-eslint/no-unused-expressions": "error",
183
+ "@typescript-eslint/no-var-requires": "error",
184
+ "one-var": [
185
+ "error",
186
+ "never"
187
+ ],
188
+ "@typescript-eslint/no-explicit-any": "warn",
189
+ "no-cond-assign": [
190
+ "error",
191
+ "always"
192
+ ],
193
+ "@typescript-eslint/consistent-type-assertions": "off",
194
+ "jsdoc/check-alignment": "error",
195
+ "no-empty": "error",
196
+ "quotes": [
197
+ "error",
198
+ "single"
199
+ ],
200
+ "semi": [
201
+ "error",
202
+ "always"
203
+ ],
204
+ "eqeqeq": [
205
+ "error",
206
+ "smart"
207
+ ],
208
+ "valid-typeof": [
209
+ "error",
210
+ {
211
+ "requireStringLiterals": true
212
+ }
213
+ ],
214
+ "camelcase": [
215
+ "error",
216
+ {
217
+ "properties": "always",
218
+ "ignoreDestructuring": true,
219
+ "ignoreImports": true
220
+ }
221
+ ],
222
+ "no-irregular-whitespace": [
223
+ "error",
224
+ {
225
+ "skipStrings": true,
226
+ "skipComments": true,
227
+ "skipRegExps": true,
228
+ "skipTemplates": true
229
+ }
230
+ ],
231
+ "valid-jsdoc": [
232
+ "error",
233
+ {
234
+ "prefer": {
235
+ "arg": "param",
236
+ "argument": "param",
237
+ "class": "constructor",
238
+ "return": "returns",
239
+ "virtual": "abstract"
240
+ }
241
+ }
242
+ ],
243
+ "no-var": "error",
244
+ "radix": "error"
245
+ },
246
+ "reportUnusedDisableDirectives": true,
247
+ "overrides": [
248
+ {
249
+ "files": [
250
+ "node_modules",
251
+ "dist",
252
+ "public",
253
+ "coverage",
254
+ "test-report"
255
+ ],
256
+ "rules": {
257
+ "no-unused-expressions": "off"
258
+ }
259
+ }
260
+ ]
261
261
  }