@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
|
@@ -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,13 +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_TESTS: string[];
|
|
13
|
-
export declare const GLOB_TESTS_TYPE: string[];
|
package/dist/globs.d.ts
DELETED
|
@@ -1,13 +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_TESTS: string[];
|
|
13
|
-
export declare const GLOB_TESTS_TYPE: string[];
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
export interface CommentsRules {
|
|
3
|
-
/**
|
|
4
|
-
* require a `eslint-enable` comment for every `eslint-disable` comment
|
|
5
|
-
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/disable-enable-pair.html
|
|
6
|
-
*/
|
|
7
|
-
'@eslint-community/eslint-comments/disable-enable-pair'?: Linter.RuleEntry<EslintCommunityEslintCommentsDisableEnablePair>;
|
|
8
|
-
/**
|
|
9
|
-
* disallow a `eslint-enable` comment for multiple `eslint-disable` comments
|
|
10
|
-
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-aggregating-enable.html
|
|
11
|
-
*/
|
|
12
|
-
'@eslint-community/eslint-comments/no-aggregating-enable'?: Linter.RuleEntry<[]>;
|
|
13
|
-
/**
|
|
14
|
-
* disallow duplicate `eslint-disable` comments
|
|
15
|
-
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-duplicate-disable.html
|
|
16
|
-
*/
|
|
17
|
-
'@eslint-community/eslint-comments/no-duplicate-disable'?: Linter.RuleEntry<[]>;
|
|
18
|
-
/**
|
|
19
|
-
* disallow `eslint-disable` comments about specific rules
|
|
20
|
-
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-restricted-disable.html
|
|
21
|
-
*/
|
|
22
|
-
'@eslint-community/eslint-comments/no-restricted-disable'?: Linter.RuleEntry<EslintCommunityEslintCommentsNoRestrictedDisable>;
|
|
23
|
-
/**
|
|
24
|
-
* disallow `eslint-disable` comments without rule names
|
|
25
|
-
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unlimited-disable.html
|
|
26
|
-
*/
|
|
27
|
-
'@eslint-community/eslint-comments/no-unlimited-disable'?: Linter.RuleEntry<[]>;
|
|
28
|
-
/**
|
|
29
|
-
* disallow unused `eslint-disable` comments
|
|
30
|
-
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
|
|
31
|
-
*/
|
|
32
|
-
'@eslint-community/eslint-comments/no-unused-disable'?: Linter.RuleEntry<[]>;
|
|
33
|
-
/**
|
|
34
|
-
* disallow unused `eslint-enable` comments
|
|
35
|
-
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-enable.html
|
|
36
|
-
*/
|
|
37
|
-
'@eslint-community/eslint-comments/no-unused-enable'?: Linter.RuleEntry<[]>;
|
|
38
|
-
/**
|
|
39
|
-
* disallow ESLint directive-comments
|
|
40
|
-
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-use.html
|
|
41
|
-
*/
|
|
42
|
-
'@eslint-community/eslint-comments/no-use'?: Linter.RuleEntry<EslintCommunityEslintCommentsNoUse>;
|
|
43
|
-
/**
|
|
44
|
-
* require include descriptions in ESLint directive-comments
|
|
45
|
-
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/require-description.html
|
|
46
|
-
*/
|
|
47
|
-
'@eslint-community/eslint-comments/require-description'?: Linter.RuleEntry<EslintCommunityEslintCommentsRequireDescription>;
|
|
48
|
-
}
|
|
49
|
-
type EslintCommunityEslintCommentsDisableEnablePair = [] | [
|
|
50
|
-
{
|
|
51
|
-
allowWholeFile?: boolean;
|
|
52
|
-
}
|
|
53
|
-
];
|
|
54
|
-
type EslintCommunityEslintCommentsNoRestrictedDisable = string[];
|
|
55
|
-
type EslintCommunityEslintCommentsNoUse = [] | [
|
|
56
|
-
{
|
|
57
|
-
allow?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
|
|
58
|
-
}
|
|
59
|
-
];
|
|
60
|
-
type EslintCommunityEslintCommentsRequireDescription = [] | [
|
|
61
|
-
{
|
|
62
|
-
ignore?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
|
|
63
|
-
}
|
|
64
|
-
];
|
|
65
|
-
export {};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
export interface CommentsRules {
|
|
3
|
-
/**
|
|
4
|
-
* require a `eslint-enable` comment for every `eslint-disable` comment
|
|
5
|
-
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/disable-enable-pair.html
|
|
6
|
-
*/
|
|
7
|
-
'@eslint-community/eslint-comments/disable-enable-pair'?: Linter.RuleEntry<EslintCommunityEslintCommentsDisableEnablePair>;
|
|
8
|
-
/**
|
|
9
|
-
* disallow a `eslint-enable` comment for multiple `eslint-disable` comments
|
|
10
|
-
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-aggregating-enable.html
|
|
11
|
-
*/
|
|
12
|
-
'@eslint-community/eslint-comments/no-aggregating-enable'?: Linter.RuleEntry<[]>;
|
|
13
|
-
/**
|
|
14
|
-
* disallow duplicate `eslint-disable` comments
|
|
15
|
-
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-duplicate-disable.html
|
|
16
|
-
*/
|
|
17
|
-
'@eslint-community/eslint-comments/no-duplicate-disable'?: Linter.RuleEntry<[]>;
|
|
18
|
-
/**
|
|
19
|
-
* disallow `eslint-disable` comments about specific rules
|
|
20
|
-
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-restricted-disable.html
|
|
21
|
-
*/
|
|
22
|
-
'@eslint-community/eslint-comments/no-restricted-disable'?: Linter.RuleEntry<EslintCommunityEslintCommentsNoRestrictedDisable>;
|
|
23
|
-
/**
|
|
24
|
-
* disallow `eslint-disable` comments without rule names
|
|
25
|
-
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unlimited-disable.html
|
|
26
|
-
*/
|
|
27
|
-
'@eslint-community/eslint-comments/no-unlimited-disable'?: Linter.RuleEntry<[]>;
|
|
28
|
-
/**
|
|
29
|
-
* disallow unused `eslint-disable` comments
|
|
30
|
-
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
|
|
31
|
-
*/
|
|
32
|
-
'@eslint-community/eslint-comments/no-unused-disable'?: Linter.RuleEntry<[]>;
|
|
33
|
-
/**
|
|
34
|
-
* disallow unused `eslint-enable` comments
|
|
35
|
-
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-enable.html
|
|
36
|
-
*/
|
|
37
|
-
'@eslint-community/eslint-comments/no-unused-enable'?: Linter.RuleEntry<[]>;
|
|
38
|
-
/**
|
|
39
|
-
* disallow ESLint directive-comments
|
|
40
|
-
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-use.html
|
|
41
|
-
*/
|
|
42
|
-
'@eslint-community/eslint-comments/no-use'?: Linter.RuleEntry<EslintCommunityEslintCommentsNoUse>;
|
|
43
|
-
/**
|
|
44
|
-
* require include descriptions in ESLint directive-comments
|
|
45
|
-
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/require-description.html
|
|
46
|
-
*/
|
|
47
|
-
'@eslint-community/eslint-comments/require-description'?: Linter.RuleEntry<EslintCommunityEslintCommentsRequireDescription>;
|
|
48
|
-
}
|
|
49
|
-
type EslintCommunityEslintCommentsDisableEnablePair = [] | [
|
|
50
|
-
{
|
|
51
|
-
allowWholeFile?: boolean;
|
|
52
|
-
}
|
|
53
|
-
];
|
|
54
|
-
type EslintCommunityEslintCommentsNoRestrictedDisable = string[];
|
|
55
|
-
type EslintCommunityEslintCommentsNoUse = [] | [
|
|
56
|
-
{
|
|
57
|
-
allow?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
|
|
58
|
-
}
|
|
59
|
-
];
|
|
60
|
-
type EslintCommunityEslintCommentsRequireDescription = [] | [
|
|
61
|
-
{
|
|
62
|
-
ignore?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
|
|
63
|
-
}
|
|
64
|
-
];
|
|
65
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { CommentsRules } from './comments';
|
|
2
|
-
import type { ImportsRules } from './imports';
|
|
3
|
-
import type { JavascriptRules } from './javascript';
|
|
4
|
-
import type { JsdocRules } from './jsdoc';
|
|
5
|
-
import type { JsoncRules } from './jsonc';
|
|
6
|
-
import type { PrettierRules } from './prettier';
|
|
7
|
-
import type { PromiseRules } from './promise';
|
|
8
|
-
import type { ReactRules } from './react';
|
|
9
|
-
import type { RegexpRules } from './regexp';
|
|
10
|
-
import type { SvelteRules } from './svelte';
|
|
11
|
-
import type { TomlRules } from './toml';
|
|
12
|
-
import type { TypescriptRules } from './typescript';
|
|
13
|
-
import type { UnicornRules } from './unicorn';
|
|
14
|
-
import type { VitestRules } from './vitest';
|
|
15
|
-
import type { VueRules } from './vue';
|
|
16
|
-
import type { YmlRules } from './yml';
|
|
17
|
-
declare module 'eslint' {
|
|
18
|
-
namespace Linter {
|
|
19
|
-
interface RulesRecord extends CommentsRules, ImportsRules, JavascriptRules, JsdocRules, JsoncRules, PrettierRules, PromiseRules, ReactRules, RegexpRules, SvelteRules, TomlRules, TypescriptRules, UnicornRules, VitestRules, VueRules, YmlRules {
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { CommentsRules } from './comments';
|
|
2
|
-
import type { ImportsRules } from './imports';
|
|
3
|
-
import type { JavascriptRules } from './javascript';
|
|
4
|
-
import type { JsdocRules } from './jsdoc';
|
|
5
|
-
import type { JsoncRules } from './jsonc';
|
|
6
|
-
import type { PrettierRules } from './prettier';
|
|
7
|
-
import type { PromiseRules } from './promise';
|
|
8
|
-
import type { ReactRules } from './react';
|
|
9
|
-
import type { RegexpRules } from './regexp';
|
|
10
|
-
import type { SvelteRules } from './svelte';
|
|
11
|
-
import type { TomlRules } from './toml';
|
|
12
|
-
import type { TypescriptRules } from './typescript';
|
|
13
|
-
import type { UnicornRules } from './unicorn';
|
|
14
|
-
import type { VitestRules } from './vitest';
|
|
15
|
-
import type { VueRules } from './vue';
|
|
16
|
-
import type { YmlRules } from './yml';
|
|
17
|
-
declare module 'eslint' {
|
|
18
|
-
namespace Linter {
|
|
19
|
-
interface RulesRecord extends CommentsRules, ImportsRules, JavascriptRules, JsdocRules, JsoncRules, PrettierRules, PromiseRules, ReactRules, RegexpRules, SvelteRules, TomlRules, TypescriptRules, UnicornRules, VitestRules, VueRules, YmlRules {
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|