@vinicunca/eslint-config 3.27.0 → 3.29.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 +33 -1
- package/dist/index.js +16 -16
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -1047,6 +1047,26 @@ interface RuleOptions {
|
|
|
1047
1047
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/text-escaping.md#repos-sticky-header
|
|
1048
1048
|
*/
|
|
1049
1049
|
'jsdoc/text-escaping'?: Linter.RuleEntry<JsdocTextEscaping>;
|
|
1050
|
+
/**
|
|
1051
|
+
* Prefers either function properties or method signatures
|
|
1052
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-method-signature-style.md#repos-sticky-header
|
|
1053
|
+
*/
|
|
1054
|
+
'jsdoc/ts-method-signature-style'?: Linter.RuleEntry<JsdocTsMethodSignatureStyle>;
|
|
1055
|
+
/**
|
|
1056
|
+
* Warns against use of the empty object type
|
|
1057
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-no-empty-object-type.md#repos-sticky-header
|
|
1058
|
+
*/
|
|
1059
|
+
'jsdoc/ts-no-empty-object-type'?: Linter.RuleEntry<[]>;
|
|
1060
|
+
/**
|
|
1061
|
+
* Catches unnecessary template expressions such as string expressions within a template literal.
|
|
1062
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-no-unnecessary-template-expression.md#repos-sticky-header
|
|
1063
|
+
*/
|
|
1064
|
+
'jsdoc/ts-no-unnecessary-template-expression'?: Linter.RuleEntry<JsdocTsNoUnnecessaryTemplateExpression>;
|
|
1065
|
+
/**
|
|
1066
|
+
* Prefers function types over call signatures when there are no other properties.
|
|
1067
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-prefer-function-type.md#repos-sticky-header
|
|
1068
|
+
*/
|
|
1069
|
+
'jsdoc/ts-prefer-function-type'?: Linter.RuleEntry<JsdocTsPreferFunctionType>;
|
|
1050
1070
|
/**
|
|
1051
1071
|
* Formats JSDoc type values.
|
|
1052
1072
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/type-formatting.md#repos-sticky-header
|
|
@@ -6150,7 +6170,7 @@ interface RuleOptions {
|
|
|
6150
6170
|
*/
|
|
6151
6171
|
'template-tag-spacing'?: Linter.RuleEntry<TemplateTagSpacing>;
|
|
6152
6172
|
/**
|
|
6153
|
-
* require
|
|
6173
|
+
* require test file pattern
|
|
6154
6174
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
|
|
6155
6175
|
*/
|
|
6156
6176
|
'test/consistent-test-filename'?: Linter.RuleEntry<TestConsistentTestFilename>;
|
|
@@ -10327,6 +10347,18 @@ type JsdocTextEscaping = [] | [{
|
|
|
10327
10347
|
escapeHTML?: boolean;
|
|
10328
10348
|
escapeMarkdown?: boolean;
|
|
10329
10349
|
}];
|
|
10350
|
+
// ----- jsdoc/ts-method-signature-style -----
|
|
10351
|
+
type JsdocTsMethodSignatureStyle = [] | [("method" | "property")] | [("method" | "property"), {
|
|
10352
|
+
enableFixer?: boolean;
|
|
10353
|
+
}];
|
|
10354
|
+
// ----- jsdoc/ts-no-unnecessary-template-expression -----
|
|
10355
|
+
type JsdocTsNoUnnecessaryTemplateExpression = [] | [{
|
|
10356
|
+
enableFixer?: boolean;
|
|
10357
|
+
}];
|
|
10358
|
+
// ----- jsdoc/ts-prefer-function-type -----
|
|
10359
|
+
type JsdocTsPreferFunctionType = [] | [{
|
|
10360
|
+
enableFixer?: boolean;
|
|
10361
|
+
}];
|
|
10330
10362
|
// ----- jsdoc/type-formatting -----
|
|
10331
10363
|
type JsdocTypeFormatting = [] | [{
|
|
10332
10364
|
arrayBrackets?: ("angle" | "square");
|
package/dist/index.js
CHANGED
|
@@ -15,23 +15,23 @@ import globals from "globals";
|
|
|
15
15
|
import { mergeProcessors, processorPassThrough } from "eslint-merge-processors";
|
|
16
16
|
import { configs } from "eslint-plugin-regexp";
|
|
17
17
|
|
|
18
|
-
//#region ../node_modules/.pnpm/@vinicunca+perkakas@1.
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
let e$2 = Object.getPrototypeOf(o);
|
|
22
|
-
return e$2 === null || e$2 === Object.prototype;
|
|
18
|
+
//#region ../node_modules/.pnpm/@vinicunca+perkakas@1.8.0/node_modules/@vinicunca/perkakas/dist/is-boolean-CZKz4ij3.js
|
|
19
|
+
function e(e$3) {
|
|
20
|
+
return typeof e$3 == `boolean`;
|
|
23
21
|
}
|
|
24
22
|
|
|
25
23
|
//#endregion
|
|
26
|
-
//#region ../node_modules/.pnpm/@vinicunca+perkakas@1.
|
|
27
|
-
function e$
|
|
28
|
-
return typeof
|
|
24
|
+
//#region ../node_modules/.pnpm/@vinicunca+perkakas@1.8.0/node_modules/@vinicunca/perkakas/dist/is-number-DRJ5I-tT.js
|
|
25
|
+
function e$2(e$3) {
|
|
26
|
+
return typeof e$3 == `number` && !Number.isNaN(e$3);
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
//#endregion
|
|
32
|
-
//#region ../node_modules/.pnpm/@vinicunca+perkakas@1.
|
|
33
|
-
function e(
|
|
34
|
-
|
|
30
|
+
//#region ../node_modules/.pnpm/@vinicunca+perkakas@1.8.0/node_modules/@vinicunca/perkakas/dist/is-plain-object-Cnx_x0Ei.js
|
|
31
|
+
function e$1(e$3) {
|
|
32
|
+
if (typeof e$3 != `object` || !e$3) return !1;
|
|
33
|
+
let t = Object.getPrototypeOf(e$3);
|
|
34
|
+
return t === null || t === Object.prototype;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
//#endregion
|
|
@@ -409,7 +409,7 @@ async function formatters(options = {}, stylistic$1 = {}) {
|
|
|
409
409
|
endOfLine: "auto",
|
|
410
410
|
semi,
|
|
411
411
|
singleQuote: quotes === "single",
|
|
412
|
-
tabWidth: e$
|
|
412
|
+
tabWidth: e$2(indent) ? indent : 2,
|
|
413
413
|
trailingComma: "all",
|
|
414
414
|
useTabs: indent === "tab"
|
|
415
415
|
}, options.prettierOptions || {});
|
|
@@ -420,7 +420,7 @@ async function formatters(options = {}, stylistic$1 = {}) {
|
|
|
420
420
|
xmlWhitespaceSensitivity: "ignore"
|
|
421
421
|
};
|
|
422
422
|
const dprintOptions = Object.assign({
|
|
423
|
-
indentWidth: e$
|
|
423
|
+
indentWidth: e$2(indent) ? indent : 2,
|
|
424
424
|
quoteStyle: quotes === "single" ? "preferSingle" : "preferDouble",
|
|
425
425
|
useTabs: indent === "tab"
|
|
426
426
|
}, options.dprintOptions || {});
|
|
@@ -2235,15 +2235,15 @@ function vinicuncaESLint(options = {}, ...userConfigs) {
|
|
|
2235
2235
|
}
|
|
2236
2236
|
let stylisticOptions = {};
|
|
2237
2237
|
if (options.stylistic === false) stylisticOptions = false;
|
|
2238
|
-
else if (
|
|
2238
|
+
else if (e$1(options.stylistic)) stylisticOptions = options.stylistic;
|
|
2239
2239
|
else stylisticOptions = {};
|
|
2240
2240
|
if (stylisticOptions && !("jsx" in stylisticOptions)) stylisticOptions.jsx = enableJsx;
|
|
2241
2241
|
const configs$1 = [];
|
|
2242
|
-
if (enableGitignore) if (!e(enableGitignore)) configs$1.push(interopDefault(import("eslint-config-flat-gitignore")).then((r
|
|
2242
|
+
if (enableGitignore) if (!e(enableGitignore)) configs$1.push(interopDefault(import("eslint-config-flat-gitignore")).then((r) => [r({
|
|
2243
2243
|
name: "vinicunca/gitignore",
|
|
2244
2244
|
...enableGitignore
|
|
2245
2245
|
})]));
|
|
2246
|
-
else configs$1.push(interopDefault(import("eslint-config-flat-gitignore")).then((r
|
|
2246
|
+
else configs$1.push(interopDefault(import("eslint-config-flat-gitignore")).then((r) => [r({
|
|
2247
2247
|
name: "vinicunca/gitignore",
|
|
2248
2248
|
strict: false
|
|
2249
2249
|
})]));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vinicunca/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.29.0",
|
|
5
5
|
"description": "Vinicunca ESLint config",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "praburangki",
|
|
@@ -111,10 +111,10 @@
|
|
|
111
111
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
112
112
|
"@eslint/markdown": "^7.4.0",
|
|
113
113
|
"@stylistic/eslint-plugin": "^5.4.0",
|
|
114
|
-
"@typescript-eslint/eslint-plugin": "^8.46.
|
|
115
|
-
"@typescript-eslint/parser": "^8.46.
|
|
116
|
-
"@unocss/eslint-plugin": "^66.5.
|
|
117
|
-
"@vitest/eslint-plugin": "^1.3.
|
|
114
|
+
"@typescript-eslint/eslint-plugin": "^8.46.1",
|
|
115
|
+
"@typescript-eslint/parser": "^8.46.1",
|
|
116
|
+
"@unocss/eslint-plugin": "^66.5.4",
|
|
117
|
+
"@vitest/eslint-plugin": "^1.3.20",
|
|
118
118
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
119
119
|
"eslint-flat-config-utils": "^2.1.4",
|
|
120
120
|
"eslint-merge-processors": "^2.0.0",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"eslint-plugin-command": "^3.3.1",
|
|
123
123
|
"eslint-plugin-format": "^1.0.2",
|
|
124
124
|
"eslint-plugin-import-lite": "^0.3.0",
|
|
125
|
-
"eslint-plugin-jsdoc": "^61.
|
|
125
|
+
"eslint-plugin-jsdoc": "^61.1.4",
|
|
126
126
|
"eslint-plugin-jsonc": "^2.21.0",
|
|
127
127
|
"eslint-plugin-n": "^17.23.1",
|
|
128
128
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"eslint-plugin-toml": "^0.12.0",
|
|
134
134
|
"eslint-plugin-unicorn": "^61.0.2",
|
|
135
135
|
"eslint-plugin-unused-imports": "^4.2.0",
|
|
136
|
-
"eslint-plugin-vue": "^10.5.
|
|
136
|
+
"eslint-plugin-vue": "^10.5.1",
|
|
137
137
|
"eslint-plugin-yml": "^1.19.0",
|
|
138
138
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
139
139
|
"globals": "^16.4.0",
|