@jsse/eslint-config 0.4.22 → 0.4.24
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-kxGw7zjC.js → chunk-vqOwn_tu.js} +20 -11
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +47 -3
- package/dist/index.js +3 -3
- package/dist/{version-DWXiWMrB.js → version-BaLeOe0o.js} +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -10,21 +10,30 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
10
10
|
var __commonJS = (cb, mod) => function() {
|
|
11
11
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
12
|
};
|
|
13
|
-
var __export = (all) => {
|
|
13
|
+
var __export = (all, symbols) => {
|
|
14
14
|
let target = {};
|
|
15
|
-
for (var name in all)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
for (var name in all) {
|
|
16
|
+
__defProp(target, name, {
|
|
17
|
+
get: all[name],
|
|
18
|
+
enumerable: true
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
if (symbols) {
|
|
22
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
23
|
+
}
|
|
19
24
|
return target;
|
|
20
25
|
};
|
|
21
26
|
var __copyProps = (to, from, except, desc) => {
|
|
22
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
28
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
29
|
+
key = keys[i];
|
|
30
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
31
|
+
__defProp(to, key, {
|
|
32
|
+
get: ((k) => from[k]).bind(null, key),
|
|
33
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
28
37
|
}
|
|
29
38
|
return to;
|
|
30
39
|
};
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as DEBUG, t as VERSION } from "./version-
|
|
2
|
-
import fs from "node:fs";
|
|
1
|
+
import { n as DEBUG, t as VERSION } from "./version-BaLeOe0o.js";
|
|
3
2
|
import process$1 from "node:process";
|
|
3
|
+
import fs from "node:fs";
|
|
4
4
|
import { EventEmitter } from "events";
|
|
5
5
|
|
|
6
6
|
//#region node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs
|
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;
|
|
@@ -4180,6 +4194,9 @@ type JsdocSortTags = [] | [{
|
|
|
4180
4194
|
linesBetween?: number;
|
|
4181
4195
|
reportIntraTagGroupSpacing?: boolean;
|
|
4182
4196
|
reportTagGroupSpacing?: boolean;
|
|
4197
|
+
tagExceptions?: {
|
|
4198
|
+
[k: string]: number;
|
|
4199
|
+
};
|
|
4183
4200
|
tagSequence?: {
|
|
4184
4201
|
tags?: string[];
|
|
4185
4202
|
}[];
|
|
@@ -11182,6 +11199,11 @@ interface TypescriptRuleOptions {
|
|
|
11182
11199
|
* @see https://typescript-eslint.io/rules/no-unused-expressions
|
|
11183
11200
|
*/
|
|
11184
11201
|
"@typescript-eslint/no-unused-expressions"?: Linter.RuleEntry<TypescriptEslintNoUnusedExpressions>;
|
|
11202
|
+
/**
|
|
11203
|
+
* Disallow unused private class members
|
|
11204
|
+
* @see https://typescript-eslint.io/rules/no-unused-private-class-members
|
|
11205
|
+
*/
|
|
11206
|
+
"@typescript-eslint/no-unused-private-class-members"?: Linter.RuleEntry<[]>;
|
|
11185
11207
|
/**
|
|
11186
11208
|
* Disallow unused variables
|
|
11187
11209
|
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
@@ -13354,6 +13376,11 @@ type UnicornTextEncodingIdentifierCase = [] | [{
|
|
|
13354
13376
|
//#endregion
|
|
13355
13377
|
//#region src/generated/dts/vitest.d.ts
|
|
13356
13378
|
interface VitestRuleOptions {
|
|
13379
|
+
/**
|
|
13380
|
+
* enforce using `.each` or `.for` consistently
|
|
13381
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-each-for.md
|
|
13382
|
+
*/
|
|
13383
|
+
"vitest/consistent-each-for"?: Linter.RuleEntry<VitestConsistentEachFor>;
|
|
13357
13384
|
/**
|
|
13358
13385
|
* require test file pattern
|
|
13359
13386
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
|
|
@@ -13571,7 +13598,7 @@ interface VitestRuleOptions {
|
|
|
13571
13598
|
*/
|
|
13572
13599
|
"vitest/prefer-each"?: Linter.RuleEntry<[]>;
|
|
13573
13600
|
/**
|
|
13574
|
-
* enforce using the built-in
|
|
13601
|
+
* enforce using the built-in equality matchers
|
|
13575
13602
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
|
|
13576
13603
|
*/
|
|
13577
13604
|
"vitest/prefer-equality-matcher"?: Linter.RuleEntry<[]>;
|
|
@@ -13680,11 +13707,21 @@ interface VitestRuleOptions {
|
|
|
13680
13707
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
|
|
13681
13708
|
*/
|
|
13682
13709
|
"vitest/prefer-vi-mocked"?: Linter.RuleEntry<[]>;
|
|
13710
|
+
/**
|
|
13711
|
+
* ensure that every `expect.poll` call is awaited
|
|
13712
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-awaited-expect-poll.md
|
|
13713
|
+
*/
|
|
13714
|
+
"vitest/require-awaited-expect-poll"?: Linter.RuleEntry<[]>;
|
|
13683
13715
|
/**
|
|
13684
13716
|
* require setup and teardown to be within a hook
|
|
13685
13717
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
13686
13718
|
*/
|
|
13687
13719
|
"vitest/require-hook"?: Linter.RuleEntry<VitestRequireHook>;
|
|
13720
|
+
/**
|
|
13721
|
+
* require usage of import in vi.mock()
|
|
13722
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-import-vi-mock.md
|
|
13723
|
+
*/
|
|
13724
|
+
"vitest/require-import-vi-mock"?: Linter.RuleEntry<[]>;
|
|
13688
13725
|
/**
|
|
13689
13726
|
* require local Test Context for concurrent snapshot tests
|
|
13690
13727
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
@@ -13732,6 +13769,13 @@ interface VitestRuleOptions {
|
|
|
13732
13769
|
"vitest/warn-todo"?: Linter.RuleEntry<[]>;
|
|
13733
13770
|
}
|
|
13734
13771
|
/* ======= Declarations ======= */
|
|
13772
|
+
// ----- vitest/consistent-each-for -----
|
|
13773
|
+
type VitestConsistentEachFor = [] | [{
|
|
13774
|
+
test?: "each" | "for";
|
|
13775
|
+
it?: "each" | "for";
|
|
13776
|
+
describe?: "each" | "for";
|
|
13777
|
+
suite?: "each" | "for";
|
|
13778
|
+
}];
|
|
13735
13779
|
// ----- vitest/consistent-test-filename -----
|
|
13736
13780
|
type VitestConsistentTestFilename = [] | [{
|
|
13737
13781
|
pattern?: string;
|
|
@@ -13765,7 +13809,7 @@ type VitestNoFocusedTests = [] | [{
|
|
|
13765
13809
|
}];
|
|
13766
13810
|
// ----- vitest/no-hooks -----
|
|
13767
13811
|
type VitestNoHooks = [] | [{
|
|
13768
|
-
allow?:
|
|
13812
|
+
allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach")[];
|
|
13769
13813
|
}];
|
|
13770
13814
|
// ----- vitest/no-large-snapshots -----
|
|
13771
13815
|
type VitestNoLargeSnapshots = [] | [{
|
|
@@ -14500,7 +14544,7 @@ declare function defineConfig(options?: OptionsConfig & Config, ...userConfigs:
|
|
|
14500
14544
|
type DefineConfig = typeof defineConfig;
|
|
14501
14545
|
//#endregion
|
|
14502
14546
|
//#region src/generated/version.d.ts
|
|
14503
|
-
declare const VERSION = "0.4.
|
|
14547
|
+
declare const VERSION = "0.4.24";
|
|
14504
14548
|
declare namespace globs_d_exports {
|
|
14505
14549
|
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 };
|
|
14506
14550
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as __export, r as __toESM, t as __commonJS } from "./chunk-
|
|
2
|
-
import { n as DEBUG, r as SLOW_RULES, t as VERSION } from "./version-
|
|
1
|
+
import { n as __export, r as __toESM, t as __commonJS } from "./chunk-vqOwn_tu.js";
|
|
2
|
+
import { n as DEBUG, r as SLOW_RULES, t as VERSION } from "./version-BaLeOe0o.js";
|
|
3
3
|
import { builtinModules, createRequire } from "node:module";
|
|
4
|
-
import fs, { promises, realpathSync, statSync } from "node:fs";
|
|
5
4
|
import process$1 from "node:process";
|
|
5
|
+
import fs, { promises, realpathSync, statSync } from "node:fs";
|
|
6
6
|
import path, { dirname, join, win32 } from "node:path";
|
|
7
7
|
import fsPromises from "node:fs/promises";
|
|
8
8
|
import { URL as URL$1, fileURLToPath, pathToFileURL } from "node:url";
|
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.24",
|
|
5
5
|
"description": "@jsse/eslint-config ~ WYSIWYG",
|
|
6
6
|
"author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
64
|
-
"@eslint/compat": "^
|
|
64
|
+
"@eslint/compat": "^2.0.0",
|
|
65
65
|
"@eslint/js": "^9.39.1",
|
|
66
66
|
"@eslint/markdown": "^7.5.1",
|
|
67
|
-
"@stylistic/eslint-plugin": "5.
|
|
68
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
69
|
-
"@typescript-eslint/parser": "^8.
|
|
70
|
-
"@vitest/eslint-plugin": "^1.4.
|
|
67
|
+
"@stylistic/eslint-plugin": "5.6.1",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
69
|
+
"@typescript-eslint/parser": "^8.48.0",
|
|
70
|
+
"@vitest/eslint-plugin": "^1.4.4",
|
|
71
71
|
"debug": "^4.4.3",
|
|
72
72
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
73
73
|
"eslint-merge-processors": "^2.0.0",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"eslint-plugin-command": "^3.3.1",
|
|
76
76
|
"eslint-plugin-de-morgan": "^2.0.0",
|
|
77
77
|
"eslint-plugin-import-lite": "^0.3.0",
|
|
78
|
-
"eslint-plugin-jsdoc": "^61.1
|
|
78
|
+
"eslint-plugin-jsdoc": "^61.4.1",
|
|
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",
|
|
@@ -85,13 +85,13 @@
|
|
|
85
85
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
86
86
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
87
87
|
"eslint-plugin-toml": "^0.12.0",
|
|
88
|
-
"eslint-plugin-tsdoc": "^0.
|
|
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
91
|
"eslint-plugin-yml": "^1.19.0",
|
|
92
92
|
"jsonc-eslint-parser": "^2.4.1",
|
|
93
93
|
"toml-eslint-parser": "^0.10.0",
|
|
94
|
-
"typescript-eslint": "^8.
|
|
94
|
+
"typescript-eslint": "^8.48.0",
|
|
95
95
|
"yaml-eslint-parser": "^1.3.0"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@jsse/tsconfig": "^0.4.0",
|
|
101
101
|
"@types/debug": "^4.1.12",
|
|
102
102
|
"@types/fs-extra": "^11.0.4",
|
|
103
|
-
"@types/node": "^24.10.
|
|
103
|
+
"@types/node": "^24.10.1",
|
|
104
104
|
"cac": "^6.7.14",
|
|
105
105
|
"eslint": "^9.39.1",
|
|
106
106
|
"eslint-flat-config-utils": "^2.1.4",
|
|
@@ -110,15 +110,15 @@
|
|
|
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.30.0",
|
|
114
114
|
"picocolors": "^1.1.1",
|
|
115
115
|
"prettier": "^3.6.2",
|
|
116
116
|
"react": "~19.2.0",
|
|
117
|
-
"rimraf": "^6.1.
|
|
118
|
-
"tsdown": "^0.16.
|
|
117
|
+
"rimraf": "^6.1.2",
|
|
118
|
+
"tsdown": "^0.16.5",
|
|
119
119
|
"tsx": "^4.20.6",
|
|
120
120
|
"typescript": "~5.9.3",
|
|
121
|
-
"vitest": "^4.0.
|
|
121
|
+
"vitest": "^4.0.10"
|
|
122
122
|
},
|
|
123
123
|
"prettier": "@jsse/prettier-config",
|
|
124
124
|
"scripts": {
|