@kazupon/eslint-config 0.17.0 → 0.19.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.
- package/README.md +8 -1
- package/dist/index.cjs +267 -257
- package/dist/index.d.cts +14216 -3
- package/dist/index.d.ts +14216 -3
- package/dist/index.js +242 -144
- package/package.json +27 -22
- package/dist/config.d.cts +0 -9
- package/dist/config.d.ts +0 -9
- package/dist/configs/comments.d.cts +0 -15
- package/dist/configs/comments.d.ts +0 -15
- package/dist/configs/imports.d.cts +0 -21
- package/dist/configs/imports.d.ts +0 -21
- package/dist/configs/index.d.cts +0 -16
- package/dist/configs/index.d.ts +0 -16
- package/dist/configs/javascript.d.cts +0 -15
- package/dist/configs/javascript.d.ts +0 -15
- package/dist/configs/jsdoc.d.cts +0 -27
- package/dist/configs/jsdoc.d.ts +0 -27
- package/dist/configs/jsonc.d.cts +0 -39
- package/dist/configs/jsonc.d.ts +0 -39
- package/dist/configs/prettier.d.cts +0 -15
- package/dist/configs/prettier.d.ts +0 -15
- package/dist/configs/promise.d.cts +0 -15
- package/dist/configs/promise.d.ts +0 -15
- package/dist/configs/react.d.cts +0 -26
- package/dist/configs/react.d.ts +0 -26
- package/dist/configs/regexp.d.cts +0 -15
- package/dist/configs/regexp.d.ts +0 -15
- package/dist/configs/svelte.d.cts +0 -21
- package/dist/configs/svelte.d.ts +0 -21
- package/dist/configs/toml.d.cts +0 -15
- package/dist/configs/toml.d.ts +0 -15
- package/dist/configs/typescript.d.cts +0 -38
- package/dist/configs/typescript.d.ts +0 -38
- package/dist/configs/unicorn.d.cts +0 -20
- package/dist/configs/unicorn.d.ts +0 -20
- package/dist/configs/vitest.d.cts +0 -22
- package/dist/configs/vitest.d.ts +0 -22
- package/dist/configs/vue.d.cts +0 -36
- package/dist/configs/vue.d.ts +0 -36
- package/dist/configs/yml.d.cts +0 -22
- package/dist/configs/yml.d.ts +0 -22
- package/dist/globs.d.cts +0 -13
- package/dist/globs.d.ts +0 -13
- package/dist/types/gens/comments.d.cts +0 -65
- package/dist/types/gens/comments.d.ts +0 -65
- package/dist/types/gens/eslint.d.cts +0 -22
- package/dist/types/gens/eslint.d.ts +0 -22
- package/dist/types/gens/imports.d.cts +0 -519
- package/dist/types/gens/imports.d.ts +0 -519
- package/dist/types/gens/javascript.d.cts +0 -3158
- package/dist/types/gens/javascript.d.ts +0 -3158
- package/dist/types/gens/jsdoc.d.cts +0 -796
- package/dist/types/gens/jsdoc.d.ts +0 -796
- package/dist/types/gens/jsonc.d.cts +0 -513
- package/dist/types/gens/jsonc.d.ts +0 -513
- package/dist/types/gens/prettier.d.cts +0 -2
- package/dist/types/gens/prettier.d.ts +0 -2
- package/dist/types/gens/promise.d.cts +0 -113
- package/dist/types/gens/promise.d.ts +0 -113
- package/dist/types/gens/react.d.cts +0 -1053
- package/dist/types/gens/react.d.ts +0 -1053
- package/dist/types/gens/regexp.d.cts +0 -553
- package/dist/types/gens/regexp.d.ts +0 -553
- package/dist/types/gens/svelte.d.cts +0 -491
- package/dist/types/gens/svelte.d.ts +0 -491
- package/dist/types/gens/toml.d.cts +0 -256
- package/dist/types/gens/toml.d.ts +0 -256
- package/dist/types/gens/typescript.d.cts +0 -1578
- package/dist/types/gens/typescript.d.ts +0 -1578
- package/dist/types/gens/unicorn.d.cts +0 -910
- package/dist/types/gens/unicorn.d.ts +0 -910
- package/dist/types/gens/vitest.d.cts +0 -377
- package/dist/types/gens/vitest.d.ts +0 -377
- package/dist/types/gens/vue.d.cts +0 -2746
- package/dist/types/gens/vue.d.ts +0 -2746
- package/dist/types/gens/yml.d.cts +0 -375
- package/dist/types/gens/yml.d.ts +0 -375
- package/dist/types/index.d.cts +0 -18
- package/dist/types/index.d.ts +0 -18
- package/dist/types/overrides.d.cts +0 -8
- package/dist/types/overrides.d.ts +0 -8
- package/dist/utils.d.cts +0 -18
- package/dist/utils.d.ts +0 -18
package/dist/config.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
2
|
-
import type { Linter } from 'eslint';
|
|
3
|
-
import type { Awaitable } from '@kazupon/jts-utils/types';
|
|
4
|
-
/**
|
|
5
|
-
* define eslint configurations
|
|
6
|
-
* @param {Awaitable<Linter.Config | Linter.Config[]>[]} configs eslint flat configurations
|
|
7
|
-
* @returns {FlatConfigComposer} eslint flat configuration composer
|
|
8
|
-
*/
|
|
9
|
-
export declare function defineConfig(...configs: Awaitable<Linter.Config | Linter.Config[]>[]): FlatConfigComposer;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { CommentsRules, OverridesOptions } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* eslint comments configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface CommentsOptions {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* `@eslint-community/eslint-plugin-eslint-comments` and overrides configuration options
|
|
10
|
-
* @param {CommentsOptions & OverridesOptions} options
|
|
11
|
-
* eslint comments configuration options for eslint comment directives
|
|
12
|
-
* @returns {Promise<Linter.Config[]>}
|
|
13
|
-
* eslint flat configurations with `@eslint-community/eslint-plugin-eslint-comments` and overrides
|
|
14
|
-
*/
|
|
15
|
-
export declare function comments(options?: CommentsOptions & OverridesOptions<CommentsRules>): Promise<Linter.Config[]>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { CommentsRules, OverridesOptions } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* eslint comments configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface CommentsOptions {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* `@eslint-community/eslint-plugin-eslint-comments` and overrides configuration options
|
|
10
|
-
* @param {CommentsOptions & OverridesOptions} options
|
|
11
|
-
* eslint comments configuration options for eslint comment directives
|
|
12
|
-
* @returns {Promise<Linter.Config[]>}
|
|
13
|
-
* eslint flat configurations with `@eslint-community/eslint-plugin-eslint-comments` and overrides
|
|
14
|
-
*/
|
|
15
|
-
export declare function comments(options?: CommentsOptions & OverridesOptions<CommentsRules>): Promise<Linter.Config[]>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { ImportsRules, OverridesOptions } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* imports configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface ImportsOptions {
|
|
7
|
-
/**
|
|
8
|
-
* use typescript
|
|
9
|
-
* @default false
|
|
10
|
-
*/
|
|
11
|
-
typescript?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* `eslint-plugin-import-x`, `eslint-plugin-unused-imports` and overrides configuration options
|
|
15
|
-
* @description **if you want to use this preset, you need to put after `javascirpt` and `typescript` presets**
|
|
16
|
-
* @param {ImportsOptions & OverridesOptions} options
|
|
17
|
-
* import configuration options
|
|
18
|
-
* @returns {Promise<Linter.Config[]>}
|
|
19
|
-
* eslint flat configurations with `eslint-plugin-import-x`, `eslint-plugin-unused-imports` and overrides
|
|
20
|
-
*/
|
|
21
|
-
export declare function imports(options?: ImportsOptions & OverridesOptions<ImportsRules>): Promise<Linter.Config[]>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { ImportsRules, OverridesOptions } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* imports configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface ImportsOptions {
|
|
7
|
-
/**
|
|
8
|
-
* use typescript
|
|
9
|
-
* @default false
|
|
10
|
-
*/
|
|
11
|
-
typescript?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* `eslint-plugin-import-x`, `eslint-plugin-unused-imports` and overrides configuration options
|
|
15
|
-
* @description **if you want to use this preset, you need to put after `javascirpt` and `typescript` presets**
|
|
16
|
-
* @param {ImportsOptions & OverridesOptions} options
|
|
17
|
-
* import configuration options
|
|
18
|
-
* @returns {Promise<Linter.Config[]>}
|
|
19
|
-
* eslint flat configurations with `eslint-plugin-import-x`, `eslint-plugin-unused-imports` and overrides
|
|
20
|
-
*/
|
|
21
|
-
export declare function imports(options?: ImportsOptions & OverridesOptions<ImportsRules>): Promise<Linter.Config[]>;
|
package/dist/configs/index.d.cts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from './comments.ts';
|
|
2
|
-
export * from './imports.ts';
|
|
3
|
-
export * from './javascript.ts';
|
|
4
|
-
export * from './jsdoc.ts';
|
|
5
|
-
export * from './jsonc.ts';
|
|
6
|
-
export * from './prettier.ts';
|
|
7
|
-
export * from './promise.ts';
|
|
8
|
-
export * from './react.ts';
|
|
9
|
-
export * from './regexp.ts';
|
|
10
|
-
export * from './svelte.ts';
|
|
11
|
-
export * from './toml.ts';
|
|
12
|
-
export * from './typescript.ts';
|
|
13
|
-
export * from './unicorn.ts';
|
|
14
|
-
export * from './vitest.ts';
|
|
15
|
-
export * from './vue.ts';
|
|
16
|
-
export * from './yml.ts';
|
package/dist/configs/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from './comments.ts';
|
|
2
|
-
export * from './imports.ts';
|
|
3
|
-
export * from './javascript.ts';
|
|
4
|
-
export * from './jsdoc.ts';
|
|
5
|
-
export * from './jsonc.ts';
|
|
6
|
-
export * from './prettier.ts';
|
|
7
|
-
export * from './promise.ts';
|
|
8
|
-
export * from './react.ts';
|
|
9
|
-
export * from './regexp.ts';
|
|
10
|
-
export * from './svelte.ts';
|
|
11
|
-
export * from './toml.ts';
|
|
12
|
-
export * from './typescript.ts';
|
|
13
|
-
export * from './unicorn.ts';
|
|
14
|
-
export * from './vitest.ts';
|
|
15
|
-
export * from './vue.ts';
|
|
16
|
-
export * from './yml.ts';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { JavascriptRules, OverridesOptions } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* JavaScript configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface JavaScriptOptions {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* `@eslint/js` and overrides configuration options
|
|
10
|
-
* @param {JavaScriptOptions & OverridesOptions} options
|
|
11
|
-
* eslint configuration options for JavaScript
|
|
12
|
-
* @returns {Promise<Linter.Config[]>}
|
|
13
|
-
* eslint flat configurations with `@eslint/js` and overrides
|
|
14
|
-
*/
|
|
15
|
-
export declare function javascript(options?: JavaScriptOptions & OverridesOptions<JavascriptRules>): Promise<Linter.Config[]>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { JavascriptRules, OverridesOptions } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* JavaScript configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface JavaScriptOptions {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* `@eslint/js` and overrides configuration options
|
|
10
|
-
* @param {JavaScriptOptions & OverridesOptions} options
|
|
11
|
-
* eslint configuration options for JavaScript
|
|
12
|
-
* @returns {Promise<Linter.Config[]>}
|
|
13
|
-
* eslint flat configurations with `@eslint/js` and overrides
|
|
14
|
-
*/
|
|
15
|
-
export declare function javascript(options?: JavaScriptOptions & OverridesOptions<JavascriptRules>): Promise<Linter.Config[]>;
|
package/dist/configs/jsdoc.d.cts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { JsdocRules, OverridesOptions } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* jsdoc configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface JsDocumentOptions {
|
|
7
|
-
/**
|
|
8
|
-
* If you want to use TypeScript, you need to set `syntax`, else if you want to use JavaScript and TypeScript flavor in comments, you need to set `flavor`.
|
|
9
|
-
* @see https://github.com/gajus/eslint-plugin-jsdoc?tab=readme-ov-file#configuration
|
|
10
|
-
* @default undefined
|
|
11
|
-
*/
|
|
12
|
-
typescript?: 'syntax' | 'flavor';
|
|
13
|
-
/**
|
|
14
|
-
* If you wish to have all linting issues reported as failing errors, you can set this to `true`.
|
|
15
|
-
* @see https://github.com/gajus/eslint-plugin-jsdoc?tab=readme-ov-file#configuration
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
error?: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* `eslint-plugin-jsdoc` and overrides configuration options
|
|
22
|
-
* @param {JsDocOptions & OverridesOptions} options
|
|
23
|
-
* eslint configuration options for JavaScript
|
|
24
|
-
* @returns {Promise<Linter.Config[]>}
|
|
25
|
-
* eslint flat configurations with `eslint-plugin-jsdoc` and overrides
|
|
26
|
-
*/
|
|
27
|
-
export declare function jsdoc(options?: JsDocumentOptions & OverridesOptions<JsdocRules>): Promise<Linter.Config[]>;
|
package/dist/configs/jsdoc.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { JsdocRules, OverridesOptions } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* jsdoc configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface JsDocumentOptions {
|
|
7
|
-
/**
|
|
8
|
-
* If you want to use TypeScript, you need to set `syntax`, else if you want to use JavaScript and TypeScript flavor in comments, you need to set `flavor`.
|
|
9
|
-
* @see https://github.com/gajus/eslint-plugin-jsdoc?tab=readme-ov-file#configuration
|
|
10
|
-
* @default undefined
|
|
11
|
-
*/
|
|
12
|
-
typescript?: 'syntax' | 'flavor';
|
|
13
|
-
/**
|
|
14
|
-
* If you wish to have all linting issues reported as failing errors, you can set this to `true`.
|
|
15
|
-
* @see https://github.com/gajus/eslint-plugin-jsdoc?tab=readme-ov-file#configuration
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
error?: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* `eslint-plugin-jsdoc` and overrides configuration options
|
|
22
|
-
* @param {JsDocOptions & OverridesOptions} options
|
|
23
|
-
* eslint configuration options for JavaScript
|
|
24
|
-
* @returns {Promise<Linter.Config[]>}
|
|
25
|
-
* eslint flat configurations with `eslint-plugin-jsdoc` and overrides
|
|
26
|
-
*/
|
|
27
|
-
export declare function jsdoc(options?: JsDocumentOptions & OverridesOptions<JsdocRules>): Promise<Linter.Config[]>;
|
package/dist/configs/jsonc.d.cts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { JsoncRules, OverridesOptions } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* eslint jsonc configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface JsoncOptions {
|
|
7
|
-
/**
|
|
8
|
-
* whether to enable config `'flat/recommended-with-json'`of `eslint-plugin-jsonc`.
|
|
9
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/user-guide/#usage
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
json?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* whether to enable config `'flat/recommended-with-jsonc'`of `eslint-plugin-jsonc`.
|
|
15
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/user-guide/#usage
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
jsonc?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* whether to enable config `'flat/recommended-with-json5'`of `eslint-plugin-jsonc`.
|
|
21
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/user-guide/#usage
|
|
22
|
-
* @default false
|
|
23
|
-
*/
|
|
24
|
-
json5?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* whether to enable config `'flat/prettier'`of `eslint-plugin-jsonc`.
|
|
27
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/user-guide/#usage
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
prettier?: boolean;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* `eslint-plugin-jsonc` and overrides configuration options
|
|
34
|
-
* @param {JsoncOptions & OverridesOptions} options
|
|
35
|
-
* eslint jsonc configuration options for json, jsonc, json5
|
|
36
|
-
* @returns {Promise<Linter.Config[]>}
|
|
37
|
-
* eslint flat configurations with `eslint-plugin-jsonc` and overrides
|
|
38
|
-
*/
|
|
39
|
-
export declare function jsonc(options?: JsoncOptions & OverridesOptions<JsoncRules>): Promise<Linter.Config[]>;
|
package/dist/configs/jsonc.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { JsoncRules, OverridesOptions } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* eslint jsonc configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface JsoncOptions {
|
|
7
|
-
/**
|
|
8
|
-
* whether to enable config `'flat/recommended-with-json'`of `eslint-plugin-jsonc`.
|
|
9
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/user-guide/#usage
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
json?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* whether to enable config `'flat/recommended-with-jsonc'`of `eslint-plugin-jsonc`.
|
|
15
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/user-guide/#usage
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
jsonc?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* whether to enable config `'flat/recommended-with-json5'`of `eslint-plugin-jsonc`.
|
|
21
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/user-guide/#usage
|
|
22
|
-
* @default false
|
|
23
|
-
*/
|
|
24
|
-
json5?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* whether to enable config `'flat/prettier'`of `eslint-plugin-jsonc`.
|
|
27
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/user-guide/#usage
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
prettier?: boolean;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* `eslint-plugin-jsonc` and overrides configuration options
|
|
34
|
-
* @param {JsoncOptions & OverridesOptions} options
|
|
35
|
-
* eslint jsonc configuration options for json, jsonc, json5
|
|
36
|
-
* @returns {Promise<Linter.Config[]>}
|
|
37
|
-
* eslint flat configurations with `eslint-plugin-jsonc` and overrides
|
|
38
|
-
*/
|
|
39
|
-
export declare function jsonc(options?: JsoncOptions & OverridesOptions<JsoncRules>): Promise<Linter.Config[]>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, PrettierRules } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* Prettier configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface PrettierOptions {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* `eslint-config-prettier` and overrides configuration options
|
|
10
|
-
* @param {PrettierOptions & OverridesOptions} options
|
|
11
|
-
* eslint configuration options for Prettier
|
|
12
|
-
* @returns {Promise<Linter.Config[]>}
|
|
13
|
-
* eslint flat configurations with `eslint-config-prettier` and overrides
|
|
14
|
-
*/
|
|
15
|
-
export declare function prettier(options?: PrettierOptions & OverridesOptions<PrettierRules>): Promise<Linter.Config[]>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, PrettierRules } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* Prettier configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface PrettierOptions {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* `eslint-config-prettier` and overrides configuration options
|
|
10
|
-
* @param {PrettierOptions & OverridesOptions} options
|
|
11
|
-
* eslint configuration options for Prettier
|
|
12
|
-
* @returns {Promise<Linter.Config[]>}
|
|
13
|
-
* eslint flat configurations with `eslint-config-prettier` and overrides
|
|
14
|
-
*/
|
|
15
|
-
export declare function prettier(options?: PrettierOptions & OverridesOptions<PrettierRules>): Promise<Linter.Config[]>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, PromiseRules } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* eslint promise configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface PromiseOptions {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* `eslint-plugin-promise` and overrides configuration options
|
|
10
|
-
* @param {PromiseOptions & OverridesOptions} options
|
|
11
|
-
* eslint promise configuration options
|
|
12
|
-
* @returns {Promise<Linter.Config[]>}
|
|
13
|
-
* eslint flat configurations with `eslint-plugin-promise` and overrides
|
|
14
|
-
*/
|
|
15
|
-
export declare function promise(options?: PromiseOptions & OverridesOptions<PromiseRules>): Promise<Linter.Config[]>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, PromiseRules } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* eslint promise configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface PromiseOptions {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* `eslint-plugin-promise` and overrides configuration options
|
|
10
|
-
* @param {PromiseOptions & OverridesOptions} options
|
|
11
|
-
* eslint promise configuration options
|
|
12
|
-
* @returns {Promise<Linter.Config[]>}
|
|
13
|
-
* eslint flat configurations with `eslint-plugin-promise` and overrides
|
|
14
|
-
*/
|
|
15
|
-
export declare function promise(options?: PromiseOptions & OverridesOptions<PromiseRules>): Promise<Linter.Config[]>;
|
package/dist/configs/react.d.cts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, ReactRules } from '../types/index.ts';
|
|
3
|
-
import type { TypeScriptOptions } from './typescript.ts';
|
|
4
|
-
/**
|
|
5
|
-
* eslint react configuration options
|
|
6
|
-
*/
|
|
7
|
-
export interface ReactOptions {
|
|
8
|
-
/**
|
|
9
|
-
* use TypeScript
|
|
10
|
-
* @default true
|
|
11
|
-
*/
|
|
12
|
-
typescript?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* enable `eslint-plugin-react-refresh` recommended rules
|
|
15
|
-
* @default false
|
|
16
|
-
*/
|
|
17
|
-
refresh?: boolean;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* `eslint-plugin-react` and overrides configuration options
|
|
21
|
-
* @param {ReactOptions & OverridesOptions} options
|
|
22
|
-
* eslint react configuration options for regular expressions
|
|
23
|
-
* @returns {Promise<Linter.Config[]>}
|
|
24
|
-
* eslint flat configurations with `eslint-plugin-react` and overrides
|
|
25
|
-
*/
|
|
26
|
-
export declare function react(options?: ReactOptions & TypeScriptOptions & OverridesOptions<ReactRules>): Promise<Linter.Config[]>;
|
package/dist/configs/react.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, ReactRules } from '../types/index.ts';
|
|
3
|
-
import type { TypeScriptOptions } from './typescript.ts';
|
|
4
|
-
/**
|
|
5
|
-
* eslint react configuration options
|
|
6
|
-
*/
|
|
7
|
-
export interface ReactOptions {
|
|
8
|
-
/**
|
|
9
|
-
* use TypeScript
|
|
10
|
-
* @default true
|
|
11
|
-
*/
|
|
12
|
-
typescript?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* enable `eslint-plugin-react-refresh` recommended rules
|
|
15
|
-
* @default false
|
|
16
|
-
*/
|
|
17
|
-
refresh?: boolean;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* `eslint-plugin-react` and overrides configuration options
|
|
21
|
-
* @param {ReactOptions & OverridesOptions} options
|
|
22
|
-
* eslint react configuration options for regular expressions
|
|
23
|
-
* @returns {Promise<Linter.Config[]>}
|
|
24
|
-
* eslint flat configurations with `eslint-plugin-react` and overrides
|
|
25
|
-
*/
|
|
26
|
-
export declare function react(options?: ReactOptions & TypeScriptOptions & OverridesOptions<ReactRules>): Promise<Linter.Config[]>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, RegexpRules } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* eslint regexp configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface RegexpOptions {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* `eslint-plugin-regexp` and overrides configuration options
|
|
10
|
-
* @param {RegexpOptions & OverridesOptions} options
|
|
11
|
-
* eslint regexp configuration options for regular expressions
|
|
12
|
-
* @returns {Promise<Linter.Config[]>}
|
|
13
|
-
* eslint flat configurations with `eslint-plugin-regexp` and overrides
|
|
14
|
-
*/
|
|
15
|
-
export declare function regexp(options?: RegexpOptions & OverridesOptions<RegexpRules>): Promise<Linter.Config[]>;
|
package/dist/configs/regexp.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, RegexpRules } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* eslint regexp configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface RegexpOptions {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* `eslint-plugin-regexp` and overrides configuration options
|
|
10
|
-
* @param {RegexpOptions & OverridesOptions} options
|
|
11
|
-
* eslint regexp configuration options for regular expressions
|
|
12
|
-
* @returns {Promise<Linter.Config[]>}
|
|
13
|
-
* eslint flat configurations with `eslint-plugin-regexp` and overrides
|
|
14
|
-
*/
|
|
15
|
-
export declare function regexp(options?: RegexpOptions & OverridesOptions<RegexpRules>): Promise<Linter.Config[]>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, SvelteRules } from '../types/index.ts';
|
|
3
|
-
import type { TypeScriptOptions } from './typescript.ts';
|
|
4
|
-
/**
|
|
5
|
-
* Svelte configuration options
|
|
6
|
-
*/
|
|
7
|
-
export interface SvelteScriptOptions {
|
|
8
|
-
/**
|
|
9
|
-
* use TypeScript in `template` block
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
typescript?: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* `eslint-plugin-svelte` and overrides configuration options
|
|
16
|
-
* @param {SvelteScriptOptions & TypeScriptOptions & OverridesOptions} options
|
|
17
|
-
* eslint configuration options for Vue
|
|
18
|
-
* @returns {Promise<Linter.Config[]>}
|
|
19
|
-
* eslint flat configurations with `eslint-plugin-svelte` and overrides
|
|
20
|
-
*/
|
|
21
|
-
export declare function svelte(options?: SvelteScriptOptions & TypeScriptOptions & OverridesOptions<SvelteRules>): Promise<Linter.Config[]>;
|
package/dist/configs/svelte.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, SvelteRules } from '../types/index.ts';
|
|
3
|
-
import type { TypeScriptOptions } from './typescript.ts';
|
|
4
|
-
/**
|
|
5
|
-
* Svelte configuration options
|
|
6
|
-
*/
|
|
7
|
-
export interface SvelteScriptOptions {
|
|
8
|
-
/**
|
|
9
|
-
* use TypeScript in `template` block
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
typescript?: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* `eslint-plugin-svelte` and overrides configuration options
|
|
16
|
-
* @param {SvelteScriptOptions & TypeScriptOptions & OverridesOptions} options
|
|
17
|
-
* eslint configuration options for Vue
|
|
18
|
-
* @returns {Promise<Linter.Config[]>}
|
|
19
|
-
* eslint flat configurations with `eslint-plugin-svelte` and overrides
|
|
20
|
-
*/
|
|
21
|
-
export declare function svelte(options?: SvelteScriptOptions & TypeScriptOptions & OverridesOptions<SvelteRules>): Promise<Linter.Config[]>;
|
package/dist/configs/toml.d.cts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, TomlRules } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* eslint toml configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface TomlOptions {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* `eslint-plugin-yml` and overrides configuration options
|
|
10
|
-
* @param {YmlOptions & OverridesOptions} options
|
|
11
|
-
* eslint yml configuration options for yml, yaml
|
|
12
|
-
* @returns {Promise<Linter.Config[]>}
|
|
13
|
-
* eslint flat configurations with `eslint-plugin-yml` and overrides
|
|
14
|
-
*/
|
|
15
|
-
export declare function toml(options?: TomlOptions & OverridesOptions<TomlRules>): Promise<Linter.Config[]>;
|
package/dist/configs/toml.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, TomlRules } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* eslint toml configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface TomlOptions {
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* `eslint-plugin-yml` and overrides configuration options
|
|
10
|
-
* @param {YmlOptions & OverridesOptions} options
|
|
11
|
-
* eslint yml configuration options for yml, yaml
|
|
12
|
-
* @returns {Promise<Linter.Config[]>}
|
|
13
|
-
* eslint flat configurations with `eslint-plugin-yml` and overrides
|
|
14
|
-
*/
|
|
15
|
-
export declare function toml(options?: TomlOptions & OverridesOptions<TomlRules>): Promise<Linter.Config[]>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, TypescriptRules } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* TypeScript configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface TypeScriptOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Additional extensions for files.
|
|
9
|
-
* @see https://typescript-eslint.io/packages/parser/#extrafileextensions
|
|
10
|
-
*/
|
|
11
|
-
extraFileExtensions?: string[];
|
|
12
|
-
/**
|
|
13
|
-
* typescript-eslint parser options
|
|
14
|
-
*/
|
|
15
|
-
parserOptions?: TypeScriptParserOptions;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @see https://typescript-eslint.io/getting-started/typed-linting
|
|
19
|
-
*/
|
|
20
|
-
export interface TypeScriptParserOptions {
|
|
21
|
-
/**
|
|
22
|
-
* @see https://typescript-eslint.io/packages/parser#project
|
|
23
|
-
* @default true
|
|
24
|
-
*/
|
|
25
|
-
project?: boolean | string | string[];
|
|
26
|
-
/**
|
|
27
|
-
* @see https://typescript-eslint.io/packages/parser#tsconfigrootdir
|
|
28
|
-
*/
|
|
29
|
-
tsconfigRootDir?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* `typescript-eslint` and overrides configuration options
|
|
33
|
-
* @param {TypeScriptOptions & OverridesOptions} options
|
|
34
|
-
* eslint configuration options for TypeScript
|
|
35
|
-
* @returns {Promise<Linter.FlatConfig[]>}
|
|
36
|
-
* eslint flat configurations with `typescript-eslint` and overrides
|
|
37
|
-
*/
|
|
38
|
-
export declare function typescript(options?: TypeScriptOptions & OverridesOptions<TypescriptRules>): Promise<Linter.Config[]>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, TypescriptRules } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* TypeScript configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface TypeScriptOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Additional extensions for files.
|
|
9
|
-
* @see https://typescript-eslint.io/packages/parser/#extrafileextensions
|
|
10
|
-
*/
|
|
11
|
-
extraFileExtensions?: string[];
|
|
12
|
-
/**
|
|
13
|
-
* typescript-eslint parser options
|
|
14
|
-
*/
|
|
15
|
-
parserOptions?: TypeScriptParserOptions;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @see https://typescript-eslint.io/getting-started/typed-linting
|
|
19
|
-
*/
|
|
20
|
-
export interface TypeScriptParserOptions {
|
|
21
|
-
/**
|
|
22
|
-
* @see https://typescript-eslint.io/packages/parser#project
|
|
23
|
-
* @default true
|
|
24
|
-
*/
|
|
25
|
-
project?: boolean | string | string[];
|
|
26
|
-
/**
|
|
27
|
-
* @see https://typescript-eslint.io/packages/parser#tsconfigrootdir
|
|
28
|
-
*/
|
|
29
|
-
tsconfigRootDir?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* `typescript-eslint` and overrides configuration options
|
|
33
|
-
* @param {TypeScriptOptions & OverridesOptions} options
|
|
34
|
-
* eslint configuration options for TypeScript
|
|
35
|
-
* @returns {Promise<Linter.FlatConfig[]>}
|
|
36
|
-
* eslint flat configurations with `typescript-eslint` and overrides
|
|
37
|
-
*/
|
|
38
|
-
export declare function typescript(options?: TypeScriptOptions & OverridesOptions<TypescriptRules>): Promise<Linter.Config[]>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, UnicornRules } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* eslint unicorn configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface UnicornOptions {
|
|
7
|
-
/**
|
|
8
|
-
* use TypeScript
|
|
9
|
-
* @default true
|
|
10
|
-
*/
|
|
11
|
-
typescript?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* `eslint-plugin-unicorn` and overrides configuration options
|
|
15
|
-
* @param {UnicornOptions & OverridesOptions} options
|
|
16
|
-
* eslint unicorn configuration options
|
|
17
|
-
* @returns {Promise<Linter.Config[]>}
|
|
18
|
-
* eslint flat configurations with `eslint-plugin-unicorn` and overrides
|
|
19
|
-
*/
|
|
20
|
-
export declare function unicorn(options?: UnicornOptions & OverridesOptions<UnicornRules>): Promise<Linter.Config[]>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, UnicornRules } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* eslint unicorn configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface UnicornOptions {
|
|
7
|
-
/**
|
|
8
|
-
* use TypeScript
|
|
9
|
-
* @default true
|
|
10
|
-
*/
|
|
11
|
-
typescript?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* `eslint-plugin-unicorn` and overrides configuration options
|
|
15
|
-
* @param {UnicornOptions & OverridesOptions} options
|
|
16
|
-
* eslint unicorn configuration options
|
|
17
|
-
* @returns {Promise<Linter.Config[]>}
|
|
18
|
-
* eslint flat configurations with `eslint-plugin-unicorn` and overrides
|
|
19
|
-
*/
|
|
20
|
-
export declare function unicorn(options?: UnicornOptions & OverridesOptions<UnicornRules>): Promise<Linter.Config[]>;
|