-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
35 lines (31 loc) · 1.03 KB
/
index.d.ts
File metadata and controls
35 lines (31 loc) · 1.03 KB
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
import { defineConfig } from 'eslint/config';
import type { Linter } from 'eslint';
import type Globals from 'globals';
// Define the configuration types
export type BaseConfig = Array<Linter.Config>;
export type NodeConfig = Array<Linter.Config>;
export type ReactConfig = Array<Linter.Config>;
export type JsonConfig = Array<Linter.Config>;
export type JestConfig = Array<Linter.Config>;
// Export individual configurations
export const base: BaseConfig;
export const node: NodeConfig;
export const react: ReactConfig;
export const json: JsonConfig;
export const jest: JestConfig;
export const globals: Globals;
/**
* A toolkit object containing configuration utilities and helper functions
* for ESLint. It includes pre-defined configurations for base projects,
* `Node.js`, `React`, `JSON`, `Jest`, and `globals`.
*/
declare const toolkit: {
base: BaseConfig;
node: NodeConfig;
react: ReactConfig;
json: JsonConfig;
jest: JestConfig;
globals: Globals;
defineConfig: typeof defineConfig;
};
export default toolkit;