@jsse/eslint-config 0.4.23 → 0.4.25
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/CHANGELOG.md +12 -0
- package/dist/{chunk-CHBeWOYQ.js → chunk-bekqDN86.js} +22 -15
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +52 -2
- package/dist/index.js +6 -6
- package/dist/{version-BSBgfURZ.js → version-B9ymZQwv.js} +1 -1
- package/package.json +25 -25
package/CHANGELOG.md
CHANGED
|
@@ -7,24 +7,31 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
7
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
9
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
var __export = (all) => {
|
|
10
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
11
|
+
var __export = (all, symbols) => {
|
|
14
12
|
let target = {};
|
|
15
|
-
for (var name in all)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
for (var name in all) {
|
|
14
|
+
__defProp(target, name, {
|
|
15
|
+
get: all[name],
|
|
16
|
+
enumerable: true
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
if (symbols) {
|
|
20
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
21
|
+
}
|
|
19
22
|
return target;
|
|
20
23
|
};
|
|
21
24
|
var __copyProps = (to, from, except, desc) => {
|
|
22
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
26
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
27
|
+
key = keys[i];
|
|
28
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
29
|
+
__defProp(to, key, {
|
|
30
|
+
get: ((k) => from[k]).bind(null, key),
|
|
31
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
28
35
|
}
|
|
29
36
|
return to;
|
|
30
37
|
};
|
|
@@ -34,4 +41,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
41
|
}) : target, mod));
|
|
35
42
|
|
|
36
43
|
//#endregion
|
|
37
|
-
export { __export as n, __toESM as r,
|
|
44
|
+
export { __export as n, __toESM as r, __commonJSMin as t };
|
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -3599,6 +3599,11 @@ interface JsdocRuleOptions {
|
|
|
3599
3599
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-property-type.md#repos-sticky-header
|
|
3600
3600
|
*/
|
|
3601
3601
|
"jsdoc/require-property-type"?: Linter.RuleEntry<[]>;
|
|
3602
|
+
/**
|
|
3603
|
+
* Requires that Promise rejections are documented with `@rejects` tags.
|
|
3604
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-rejects.md#repos-sticky-header
|
|
3605
|
+
*/
|
|
3606
|
+
"jsdoc/require-rejects"?: Linter.RuleEntry<JsdocRequireRejects>;
|
|
3602
3607
|
/**
|
|
3603
3608
|
* Requires that returns are documented with `@returns`.
|
|
3604
3609
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns.md#repos-sticky-header
|
|
@@ -3744,6 +3749,7 @@ type JsdocCheckExamples = [] | [{
|
|
|
3744
3749
|
}];
|
|
3745
3750
|
// ----- jsdoc/check-indentation -----
|
|
3746
3751
|
type JsdocCheckIndentation = [] | [{
|
|
3752
|
+
allowIndentedSections?: boolean;
|
|
3747
3753
|
excludeTags?: string[];
|
|
3748
3754
|
}];
|
|
3749
3755
|
// ----- jsdoc/check-line-alignment -----
|
|
@@ -4090,6 +4096,14 @@ type JsdocRequireParamType = [] | [{
|
|
|
4090
4096
|
defaultDestructuredRootType?: string;
|
|
4091
4097
|
setDefaultDestructuredRootType?: boolean;
|
|
4092
4098
|
}];
|
|
4099
|
+
// ----- jsdoc/require-rejects -----
|
|
4100
|
+
type JsdocRequireRejects = [] | [{
|
|
4101
|
+
contexts?: (string | {
|
|
4102
|
+
comment?: string;
|
|
4103
|
+
context?: string;
|
|
4104
|
+
})[];
|
|
4105
|
+
exemptedBy?: string[];
|
|
4106
|
+
}];
|
|
4093
4107
|
// ----- jsdoc/require-returns -----
|
|
4094
4108
|
type JsdocRequireReturns = [] | [{
|
|
4095
4109
|
checkConstructors?: boolean;
|
|
@@ -7238,6 +7252,11 @@ interface PnpmRuleOptions {
|
|
|
7238
7252
|
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-valid-catalog.test.ts
|
|
7239
7253
|
*/
|
|
7240
7254
|
"pnpm/json-valid-catalog"?: Linter.RuleEntry<PnpmJsonValidCatalog>;
|
|
7255
|
+
/**
|
|
7256
|
+
* Enforce settings in `pnpm-workspace.yaml`
|
|
7257
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-enforce-settings.test.ts
|
|
7258
|
+
*/
|
|
7259
|
+
"pnpm/yaml-enforce-settings"?: Linter.RuleEntry<PnpmYamlEnforceSettings>;
|
|
7241
7260
|
/**
|
|
7242
7261
|
* Disallow duplicate catalog items in `pnpm-workspace.yaml`
|
|
7243
7262
|
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-duplicate-catalog-item.test.ts
|
|
@@ -7277,6 +7296,15 @@ type PnpmJsonValidCatalog = [] | [{
|
|
|
7277
7296
|
enforceNoConflict?: boolean;
|
|
7278
7297
|
fields?: unknown[];
|
|
7279
7298
|
}];
|
|
7299
|
+
// ----- pnpm/yaml-enforce-settings -----
|
|
7300
|
+
type PnpmYamlEnforceSettings = [] | [{
|
|
7301
|
+
autofix?: boolean;
|
|
7302
|
+
settings?: {
|
|
7303
|
+
[k: string]: unknown | undefined;
|
|
7304
|
+
};
|
|
7305
|
+
requiredFields?: string[];
|
|
7306
|
+
forbiddenFields?: string[];
|
|
7307
|
+
}];
|
|
7280
7308
|
// ----- pnpm/yaml-no-duplicate-catalog-item -----
|
|
7281
7309
|
type PnpmYamlNoDuplicateCatalogItem = [] | [{
|
|
7282
7310
|
allow?: string[];
|
|
@@ -11205,6 +11233,11 @@ interface TypescriptRuleOptions {
|
|
|
11205
11233
|
* @see https://typescript-eslint.io/rules/no-useless-constructor
|
|
11206
11234
|
*/
|
|
11207
11235
|
"@typescript-eslint/no-useless-constructor"?: Linter.RuleEntry<[]>;
|
|
11236
|
+
/**
|
|
11237
|
+
* Disallow default values that will never be used
|
|
11238
|
+
* @see https://typescript-eslint.io/rules/no-useless-default-assignment
|
|
11239
|
+
*/
|
|
11240
|
+
"@typescript-eslint/no-useless-default-assignment"?: Linter.RuleEntry<[]>;
|
|
11208
11241
|
/**
|
|
11209
11242
|
* Disallow empty exports that don't change anything in a module file
|
|
11210
11243
|
* @see https://typescript-eslint.io/rules/no-useless-empty-export
|
|
@@ -13362,6 +13395,11 @@ type UnicornTextEncodingIdentifierCase = [] | [{
|
|
|
13362
13395
|
//#endregion
|
|
13363
13396
|
//#region src/generated/dts/vitest.d.ts
|
|
13364
13397
|
interface VitestRuleOptions {
|
|
13398
|
+
/**
|
|
13399
|
+
* enforce using `.each` or `.for` consistently
|
|
13400
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-each-for.md
|
|
13401
|
+
*/
|
|
13402
|
+
"vitest/consistent-each-for"?: Linter.RuleEntry<VitestConsistentEachFor>;
|
|
13365
13403
|
/**
|
|
13366
13404
|
* require test file pattern
|
|
13367
13405
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
|
|
@@ -13579,7 +13617,7 @@ interface VitestRuleOptions {
|
|
|
13579
13617
|
*/
|
|
13580
13618
|
"vitest/prefer-each"?: Linter.RuleEntry<[]>;
|
|
13581
13619
|
/**
|
|
13582
|
-
* enforce using the built-in
|
|
13620
|
+
* enforce using the built-in equality matchers
|
|
13583
13621
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
|
|
13584
13622
|
*/
|
|
13585
13623
|
"vitest/prefer-equality-matcher"?: Linter.RuleEntry<[]>;
|
|
@@ -13698,6 +13736,11 @@ interface VitestRuleOptions {
|
|
|
13698
13736
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
13699
13737
|
*/
|
|
13700
13738
|
"vitest/require-hook"?: Linter.RuleEntry<VitestRequireHook>;
|
|
13739
|
+
/**
|
|
13740
|
+
* require usage of import in vi.mock()
|
|
13741
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-import-vi-mock.md
|
|
13742
|
+
*/
|
|
13743
|
+
"vitest/require-import-vi-mock"?: Linter.RuleEntry<[]>;
|
|
13701
13744
|
/**
|
|
13702
13745
|
* require local Test Context for concurrent snapshot tests
|
|
13703
13746
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
@@ -13745,6 +13788,13 @@ interface VitestRuleOptions {
|
|
|
13745
13788
|
"vitest/warn-todo"?: Linter.RuleEntry<[]>;
|
|
13746
13789
|
}
|
|
13747
13790
|
/* ======= Declarations ======= */
|
|
13791
|
+
// ----- vitest/consistent-each-for -----
|
|
13792
|
+
type VitestConsistentEachFor = [] | [{
|
|
13793
|
+
test?: "each" | "for";
|
|
13794
|
+
it?: "each" | "for";
|
|
13795
|
+
describe?: "each" | "for";
|
|
13796
|
+
suite?: "each" | "for";
|
|
13797
|
+
}];
|
|
13748
13798
|
// ----- vitest/consistent-test-filename -----
|
|
13749
13799
|
type VitestConsistentTestFilename = [] | [{
|
|
13750
13800
|
pattern?: string;
|
|
@@ -14513,7 +14563,7 @@ declare function defineConfig(options?: OptionsConfig & Config, ...userConfigs:
|
|
|
14513
14563
|
type DefineConfig = typeof defineConfig;
|
|
14514
14564
|
//#endregion
|
|
14515
14565
|
//#region src/generated/version.d.ts
|
|
14516
|
-
declare const VERSION = "0.4.
|
|
14566
|
+
declare const VERSION = "0.4.25";
|
|
14517
14567
|
declare namespace globs_d_exports {
|
|
14518
14568
|
export { GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_JS_SRC_EXT, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_TS_SRC_EXT, GLOB_YAML };
|
|
14519
14569
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __export, r as __toESM, t as
|
|
2
|
-
import { n as DEBUG, r as SLOW_RULES, t as VERSION } from "./version-
|
|
1
|
+
import { n as __export, r as __toESM, t as __commonJSMin } from "./chunk-bekqDN86.js";
|
|
2
|
+
import { n as DEBUG, r as SLOW_RULES, t as VERSION } from "./version-B9ymZQwv.js";
|
|
3
3
|
import { builtinModules, createRequire } from "node:module";
|
|
4
4
|
import process$1 from "node:process";
|
|
5
5
|
import fs, { promises, realpathSync, statSync } from "node:fs";
|
|
@@ -13076,7 +13076,7 @@ const imports = async (options) => {
|
|
|
13076
13076
|
|
|
13077
13077
|
//#endregion
|
|
13078
13078
|
//#region node_modules/.pnpm/globals@16.5.0/node_modules/globals/globals.json
|
|
13079
|
-
var require_globals$1 = /* @__PURE__ */
|
|
13079
|
+
var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
13080
13080
|
module.exports = {
|
|
13081
13081
|
"amd": {
|
|
13082
13082
|
"define": false,
|
|
@@ -16420,13 +16420,13 @@ var require_globals$1 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/globals
|
|
|
16420
16420
|
"YUI_config": false
|
|
16421
16421
|
}
|
|
16422
16422
|
};
|
|
16423
|
-
})
|
|
16423
|
+
}));
|
|
16424
16424
|
|
|
16425
16425
|
//#endregion
|
|
16426
16426
|
//#region node_modules/.pnpm/globals@16.5.0/node_modules/globals/index.js
|
|
16427
|
-
var require_globals = /* @__PURE__ */
|
|
16427
|
+
var require_globals = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
16428
16428
|
module.exports = require_globals$1();
|
|
16429
|
-
})
|
|
16429
|
+
}));
|
|
16430
16430
|
|
|
16431
16431
|
//#endregion
|
|
16432
16432
|
//#region src/configs/javascript.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsse/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.25",
|
|
5
5
|
"description": "@jsse/eslint-config ~ WYSIWYG",
|
|
6
6
|
"author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -62,63 +62,63 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
64
64
|
"@eslint/compat": "^2.0.0",
|
|
65
|
-
"@eslint/js": "^9.39.
|
|
65
|
+
"@eslint/js": "^9.39.2",
|
|
66
66
|
"@eslint/markdown": "^7.5.1",
|
|
67
|
-
"@stylistic/eslint-plugin": "5.6.
|
|
68
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
69
|
-
"@typescript-eslint/parser": "^8.
|
|
70
|
-
"@vitest/eslint-plugin": "^1.
|
|
67
|
+
"@stylistic/eslint-plugin": "5.6.1",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^8.50.0",
|
|
69
|
+
"@typescript-eslint/parser": "^8.50.0",
|
|
70
|
+
"@vitest/eslint-plugin": "^1.5.2",
|
|
71
71
|
"debug": "^4.4.3",
|
|
72
72
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
73
73
|
"eslint-merge-processors": "^2.0.0",
|
|
74
74
|
"eslint-plugin-antfu": "^3.1.1",
|
|
75
|
-
"eslint-plugin-command": "^3.
|
|
75
|
+
"eslint-plugin-command": "^3.4.0",
|
|
76
76
|
"eslint-plugin-de-morgan": "^2.0.0",
|
|
77
77
|
"eslint-plugin-import-lite": "^0.3.0",
|
|
78
|
-
"eslint-plugin-jsdoc": "^61.
|
|
78
|
+
"eslint-plugin-jsdoc": "^61.5.0",
|
|
79
79
|
"eslint-plugin-jsonc": "^2.21.0",
|
|
80
80
|
"eslint-plugin-n": "^17.23.1",
|
|
81
81
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
82
82
|
"eslint-plugin-perfectionist": "^4.15.1",
|
|
83
|
-
"eslint-plugin-pnpm": "^1.3
|
|
83
|
+
"eslint-plugin-pnpm": "^1.4.3",
|
|
84
84
|
"eslint-plugin-react": "^7.37.5",
|
|
85
85
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
86
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
86
|
+
"eslint-plugin-react-refresh": "^0.4.25",
|
|
87
87
|
"eslint-plugin-toml": "^0.12.0",
|
|
88
88
|
"eslint-plugin-tsdoc": "^0.5.0",
|
|
89
89
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
90
90
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
91
|
-
"eslint-plugin-yml": "^1.19.
|
|
92
|
-
"jsonc-eslint-parser": "^2.4.
|
|
93
|
-
"toml-eslint-parser": "^0.10.
|
|
94
|
-
"typescript-eslint": "^8.
|
|
95
|
-
"yaml-eslint-parser": "^1.3.
|
|
91
|
+
"eslint-plugin-yml": "^1.19.1",
|
|
92
|
+
"jsonc-eslint-parser": "^2.4.2",
|
|
93
|
+
"toml-eslint-parser": "^0.10.1",
|
|
94
|
+
"typescript-eslint": "^8.50.0",
|
|
95
|
+
"yaml-eslint-parser": "^1.3.2"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@changesets/cli": "^2.29.
|
|
98
|
+
"@changesets/cli": "^2.29.8",
|
|
99
99
|
"@jsse/prettier-config": "^1.0.0",
|
|
100
100
|
"@jsse/tsconfig": "^0.4.0",
|
|
101
101
|
"@types/debug": "^4.1.12",
|
|
102
102
|
"@types/fs-extra": "^11.0.4",
|
|
103
103
|
"@types/node": "^24.10.1",
|
|
104
104
|
"cac": "^6.7.14",
|
|
105
|
-
"eslint": "^9.39.
|
|
105
|
+
"eslint": "^9.39.2",
|
|
106
106
|
"eslint-flat-config-utils": "^2.1.4",
|
|
107
107
|
"eslint-typegen": "^2.3.0",
|
|
108
|
-
"execa": "~9.6.
|
|
108
|
+
"execa": "~9.6.1",
|
|
109
109
|
"fast-glob": "^3.3.3",
|
|
110
110
|
"fs-extra": "^11.3.2",
|
|
111
111
|
"globals": "^16.5.0",
|
|
112
112
|
"local-pkg": "^1.1.2",
|
|
113
|
-
"oxlint": "^1.
|
|
113
|
+
"oxlint": "^1.33.0",
|
|
114
114
|
"picocolors": "^1.1.1",
|
|
115
|
-
"prettier": "^3.
|
|
116
|
-
"react": "~19.2.
|
|
117
|
-
"rimraf": "^6.1.
|
|
118
|
-
"tsdown": "^0.
|
|
119
|
-
"tsx": "^4.
|
|
115
|
+
"prettier": "^3.7.4",
|
|
116
|
+
"react": "~19.2.3",
|
|
117
|
+
"rimraf": "^6.1.2",
|
|
118
|
+
"tsdown": "^0.18.0",
|
|
119
|
+
"tsx": "^4.21.0",
|
|
120
120
|
"typescript": "~5.9.3",
|
|
121
|
-
"vitest": "^4.0.
|
|
121
|
+
"vitest": "^4.0.15"
|
|
122
122
|
},
|
|
123
123
|
"prettier": "@jsse/prettier-config",
|
|
124
124
|
"scripts": {
|