@kazupon/eslint-config 0.13.3 → 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/gens/jsdoc.d.cts +52 -0
- package/dist/types/gens/jsdoc.d.ts +52 -0
- package/dist/types/gens/unicorn.d.cts +141 -136
- package/dist/types/gens/unicorn.d.ts +141 -136
- package/dist/types/index.d.cts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/overrides.d.cts +1 -0
- package/dist/types/overrides.d.ts +1 -0
- package/dist/utils.d.cts +0 -19
- package/dist/utils.d.ts +0 -19
- package/package.json +12 -11
- package/dist/types/utils.d.cts +0 -4
- package/dist/types/utils.d.ts +0 -4
package/dist/types/index.d.cts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Linter, ESLint } from 'eslint';
|
|
2
2
|
export interface OverridesOptions<Rules = Linter.Config['rules']> {
|
|
3
3
|
files?: Linter.Config['files'];
|
|
4
|
+
ignores?: Linter.Config['ignores'];
|
|
4
5
|
rules?: Rules;
|
|
5
6
|
parserOptions?: ESLint.Environment['parserOptions'];
|
|
6
7
|
settings?: Linter.Config['settings'];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Linter, ESLint } from 'eslint';
|
|
2
2
|
export interface OverridesOptions<Rules = Linter.Config['rules']> {
|
|
3
3
|
files?: Linter.Config['files'];
|
|
4
|
+
ignores?: Linter.Config['ignores'];
|
|
4
5
|
rules?: Rules;
|
|
5
6
|
parserOptions?: ESLint.Environment['parserOptions'];
|
|
6
7
|
settings?: Linter.Config['settings'];
|
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.
|
|
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
|
},
|
|
@@ -113,11 +114,11 @@
|
|
|
113
114
|
"devDependencies": {
|
|
114
115
|
"@kazupon/prettier-config": "^0.1.1",
|
|
115
116
|
"@types/eslint": "^9.6.0",
|
|
116
|
-
"@types/node": "^
|
|
117
|
+
"@types/node": "^22.5.0",
|
|
117
118
|
"bumpp": "^9.4.1",
|
|
118
119
|
"eslint": "^9.9.0",
|
|
119
120
|
"eslint-config-prettier": "^9.1.0",
|
|
120
|
-
"eslint-plugin-jsdoc": "^
|
|
121
|
+
"eslint-plugin-jsdoc": "^50.0.0",
|
|
121
122
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
122
123
|
"eslint-plugin-promise": "^7.0.0",
|
|
123
124
|
"eslint-plugin-react": "^7.35.0",
|
|
@@ -126,17 +127,17 @@
|
|
|
126
127
|
"eslint-plugin-regexp": "^2.6.0",
|
|
127
128
|
"eslint-plugin-svelte": "^2.43.0",
|
|
128
129
|
"eslint-plugin-toml": "^0.11.0",
|
|
129
|
-
"eslint-plugin-unicorn": "^
|
|
130
|
+
"eslint-plugin-unicorn": "^55.0.0",
|
|
130
131
|
"eslint-plugin-vue": "^9.27.0",
|
|
131
132
|
"eslint-plugin-yml": "^1.14.0",
|
|
132
133
|
"eslint-typegen": "^0.3.1",
|
|
133
134
|
"gh-changelogen": "^0.2.8",
|
|
135
|
+
"jiti": "^1.21.6",
|
|
134
136
|
"lint-staged": "^15.2.7",
|
|
135
137
|
"npm-run-all2": "^6.2.2",
|
|
136
138
|
"prettier": "^3.3.2",
|
|
137
139
|
"svelte": "^4.2.18",
|
|
138
|
-
"tsdown": "^0.2.
|
|
139
|
-
"tsx": "^4.16.2",
|
|
140
|
+
"tsdown": "^0.2.9",
|
|
140
141
|
"typescript": "^5.5.3",
|
|
141
142
|
"typescript-eslint": "^8.1.0",
|
|
142
143
|
"vitest": "^2.0.0"
|
|
@@ -145,11 +146,11 @@
|
|
|
145
146
|
"lint-staged": {
|
|
146
147
|
"*.ts?(x)": [
|
|
147
148
|
"prettier --parser=typescript --write",
|
|
148
|
-
"eslint --fix"
|
|
149
|
+
"eslint --flag unstable_ts_config --fix"
|
|
149
150
|
],
|
|
150
151
|
"*.{js,mjs,cjs}": [
|
|
151
152
|
"prettier --write",
|
|
152
|
-
"eslint --fix"
|
|
153
|
+
"eslint --flag unstable_ts_config --fix"
|
|
153
154
|
],
|
|
154
155
|
"*.{json,jsonc,json5,md,yml,yaml}": [
|
|
155
156
|
"prettier --write"
|
|
@@ -161,14 +162,14 @@
|
|
|
161
162
|
"changelog": "gh-changelogen --repo=kazupon/eslint-config",
|
|
162
163
|
"dev": "pnpx @eslint/config-inspector --config eslint.config.ts",
|
|
163
164
|
"fix": "run-p \"fix:* {@}\" --",
|
|
164
|
-
"fix:eslint": "eslint . --fix",
|
|
165
|
+
"fix:eslint": "eslint --flag unstable_ts_config . --fix",
|
|
165
166
|
"fix:prettier": "prettier . --write",
|
|
166
167
|
"lint": "run-p \"lint:* {@}\" --",
|
|
167
|
-
"lint:eslint": "eslint .",
|
|
168
|
+
"lint:eslint": "eslint --flag unstable_ts_config .",
|
|
168
169
|
"lint:prettier": "prettier . --check",
|
|
169
170
|
"release": "bumpp --commit \"release: v%s\" --all --push --tag",
|
|
170
171
|
"test": "vitest",
|
|
171
172
|
"typecheck": "tsc -p .",
|
|
172
|
-
"typegen": "pnpx
|
|
173
|
+
"typegen": "pnpx jiti scripts/typegen.ts"
|
|
173
174
|
}
|
|
174
175
|
}
|
package/dist/types/utils.d.cts
DELETED
package/dist/types/utils.d.ts
DELETED