@kazupon/eslint-config 0.23.0 → 0.24.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/dist/index.d.ts +25 -4
- package/dist/index.js +3 -4
- package/package.json +22 -22
package/dist/index.d.ts
CHANGED
|
@@ -8458,6 +8458,7 @@ type TypescriptEslintExplicitModuleBoundaryTypes = [] | [
|
|
|
8458
8458
|
allowDirectConstAssertionInArrowFunctions?: boolean;
|
|
8459
8459
|
allowedNames?: string[];
|
|
8460
8460
|
allowHigherOrderFunctions?: boolean;
|
|
8461
|
+
allowOverloadFunctions?: boolean;
|
|
8461
8462
|
allowTypedFunctionExpressions?: boolean;
|
|
8462
8463
|
}
|
|
8463
8464
|
];
|
|
@@ -9358,6 +9359,7 @@ type TypescriptEslintUnboundMethod = [] | [
|
|
|
9358
9359
|
type TypescriptEslintUnifiedSignatures = [] | [
|
|
9359
9360
|
{
|
|
9360
9361
|
ignoreDifferentlyNamedParameters?: boolean;
|
|
9362
|
+
ignoreOverloadsWithDifferentJSDoc?: boolean;
|
|
9361
9363
|
}
|
|
9362
9364
|
];
|
|
9363
9365
|
|
|
@@ -10919,7 +10921,7 @@ interface VueRules {
|
|
|
10919
10921
|
*/
|
|
10920
10922
|
'vue/html-closing-bracket-spacing'?: Linter.RuleEntry<VueHtmlClosingBracketSpacing>;
|
|
10921
10923
|
/**
|
|
10922
|
-
* enforce unified line
|
|
10924
|
+
* enforce unified line break in HTML comments
|
|
10923
10925
|
* @see https://eslint.vuejs.org/rules/html-comment-content-newline.html
|
|
10924
10926
|
*/
|
|
10925
10927
|
'vue/html-comment-content-newline'?: Linter.RuleEntry<VueHtmlCommentContentNewline>;
|
|
@@ -11228,6 +11230,11 @@ interface VueRules {
|
|
|
11228
11230
|
* @see https://eslint.vuejs.org/rules/no-extra-parens.html
|
|
11229
11231
|
*/
|
|
11230
11232
|
'vue/no-extra-parens'?: Linter.RuleEntry<VueNoExtraParens>;
|
|
11233
|
+
/**
|
|
11234
|
+
* Disallow shorthand type conversions in `<template>`
|
|
11235
|
+
* @see https://eslint.vuejs.org/rules/no-implicit-coercion.html
|
|
11236
|
+
*/
|
|
11237
|
+
'vue/no-implicit-coercion'?: Linter.RuleEntry<VueNoImplicitCoercion>;
|
|
11231
11238
|
/**
|
|
11232
11239
|
* require valid keys in model option
|
|
11233
11240
|
* @see https://eslint.vuejs.org/rules/no-invalid-model-keys.html
|
|
@@ -11260,12 +11267,12 @@ interface VueRules {
|
|
|
11260
11267
|
*/
|
|
11261
11268
|
'vue/no-multi-spaces'?: Linter.RuleEntry<VueNoMultiSpaces>;
|
|
11262
11269
|
/**
|
|
11263
|
-
* disallow
|
|
11270
|
+
* disallow passing multiple objects in an array to class
|
|
11264
11271
|
* @see https://eslint.vuejs.org/rules/no-multiple-objects-in-class.html
|
|
11265
11272
|
*/
|
|
11266
11273
|
'vue/no-multiple-objects-in-class'?: Linter.RuleEntry<[]>;
|
|
11267
11274
|
/**
|
|
11268
|
-
* disallow
|
|
11275
|
+
* disallow passing multiple arguments to scoped slots
|
|
11269
11276
|
* @see https://eslint.vuejs.org/rules/no-multiple-slot-args.html
|
|
11270
11277
|
*/
|
|
11271
11278
|
'vue/no-multiple-slot-args'?: Linter.RuleEntry<[]>;
|
|
@@ -12932,6 +12939,15 @@ type VueNoExtraParens = ([] | ["functions"] | [] | ["all"] | [
|
|
|
12932
12939
|
allowParensAfterCommentPattern?: string;
|
|
12933
12940
|
}
|
|
12934
12941
|
]);
|
|
12942
|
+
type VueNoImplicitCoercion = [] | [
|
|
12943
|
+
{
|
|
12944
|
+
boolean?: boolean;
|
|
12945
|
+
number?: boolean;
|
|
12946
|
+
string?: boolean;
|
|
12947
|
+
disallowTemplateShorthand?: boolean;
|
|
12948
|
+
allow?: ("~" | "!!" | "+" | "- -" | "-" | "*")[];
|
|
12949
|
+
}
|
|
12950
|
+
];
|
|
12935
12951
|
type VueNoIrregularWhitespace = [] | [
|
|
12936
12952
|
{
|
|
12937
12953
|
skipComments?: boolean;
|
|
@@ -13244,7 +13260,12 @@ type VuePaddingLinesInComponentDefinition = [] | [
|
|
|
13244
13260
|
})
|
|
13245
13261
|
];
|
|
13246
13262
|
type VuePreferTrueAttributeShorthand = [] | [("always" | "never")];
|
|
13247
|
-
type VuePropNameCasing = [] | [("camelCase" | "snake_case")]
|
|
13263
|
+
type VuePropNameCasing = [] | [("camelCase" | "snake_case")] | [
|
|
13264
|
+
("camelCase" | "snake_case"),
|
|
13265
|
+
{
|
|
13266
|
+
ignoreProps?: string[];
|
|
13267
|
+
}
|
|
13268
|
+
];
|
|
13248
13269
|
type VueQuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [
|
|
13249
13270
|
("always" | "as-needed" | "consistent" | "consistent-as-needed"),
|
|
13250
13271
|
{
|
package/dist/index.js
CHANGED
|
@@ -387,14 +387,13 @@ async function react(options = {}) {
|
|
|
387
387
|
settings,
|
|
388
388
|
...react$1.configs.flat.recommended
|
|
389
389
|
}, {
|
|
390
|
-
name: "react-hooks/flat",
|
|
391
390
|
files: getGlobSourceFiles(useTypeScript),
|
|
392
|
-
|
|
391
|
+
...reactHooks.configs["recommended-latest"]
|
|
393
392
|
}];
|
|
394
393
|
if (enableRefresh) configs.push({
|
|
395
394
|
name: "react-refresh/flat",
|
|
396
395
|
files: getGlobSourceFiles(useTypeScript),
|
|
397
|
-
|
|
396
|
+
...reactRefresh?.configs.recommended
|
|
398
397
|
});
|
|
399
398
|
return [...configs, customConfig];
|
|
400
399
|
}
|
|
@@ -538,7 +537,7 @@ async function vitest(options = {}) {
|
|
|
538
537
|
files: GLOB_TESTS,
|
|
539
538
|
...vitest$1.configs["recommended"]
|
|
540
539
|
};
|
|
541
|
-
if (base.name ==
|
|
540
|
+
if (base.name == void 0) base.name = "@vitest/eslint-plugin";
|
|
542
541
|
if (typeTesting) {
|
|
543
542
|
base.files = [...base.files, ...GLOB_TESTS_TYPE];
|
|
544
543
|
base.settings = { vitest: { typecheck: true } };
|
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.24.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"email": "kawakazu80@gmail.com",
|
|
7
7
|
"name": "kazuya kawaguchi"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
53
|
-
"@eslint/js": "^9.
|
|
53
|
+
"@eslint/js": "^9.22.0",
|
|
54
54
|
"@kazupon/jts-utils": "^0.6.0",
|
|
55
55
|
"eslint-flat-config-utils": "^2.0.1",
|
|
56
56
|
"globals": "^16.0.0"
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"eslint-plugin-jsonc": ">=2.16.0",
|
|
68
68
|
"eslint-plugin-promise": ">=6.4.0",
|
|
69
69
|
"eslint-plugin-react": ">=7.35.0",
|
|
70
|
-
"eslint-plugin-react-hooks": ">=
|
|
71
|
-
"eslint-plugin-react-refresh": ">=0.4.
|
|
70
|
+
"eslint-plugin-react-hooks": ">=5.2.0",
|
|
71
|
+
"eslint-plugin-react-refresh": ">=0.4.19",
|
|
72
72
|
"eslint-plugin-regexp": ">=2.6.0",
|
|
73
73
|
"eslint-plugin-svelte": ">=2.43.0",
|
|
74
74
|
"eslint-plugin-toml": ">=0.11.0",
|
|
@@ -158,43 +158,43 @@
|
|
|
158
158
|
},
|
|
159
159
|
"devDependencies": {
|
|
160
160
|
"@eslint/css": "^0.5.0",
|
|
161
|
-
"@eslint/markdown": "^6.
|
|
161
|
+
"@eslint/markdown": "^6.3.0",
|
|
162
162
|
"@kazupon/prettier-config": "^0.1.1",
|
|
163
163
|
"@types/eslint": "^9.6.1",
|
|
164
|
-
"@types/node": "^22.13.
|
|
165
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
166
|
-
"bumpp": "^10.0
|
|
167
|
-
"eslint": "^9.
|
|
168
|
-
"eslint-config-prettier": "^10.
|
|
169
|
-
"eslint-import-resolver-typescript": "^3.
|
|
164
|
+
"@types/node": "^22.13.11",
|
|
165
|
+
"@vitest/eslint-plugin": "^1.1.38",
|
|
166
|
+
"bumpp": "^10.1.0",
|
|
167
|
+
"eslint": "^9.22.0",
|
|
168
|
+
"eslint-config-prettier": "^10.1.1",
|
|
169
|
+
"eslint-import-resolver-typescript": "^3.9.1",
|
|
170
170
|
"eslint-plugin-import": "^2.31.0",
|
|
171
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
171
|
+
"eslint-plugin-jsdoc": "^50.6.8",
|
|
172
172
|
"eslint-plugin-jsonc": "^2.19.1",
|
|
173
173
|
"eslint-plugin-promise": "^7.2.1",
|
|
174
174
|
"eslint-plugin-react": "^7.37.4",
|
|
175
|
-
"eslint-plugin-react-hooks": "^5.
|
|
175
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
176
176
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
177
177
|
"eslint-plugin-regexp": "^2.7.0",
|
|
178
178
|
"eslint-plugin-svelte": "^2.46.1",
|
|
179
179
|
"eslint-plugin-toml": "^0.12.0",
|
|
180
180
|
"eslint-plugin-unicorn": "^57.0.0",
|
|
181
181
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
182
|
-
"eslint-plugin-vue": "^9.
|
|
182
|
+
"eslint-plugin-vue": "^9.33.0",
|
|
183
183
|
"eslint-plugin-vue-composable": "^1.0.0",
|
|
184
184
|
"eslint-plugin-vue-scoped-css": "^2.9.0",
|
|
185
185
|
"eslint-plugin-vuejs-accessibility": "^2.4.1",
|
|
186
186
|
"eslint-plugin-yml": "^1.17.0",
|
|
187
|
-
"eslint-typegen": "^2.
|
|
187
|
+
"eslint-typegen": "^2.1.0",
|
|
188
188
|
"gh-changelogen": "^0.2.8",
|
|
189
189
|
"jiti": "^2.4.2",
|
|
190
|
-
"knip": "^5.
|
|
191
|
-
"lint-staged": "^15.
|
|
192
|
-
"prettier": "^3.5.
|
|
190
|
+
"knip": "^5.46.0",
|
|
191
|
+
"lint-staged": "^15.5.0",
|
|
192
|
+
"prettier": "^3.5.3",
|
|
193
193
|
"svelte": "^4.2.19",
|
|
194
|
-
"tsdown": "^0.6.
|
|
195
|
-
"typescript": "^5.
|
|
196
|
-
"typescript-eslint": "^8.
|
|
197
|
-
"vitest": "^3.0.
|
|
194
|
+
"tsdown": "^0.6.9",
|
|
195
|
+
"typescript": "^5.8.2",
|
|
196
|
+
"typescript-eslint": "^8.27.0",
|
|
197
|
+
"vitest": "^3.0.9"
|
|
198
198
|
},
|
|
199
199
|
"prettier": "@kazupon/prettier-config",
|
|
200
200
|
"lint-staged": {
|