@kazupon/eslint-config 0.7.0 → 0.9.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 +15 -12
- package/dist/config.d.cts +6 -1
- package/dist/config.d.ts +6 -1
- package/dist/configs/comments.d.cts +14 -3
- package/dist/configs/comments.d.ts +14 -3
- package/dist/configs/index.d.cts +1 -0
- package/dist/configs/index.d.ts +1 -0
- package/dist/configs/javascript.d.cts +14 -3
- package/dist/configs/javascript.d.ts +14 -3
- package/dist/configs/jsdoc.d.cts +24 -4
- package/dist/configs/jsdoc.d.ts +24 -4
- package/dist/configs/jsonc.d.cts +36 -6
- package/dist/configs/jsonc.d.ts +36 -6
- package/dist/configs/prettier.d.cts +14 -3
- package/dist/configs/prettier.d.ts +14 -3
- package/dist/configs/promise.d.cts +15 -0
- package/dist/configs/promise.d.ts +15 -0
- package/dist/configs/regexp.d.cts +14 -3
- package/dist/configs/regexp.d.ts +14 -3
- package/dist/configs/typescript.d.cts +33 -6
- package/dist/configs/typescript.d.ts +33 -6
- package/dist/configs/unicorn.d.cts +14 -3
- package/dist/configs/unicorn.d.ts +14 -3
- package/dist/configs/vue.d.cts +17 -3
- package/dist/configs/vue.d.ts +17 -3
- package/dist/configs/yml.d.cts +18 -3
- package/dist/configs/yml.d.ts +18 -3
- package/dist/globs.d.cts +9 -9
- package/dist/globs.d.ts +9 -9
- package/dist/index.cjs +18 -3
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -4
- package/dist/types/gens/comments.d.cts +65 -0
- package/dist/types/gens/comments.d.ts +65 -0
- package/dist/types/gens/eslint.d.cts +17 -0
- package/dist/types/gens/eslint.d.ts +17 -0
- package/dist/types/gens/javascript.d.cts +3162 -0
- package/dist/types/gens/javascript.d.ts +3162 -0
- package/dist/types/gens/jsdoc.d.cts +744 -0
- package/dist/types/gens/jsdoc.d.ts +744 -0
- package/dist/types/gens/jsonc.d.cts +513 -0
- package/dist/types/gens/jsonc.d.ts +513 -0
- package/dist/types/gens/prettier.d.cts +2 -0
- package/dist/types/gens/prettier.d.ts +2 -0
- package/dist/types/gens/promise.d.cts +107 -0
- package/dist/types/gens/promise.d.ts +107 -0
- package/dist/types/gens/regexp.d.cts +553 -0
- package/dist/types/gens/regexp.d.ts +553 -0
- package/dist/types/gens/typescript.d.cts +2253 -0
- package/dist/types/gens/typescript.d.ts +2253 -0
- package/dist/types/gens/unicorn.d.cts +905 -0
- package/dist/types/gens/unicorn.d.ts +905 -0
- package/dist/types/gens/vue.d.cts +2465 -0
- package/dist/types/gens/vue.d.ts +2465 -0
- package/dist/types/gens/yml.d.cts +375 -0
- package/dist/types/gens/yml.d.ts +375 -0
- package/dist/types/index.d.cts +14 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/overrides.d.cts +6 -0
- package/dist/types/overrides.d.ts +6 -0
- package/dist/types/utils.d.cts +4 -0
- package/dist/types/utils.d.ts +4 -0
- package/dist/utils.d.cts +22 -1
- package/dist/utils.d.ts +22 -1
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@ ESLint config for @kazupon
|
|
|
14
14
|
- `typescript`
|
|
15
15
|
- `jsdoc`
|
|
16
16
|
- `regexp`
|
|
17
|
+
- `promise`
|
|
17
18
|
- `unicorn`
|
|
18
19
|
- `prettier`
|
|
19
20
|
- `jsonc`
|
|
@@ -96,18 +97,19 @@ Add the following settings to your `.vscode/settings.json`:
|
|
|
96
97
|
|
|
97
98
|
The following built-in configurations are supported:
|
|
98
99
|
|
|
99
|
-
| Configuration | Powered by eslint plugin or package
|
|
100
|
-
| ------------- |
|
|
101
|
-
| `javascript` | [`@eslint/js`](https://www.npmjs.com/package/@eslint/js)
|
|
102
|
-
| `comments` | [
|
|
103
|
-
| `typescript` | [`typescript-eslint`](https://www.npmjs.com/package/typescript-eslint)
|
|
104
|
-
| `jsdoc` | [`eslint-plugin-jsdoc`](https://www.npmjs.com/package/eslint-plugin-jsdoc)
|
|
105
|
-
| `regexp` | [`eslint-plugin-regexp`](https://www.npmjs.com/package/eslint-plugin-regexp)
|
|
106
|
-
| `
|
|
107
|
-
| `
|
|
108
|
-
| `
|
|
109
|
-
| `
|
|
110
|
-
| `
|
|
100
|
+
| Configuration | Powered by eslint plugin or package | Need to install eslint plugin or package? |
|
|
101
|
+
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
|
|
102
|
+
| `javascript` | [`@eslint/js`](https://www.npmjs.com/package/@eslint/js) | no (built-in) |
|
|
103
|
+
| `comments` | [`@eslint-community/eslint-plugin-eslint-comments`](https://www.npmjs.com/package/@eslint-community/eslint-plugin-eslint-comments) | no (built-in) |
|
|
104
|
+
| `typescript` | [`typescript-eslint`](https://www.npmjs.com/package/typescript-eslint) | yes |
|
|
105
|
+
| `jsdoc` | [`eslint-plugin-jsdoc`](https://www.npmjs.com/package/eslint-plugin-jsdoc) | yes |
|
|
106
|
+
| `regexp` | [`eslint-plugin-regexp`](https://www.npmjs.com/package/eslint-plugin-regexp) | yes |
|
|
107
|
+
| `promise` | [`eslint-plugin-promise`](https://www.npmjs.com/package/eslint-plugin-promise) | yes |
|
|
108
|
+
| `unicorn` | [`eslint-plugin-unicorn`](https://www.npmjs.com/package/eslint-plugin-unicorn) | yes |
|
|
109
|
+
| `prettier` | [`eslint-config-prettier`](https://www.npmjs.com/package/eslint-config-prettier) | yes |
|
|
110
|
+
| `jsonc` | [`eslint-plugin-jsonc`](https://www.npmjs.com/package/eslint-plugin-jsonc) | yes |
|
|
111
|
+
| `vue` | [`eslint-plugin-vue`](https://www.npmjs.com/package/eslint-plugin-vue) | yes |
|
|
112
|
+
| `yml` | [`eslint-plugin-yml`](https://www.npmjs.com/package/eslint-plugin-yml) | yes |
|
|
111
113
|
|
|
112
114
|
You can use `import` syntax:
|
|
113
115
|
|
|
@@ -132,6 +134,7 @@ This eslint config is inspired by:
|
|
|
132
134
|
|
|
133
135
|
- [`@antfu/eslint-config`](https://github.com/antfu/eslint-config), created by [Anthony Fu](https://github.com/antfu)
|
|
134
136
|
- [`@sxzz/eslint-config`](https://github.com/sxzz/eslint-config), created by [Kevin Deng 三咲智子](https://github.com/sxzz)
|
|
137
|
+
- [Vite](https://github.com/vitejs/vite), created by [Evan You](https://github.com/yyx990803) and Vite community
|
|
135
138
|
|
|
136
139
|
Thank you! ❤️
|
|
137
140
|
|
package/dist/config.d.cts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
2
2
|
import type { Linter } from 'eslint';
|
|
3
3
|
import type { Awaitable } from './types';
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* define eslint configurations
|
|
6
|
+
* @param {Awaitable<Linter.FlatConfig | Linter.FlatConfig[]>[]} configs eslint flat configurations
|
|
7
|
+
* @returns {FlatConfigComposer} eslint flat configuration composer
|
|
8
|
+
*/
|
|
9
|
+
export declare function defineConfig(...configs: Awaitable<Linter.FlatConfig | Linter.FlatConfig[]>[]): FlatConfigComposer;
|
package/dist/config.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
2
2
|
import type { Linter } from 'eslint';
|
|
3
3
|
import type { Awaitable } from './types';
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* define eslint configurations
|
|
6
|
+
* @param {Awaitable<Linter.FlatConfig | Linter.FlatConfig[]>[]} configs eslint flat configurations
|
|
7
|
+
* @returns {FlatConfigComposer} eslint flat configuration composer
|
|
8
|
+
*/
|
|
9
|
+
export declare function defineConfig(...configs: Awaitable<Linter.FlatConfig | Linter.FlatConfig[]>[]): FlatConfigComposer;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions } from '../types';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type { OverridesOptions, CommentsRules } from '../types';
|
|
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.FlatConfig[]>}
|
|
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.FlatConfig[]>;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions } from '../types';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type { OverridesOptions, CommentsRules } from '../types';
|
|
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.FlatConfig[]>}
|
|
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.FlatConfig[]>;
|
package/dist/configs/index.d.cts
CHANGED
package/dist/configs/index.d.ts
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions } from '../types';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type { OverridesOptions, JavascriptRules } from '../types';
|
|
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.FlatConfig[]>}
|
|
13
|
+
* eslint flat configurations with `@eslint/js` and overrides
|
|
14
|
+
*/
|
|
15
|
+
export declare function javascript(options?: JavaScriptOptions & OverridesOptions<JavascriptRules>): Promise<Linter.FlatConfig[]>;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions } from '../types';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type { OverridesOptions, JavascriptRules } from '../types';
|
|
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.FlatConfig[]>}
|
|
13
|
+
* eslint flat configurations with `@eslint/js` and overrides
|
|
14
|
+
*/
|
|
15
|
+
export declare function javascript(options?: JavaScriptOptions & OverridesOptions<JavascriptRules>): Promise<Linter.FlatConfig[]>;
|
package/dist/configs/jsdoc.d.cts
CHANGED
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions } from '../types';
|
|
2
|
+
import type { OverridesOptions, JsdocRules } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* jsdoc configuration options
|
|
5
|
+
*/
|
|
3
6
|
export interface JsDocumentOptions {
|
|
4
|
-
|
|
5
|
-
|
|
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;
|
|
6
19
|
}
|
|
7
|
-
|
|
20
|
+
/**
|
|
21
|
+
* `eslint-plugin-jsdoc` and overrides configuration options
|
|
22
|
+
* @param {JsDocOptions & OverridesOptions} options
|
|
23
|
+
* eslint configuration options for JavaScript
|
|
24
|
+
* @returns {Promise<Linter.FlatConfig[]>}
|
|
25
|
+
* eslint flat configurations with `eslint-plugin-jsdoc` and overrides
|
|
26
|
+
*/
|
|
27
|
+
export declare function jsdoc(options?: JsDocumentOptions & OverridesOptions<JsdocRules>): Promise<Linter.FlatConfig[]>;
|
package/dist/configs/jsdoc.d.ts
CHANGED
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions } from '../types';
|
|
2
|
+
import type { OverridesOptions, JsdocRules } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* jsdoc configuration options
|
|
5
|
+
*/
|
|
3
6
|
export interface JsDocumentOptions {
|
|
4
|
-
|
|
5
|
-
|
|
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;
|
|
6
19
|
}
|
|
7
|
-
|
|
20
|
+
/**
|
|
21
|
+
* `eslint-plugin-jsdoc` and overrides configuration options
|
|
22
|
+
* @param {JsDocOptions & OverridesOptions} options
|
|
23
|
+
* eslint configuration options for JavaScript
|
|
24
|
+
* @returns {Promise<Linter.FlatConfig[]>}
|
|
25
|
+
* eslint flat configurations with `eslint-plugin-jsdoc` and overrides
|
|
26
|
+
*/
|
|
27
|
+
export declare function jsdoc(options?: JsDocumentOptions & OverridesOptions<JsdocRules>): Promise<Linter.FlatConfig[]>;
|
package/dist/configs/jsonc.d.cts
CHANGED
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions } from '../types';
|
|
2
|
+
import type { OverridesOptions, JsoncRules } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* eslint jsonc configuration options
|
|
5
|
+
*/
|
|
3
6
|
export interface JsoncOptions {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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;
|
|
8
31
|
}
|
|
9
|
-
|
|
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.FlatConfig[]>}
|
|
37
|
+
* eslint flat configurations with `eslint-plugin-jsonc` and overrides
|
|
38
|
+
*/
|
|
39
|
+
export declare function jsonc(options?: JsoncOptions & OverridesOptions<JsoncRules>): Promise<Linter.FlatConfig[]>;
|
package/dist/configs/jsonc.d.ts
CHANGED
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions } from '../types';
|
|
2
|
+
import type { OverridesOptions, JsoncRules } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* eslint jsonc configuration options
|
|
5
|
+
*/
|
|
3
6
|
export interface JsoncOptions {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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;
|
|
8
31
|
}
|
|
9
|
-
|
|
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.FlatConfig[]>}
|
|
37
|
+
* eslint flat configurations with `eslint-plugin-jsonc` and overrides
|
|
38
|
+
*/
|
|
39
|
+
export declare function jsonc(options?: JsoncOptions & OverridesOptions<JsoncRules>): Promise<Linter.FlatConfig[]>;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions } from '../types';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type { OverridesOptions, PrettierRules } from '../types';
|
|
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.FlatConfig[]>}
|
|
13
|
+
* eslint flat configurations with `eslint-config-prettier` and overrides
|
|
14
|
+
*/
|
|
15
|
+
export declare function prettier(options?: PrettierOptions & OverridesOptions<PrettierRules>): Promise<Linter.FlatConfig[]>;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions } from '../types';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type { OverridesOptions, PrettierRules } from '../types';
|
|
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.FlatConfig[]>}
|
|
13
|
+
* eslint flat configurations with `eslint-config-prettier` and overrides
|
|
14
|
+
*/
|
|
15
|
+
export declare function prettier(options?: PrettierOptions & OverridesOptions<PrettierRules>): Promise<Linter.FlatConfig[]>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { OverridesOptions, PromiseRules } from '../types';
|
|
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.FlatConfig[]>}
|
|
13
|
+
* eslint flat configurations with `eslint-plugin-promise` and overrides
|
|
14
|
+
*/
|
|
15
|
+
export declare function promise(options?: PromiseOptions & OverridesOptions<PromiseRules>): Promise<Linter.FlatConfig[]>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
import type { OverridesOptions, PromiseRules } from '../types';
|
|
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.FlatConfig[]>}
|
|
13
|
+
* eslint flat configurations with `eslint-plugin-promise` and overrides
|
|
14
|
+
*/
|
|
15
|
+
export declare function promise(options?: PromiseOptions & OverridesOptions<PromiseRules>): Promise<Linter.FlatConfig[]>;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions } from '../types';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type { OverridesOptions, RegexpRules } from '../types';
|
|
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.FlatConfig[]>}
|
|
13
|
+
* eslint flat configurations with `eslint-plugin-regexp` and overrides
|
|
14
|
+
*/
|
|
15
|
+
export declare function regexp(options?: RegexpOptions & OverridesOptions<RegexpRules>): Promise<Linter.FlatConfig[]>;
|
package/dist/configs/regexp.d.ts
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions } from '../types';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type { OverridesOptions, RegexpRules } from '../types';
|
|
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.FlatConfig[]>}
|
|
13
|
+
* eslint flat configurations with `eslint-plugin-regexp` and overrides
|
|
14
|
+
*/
|
|
15
|
+
export declare function regexp(options?: RegexpOptions & OverridesOptions<RegexpRules>): Promise<Linter.FlatConfig[]>;
|
|
@@ -1,11 +1,38 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions } from '../types';
|
|
2
|
+
import type { OverridesOptions, TypescriptRules } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* TypeScript configuration options
|
|
5
|
+
*/
|
|
3
6
|
export interface TypeScriptOptions {
|
|
4
|
-
|
|
5
|
-
|
|
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;
|
|
6
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* @see https://typescript-eslint.io/getting-started/typed-linting
|
|
19
|
+
*/
|
|
7
20
|
export interface TypeScriptParserOptions {
|
|
8
|
-
|
|
9
|
-
|
|
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;
|
|
10
30
|
}
|
|
11
|
-
|
|
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.FlatConfig[]>;
|
|
@@ -1,11 +1,38 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions } from '../types';
|
|
2
|
+
import type { OverridesOptions, TypescriptRules } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* TypeScript configuration options
|
|
5
|
+
*/
|
|
3
6
|
export interface TypeScriptOptions {
|
|
4
|
-
|
|
5
|
-
|
|
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;
|
|
6
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* @see https://typescript-eslint.io/getting-started/typed-linting
|
|
19
|
+
*/
|
|
7
20
|
export interface TypeScriptParserOptions {
|
|
8
|
-
|
|
9
|
-
|
|
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;
|
|
10
30
|
}
|
|
11
|
-
|
|
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.FlatConfig[]>;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions } from '../types';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type { OverridesOptions, UnicornRules } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* eslint unicorn configuration options
|
|
5
|
+
*/
|
|
6
|
+
export interface UnicornOptions {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* `eslint-plugin-unicorn` and overrides configuration options
|
|
10
|
+
* @param {UnicornOptions & OverridesOptions} options
|
|
11
|
+
* eslint unicorn configuration options
|
|
12
|
+
* @returns {Promise<Linter.FlatConfig[]>}
|
|
13
|
+
* eslint flat configurations with `eslint-plugin-unicorn` and overrides
|
|
14
|
+
*/
|
|
15
|
+
export declare function unicorn(options?: UnicornOptions & OverridesOptions<UnicornRules>): Promise<Linter.FlatConfig[]>;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions } from '../types';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type { OverridesOptions, UnicornRules } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* eslint unicorn configuration options
|
|
5
|
+
*/
|
|
6
|
+
export interface UnicornOptions {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* `eslint-plugin-unicorn` and overrides configuration options
|
|
10
|
+
* @param {UnicornOptions & OverridesOptions} options
|
|
11
|
+
* eslint unicorn configuration options
|
|
12
|
+
* @returns {Promise<Linter.FlatConfig[]>}
|
|
13
|
+
* eslint flat configurations with `eslint-plugin-unicorn` and overrides
|
|
14
|
+
*/
|
|
15
|
+
export declare function unicorn(options?: UnicornOptions & OverridesOptions<UnicornRules>): Promise<Linter.FlatConfig[]>;
|
package/dist/configs/vue.d.cts
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions } from '../types';
|
|
3
2
|
import type { TypeScriptOptions } from './typescript';
|
|
3
|
+
import type { OverridesOptions, VueRules } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Vue configuration options
|
|
6
|
+
*/
|
|
4
7
|
export interface VueScriptOptions {
|
|
5
|
-
|
|
8
|
+
/**
|
|
9
|
+
* use TypeScript in `template` block
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
typescript?: boolean;
|
|
6
13
|
}
|
|
7
|
-
|
|
14
|
+
/**
|
|
15
|
+
* `eslint-plugin-vue` and overrides configuration options
|
|
16
|
+
* @param {VueScriptOptions & TypeScriptOptions & OverridesOptions} options
|
|
17
|
+
* eslint configuration options for Vue
|
|
18
|
+
* @returns {Promise<Linter.FlatConfig[]>}
|
|
19
|
+
* eslint flat configurations with `eslint-plugin-vue` and overrides
|
|
20
|
+
*/
|
|
21
|
+
export declare function vue(options?: VueScriptOptions & TypeScriptOptions & OverridesOptions<VueRules>): Promise<Linter.FlatConfig[]>;
|
package/dist/configs/vue.d.ts
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions } from '../types';
|
|
3
2
|
import type { TypeScriptOptions } from './typescript';
|
|
3
|
+
import type { OverridesOptions, VueRules } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Vue configuration options
|
|
6
|
+
*/
|
|
4
7
|
export interface VueScriptOptions {
|
|
5
|
-
|
|
8
|
+
/**
|
|
9
|
+
* use TypeScript in `template` block
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
typescript?: boolean;
|
|
6
13
|
}
|
|
7
|
-
|
|
14
|
+
/**
|
|
15
|
+
* `eslint-plugin-vue` and overrides configuration options
|
|
16
|
+
* @param {VueScriptOptions & TypeScriptOptions & OverridesOptions} options
|
|
17
|
+
* eslint configuration options for Vue
|
|
18
|
+
* @returns {Promise<Linter.FlatConfig[]>}
|
|
19
|
+
* eslint flat configurations with `eslint-plugin-vue` and overrides
|
|
20
|
+
*/
|
|
21
|
+
export declare function vue(options?: VueScriptOptions & TypeScriptOptions & OverridesOptions<VueRules>): Promise<Linter.FlatConfig[]>;
|