eslint-config-complete 1.2.2 → 1.2.4

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 (39) hide show
  1. package/dist/base/base-eslint.d.ts +12 -0
  2. package/dist/base/base-eslint.d.ts.map +1 -0
  3. package/dist/base/base-eslint.js +670 -0
  4. package/dist/base/base-import-x.d.ts +12 -0
  5. package/dist/base/base-import-x.d.ts.map +1 -0
  6. package/dist/base/base-import-x.js +262 -0
  7. package/dist/base/base-jsdoc.d.ts +6 -0
  8. package/dist/base/base-jsdoc.d.ts.map +1 -0
  9. package/dist/base/base-jsdoc.js +212 -0
  10. package/dist/base/base-n.d.ts +7 -0
  11. package/dist/base/base-n.d.ts.map +1 -0
  12. package/dist/base/base-n.js +108 -0
  13. package/dist/base/base-stylistic.d.ts +6 -0
  14. package/dist/base/base-stylistic.d.ts.map +1 -0
  15. package/dist/base/base-stylistic.js +35 -0
  16. package/dist/base/base-typescript-eslint.d.ts +6 -0
  17. package/dist/base/base-typescript-eslint.d.ts.map +1 -0
  18. package/dist/base/base-typescript-eslint.js +479 -0
  19. package/dist/base/base-unicorn.d.ts +10 -0
  20. package/dist/base/base-unicorn.d.ts.map +1 -0
  21. package/dist/base/base-unicorn.js +203 -0
  22. package/dist/base.d.ts +8 -0
  23. package/dist/base.d.ts.map +1 -0
  24. package/{src → dist}/base.js +17 -30
  25. package/dist/index.d.ts +3 -0
  26. package/dist/index.d.ts.map +1 -0
  27. package/dist/monorepo.d.ts +6 -0
  28. package/dist/monorepo.d.ts.map +1 -0
  29. package/dist/monorepo.js +16 -0
  30. package/package.json +5 -3
  31. package/src/base/base-eslint.js +0 -850
  32. package/src/base/base-import-x.js +0 -312
  33. package/src/base/base-jsdoc.js +0 -276
  34. package/src/base/base-n.js +0 -150
  35. package/src/base/base-stylistic.js +0 -38
  36. package/src/base/base-typescript-eslint.js +0 -554
  37. package/src/base/base-unicorn.js +0 -246
  38. package/src/monorepo.js +0 -18
  39. /package/{src → dist}/index.js +0 -0
@@ -1,312 +0,0 @@
1
- import ESLintPluginImportX from "eslint-plugin-import-x";
2
- import tseslint from "typescript-eslint";
3
-
4
- /**
5
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/master/README.md#helpful-warnings
6
- * @type {Record<string, import("@typescript-eslint/utils").TSESLint.SharedConfig.RuleEntry>}
7
- */
8
- const HELPFUL_WARNINGS = {
9
- "import-x/export": "warn",
10
-
11
- /**
12
- * Superseded by the `deprecation/deprecation` rule. (That rule is better because it catches
13
- * deprecated usage that does not come from import statements specifically.)
14
- */
15
- "import-x/no-deprecated": "off",
16
-
17
- "import-x/no-empty-named-blocks": "warn",
18
-
19
- /** We add common patterns to the "devDependencies" array. */
20
- "import-x/no-extraneous-dependencies": [
21
- "warn",
22
- {
23
- devDependencies: [
24
- // From:
25
- // https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/imports.js
26
- "test/**", // tape, common npm pattern
27
- "tests/**", // also common npm pattern
28
- "spec/**", // mocha, rspec-like pattern
29
- "**/__tests__/**", // jest pattern
30
- "**/__mocks__/**", // jest pattern
31
- "test.{js,jsx}", // repos with a single test file
32
- "test-*.{js,jsx}", // repos with multiple top-level test files
33
- "**/*{.,_}{test,spec}.{js,jsx}", // tests where the extension or filename suffix denotes that it is a test
34
- "**/jest.config.{js,cjs,mjs,ts,cts,mts}", // jest config // Modified for extra file extensions.
35
- "**/jest.setup.{js,cjs,mjs,ts,cts,mts}", // jest setup // Modified for extra file extensions.
36
- "**/vue.config.js", // vue-cli config
37
- "**/webpack.config.js", // webpack config
38
- "**/webpack.config.*.js", // webpack config
39
- "**/rollup.config.js", // rollup config
40
- "**/rollup.config.*.js", // rollup config
41
- "**/gulpfile.js", // gulp config
42
- "**/gulpfile.*.js", // gulp config
43
- "**/Gruntfile{,.js}", // grunt config
44
- "**/protractor.conf.js", // protractor config
45
- "**/protractor.conf.*.js", // protractor config
46
- "**/karma.conf.js", // karma config
47
- "**/.eslintrc.{js,cjs,mjs,ts,cts,mts}", // eslint config // Modified for extra file extensions.
48
-
49
- "**/scripts/*.{js,cjs,mjs,ts,cts,mts}", // Files inside of a "scripts" directory.
50
- "**/tests/*.{js,cjs,mjs,ts,cts,mts}", // Files inside of a "tests" directory.
51
- "**/eslint.config.{js,cjs,mjs,ts,cts,mts}", // ESLint config
52
- "**/prettier.config.{js,cjs,mjs,ts,cts,mts}", // Prettier config
53
- "**/typedoc.config.{js,cjs,mjs,ts,cts,mts}", // TypeDoc config
54
- "**/typedoc.config.*.{js,cjs,mjs,ts,cts,mts}", // TypeDoc config
55
- ],
56
- optionalDependencies: false,
57
- },
58
- ],
59
-
60
- "import-x/no-mutable-exports": "warn",
61
- "import-x/no-named-as-default": "warn",
62
-
63
- /**
64
- * Disabled because this is [already handled by the TypeScript
65
- * compiler](https://typescript-eslint.io/linting/troubleshooting/performance-troubleshooting/#eslint-plugin-import).
66
- */
67
- "import-x/no-named-as-default-member": "off",
68
-
69
- /**
70
- * Temporarily disabled due to [false
71
- * positives](https://github.com/un-ts/eslint-plugin-import-x/pull/157).
72
- */
73
- "import-x/no-rename-default": "off",
74
-
75
- /**
76
- * Disabled since this check is better performed by the [`knip`](https://github.com/webpro/knip)
77
- * tool.
78
- */
79
- "import-x/no-unused-modules": "off",
80
- };
81
-
82
- /**
83
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/master/README.md#module-systems
84
- * @type {Record<string, import("@typescript-eslint/utils").TSESLint.SharedConfig.RuleEntry>}
85
- */
86
- const MODULE_SYSTEMS = {
87
- "import-x/no-amd": "warn",
88
- "import-x/no-commonjs": "warn",
89
- "import-x/no-import-module-exports": "warn",
90
-
91
- /** Disabled because it is only used in specific environments (like the browser). */
92
- "import-x/no-nodejs-modules": "off",
93
-
94
- /** Disabled because this is already handled by the TypeScript compiler. */
95
- "import-x/unambiguous": "off",
96
- };
97
-
98
- /**
99
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/master/README.md#static-analysis
100
- * @type {Record<string, import("@typescript-eslint/utils").TSESLint.SharedConfig.RuleEntry>}
101
- */
102
- const STATIC_ANALYSIS = {
103
- /**
104
- * Disabled because this is [already handled by the TypeScript
105
- * compiler](https://typescript-eslint.io/linting/troubleshooting/performance-troubleshooting/#eslint-plugin-import).
106
- */
107
- "import-x/default": "off",
108
-
109
- /**
110
- * Disabled because this is [already handled by the TypeScript
111
- * compiler](https://typescript-eslint.io/linting/troubleshooting/performance-troubleshooting/#eslint-plugin-import).
112
- */
113
- "import-x/named": "off",
114
-
115
- /**
116
- * Disabled because this is [already handled by the TypeScript
117
- * compiler](https://typescript-eslint.io/linting/troubleshooting/performance-troubleshooting/#eslint-plugin-import).
118
- */
119
- "import-x/namespace": "off",
120
-
121
- "import-x/no-absolute-path": "warn",
122
- "import-x/no-cycle": "warn",
123
- "import-x/no-dynamic-require": "warn",
124
-
125
- /** Disabled since a prescribed import pattern is not generalizable enough across projects. */
126
- "import-x/no-internal-modules": "off",
127
-
128
- "import-x/no-relative-packages": "warn",
129
-
130
- /**
131
- * Disabled since a forward import direction pattern is not generalizable enough across projects.
132
- */
133
- "import-x/no-relative-parent-imports": "off",
134
-
135
- /** Disabled since this rule should only contain a project-specific path restriction. */
136
- "import-x/no-restricted-paths": "off",
137
-
138
- "import-x/no-self-import": "warn",
139
-
140
- /**
141
- * Disabled because this is [already handled by the TypeScript
142
- * compiler](https://github.com/iamturns/eslint-config-airbnb-typescript/blob/master/lib/shared.js).
143
- */
144
- "import-x/no-unresolved": "off",
145
-
146
- "import-x/no-useless-path-segments": "warn",
147
- "import-x/no-webpack-loader-syntax": "warn",
148
- };
149
-
150
- /**
151
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/master/README.md#style-guide
152
- * @type {Record<string, import("@typescript-eslint/utils").TSESLint.SharedConfig.RuleEntry>}
153
- */
154
- const STYLE_GUIDE = {
155
- "import-x/consistent-type-specifier-style": "warn",
156
-
157
- /** Disabled because it is only useful in environments that use webpack. */
158
- "import-x/dynamic-import-chunkname": "off",
159
-
160
- /** Disabled because this style is not generally used. */
161
- "import-x/exports-last": "off",
162
-
163
- /** Disabled because this is already handled by the TypeScript compiler. */
164
- "import-x/extensions": "off",
165
-
166
- "import-x/first": "warn",
167
-
168
- /** Disabled because this style is not generally used. */
169
- "import-x/group-exports": "off",
170
-
171
- /** Disabled because this rule is deprecated. */
172
- "import-x/imports-first": "off",
173
-
174
- /** Disabled since it will trigger false positives in codebases that prefer smaller files. */
175
- "import-x/max-dependencies": "off",
176
-
177
- "import-x/newline-after-import": "warn",
178
-
179
- /**
180
- * Disabled since we disallow default exports elsewhere in this config (in favor of named
181
- * exports).
182
- */
183
- "import-x/no-anonymous-default-export": "off",
184
-
185
- /**
186
- * The case against default exports is [laid out by Basarat Ali
187
- * Syed](https://basarat.gitbook.io/typescript/main-1/defaultisbad).
188
- */
189
- "import-x/no-default-export": "warn",
190
-
191
- "import-x/no-duplicates": "warn",
192
- "import-x/no-named-default": "warn",
193
-
194
- /**
195
- * Disabled since we disallow default exports elsewhere in this config (in favor of named
196
- * exports).
197
- */
198
- "import-x/no-named-export": "off",
199
-
200
- /**
201
- * Disabled since it is too prescriptive for a general audience. (Using `import * as` is common.)
202
- */
203
- "import-x/no-namespace": "off",
204
-
205
- "import-x/no-unassigned-import": "warn",
206
-
207
- /** Disabled because this is automatically handled by `prettier-plugin-organize-imports`. */
208
- "import-x/order": "off",
209
-
210
- /**
211
- * Disabled because we disallow default exports elsewhere in this config (in favor of named
212
- * exports).
213
- */
214
- "import-x/prefer-default-export": "off",
215
- };
216
-
217
- /**
218
- * Omit `.d.ts` because:
219
- * 1. TypeScript compilation already confirms that types are resolved.
220
- * 2. It would mask an unresolved `.ts`/`.tsx`/`.js`/`.jsx` implementation.
221
- */
222
- const TYPESCRIPT_EXTENSIONS = [".ts", ".cts", ".mts", ".tsx"];
223
-
224
- const ALL_EXTENSIONS = [
225
- ...TYPESCRIPT_EXTENSIONS,
226
- ".js",
227
- ".cjs",
228
- ".mjs",
229
- ".jsx",
230
- ];
231
-
232
- /**
233
- * This ESLint config only contains rules from `eslint-plugin-import-x`:
234
- * https://github.com/un-ts/eslint-plugin-import-x
235
- *
236
- * Rules are separated into categories:
237
- * 1) Helpful warnings
238
- * 2) Module systems
239
- * 3) Static analysis
240
- * 4) Style guide
241
- */
242
- export const baseImportX = tseslint.config(
243
- {
244
- plugins: {
245
- "import-x": ESLintPluginImportX,
246
- },
247
-
248
- // Beyond just specifying the plugin, additional configuration is necessary to make the plugin
249
- // work properly with TypeScript:
250
-
251
- // - First, the "eslint-import-resolver-typescript" package needs to be installed, or else an
252
- // error will appear: "Resolve error: typescript with invalid interface loaded as resolver"
253
- // - However, it is discussed in this issue to include that dep as part of
254
- // "eslint-plugin-import-x" itself:
255
- // https://github.com/un-ts/eslint-plugin-import-x/issues/150
256
- // - Second, we extend the upstream TypeScript configuration:
257
- // https://github.com/un-ts/eslint-plugin-import-x/blob/master/src/config/typescript.ts
258
- settings: {
259
- "import-x/extensions": ALL_EXTENSIONS,
260
- "import-x/external-module-folders": [
261
- "node_modules",
262
- "node_modules/@types",
263
- ],
264
- "import-x/parsers": {
265
- "@typescript-eslint/parser": TYPESCRIPT_EXTENSIONS,
266
- },
267
- "import-x/resolver": {
268
- typescript: true,
269
- },
270
- },
271
-
272
- rules: {
273
- ...HELPFUL_WARNINGS,
274
- ...MODULE_SYSTEMS,
275
- ...STATIC_ANALYSIS,
276
- ...STYLE_GUIDE,
277
- },
278
- },
279
-
280
- // Disable some TypeScript-specific rules in JavaScript files.
281
- {
282
- files: ["**/*.js", "**/*.cjs", "**/*.mjs", "**/*.jsx"],
283
- rules: {
284
- "import-x/no-commonjs": "off",
285
- },
286
- },
287
-
288
- // Some configuration files must export a default object as a design limitation.
289
- {
290
- files: [
291
- ".remarkrc.js",
292
- ".remarkrc.mjs",
293
- "eslint.config.js",
294
- "eslint.config.mjs",
295
- "jest.config.js",
296
- "jest.config.mjs",
297
- "knip.js",
298
- "knip.ts",
299
- "knip.config.js",
300
- "knip.config.ts",
301
- "prettier.config.js",
302
- "prettier.config.mjs",
303
- "typedoc.config.js",
304
- "typedoc.config.mjs",
305
- "vite.config.js",
306
- "vite.config.mjs",
307
- ],
308
- rules: {
309
- "import-x/no-default-export": "off",
310
- },
311
- },
312
- );
@@ -1,276 +0,0 @@
1
- import ESLintPluginJSDoc from "eslint-plugin-jsdoc";
2
- import tseslint from "typescript-eslint";
3
-
4
- /**
5
- * This ESLint config only contains rules from `eslint-plugin-jsdoc`:
6
- * https://github.com/gajus/eslint-plugin-jsdoc
7
- */
8
- export const baseJSDoc = tseslint.config(
9
- {
10
- plugins: {
11
- jsdoc: ESLintPluginJSDoc,
12
- },
13
-
14
- rules: {
15
- /** Disabled because it is not needed in TypeScript. */
16
- "jsdoc/check-access": "off",
17
-
18
- /** Superseded by the `complete/limit-jsdoc-comments` rule. */
19
- "jsdoc/check-alignment": "off",
20
-
21
- /**
22
- * Disabled since it [does not work with ESLint
23
- * 8](https://github.com/eslint/eslint/issues/14745).
24
- */
25
- "jsdoc/check-examples": "off",
26
-
27
- /** Superseded by the `complete/limit-jsdoc-comments` rule. */
28
- "jsdoc/check-indentation": "off",
29
-
30
- /**
31
- * Disabled since this is not a common formatting scheme. It is also not recommended by the
32
- * plugin authors.
33
- */
34
- "jsdoc/check-line-alignment": "off",
35
-
36
- "jsdoc/check-param-names": "warn",
37
-
38
- /** Disabled because it is not needed in TypeScript. */
39
- "jsdoc/check-property-names": "off",
40
-
41
- /** Disabled because it is not needed in TypeScript. */
42
- "jsdoc/check-syntax": "off",
43
-
44
- "jsdoc/check-tag-names": [
45
- "warn",
46
- {
47
- definedTags: [
48
- // Ignore tags used by the TypeScript compiler:
49
- // https://www.typescriptlang.org/tsconfig#stripInternal
50
- "internal", // Used by TypeScript
51
-
52
- // Ignore tags used in TypeDoc:
53
- // https://typedoc.org/guides/doccomments/
54
- "category",
55
- "hidden",
56
- "notExported", // From: typedoc-plugin-not-exported
57
- "rename", // From: typedoc-plugin-rename
58
-
59
- // Ignore tags used in TypeScriptToLua:
60
- // https://typescripttolua.github.io/docs/advanced/compiler-annotations
61
- "customName",
62
- "noResolution",
63
- "noSelf",
64
- "noSelfInFile",
65
-
66
- // Ignore tags used in `ts-json-schema-generator`:
67
- // https://github.com/vega/ts-json-schema-generator
68
- "minimum",
69
- "maximum",
70
-
71
- // Ignore tags used in `eslint-plugin-complete`:
72
- // https://github.com/complete-ts/complete/blob/main/packages/eslint-plugin-complete/docs/rules/require-variadic-function-argument.md
73
- "allowEmptyVariadic",
74
- ],
75
- },
76
- ],
77
-
78
- "jsdoc/check-template-names": "warn",
79
-
80
- /** Disabled because it is not needed in TypeScript. */
81
- "jsdoc/check-types": "off",
82
-
83
- "jsdoc/check-values": "warn",
84
-
85
- /**
86
- * Disabled since it is idiomatic in the TypeScript ecosystem to use a mixture of both JSDoc
87
- * and non-JSDoc comments.
88
- */
89
- "jsdoc/convert-to-jsdoc-comments": "off",
90
-
91
- "jsdoc/empty-tags": "warn",
92
- "jsdoc/implements-on-classes": "warn",
93
-
94
- /** Disabled since you cannot configure it with a path to the correct "package.json" file. */
95
- "jsdoc/imports-as-dependencies": "off",
96
-
97
- "jsdoc/informative-docs": "warn",
98
-
99
- /**
100
- * Disabled since it is [currently
101
- * bugged](https://github.com/gajus/eslint-plugin-jsdoc/issues/1296).
102
- */
103
- "jsdoc/lines-before-block": "off",
104
-
105
- /** Superseded by the `complete/jsdoc-full-sentences` rule. */
106
- "jsdoc/match-description": "off",
107
-
108
- /** Disabled because it is only needed for projects with specific JSDoc requirements. */
109
- "jsdoc/match-name": "off",
110
-
111
- /** Superseded by the `complete/limit-jsdoc-comments` rule. */
112
- "jsdoc/multiline-blocks": "off",
113
-
114
- /** Superseded by the `complete/limit-jsdoc-comments` rule. */
115
- "jsdoc/newline-after-description": "off",
116
-
117
- /**
118
- * Disabled because it provides little value; it only detects JSDoc comments with tags in
119
- * them.
120
- */
121
- "jsdoc/no-bad-blocks": "off",
122
-
123
- /** Superseded by the `complete/format-jsdoc-comments` rule. */
124
- "jsdoc/no-blank-block-descriptions": "off",
125
-
126
- /** Superseded by the `complete/no-empty-jsdoc` rule. */
127
- "jsdoc/no-blank-blocks": "off",
128
-
129
- /** Disabled because it provides little value; the `@default` tag is rare. */
130
- "jsdoc/no-defaults": "off",
131
-
132
- /** Disabled because it is too project-specific. */
133
- "jsdoc/no-missing-syntax": "off",
134
-
135
- /** Superseded by the `complete/limit-jsdoc-comments` rule. */
136
- "jsdoc/no-multi-asterisks": "off",
137
-
138
- /**
139
- * Disabled because it is intended for disabling of specific language features per-project.
140
- */
141
- "jsdoc/no-restricted-syntax": "off",
142
-
143
- /** The `contexts` option is set to `any` to make the rule stricter. */
144
- "jsdoc/no-types": [
145
- "warn",
146
- {
147
- contexts: ["any"],
148
- },
149
- ],
150
-
151
- /** Disabled because it is not needed in TypeScript. */
152
- "jsdoc/no-undefined-types": "off",
153
-
154
- "jsdoc/require-asterisk-prefix": "warn",
155
-
156
- /** Superseded by the `complete/jsdoc-complete-sentences` rule. */
157
- "jsdoc/require-description-complete-sentence": "off",
158
-
159
- /** Disabled because it is overboard for every function to have a description. */
160
- "jsdoc/require-description": "off",
161
-
162
- /** Disabled because it is overboard for every function to require an example. */
163
- "jsdoc/require-example": "off",
164
-
165
- /** Disabled because it is overboard for every file to require an overview. */
166
- "jsdoc/require-file-overview": "off",
167
-
168
- /**
169
- * The `never` option is provided to make the rule match the format of the official TypeScript
170
- * codebase.
171
- */
172
- "jsdoc/require-hyphen-before-param-description": ["warn", "never"],
173
-
174
- /** Disabled since it is overboard for every function to have a JSDoc comment. */
175
- "jsdoc/require-jsdoc": "off",
176
-
177
- /** The `contexts` option is set to `any` to make the rule stricter. */
178
- "jsdoc/require-param-description": [
179
- "warn",
180
- {
181
- contexts: ["any"],
182
- },
183
- ],
184
-
185
- /** The `contexts` option is set to `any` to make the rule stricter. */
186
- "jsdoc/require-param-name": [
187
- "warn",
188
- {
189
- contexts: ["any"],
190
- },
191
- ],
192
-
193
- /** Disabled because it is not needed in TypeScript. */
194
- "jsdoc/require-param-type": "off",
195
-
196
- /** Configured to only apply when there are one or more parameters. */
197
- "jsdoc/require-param": [
198
- "warn",
199
- {
200
- contexts: [
201
- {
202
- context: "FunctionDeclaration",
203
- comment: 'JsdocBlock:has(JsdocTag[tag="param"])',
204
- },
205
- ],
206
- },
207
- ],
208
-
209
- /** Disabled because it is not needed in TypeScript. */
210
- "jsdoc/require-property": "off",
211
-
212
- "jsdoc/require-property-description": "warn",
213
- "jsdoc/require-property-name": "warn",
214
-
215
- /** Disabled because it is not needed in TypeScript. */
216
- "jsdoc/require-property-type": "off",
217
-
218
- /** Disabled because it is overboard for every function to document every return value. */
219
- "jsdoc/require-returns-check": "off",
220
-
221
- /** The `contexts` option is set to `any` to make the rule stricter. */
222
- "jsdoc/require-returns-description": [
223
- "warn",
224
- {
225
- contexts: ["any"],
226
- },
227
- ],
228
-
229
- /** Disabled because it is not needed in TypeScript. */
230
- "jsdoc/require-returns-type": "off",
231
-
232
- /** Disabled because it is overboard for every function to document every return value. */
233
- "jsdoc/require-returns": "off",
234
-
235
- /** Disabled because it is overboard to document every generic type variable. */
236
- "jsdoc/require-template": "off",
237
-
238
- /** Disabled because it is overboard to document every throw statement. */
239
- "jsdoc/require-throws": "off",
240
-
241
- /** Disabled because it is overboard to document every yield. */
242
- "jsdoc/require-yields": "off",
243
-
244
- /** Disabled because it is overboard to document every yield. */
245
- "jsdoc/require-yields-check": "off",
246
-
247
- /**
248
- * Disabled because it is not very useful. In most cases, a function will only have `@param`
249
- * and `@return` tags, making sorting unnecessary.
250
- */
251
- "jsdoc/sort-tags": "off",
252
-
253
- /** Superseded by the `complete/format-jsdoc-comments` rule. */
254
- "jsdoc/tag-lines": "off",
255
-
256
- /**
257
- * Disabled since it is only useful in certain environments (e.g. when your project converts
258
- * JSDoc comments to Markdown).
259
- */
260
- "jsdoc/text-escaping": "off",
261
-
262
- /** Disabled because it is not needed in TypeScript. */
263
- "jsdoc/valid-types": "off",
264
- },
265
- },
266
-
267
- // Disable some TypeScript-specific rules in JavaScript files.
268
- {
269
- files: ["**/*.js", "**/*.cjs", "**/*.mjs", "**/*.jsx"],
270
- rules: {
271
- "jsdoc/no-types": "off",
272
- "jsdoc/require-param-description": "off",
273
- "jsdoc/require-returns-description": "off",
274
- },
275
- },
276
- );