@kazupon/eslint-config 0.14.0 → 0.14.1
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/config.d.cts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/index.cjs +4 -1
- package/dist/index.js +4 -1
- package/dist/types/index.d.cts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/utils.d.cts +0 -19
- package/dist/utils.d.ts +0 -19
- package/package.json +2 -1
- package/dist/types/utils.d.cts +0 -4
- package/dist/types/utils.d.ts +0 -4
package/dist/config.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
2
2
|
import type { Linter } from 'eslint';
|
|
3
|
-
import type { Awaitable } from '
|
|
3
|
+
import type { Awaitable } from '@kazupon/jts-utils/types';
|
|
4
4
|
/**
|
|
5
5
|
* define eslint configurations
|
|
6
6
|
* @param {Awaitable<Linter.Config | Linter.Config[]>[]} configs eslint flat configurations
|
package/dist/config.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
2
2
|
import type { Linter } from 'eslint';
|
|
3
|
-
import type { Awaitable } from '
|
|
3
|
+
import type { Awaitable } from '@kazupon/jts-utils/types';
|
|
4
4
|
/**
|
|
5
5
|
* define eslint configurations
|
|
6
6
|
* @param {Awaitable<Linter.Config | Linter.Config[]>[]} configs eslint flat configurations
|
package/dist/index.cjs
CHANGED
|
@@ -46,11 +46,14 @@ const GLOB_VUE = "**/*.vue";
|
|
|
46
46
|
const GLOB_SVELTE = "**/*.svelte";
|
|
47
47
|
|
|
48
48
|
//#endregion
|
|
49
|
-
//#region
|
|
49
|
+
//#region node_modules/.pnpm/@kazupon+jts-utils@0.1.0/node_modules/@kazupon/jts-utils/dist/module/index.mjs
|
|
50
50
|
async function interopDefault(mod) {
|
|
51
51
|
const resolved = await mod;
|
|
52
52
|
return resolved.default || resolved;
|
|
53
53
|
}
|
|
54
|
+
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/utils.ts
|
|
54
57
|
async function loadPlugin(name) {
|
|
55
58
|
const mod = await import(name).catch((error) => {
|
|
56
59
|
console.error(error);
|
package/dist/index.js
CHANGED
|
@@ -22,11 +22,14 @@ const GLOB_VUE = "**/*.vue";
|
|
|
22
22
|
const GLOB_SVELTE = "**/*.svelte";
|
|
23
23
|
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region
|
|
25
|
+
//#region node_modules/.pnpm/@kazupon+jts-utils@0.1.0/node_modules/@kazupon/jts-utils/dist/module/index.mjs
|
|
26
26
|
async function interopDefault(mod) {
|
|
27
27
|
const resolved = await mod;
|
|
28
28
|
return resolved.default || resolved;
|
|
29
29
|
}
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/utils.ts
|
|
30
33
|
async function loadPlugin(name) {
|
|
31
34
|
const mod = await import(name).catch((error) => {
|
|
32
35
|
console.error(error);
|
package/dist/types/index.d.cts
CHANGED
package/dist/types/index.d.ts
CHANGED
package/dist/utils.d.cts
CHANGED
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
import type { Awaitable, InteropModuleDefault } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* convert to array
|
|
4
|
-
* @param {T[]} value a value
|
|
5
|
-
* @returns {T[]} convrted array
|
|
6
|
-
*/
|
|
7
|
-
export declare function toArray<T>(value: T | T[]): T[];
|
|
8
|
-
/**
|
|
9
|
-
* pascalize string
|
|
10
|
-
* @param {string} value a string value
|
|
11
|
-
* @returns {string} pascalized string
|
|
12
|
-
*/
|
|
13
|
-
export declare function pascalize(value: string): string;
|
|
14
|
-
/**
|
|
15
|
-
* resolve module with interop default
|
|
16
|
-
* @param {Awaitable<T>} mod a module
|
|
17
|
-
* @returns {Promise<InteropModuleDefault<T>>} resolved module
|
|
18
|
-
*/
|
|
19
|
-
export declare function interopDefault<T>(mod: Awaitable<T>): Promise<InteropModuleDefault<T>>;
|
|
20
1
|
/**
|
|
21
2
|
* load eslint plugin
|
|
22
3
|
* @param {string} name plugin name
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
import type { Awaitable, InteropModuleDefault } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* convert to array
|
|
4
|
-
* @param {T[]} value a value
|
|
5
|
-
* @returns {T[]} convrted array
|
|
6
|
-
*/
|
|
7
|
-
export declare function toArray<T>(value: T | T[]): T[];
|
|
8
|
-
/**
|
|
9
|
-
* pascalize string
|
|
10
|
-
* @param {string} value a string value
|
|
11
|
-
* @returns {string} pascalized string
|
|
12
|
-
*/
|
|
13
|
-
export declare function pascalize(value: string): string;
|
|
14
|
-
/**
|
|
15
|
-
* resolve module with interop default
|
|
16
|
-
* @param {Awaitable<T>} mod a module
|
|
17
|
-
* @returns {Promise<InteropModuleDefault<T>>} resolved module
|
|
18
|
-
*/
|
|
19
|
-
export declare function interopDefault<T>(mod: Awaitable<T>): Promise<InteropModuleDefault<T>>;
|
|
20
1
|
/**
|
|
21
2
|
* load eslint plugin
|
|
22
3
|
* @param {string} name plugin name
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kazupon/eslint-config",
|
|
3
3
|
"description": "ESLint config for @kazupon",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"email": "kawakazu80@gmail.com",
|
|
7
7
|
"name": "kazuya kawaguchi"
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
|
|
44
44
|
"@eslint/js": "^9.0.0",
|
|
45
|
+
"@kazupon/jts-utils": "^0.1.0",
|
|
45
46
|
"eslint-flat-config-utils": "^0.3.0",
|
|
46
47
|
"globals": "^15.8.0"
|
|
47
48
|
},
|
package/dist/types/utils.d.cts
DELETED
package/dist/types/utils.d.ts
DELETED