-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodules.d.ts
37 lines (30 loc) · 955 Bytes
/
modules.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/** @file Type definitions for modules that currently don't have typings on DefinitelyTyped.
*
* This file MUST NOT `export {}` for the modules to be visible to other files. */
// ===========================
// === Module declarations ===
// ===========================
declare module '@eslint/js' {
/** A set of configurations. */
interface Config {
rules: Record<string, unknown>
}
/** Preset configurations defined by ESLint. */
interface EslintConfigs {
all: Config
recommended: Config
}
/** The default export of the module. */
interface Default {
configs: EslintConfigs
}
const DEFAULT: Default
export default DEFAULT
// This is exported for commonjs exports only.
// eslint-disable-next-line no-restricted-syntax
export const configs: Default['configs']
}
declare module 'eslint-plugin-jsdoc' {
const DEFAULT: unknown
export default DEFAULT
}