@tb-dev/eslint-config 1.4.8 → 1.4.10
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.
- package/package.json +3 -3
- package/dist/index.cjs +0 -892
- package/dist/index.d.ts +0 -44
- package/dist/index.mjs +0 -890
package/dist/index.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
declare function config(options: ConfigOptions): Promise<Partial<ConfigObject>[]>;
|
|
2
|
-
export default config;
|
|
3
|
-
|
|
4
|
-
/** @see https://eslint.org/docs/latest/use/configure/configuration-files-new#configuration-objects */
|
|
5
|
-
declare interface ConfigObject {
|
|
6
|
-
files: string[];
|
|
7
|
-
ignores?: Ignores['ignores'];
|
|
8
|
-
languageOptions: {
|
|
9
|
-
ecmaVersion?: 'latest';
|
|
10
|
-
sourceType?: 'module';
|
|
11
|
-
parser?: unknown;
|
|
12
|
-
parserOptions?: Record<string, unknown>;
|
|
13
|
-
globals?: Record<string, boolean | 'readonly' | 'writeable'>;
|
|
14
|
-
};
|
|
15
|
-
plugins?: Record<string, unknown>;
|
|
16
|
-
processor?: unknown;
|
|
17
|
-
rules: Rules;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
declare interface ConfigOptions {
|
|
21
|
-
prettier?: boolean;
|
|
22
|
-
vue?: boolean;
|
|
23
|
-
jsx?: boolean;
|
|
24
|
-
/** `tsconfig.json` files for Typescript. */
|
|
25
|
-
project: string[];
|
|
26
|
-
ignores?: Ignores['ignores'];
|
|
27
|
-
overrides?: {
|
|
28
|
-
javascript?: Rules;
|
|
29
|
-
typescript?: Rules;
|
|
30
|
-
vue?: Rules;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
declare interface Ignores {
|
|
35
|
-
ignores: string[];
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
declare type RuleOption = [Severity, string | Record<string, unknown>] | [Severity, string, Record<string, unknown>];
|
|
39
|
-
|
|
40
|
-
declare type Rules = Record<string, Severity | RuleOption>;
|
|
41
|
-
|
|
42
|
-
declare type Severity = 'error' | 'warn' | 'off' | 0 | 1;
|
|
43
|
-
|
|
44
|
-
export { }
|