@kazupon/eslint-config 0.18.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/dist/index.cjs +97 -216
- package/dist/index.d.cts +14216 -3
- package/dist/index.d.ts +14216 -3
- package/dist/index.js +70 -89
- package/package.json +15 -15
- 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 -17
- package/dist/configs/index.d.ts +0 -17
- 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/markdown.d.cts +0 -28
- package/dist/configs/markdown.d.ts +0 -28
- 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 -14
- package/dist/globs.d.ts +0 -14
- 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 -23
- package/dist/types/gens/eslint.d.ts +0 -23
- package/dist/types/gens/imports.d.cts +0 -520
- package/dist/types/gens/imports.d.ts +0 -520
- package/dist/types/gens/javascript.d.cts +0 -3163
- package/dist/types/gens/javascript.d.ts +0 -3163
- 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/markdown.d.cts +0 -42
- package/dist/types/gens/markdown.d.ts +0 -42
- 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 -925
- package/dist/types/gens/unicorn.d.ts +0 -925
- 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 -19
- package/dist/types/index.d.ts +0 -19
- 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
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { MarkdownRules, OverridesOptions } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* eslint unicorn configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface MarkdownOptions {
|
|
7
|
-
/**
|
|
8
|
-
* makrdown language
|
|
9
|
-
* @see https://github.com/eslint/markdown?tab=readme-ov-file#languages
|
|
10
|
-
* @default 'gfm'
|
|
11
|
-
*/
|
|
12
|
-
language?: 'commonmark' | 'gfm';
|
|
13
|
-
/**
|
|
14
|
-
* enable fenced code blocks
|
|
15
|
-
* @see https://github.com/eslint/markdown/blob/main/docs/processors/markdown.md
|
|
16
|
-
* @default true
|
|
17
|
-
*/
|
|
18
|
-
fencedCodeBlocks?: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* `@eslint/markdown` and overrides configuration options
|
|
22
|
-
* @param {MarkdownOptions & OverridesOptions} options
|
|
23
|
-
* eslint unicorn configuration options
|
|
24
|
-
* @returns {Promise<Linter.Config[]>}
|
|
25
|
-
* eslint flat configurations with `@eslint/markdown` and overrides
|
|
26
|
-
*/
|
|
27
|
-
export declare function markdown(options?: MarkdownOptions & OverridesOptions<MarkdownRules>): Promise<Linter.Config[]>;
|
|
28
|
-
export declare const md: typeof markdown;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { MarkdownRules, OverridesOptions } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* eslint unicorn configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface MarkdownOptions {
|
|
7
|
-
/**
|
|
8
|
-
* makrdown language
|
|
9
|
-
* @see https://github.com/eslint/markdown?tab=readme-ov-file#languages
|
|
10
|
-
* @default 'gfm'
|
|
11
|
-
*/
|
|
12
|
-
language?: 'commonmark' | 'gfm';
|
|
13
|
-
/**
|
|
14
|
-
* enable fenced code blocks
|
|
15
|
-
* @see https://github.com/eslint/markdown/blob/main/docs/processors/markdown.md
|
|
16
|
-
* @default true
|
|
17
|
-
*/
|
|
18
|
-
fencedCodeBlocks?: boolean;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* `@eslint/markdown` and overrides configuration options
|
|
22
|
-
* @param {MarkdownOptions & OverridesOptions} options
|
|
23
|
-
* eslint unicorn configuration options
|
|
24
|
-
* @returns {Promise<Linter.Config[]>}
|
|
25
|
-
* eslint flat configurations with `@eslint/markdown` and overrides
|
|
26
|
-
*/
|
|
27
|
-
export declare function markdown(options?: MarkdownOptions & OverridesOptions<MarkdownRules>): Promise<Linter.Config[]>;
|
|
28
|
-
export declare const md: typeof markdown;
|
|
@@ -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[]>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, VitestRules } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* eslint vitest configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface VitestOptions {
|
|
7
|
-
/**
|
|
8
|
-
* use type testing
|
|
9
|
-
* @description about type testing, see https://vitest.dev/guide/testing-types,
|
|
10
|
-
* and about eslint config, see https://github.com/vitest-dev/eslint-plugin-vitest?tab=readme-ov-file#enabling-with-type-testing
|
|
11
|
-
* @default false
|
|
12
|
-
*/
|
|
13
|
-
typeTesting?: boolean;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* `@vitest/eslint-plugin` and overrides configuration options
|
|
17
|
-
* @param {VitestOptions & OverridesOptions} options
|
|
18
|
-
* eslint vitest configuration options
|
|
19
|
-
* @returns {Promise<Linter.Config[]>}
|
|
20
|
-
* eslint flat configurations with `@vitest/eslint-plugin` and overrides
|
|
21
|
-
*/
|
|
22
|
-
export declare function vitest(options?: VitestOptions & OverridesOptions<VitestRules>): Promise<Linter.Config[]>;
|
package/dist/configs/vitest.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, VitestRules } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* eslint vitest configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface VitestOptions {
|
|
7
|
-
/**
|
|
8
|
-
* use type testing
|
|
9
|
-
* @description about type testing, see https://vitest.dev/guide/testing-types,
|
|
10
|
-
* and about eslint config, see https://github.com/vitest-dev/eslint-plugin-vitest?tab=readme-ov-file#enabling-with-type-testing
|
|
11
|
-
* @default false
|
|
12
|
-
*/
|
|
13
|
-
typeTesting?: boolean;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* `@vitest/eslint-plugin` and overrides configuration options
|
|
17
|
-
* @param {VitestOptions & OverridesOptions} options
|
|
18
|
-
* eslint vitest configuration options
|
|
19
|
-
* @returns {Promise<Linter.Config[]>}
|
|
20
|
-
* eslint flat configurations with `@vitest/eslint-plugin` and overrides
|
|
21
|
-
*/
|
|
22
|
-
export declare function vitest(options?: VitestOptions & OverridesOptions<VitestRules>): Promise<Linter.Config[]>;
|
package/dist/configs/vue.d.cts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, VueRules } from '../types/index.ts';
|
|
3
|
-
import type { TypeScriptOptions } from './typescript.ts';
|
|
4
|
-
/**
|
|
5
|
-
* Vue configuration options
|
|
6
|
-
*/
|
|
7
|
-
export interface VueScriptOptions {
|
|
8
|
-
/**
|
|
9
|
-
* use TypeScript in `template` block
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
typescript?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* enable `eslint-plugin-vue-composable` rules
|
|
15
|
-
* @default false
|
|
16
|
-
*/
|
|
17
|
-
composable?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* enable `eslint-plugin-vue-scoped-css` rules
|
|
20
|
-
* @default false
|
|
21
|
-
*/
|
|
22
|
-
scopedCss?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* enable `eslint-plugin-vue-eslint-plugin-vuejs-accessibility` rules
|
|
25
|
-
* @default false
|
|
26
|
-
*/
|
|
27
|
-
a11y?: boolean;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* `eslint-plugin-vue`, `eslint-plugin-vue-composable`, `eslint-plugin-vue-eslint-plugin-vuejs-accessibility` and overrides configuration options
|
|
31
|
-
* @param {VueScriptOptions & TypeScriptOptions & OverridesOptions} options
|
|
32
|
-
* eslint configuration options for Vue
|
|
33
|
-
* @returns {Promise<Linter.Config[]>}
|
|
34
|
-
* eslint flat configurations with `eslint-plugin-vue`, `eslint-plugin-vue-composable`, `eslint-plugin-vue-eslint-plugin-vuejs-accessibility` and overrides
|
|
35
|
-
*/
|
|
36
|
-
export declare function vue(options?: VueScriptOptions & TypeScriptOptions & OverridesOptions<VueRules>): Promise<Linter.Config[]>;
|
package/dist/configs/vue.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, VueRules } from '../types/index.ts';
|
|
3
|
-
import type { TypeScriptOptions } from './typescript.ts';
|
|
4
|
-
/**
|
|
5
|
-
* Vue configuration options
|
|
6
|
-
*/
|
|
7
|
-
export interface VueScriptOptions {
|
|
8
|
-
/**
|
|
9
|
-
* use TypeScript in `template` block
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
typescript?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* enable `eslint-plugin-vue-composable` rules
|
|
15
|
-
* @default false
|
|
16
|
-
*/
|
|
17
|
-
composable?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* enable `eslint-plugin-vue-scoped-css` rules
|
|
20
|
-
* @default false
|
|
21
|
-
*/
|
|
22
|
-
scopedCss?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* enable `eslint-plugin-vue-eslint-plugin-vuejs-accessibility` rules
|
|
25
|
-
* @default false
|
|
26
|
-
*/
|
|
27
|
-
a11y?: boolean;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* `eslint-plugin-vue`, `eslint-plugin-vue-composable`, `eslint-plugin-vue-eslint-plugin-vuejs-accessibility` and overrides configuration options
|
|
31
|
-
* @param {VueScriptOptions & TypeScriptOptions & OverridesOptions} options
|
|
32
|
-
* eslint configuration options for Vue
|
|
33
|
-
* @returns {Promise<Linter.Config[]>}
|
|
34
|
-
* eslint flat configurations with `eslint-plugin-vue`, `eslint-plugin-vue-composable`, `eslint-plugin-vue-eslint-plugin-vuejs-accessibility` and overrides
|
|
35
|
-
*/
|
|
36
|
-
export declare function vue(options?: VueScriptOptions & TypeScriptOptions & OverridesOptions<VueRules>): Promise<Linter.Config[]>;
|
package/dist/configs/yml.d.cts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, YmlRules } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* eslint yml configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface YmlOptions {
|
|
7
|
-
/**
|
|
8
|
-
* whether to enable config `'flat/prettier'`of `eslint-plugin-jsonc`.
|
|
9
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/user-guide/#configuration
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
prettier?: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* `eslint-plugin-yml` and overrides configuration options
|
|
16
|
-
* @param {YmlOptions & OverridesOptions} options
|
|
17
|
-
* eslint yml configuration options for yml, yaml
|
|
18
|
-
* @returns {Promise<Linter.Config[]>}
|
|
19
|
-
* eslint flat configurations with `eslint-plugin-yml` and overrides
|
|
20
|
-
*/
|
|
21
|
-
export declare function yml(options?: YmlOptions & OverridesOptions<YmlRules>): Promise<Linter.Config[]>;
|
|
22
|
-
export declare const yaml: typeof yml;
|
package/dist/configs/yml.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, YmlRules } from '../types/index.ts';
|
|
3
|
-
/**
|
|
4
|
-
* eslint yml configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface YmlOptions {
|
|
7
|
-
/**
|
|
8
|
-
* whether to enable config `'flat/prettier'`of `eslint-plugin-jsonc`.
|
|
9
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/user-guide/#configuration
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
prettier?: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* `eslint-plugin-yml` and overrides configuration options
|
|
16
|
-
* @param {YmlOptions & OverridesOptions} options
|
|
17
|
-
* eslint yml configuration options for yml, yaml
|
|
18
|
-
* @returns {Promise<Linter.Config[]>}
|
|
19
|
-
* eslint flat configurations with `eslint-plugin-yml` and overrides
|
|
20
|
-
*/
|
|
21
|
-
export declare function yml(options?: YmlOptions & OverridesOptions<YmlRules>): Promise<Linter.Config[]>;
|
|
22
|
-
export declare const yaml: typeof yml;
|
package/dist/globs.d.cts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const GLOB_JS = "**/*.?([cm])js";
|
|
2
|
-
export declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
3
|
-
export declare const GLOB_TS = "**/*.?([cm])ts";
|
|
4
|
-
export declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
5
|
-
export declare const GLOB_JSON = "**/*.json";
|
|
6
|
-
export declare const GLOB_JSON5 = "**/*.json5";
|
|
7
|
-
export declare const GLOB_JSONC = "**/*.jsonc";
|
|
8
|
-
export declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
9
|
-
export declare const GLOB_TOML = "**/*.toml";
|
|
10
|
-
export declare const GLOB_VUE = "**/*.vue";
|
|
11
|
-
export declare const GLOB_SVELTE = "**/*.svelte";
|
|
12
|
-
export declare const GLOB_MARKDOWN = "**/*.md";
|
|
13
|
-
export declare const GLOB_TESTS: string[];
|
|
14
|
-
export declare const GLOB_TESTS_TYPE: string[];
|
package/dist/globs.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const GLOB_JS = "**/*.?([cm])js";
|
|
2
|
-
export declare const GLOB_JSX = "**/*.?([cm])jsx";
|
|
3
|
-
export declare const GLOB_TS = "**/*.?([cm])ts";
|
|
4
|
-
export declare const GLOB_TSX = "**/*.?([cm])tsx";
|
|
5
|
-
export declare const GLOB_JSON = "**/*.json";
|
|
6
|
-
export declare const GLOB_JSON5 = "**/*.json5";
|
|
7
|
-
export declare const GLOB_JSONC = "**/*.jsonc";
|
|
8
|
-
export declare const GLOB_YAML = "**/*.y?(a)ml";
|
|
9
|
-
export declare const GLOB_TOML = "**/*.toml";
|
|
10
|
-
export declare const GLOB_VUE = "**/*.vue";
|
|
11
|
-
export declare const GLOB_SVELTE = "**/*.svelte";
|
|
12
|
-
export declare const GLOB_MARKDOWN = "**/*.md";
|
|
13
|
-
export declare const GLOB_TESTS: string[];
|
|
14
|
-
export declare const GLOB_TESTS_TYPE: string[];
|