@kazupon/eslint-config 0.16.0 → 0.17.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 +1 -1
- package/dist/configs/comments.d.cts +1 -1
- package/dist/configs/comments.d.ts +1 -1
- package/dist/configs/imports.d.cts +9 -4
- package/dist/configs/imports.d.ts +9 -4
- package/dist/configs/index.d.cts +16 -16
- package/dist/configs/index.d.ts +16 -16
- package/dist/configs/javascript.d.cts +1 -1
- package/dist/configs/javascript.d.ts +1 -1
- package/dist/configs/jsdoc.d.cts +1 -1
- package/dist/configs/jsdoc.d.ts +1 -1
- package/dist/configs/jsonc.d.cts +1 -1
- package/dist/configs/jsonc.d.ts +1 -1
- package/dist/configs/prettier.d.cts +1 -1
- package/dist/configs/prettier.d.ts +1 -1
- package/dist/configs/promise.d.cts +1 -1
- package/dist/configs/promise.d.ts +1 -1
- package/dist/configs/react.d.cts +2 -2
- package/dist/configs/react.d.ts +2 -2
- package/dist/configs/regexp.d.cts +1 -1
- package/dist/configs/regexp.d.ts +1 -1
- package/dist/configs/svelte.d.cts +2 -2
- package/dist/configs/svelte.d.ts +2 -2
- package/dist/configs/toml.d.cts +1 -1
- package/dist/configs/toml.d.ts +1 -1
- package/dist/configs/typescript.d.cts +1 -1
- package/dist/configs/typescript.d.ts +1 -1
- package/dist/configs/unicorn.d.cts +1 -1
- package/dist/configs/unicorn.d.ts +1 -1
- package/dist/configs/vitest.d.cts +1 -1
- package/dist/configs/vitest.d.ts +1 -1
- package/dist/configs/vue.d.cts +2 -2
- package/dist/configs/vue.d.ts +2 -2
- package/dist/configs/yml.d.cts +1 -1
- package/dist/configs/yml.d.ts +1 -1
- package/dist/index.cjs +253 -242
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +253 -242
- package/dist/types/gens/imports.d.cts +477 -0
- package/dist/types/gens/imports.d.ts +477 -0
- package/dist/types/index.d.cts +18 -18
- package/dist/types/index.d.ts +18 -18
- package/dist/types/overrides.d.cts +1 -1
- package/dist/types/overrides.d.ts +1 -1
- package/package.json +12 -2
package/README.md
CHANGED
|
@@ -117,7 +117,7 @@ The following built-in preset configurations are supported:
|
|
|
117
117
|
| `javascript` | [`@eslint/js`](https://www.npmjs.com/package/@eslint/js) | no (built-in) |
|
|
118
118
|
| `comments` | [`@eslint-community/eslint-plugin-eslint-comments`](https://www.npmjs.com/package/@eslint-community/eslint-plugin-eslint-comments) | no (built-in) |
|
|
119
119
|
| `typescript` | [`typescript-eslint`](https://www.npmjs.com/package/typescript-eslint) | yes |
|
|
120
|
-
| `imports` | [`eslint-plugin-unused-imports`](https://www.npmjs.com/package/eslint-plugin-unused-imports)
|
|
120
|
+
| `imports` | [`eslint-plugin-import-x`](https://www.npmjs.com/package/eslint-plugin-import-x), [`eslint-plugin-unused-imports`](https://www.npmjs.com/package/eslint-plugin-unused-imports) | yes |
|
|
121
121
|
| `jsdoc` | [`eslint-plugin-jsdoc`](https://www.npmjs.com/package/eslint-plugin-jsdoc) | yes |
|
|
122
122
|
| `regexp` | [`eslint-plugin-regexp`](https://www.npmjs.com/package/eslint-plugin-regexp) | yes |
|
|
123
123
|
| `promise` | [`eslint-plugin-promise`](https://www.npmjs.com/package/eslint-plugin-promise) | yes |
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ImportsRules, OverridesOptions } from '../types/index.ts';
|
|
3
3
|
/**
|
|
4
4
|
* imports configuration options
|
|
5
5
|
*/
|
|
6
6
|
export interface ImportsOptions {
|
|
7
|
+
/**
|
|
8
|
+
* use typescript
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
typescript?: boolean;
|
|
7
12
|
}
|
|
8
13
|
/**
|
|
9
|
-
* `eslint-plugin-unused-imports` and overrides configuration options
|
|
14
|
+
* `eslint-plugin-import-x`, `eslint-plugin-unused-imports` and overrides configuration options
|
|
10
15
|
* @description **if you want to use this preset, you need to put after `javascirpt` and `typescript` presets**
|
|
11
16
|
* @param {ImportsOptions & OverridesOptions} options
|
|
12
17
|
* import configuration options
|
|
13
18
|
* @returns {Promise<Linter.Config[]>}
|
|
14
|
-
* eslint flat configurations with `eslint-plugin-unused-imports` and overrides
|
|
19
|
+
* eslint flat configurations with `eslint-plugin-import-x`, `eslint-plugin-unused-imports` and overrides
|
|
15
20
|
*/
|
|
16
|
-
export declare function imports(options?:
|
|
21
|
+
export declare function imports(options?: ImportsOptions & OverridesOptions<ImportsRules>): Promise<Linter.Config[]>;
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ImportsRules, OverridesOptions } from '../types/index.ts';
|
|
3
3
|
/**
|
|
4
4
|
* imports configuration options
|
|
5
5
|
*/
|
|
6
6
|
export interface ImportsOptions {
|
|
7
|
+
/**
|
|
8
|
+
* use typescript
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
typescript?: boolean;
|
|
7
12
|
}
|
|
8
13
|
/**
|
|
9
|
-
* `eslint-plugin-unused-imports` and overrides configuration options
|
|
14
|
+
* `eslint-plugin-import-x`, `eslint-plugin-unused-imports` and overrides configuration options
|
|
10
15
|
* @description **if you want to use this preset, you need to put after `javascirpt` and `typescript` presets**
|
|
11
16
|
* @param {ImportsOptions & OverridesOptions} options
|
|
12
17
|
* import configuration options
|
|
13
18
|
* @returns {Promise<Linter.Config[]>}
|
|
14
|
-
* eslint flat configurations with `eslint-plugin-unused-imports` and overrides
|
|
19
|
+
* eslint flat configurations with `eslint-plugin-import-x`, `eslint-plugin-unused-imports` and overrides
|
|
15
20
|
*/
|
|
16
|
-
export declare function imports(options?:
|
|
21
|
+
export declare function imports(options?: ImportsOptions & OverridesOptions<ImportsRules>): Promise<Linter.Config[]>;
|
package/dist/configs/index.d.cts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './jsdoc';
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
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
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './jsdoc';
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
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/jsdoc.d.cts
CHANGED
package/dist/configs/jsdoc.d.ts
CHANGED
package/dist/configs/jsonc.d.cts
CHANGED
package/dist/configs/jsonc.d.ts
CHANGED
package/dist/configs/react.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { OverridesOptions, ReactRules } from '../types/index.ts';
|
|
3
|
+
import type { TypeScriptOptions } from './typescript.ts';
|
|
4
4
|
/**
|
|
5
5
|
* eslint react configuration options
|
|
6
6
|
*/
|
package/dist/configs/react.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { OverridesOptions, ReactRules } from '../types/index.ts';
|
|
3
|
+
import type { TypeScriptOptions } from './typescript.ts';
|
|
4
4
|
/**
|
|
5
5
|
* eslint react configuration options
|
|
6
6
|
*/
|
package/dist/configs/regexp.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { OverridesOptions, SvelteRules } from '../types/index.ts';
|
|
3
|
+
import type { TypeScriptOptions } from './typescript.ts';
|
|
4
4
|
/**
|
|
5
5
|
* Svelte configuration options
|
|
6
6
|
*/
|
package/dist/configs/svelte.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { OverridesOptions, SvelteRules } from '../types/index.ts';
|
|
3
|
+
import type { TypeScriptOptions } from './typescript.ts';
|
|
4
4
|
/**
|
|
5
5
|
* Svelte configuration options
|
|
6
6
|
*/
|
package/dist/configs/toml.d.cts
CHANGED
package/dist/configs/toml.d.ts
CHANGED
package/dist/configs/vitest.d.ts
CHANGED
package/dist/configs/vue.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, VueRules } from '../types';
|
|
3
|
-
import type { TypeScriptOptions } from './typescript';
|
|
2
|
+
import type { OverridesOptions, VueRules } from '../types/index.ts';
|
|
3
|
+
import type { TypeScriptOptions } from './typescript.ts';
|
|
4
4
|
/**
|
|
5
5
|
* Vue configuration options
|
|
6
6
|
*/
|
package/dist/configs/vue.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
import type { OverridesOptions, VueRules } from '../types';
|
|
3
|
-
import type { TypeScriptOptions } from './typescript';
|
|
2
|
+
import type { OverridesOptions, VueRules } from '../types/index.ts';
|
|
3
|
+
import type { TypeScriptOptions } from './typescript.ts';
|
|
4
4
|
/**
|
|
5
5
|
* Vue configuration options
|
|
6
6
|
*/
|
package/dist/configs/yml.d.cts
CHANGED
package/dist/configs/yml.d.ts
CHANGED