@pumpn/eslint-config 17.2.4 → 18.0.0

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 (209) hide show
  1. package/_common/_exports.js +5 -0
  2. package/_common/all-extensions/_exports.js +1 -0
  3. package/_common/all-extensions/js-extensions.js +10 -0
  4. package/_common/all-extensions.js +6 -0
  5. package/_common/convert-extensions-to-glob.js +12 -0
  6. package/_common/js-jsx-extensions.js +3 -0
  7. package/_common/ts-extensions.js +10 -0
  8. package/_common/ts-jsx-extensions.js +3 -0
  9. package/config/_common/_exports.js +5 -0
  10. package/config/_common/add-prefix-to-rules.js +13 -0
  11. package/config/_common/core-json-rules.js +24 -0
  12. package/config/_common/json-plugins.js +9 -0
  13. package/config/_common/pick-unicorn-rules-for-language/_exports.js +2 -0
  14. package/config/_common/pick-unicorn-rules-for-language/pick-rules-for-language.js +52 -0
  15. package/config/_common/pick-unicorn-rules-for-language/unicorn/_exports.js +9 -0
  16. package/config/_common/pick-unicorn-rules-for-language/unicorn/binary-group-length.js +3 -0
  17. package/config/_common/pick-unicorn-rules-for-language/unicorn/hexadecimal-group-length.js +3 -0
  18. package/config/_common/pick-unicorn-rules-for-language/unicorn/maximum-nested-calls.js +3 -0
  19. package/config/_common/pick-unicorn-rules-for-language/unicorn/number-group-length.js +3 -0
  20. package/config/_common/pick-unicorn-rules-for-language/unicorn/octal-group-length.js +3 -0
  21. package/config/_common/pick-unicorn-rules-for-language/unicorn/patterns.js +28 -0
  22. package/config/_common/pick-unicorn-rules-for-language/unicorn/unicorn-consistency-rules/_exports.js +1 -0
  23. package/config/_common/pick-unicorn-rules-for-language/unicorn/unicorn-consistency-rules/consistent-function-style.js +3 -0
  24. package/config/_common/pick-unicorn-rules-for-language/unicorn/unicorn-consistency-rules.js +66 -0
  25. package/config/_common/pick-unicorn-rules-for-language/unicorn/unicorn-preference-rules.js +199 -0
  26. package/config/_common/pick-unicorn-rules-for-language/unicorn/unicorn-redundancy-rules.js +47 -0
  27. package/config/_common/pick-unicorn-rules-for-language/unicorn.js +368 -0
  28. package/config/_common/pick-unicorn-rules-for-language.js +14 -0
  29. package/config/_exports.js +11 -0
  30. package/config/converted-globals.js +16 -0
  31. package/config/css-config/_exports.js +2 -0
  32. package/config/css-config/css-plugins.js +9 -0
  33. package/config/css-config/css-rules/_exports.js +1 -0
  34. package/config/css-config/css-rules/core-css-rules.js +25 -0
  35. package/config/css-config/css-rules.js +10 -0
  36. package/config/css-config.js +17 -0
  37. package/config/default-glob.js +6 -0
  38. package/config/html-config/_exports.js +2 -0
  39. package/config/html-config/html-plugins.js +9 -0
  40. package/config/html-config/html-rules/_exports.js +1 -0
  41. package/config/html-config/html-rules/core-html-rules/_exports.js +4 -0
  42. package/config/html-config/html-rules/core-html-rules/core-html-accessibility-rules.js +28 -0
  43. package/config/html-config/html-rules/core-html-rules/core-html-best-practice-rules.js +42 -0
  44. package/config/html-config/html-rules/core-html-rules/core-html-seo-rules.js +16 -0
  45. package/config/html-config/html-rules/core-html-rules/core-html-style-rules.js +23 -0
  46. package/config/html-config/html-rules/core-html-rules.js +27 -0
  47. package/config/html-config/html-rules.js +10 -0
  48. package/config/html-config.js +12 -0
  49. package/config/json-config/_exports.js +1 -0
  50. package/config/json-config/json-rules.js +9 -0
  51. package/config/json-config.js +13 -0
  52. package/config/jsonc-config/_exports.js +1 -0
  53. package/config/jsonc-config/jsonc-rules.js +9 -0
  54. package/config/jsonc-config.js +26 -0
  55. package/config/jsx-glob/_exports.js +1 -0
  56. package/config/jsx-glob/jsx-extensions.js +6 -0
  57. package/config/jsx-glob.js +7 -0
  58. package/config/md-config/_exports.js +2 -0
  59. package/config/md-config/md-plugins.js +9 -0
  60. package/config/md-config/md-rules/_exports.js +1 -0
  61. package/config/md-config/md-rules/core-md-rules.js +30 -0
  62. package/config/md-config/md-rules.js +10 -0
  63. package/config/md-config.js +15 -0
  64. package/{plugins.js → config/plugins.js} +7 -6
  65. package/{rules → config/rules}/_common/_exports.js +0 -1
  66. package/{rules → config/rules}/_exports.js +1 -4
  67. package/config/rules/better-tailwindcss/correctness.js +13 -0
  68. package/config/rules/better-tailwindcss/stylistic.js +42 -0
  69. package/config/rules/better-tailwindcss.js +15 -0
  70. package/config/rules/command.js +17 -0
  71. package/config/rules/depend.js +17 -0
  72. package/config/rules/eslint-comments/best-practices.js +14 -0
  73. package/config/rules/eslint-comments/stylistic-issues.js +17 -0
  74. package/config/rules/eslint-comments.js +15 -0
  75. package/config/rules/import-x/helpful-warnings.js +26 -0
  76. package/config/rules/import-x/module-systems.js +14 -0
  77. package/config/rules/import-x/static-analysis.js +40 -0
  78. package/config/rules/import-x/style-guide/_exports.js +1 -0
  79. package/config/rules/import-x/style-guide/max-dependencies.js +3 -0
  80. package/config/rules/import-x/style-guide.js +94 -0
  81. package/config/rules/import-x.js +22 -0
  82. package/config/rules/jsdoc.js +464 -0
  83. package/config/rules/no-secrets/_exports.js +1 -0
  84. package/config/rules/no-secrets/tolerance.js +3 -0
  85. package/config/rules/no-secrets.js +30 -0
  86. package/config/rules/perfectionist.js +331 -0
  87. package/config/rules/promise.js +53 -0
  88. package/config/rules/react/core.js +69 -0
  89. package/config/rules/react/debug.js +14 -0
  90. package/config/rules/react/dom.js +25 -0
  91. package/config/rules/react/jsx.js +23 -0
  92. package/config/rules/react/naming-convention.js +12 -0
  93. package/config/rules/react/rsc.js +10 -0
  94. package/config/rules/react/web-api.js +15 -0
  95. package/config/rules/react.js +28 -0
  96. package/config/rules/regexp/best-practices.js +47 -0
  97. package/config/rules/regexp/possible-errors.js +31 -0
  98. package/config/rules/regexp/stylistic-issues.js +79 -0
  99. package/config/rules/regexp.js +20 -0
  100. package/config/rules/security.js +31 -0
  101. package/config/rules/sonarjs/problem.js +134 -0
  102. package/config/rules/sonarjs/suggestion.js +167 -0
  103. package/config/rules/sonarjs.js +15 -0
  104. package/config/rules/stylistic/_common/_exports.js +1 -0
  105. package/{rules → config/rules}/stylistic/_exports.js +1 -1
  106. package/config/rules/stylistic/brackets/_exports.js +2 -0
  107. package/config/rules/stylistic/brackets/min-elements-for-curly-newline.js +3 -0
  108. package/config/rules/stylistic/brackets/wrap-multilines-default.js +3 -0
  109. package/config/rules/stylistic/brackets.js +90 -0
  110. package/config/rules/stylistic/commas.js +18 -0
  111. package/config/rules/stylistic/comments.js +13 -0
  112. package/config/rules/stylistic/disallow.js +36 -0
  113. package/config/rules/stylistic/indent.js +19 -0
  114. package/config/rules/stylistic/jsx.js +42 -0
  115. package/config/rules/stylistic/linebreaks/_exports.js +1 -0
  116. package/config/rules/stylistic/linebreaks/max-ignored-chain-depth.js +3 -0
  117. package/config/rules/stylistic/linebreaks.js +67 -0
  118. package/config/rules/stylistic/misc.js +49 -0
  119. package/config/rules/stylistic/operators.js +31 -0
  120. package/config/rules/stylistic/quotes.js +12 -0
  121. package/config/rules/stylistic/semis.js +19 -0
  122. package/config/rules/stylistic/spacing.js +68 -0
  123. package/config/rules/stylistic/types.js +12 -0
  124. package/config/rules/stylistic.js +40 -0
  125. package/config/rules/suggestions/_exports.js +9 -0
  126. package/config/rules/suggestions/max-classes-per-file.js +3 -0
  127. package/config/rules/suggestions/max-depth.js +3 -0
  128. package/config/rules/suggestions/max-identifier-length.js +3 -0
  129. package/config/rules/suggestions/max-lines-per-file.js +3 -0
  130. package/config/rules/suggestions/max-lines-per-function.js +3 -0
  131. package/config/rules/suggestions/max-nested-callbacks.js +3 -0
  132. package/config/rules/suggestions/max-parameters.js +3 -0
  133. package/config/rules/suggestions/max-statements.js +3 -0
  134. package/config/rules/suggestions/min-identifier-length.js +3 -0
  135. package/{rules → config/rules}/suggestions.js +17 -15
  136. package/config/rules.js +50 -0
  137. package/config/ts-glob.js +6 -0
  138. package/config.js +51 -53
  139. package/package.json +51 -38
  140. package/.ls-lint.yml +0 -6
  141. package/.vscode/settings.json +0 -18
  142. package/deno.json +0 -78
  143. package/deno.lock +0 -1632
  144. package/eslint.config.js +0 -25
  145. package/rules/better-tailwindcss/correctness.js +0 -7
  146. package/rules/better-tailwindcss/stylistic.js +0 -38
  147. package/rules/better-tailwindcss.js +0 -19
  148. package/rules/command.js +0 -12
  149. package/rules/depend.js +0 -12
  150. package/rules/eslint-comments/best-practices.js +0 -9
  151. package/rules/eslint-comments/stylistic-issues.js +0 -12
  152. package/rules/eslint-comments.js +0 -19
  153. package/rules/import-x/helpful-warnings.js +0 -21
  154. package/rules/import-x/module-systems.js +0 -9
  155. package/rules/import-x/static-analysis.js +0 -35
  156. package/rules/import-x/style-guide.js +0 -89
  157. package/rules/import-x.js +0 -19
  158. package/rules/jsdoc.js +0 -433
  159. package/rules/no-secrets.js +0 -25
  160. package/rules/perfectionist.js +0 -318
  161. package/rules/promise.js +0 -48
  162. package/rules/react/core.js +0 -59
  163. package/rules/react/debug.js +0 -6
  164. package/rules/react/dom.js +0 -15
  165. package/rules/react/jsx.js +0 -18
  166. package/rules/react/naming-convention.js +0 -6
  167. package/rules/react/rsc.js +0 -5
  168. package/rules/react/web-api.js +0 -10
  169. package/rules/react.js +0 -19
  170. package/rules/regexp/best-practices.js +0 -42
  171. package/rules/regexp/possible-errors.js +0 -26
  172. package/rules/regexp/stylistic-issues.js +0 -74
  173. package/rules/regexp.js +0 -19
  174. package/rules/security.js +0 -25
  175. package/rules/sonarjs/problem.js +0 -123
  176. package/rules/sonarjs/suggestion.js +0 -135
  177. package/rules/sonarjs.js +0 -19
  178. package/rules/stylistic/_common/_exports.js +0 -3
  179. package/rules/stylistic/brackets.js +0 -87
  180. package/rules/stylistic/commas.js +0 -13
  181. package/rules/stylistic/comments.js +0 -8
  182. package/rules/stylistic/disallow.js +0 -31
  183. package/rules/stylistic/indent.js +0 -14
  184. package/rules/stylistic/jsx.js +0 -37
  185. package/rules/stylistic/linebreaks.js +0 -63
  186. package/rules/stylistic/misc.js +0 -45
  187. package/rules/stylistic/operators.js +0 -26
  188. package/rules/stylistic/quotes.js +0 -7
  189. package/rules/stylistic/semis.js +0 -14
  190. package/rules/stylistic/spacing.js +0 -63
  191. package/rules/stylistic/types.js +0 -7
  192. package/rules/stylistic.js +0 -19
  193. package/rules/unicorn.js +0 -306
  194. package/rules.js +0 -19
  195. package/scripts/update-import-map.js +0 -47
  196. package/scripts/update-package-json.js +0 -66
  197. package/scripts/update-tsconfig.js +0 -46
  198. package/tsconfig.json +0 -27
  199. /package/{rules → config}/_common/tab-width.js +0 -0
  200. /package/{rules → config/rules}/_common/maximum-line-length.js +0 -0
  201. /package/{rules → config/rules}/better-tailwindcss/_exports.js +0 -0
  202. /package/{rules → config/rules}/eslint-comments/_exports.js +0 -0
  203. /package/{rules → config/rules}/import-x/_exports.js +0 -0
  204. /package/{rules → config/rules}/layout-and-formatting.js +0 -0
  205. /package/{rules → config/rules}/possible-problems.js +0 -0
  206. /package/{rules → config/rules}/react/_exports.js +0 -0
  207. /package/{rules → config/rules}/regexp/_exports.js +0 -0
  208. /package/{rules → config/rules}/sonarjs/_exports.js +0 -0
  209. /package/{rules → config/rules}/stylistic/_common/min-items-for-array-newline.js +0 -0
package/rules/jsdoc.js DELETED
@@ -1,433 +0,0 @@
1
- /**
2
- * @import { Linter } from "eslint";
3
- */
4
-
5
- /**
6
- * @satisfies {Linter.RulesRecord}
7
- */
8
- const jsdocRules = {
9
- "jsdoc/check-access": "warn",
10
- "jsdoc/check-alignment": ["warn", { innerIndent: 1 }],
11
- "jsdoc/check-indentation": [
12
- "warn",
13
- {
14
- allowIndentedSections: true,
15
- excludeTags: ["example", "typedef"]
16
- }
17
- ],
18
- "jsdoc/check-line-alignment": "off",
19
- "jsdoc/check-param-names": "warn",
20
- "jsdoc/check-property-names": "warn",
21
- "jsdoc/check-syntax": "warn",
22
- "jsdoc/check-tag-names": [
23
- "warn",
24
- {
25
- definedTags: ["category", "component"],
26
- inlineTags: [
27
- "link",
28
- "linkcode",
29
- "linkplain",
30
- "tutorial"
31
- ]
32
- }
33
- ],
34
- "jsdoc/check-template-names": "off",
35
- "jsdoc/check-types": "warn",
36
- "jsdoc/check-values": "warn",
37
- "jsdoc/convert-to-jsdoc-comments": [
38
- "warn",
39
- {
40
- allowedPrefixes: [
41
- "@ts-",
42
- "istanbul ",
43
- "c8 ",
44
- "v8 ",
45
- "eslint",
46
- "prettier-",
47
- "TODO",
48
- "MARK"
49
- ],
50
- enableFixer: true,
51
- enforceJsdocLineStyle: "multi",
52
- lineOrBlockStyle: "both"
53
- }
54
- ],
55
- "jsdoc/empty-tags": "warn",
56
- "jsdoc/escape-inline-tags": [
57
- "warn",
58
- {
59
- allowedInlineTags: [],
60
- enableFixer: true,
61
- fixType: "backslash"
62
- }
63
- ],
64
- "jsdoc/implements-on-classes": "warn",
65
- "jsdoc/imports-as-dependencies": "off",
66
- "jsdoc/informative-docs": "warn",
67
- "jsdoc/lines-before-block": [
68
- "warn",
69
- {
70
- excludedTags: ["type"],
71
- ignoreSameLine: true,
72
- lines: 1
73
- }
74
- ],
75
- "jsdoc/match-description": "off",
76
- "jsdoc/match-name": "off",
77
- "jsdoc/multiline-blocks": "warn",
78
- "jsdoc/no-bad-blocks": ["warn", { preventAllMultiAsteriskBlocks: true }],
79
- "jsdoc/no-blank-block-descriptions": "off",
80
- "jsdoc/no-blank-blocks": "off",
81
- "jsdoc/no-defaults": "warn",
82
- "jsdoc/no-missing-syntax": "off",
83
- "jsdoc/no-multi-asterisks": "warn",
84
- "jsdoc/no-restricted-syntax": "off",
85
- "jsdoc/no-types": "off",
86
- "jsdoc/no-undefined-types": [
87
- "off",
88
- {
89
- checkUsedTypedefs: true,
90
- definedTypes: ["Iterable", "IterableIterator"]
91
- }
92
- ],
93
- "jsdoc/prefer-import-tag": [
94
- "warn",
95
- {
96
- enableFixer: true,
97
- exemptTypedefs: false,
98
- outputType: "named-import"
99
- }
100
- ],
101
- "jsdoc/reject-any-type": "warn",
102
- "jsdoc/reject-function-type": "warn",
103
- "jsdoc/require-asterisk-prefix": [
104
- "warn",
105
- "always",
106
- {
107
- tags: {
108
- any: ["typedef"]
109
- }
110
- }
111
- ],
112
- "jsdoc/require-description": [
113
- "off",
114
- {
115
- contexts: [
116
- // "ArrayExpression",
117
- "ArrowFunctionExpression",
118
- // "AssignmentExpression",
119
- // "AwaitExpression",
120
- // "BinaryExpression",
121
- // "CallExpression",
122
- // "ChainExpression",
123
- // "Class",
124
- "ClassDeclaration",
125
- "ClassExpression",
126
- // "ClassHasInstanceExpression",
127
- // "ConditionalExpression",
128
- // "DoExpression",
129
- // "ExportAllDeclaration",
130
- // "ExportDefaultDeclaration",
131
- // "ExportNamedDeclaration",
132
- // "Expression"
133
- // "ExpressionStatement",
134
- "FunctionDeclaration",
135
- "FunctionExpression",
136
- // "ImportDeclaration",
137
- // "ImportExpression",
138
- // "LogicalExpression",
139
- // "LogicalExpression",
140
- // "MemberExpression",
141
- "MethodDefinition"
142
- // "ModuleDeclarations",
143
- // "ModuleExpression",
144
- // "NewExpression",
145
- // "ObjectExpression"
146
- // "PropertyDefinition",
147
- // "RecordExpression",
148
- // "SequenceExpression",
149
- // "SliceExpression",
150
- // "StaticBlock",
151
- // "TaggedTemplateExpression",
152
- // "ThisExpression",
153
- // "TupleExpression",
154
- // "UnaryExpression",
155
- // "VariableDeclaration",
156
- // "VariableDeclarator",
157
- // "YieldExpression"
158
- ],
159
- descriptionStyle: "body"
160
- }
161
- ],
162
- "jsdoc/require-description-complete-sentence": "off",
163
- "jsdoc/require-example": "off",
164
- "jsdoc/require-file-overview": [
165
- "off",
166
- {
167
- tags: {
168
- file: {
169
- initialCommentsOnly: true,
170
- mustExist: true,
171
- preventDuplicates: true
172
- },
173
- license: {
174
- initialCommentsOnly: true,
175
- mustExist: true,
176
- preventDuplicates: true
177
- }
178
- }
179
- }
180
- ],
181
- "jsdoc/require-hyphen-before-param-description": ["warn", "always"],
182
- "jsdoc/require-jsdoc": "off",
183
- "jsdoc/require-next-description": "off",
184
- "jsdoc/require-next-type": "warn",
185
- "jsdoc/require-param": ["warn", { unnamedRootBase: ["options"] }],
186
- "jsdoc/require-param-description": [
187
- "off",
188
- {
189
- setDefaultDestructuredRootDescription: true
190
- }
191
- ],
192
- "jsdoc/require-param-name": "warn",
193
- "jsdoc/require-param-type": "warn",
194
- "jsdoc/require-property": "warn",
195
- "jsdoc/require-property-description": "off",
196
- "jsdoc/require-property-name": "warn",
197
- "jsdoc/require-property-type": "warn",
198
- "jsdoc/require-rejects": "off",
199
- "jsdoc/require-returns": "off",
200
- "jsdoc/require-returns-check": "warn",
201
- "jsdoc/require-returns-description": "off",
202
- "jsdoc/require-returns-type": "warn",
203
- "jsdoc/require-template": [
204
- "off",
205
- {
206
- requireSeparateTemplates: true
207
- }
208
- ],
209
- "jsdoc/require-template-description": "off",
210
- "jsdoc/require-throws": "warn",
211
- "jsdoc/require-throws-description": "warn",
212
- "jsdoc/require-throws-type": "warn",
213
- "jsdoc/require-yields": "warn",
214
- "jsdoc/require-yields-check": "warn",
215
- "jsdoc/require-yields-description": "off",
216
- "jsdoc/require-yields-type": "warn",
217
- "jsdoc/sort-tags": [
218
- "warn",
219
- {
220
- tagSequence: [
221
- {
222
- tags: [
223
- // Brief descriptions
224
- "summary",
225
- "typeSummary",
226
-
227
- // Module/file-level
228
- "module",
229
- "exports",
230
- "file",
231
- "fileoverview",
232
- "overview",
233
-
234
- // Identifying (name, type)
235
- "template",
236
- "typedef",
237
- "interface",
238
- "record",
239
- "name",
240
- "kind",
241
- "type",
242
- "alias",
243
- "external",
244
- "host",
245
- "callback",
246
- "func",
247
- "function",
248
- "method",
249
- "class",
250
- "constructor",
251
-
252
- // Relationships
253
- "overload",
254
- "modifies",
255
- "mixes",
256
- "mixin",
257
- "mixinClass",
258
- "mixinFunction",
259
- "namespace",
260
- "borrows",
261
- "constructs",
262
- "lends",
263
- "implements",
264
- "requires",
265
-
266
- // Long descriptions
267
- "desc",
268
- "description",
269
- "classdesc",
270
- "tutorial",
271
- "copyright",
272
- "license",
273
-
274
- // Simple annotations
275
- "const",
276
- "constant",
277
- "final",
278
- "global",
279
- "readonly",
280
- "abstract",
281
- "virtual",
282
- "var",
283
- "member",
284
- "memberof",
285
- "memberof!",
286
- "inner",
287
- "instance",
288
- "inheritdoc",
289
- "inheritDoc",
290
- "override",
291
- "hideconstructor",
292
- "component",
293
-
294
- // Core function/object info
295
- "param",
296
- "arg",
297
- "argument",
298
- "prop",
299
- "property",
300
- "return",
301
- "returns",
302
-
303
- // Important behavior details
304
- "async",
305
- "generator",
306
- "default",
307
- "defaultvalue",
308
- "enum",
309
- "augments",
310
- "extends",
311
- "throws",
312
- "exception",
313
- "yield",
314
- "yields",
315
- "event",
316
- "fires",
317
- "emits",
318
- "listens",
319
- "this",
320
-
321
- // Access
322
- "static",
323
- "private",
324
- "protected",
325
- "public",
326
- "access",
327
- "package",
328
-
329
- "-other",
330
-
331
- // Supplementary descriptions
332
- "see",
333
- "example",
334
-
335
- // METADATA
336
-
337
- // Other Closure (undocumented) metadata
338
- "closurePrimitive",
339
- "customElement",
340
- "expose",
341
- "hidden",
342
- "idGenerator",
343
- "meaning",
344
- "ngInject",
345
- "owner",
346
- "wizaction",
347
-
348
- // Other Closure (documented) metadata
349
- "define",
350
- "dict",
351
- "export",
352
- "externs",
353
- "implicitCast",
354
- "noalias",
355
- "nocollapse",
356
- "nocompile",
357
- "noinline",
358
- "nosideeffects",
359
- "polymer",
360
- "polymerBehavior",
361
- "preserve",
362
- "struct",
363
- "suppress",
364
- "unrestricted",
365
-
366
- // @homer0/prettier-plugin-jsdoc metadata
367
- "category",
368
-
369
- // Non-Closure metadata
370
- "ignore",
371
- "author",
372
- "version",
373
- "variation",
374
- "since",
375
- "deprecated",
376
- "todo"
377
- ]
378
- }
379
- ]
380
- }
381
- ],
382
- "jsdoc/tag-lines": [
383
- "warn",
384
- "never",
385
- {
386
- startLines: 1
387
- }
388
- ],
389
- "jsdoc/text-escaping": "off",
390
- "jsdoc/ts-method-signature-style": ["warn", "property", { enableFixer: true }],
391
- "jsdoc/ts-no-empty-object-type": "warn",
392
- "jsdoc/ts-no-unnecessary-template-expression": ["warn", { enableFixer: true }],
393
- "jsdoc/ts-prefer-function-type": ["warn", { enableFixer: true }],
394
- "jsdoc/type-formatting": [
395
- "off",
396
- {
397
- arrayBrackets: "square",
398
- arrowFunctionPostReturnMarkerSpacing: " ",
399
- arrowFunctionPreReturnMarkerSpacing: " ",
400
- enableFixer: true,
401
- functionOrClassParameterSpacing: " ",
402
- functionOrClassPostGenericSpacing: "",
403
- functionOrClassPostReturnMarkerSpacing: "",
404
- functionOrClassPreReturnMarkerSpacing: "",
405
- functionOrClassTypeParameterSpacing: " ",
406
- genericAndTupleElementSpacing: " ",
407
- genericDot: false,
408
- keyValuePostColonSpacing: " ",
409
- keyValuePostKeySpacing: "",
410
- keyValuePostOptionalSpacing: "",
411
- keyValuePostVariadicSpacing: "",
412
- methodQuotes: "double",
413
- objectFieldIndent: "\t",
414
- objectFieldQuote: null,
415
- objectFieldSeparator: "comma-and-linebreak",
416
- objectFieldSeparatorOptionalLinebreak: true,
417
- objectFieldSeparatorTrailingPunctuation: false,
418
- objectTypeBracketSpacing: "",
419
- parameterDefaultValueSpacing: " ",
420
- postMethodNameSpacing: "",
421
- postNewSpacing: " ",
422
- separatorForSingleObjectField: false,
423
- stringQuotes: "double",
424
- trailingPunctuationMultilineOnly: false,
425
- typeBracketSpacing: "",
426
- unionSpacing: " "
427
- }
428
- ],
429
- "jsdoc/valid-types": "off",
430
- "jsodc/require-tags": "off"
431
- };
432
-
433
- export default jsdocRules;
@@ -1,25 +0,0 @@
1
- /**
2
- * @import { Linter } from "eslint";
3
- */
4
-
5
- const tolerance = 5;
6
-
7
- /**
8
- * @satisfies {Linter.RulesRecord}
9
- */
10
- const noSecretsRules = {
11
- "no-secrets/no-secrets": [
12
- "error",
13
- {
14
- additionalDelimiters: [],
15
- additionalRegexes: {},
16
- ignoreCase: false,
17
- ignoreContent: [],
18
- ignoreIdentifiers: [],
19
- ignoreModules: true,
20
- tolerance
21
- }
22
- ]
23
- };
24
-
25
- export default noSecretsRules;