@jsse/eslint-config 0.4.7 → 0.4.9
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/cli.d.ts +1 -1
- package/dist/cli.js +3 -3
- package/dist/esm/generated/version.d.ts +1 -1
- package/dist/esm/generated/version.js +1 -1
- package/dist/index.d.ts +13 -4
- package/dist/index.js +10 -10
- package/dist/{version-BhJxNYo2.js → version-DNhPWuQE.js} +1 -1
- package/package.json +22 -19
package/CHANGELOG.md
CHANGED
package/dist/cli.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {};
|
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VERSION } from "./version-
|
|
1
|
+
import { VERSION } from "./version-DNhPWuQE.js";
|
|
2
2
|
import fs from "node:fs";
|
|
3
3
|
import process$1 from "node:process";
|
|
4
4
|
import { EventEmitter } from "events";
|
|
@@ -572,7 +572,6 @@ var CAC = class extends EventEmitter {
|
|
|
572
572
|
}
|
|
573
573
|
};
|
|
574
574
|
const cac = (name = "") => new CAC(name);
|
|
575
|
-
var dist_default = cac;
|
|
576
575
|
|
|
577
576
|
//#endregion
|
|
578
577
|
//#region src/cli.ts
|
|
@@ -683,4 +682,5 @@ main().catch((e) => {
|
|
|
683
682
|
throw e;
|
|
684
683
|
});
|
|
685
684
|
|
|
686
|
-
//#endregion
|
|
685
|
+
//#endregion
|
|
686
|
+
export { };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.4.
|
|
1
|
+
export declare const VERSION = "0.4.9";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.4.
|
|
1
|
+
export const VERSION = "0.4.9";
|
package/dist/index.d.ts
CHANGED
|
@@ -2598,7 +2598,14 @@ type NoRestrictedExports = [] | [{
|
|
|
2598
2598
|
type NoRestrictedGlobals = (string | {
|
|
2599
2599
|
name: string;
|
|
2600
2600
|
message?: string;
|
|
2601
|
-
})[]
|
|
2601
|
+
})[] | [] | [{
|
|
2602
|
+
globals: (string | {
|
|
2603
|
+
name: string;
|
|
2604
|
+
message?: string;
|
|
2605
|
+
})[];
|
|
2606
|
+
checkGlobalObject?: boolean;
|
|
2607
|
+
globalObjects?: string[];
|
|
2608
|
+
}];
|
|
2602
2609
|
// ----- no-restricted-imports -----
|
|
2603
2610
|
type NoRestrictedImports = (string | {
|
|
2604
2611
|
name: string;
|
|
@@ -2826,6 +2833,8 @@ type OneVar = [] | [("always" | "never" | "consecutive") | {
|
|
|
2826
2833
|
var?: "always" | "never" | "consecutive";
|
|
2827
2834
|
let?: "always" | "never" | "consecutive";
|
|
2828
2835
|
const?: "always" | "never" | "consecutive";
|
|
2836
|
+
using?: "always" | "never" | "consecutive";
|
|
2837
|
+
awaitUsing?: "always" | "never" | "consecutive";
|
|
2829
2838
|
} | {
|
|
2830
2839
|
initialized?: "always" | "never" | "consecutive";
|
|
2831
2840
|
uninitialized?: "always" | "never" | "consecutive";
|
|
@@ -7037,7 +7046,7 @@ interface PnpmRuleOptions {
|
|
|
7037
7046
|
*/
|
|
7038
7047
|
"pnpm/json-enforce-catalog"?: Linter.RuleEntry<PnpmJsonEnforceCatalog>;
|
|
7039
7048
|
/**
|
|
7040
|
-
* Prefer having pnpm settings in `pnpm-workspace.yaml` instead of `package.json`. This
|
|
7049
|
+
* Prefer having pnpm settings in `pnpm-workspace.yaml` instead of `package.json`. This requires pnpm v10.6+, see https://github.com/orgs/pnpm/discussions/9037.
|
|
7041
7050
|
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-prefer-workspace-settings.test.ts
|
|
7042
7051
|
*/
|
|
7043
7052
|
"pnpm/json-prefer-workspace-settings"?: Linter.RuleEntry<PnpmJsonPreferWorkspaceSettings>;
|
|
@@ -7047,7 +7056,7 @@ interface PnpmRuleOptions {
|
|
|
7047
7056
|
*/
|
|
7048
7057
|
"pnpm/json-valid-catalog"?: Linter.RuleEntry<PnpmJsonValidCatalog>;
|
|
7049
7058
|
/**
|
|
7050
|
-
* Disallow
|
|
7059
|
+
* Disallow duplicate catalog items in `pnpm-workspace.yaml`
|
|
7051
7060
|
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-duplicate-catalog-item.test.ts
|
|
7052
7061
|
*/
|
|
7053
7062
|
"pnpm/yaml-no-duplicate-catalog-item"?: Linter.RuleEntry<PnpmYamlNoDuplicateCatalogItem>;
|
|
@@ -13740,7 +13749,7 @@ declare function defineConfig(options?: OptionsConfig & Config, ...userConfigs:
|
|
|
13740
13749
|
type DefineConfig = typeof defineConfig;
|
|
13741
13750
|
//#endregion
|
|
13742
13751
|
//#region src/generated/version.d.ts
|
|
13743
|
-
declare const VERSION = "0.4.
|
|
13752
|
+
declare const VERSION = "0.4.9";
|
|
13744
13753
|
declare namespace globs_d_exports {
|
|
13745
13754
|
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_YAML };
|
|
13746
13755
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __commonJS, __export, __toESM } from "./chunk-CkHaCily.js";
|
|
2
|
-
import { VERSION } from "./version-
|
|
2
|
+
import { VERSION } from "./version-DNhPWuQE.js";
|
|
3
3
|
import { builtinModules, createRequire } from "node:module";
|
|
4
4
|
import fs, { promises, realpathSync, statSync } from "node:fs";
|
|
5
5
|
import process$1 from "node:process";
|
|
@@ -1232,12 +1232,12 @@ var skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
|
1232
1232
|
var ref = Object.prototype;
|
|
1233
1233
|
var hasOwnProperty$2 = ref.hasOwnProperty;
|
|
1234
1234
|
var toString = ref.toString;
|
|
1235
|
-
var hasOwn = Object.hasOwn || function(obj, propName) {
|
|
1235
|
+
var hasOwn = Object.hasOwn || (function(obj, propName) {
|
|
1236
1236
|
return hasOwnProperty$2.call(obj, propName);
|
|
1237
|
-
};
|
|
1238
|
-
var isArray = Array.isArray || function(obj) {
|
|
1237
|
+
});
|
|
1238
|
+
var isArray = Array.isArray || (function(obj) {
|
|
1239
1239
|
return toString.call(obj) === "[object Array]";
|
|
1240
|
-
};
|
|
1240
|
+
});
|
|
1241
1241
|
var regexpCache = Object.create(null);
|
|
1242
1242
|
function wordsRegexp(words) {
|
|
1243
1243
|
return regexpCache[words] || (regexpCache[words] = new RegExp("^(?:" + words.replace(/ /g, "|") + ")$"));
|
|
@@ -13177,7 +13177,7 @@ const imports = async (options) => {
|
|
|
13177
13177
|
|
|
13178
13178
|
//#endregion
|
|
13179
13179
|
//#region node_modules/.pnpm/globals@16.3.0/node_modules/globals/globals.json
|
|
13180
|
-
var require_globals$1 = __commonJS({ "node_modules/.pnpm/globals@16.3.0/node_modules/globals/globals.json"(exports, module) {
|
|
13180
|
+
var require_globals$1 = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/globals@16.3.0/node_modules/globals/globals.json": ((exports, module) => {
|
|
13181
13181
|
module.exports = {
|
|
13182
13182
|
"amd": {
|
|
13183
13183
|
"define": false,
|
|
@@ -16472,17 +16472,17 @@ var require_globals$1 = __commonJS({ "node_modules/.pnpm/globals@16.3.0/node_mod
|
|
|
16472
16472
|
"YUI_config": false
|
|
16473
16473
|
}
|
|
16474
16474
|
};
|
|
16475
|
-
} });
|
|
16475
|
+
}) });
|
|
16476
16476
|
|
|
16477
16477
|
//#endregion
|
|
16478
16478
|
//#region node_modules/.pnpm/globals@16.3.0/node_modules/globals/index.js
|
|
16479
|
-
var require_globals = __commonJS({ "node_modules/.pnpm/globals@16.3.0/node_modules/globals/index.js"(exports, module) {
|
|
16479
|
+
var require_globals = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/globals@16.3.0/node_modules/globals/index.js": ((exports, module) => {
|
|
16480
16480
|
module.exports = require_globals$1();
|
|
16481
|
-
} });
|
|
16481
|
+
}) });
|
|
16482
16482
|
|
|
16483
16483
|
//#endregion
|
|
16484
16484
|
//#region src/configs/javascript.ts
|
|
16485
|
-
var import_globals = __toESM(require_globals(), 1);
|
|
16485
|
+
var import_globals = /* @__PURE__ */ __toESM(require_globals(), 1);
|
|
16486
16486
|
const javascript = async (options) => {
|
|
16487
16487
|
const { isInEditor: isInEditor$1 = false, overrides = {}, reportUnusedDisableDirectives = true } = options ?? {};
|
|
16488
16488
|
return [{
|
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.9",
|
|
5
5
|
"description": "@jsse/eslint-config ~ WYSIWYG",
|
|
6
6
|
"author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -36,13 +36,16 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
39
|
+
"@eslint-react/eslint-plugin": "^1.38.4",
|
|
40
40
|
"eslint": "^9.10.0",
|
|
41
41
|
"eslint-plugin-react": "~7.37.1",
|
|
42
|
-
"eslint-plugin-react-hooks": "^5.
|
|
43
|
-
"eslint-plugin-react-refresh": "
|
|
42
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
43
|
+
"eslint-plugin-react-refresh": "^0.4.19"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
|
+
"@eslint-react/eslint-plugin": {
|
|
47
|
+
"optional": true
|
|
48
|
+
},
|
|
46
49
|
"eslint": {
|
|
47
50
|
"optional": false
|
|
48
51
|
},
|
|
@@ -58,12 +61,12 @@
|
|
|
58
61
|
},
|
|
59
62
|
"dependencies": {
|
|
60
63
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
61
|
-
"@eslint/compat": "^1.3.
|
|
62
|
-
"@eslint/js": "~9.
|
|
64
|
+
"@eslint/compat": "^1.3.2",
|
|
65
|
+
"@eslint/js": "~9.33.0",
|
|
63
66
|
"@eslint/markdown": "^7.1.0",
|
|
64
|
-
"@stylistic/eslint-plugin": "5.2.
|
|
65
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
66
|
-
"@typescript-eslint/parser": "^8.
|
|
67
|
+
"@stylistic/eslint-plugin": "5.2.3",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^8.39.1",
|
|
69
|
+
"@typescript-eslint/parser": "^8.39.1",
|
|
67
70
|
"@vitest/eslint-plugin": "^1.3.4",
|
|
68
71
|
"debug": "^4.4.1",
|
|
69
72
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
@@ -72,35 +75,35 @@
|
|
|
72
75
|
"eslint-plugin-command": "^3.3.1",
|
|
73
76
|
"eslint-plugin-de-morgan": "^1.3.0",
|
|
74
77
|
"eslint-plugin-import-lite": "^0.3.0",
|
|
75
|
-
"eslint-plugin-jsdoc": "^
|
|
78
|
+
"eslint-plugin-jsdoc": "^54.1.0",
|
|
76
79
|
"eslint-plugin-jsonc": "^2.20.1",
|
|
77
80
|
"eslint-plugin-n": "^17.21.3",
|
|
78
81
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
79
82
|
"eslint-plugin-perfectionist": "^4.15.0",
|
|
80
|
-
"eslint-plugin-pnpm": "^1.1.
|
|
83
|
+
"eslint-plugin-pnpm": "^1.1.1",
|
|
81
84
|
"eslint-plugin-react": "~7.37.5",
|
|
82
85
|
"eslint-plugin-react-hooks": "~5.2.0",
|
|
83
86
|
"eslint-plugin-react-refresh": "~0.4.20",
|
|
84
87
|
"eslint-plugin-toml": "^0.12.0",
|
|
85
88
|
"eslint-plugin-tsdoc": "^0.4.0",
|
|
86
89
|
"eslint-plugin-unicorn": "^60.0.0",
|
|
87
|
-
"eslint-plugin-unused-imports": "^4.
|
|
90
|
+
"eslint-plugin-unused-imports": "^4.2.0",
|
|
88
91
|
"eslint-plugin-yml": "^1.18.0",
|
|
89
92
|
"jsonc-eslint-parser": "^2.4.0",
|
|
90
93
|
"toml-eslint-parser": "^0.10.0",
|
|
91
|
-
"typescript-eslint": "^8.
|
|
94
|
+
"typescript-eslint": "^8.39.1",
|
|
92
95
|
"yaml-eslint-parser": "^1.3.0"
|
|
93
96
|
},
|
|
94
97
|
"devDependencies": {
|
|
95
|
-
"@biomejs/biome": "2.
|
|
96
|
-
"@changesets/cli": "^2.29.
|
|
98
|
+
"@biomejs/biome": "2.2.0",
|
|
99
|
+
"@changesets/cli": "^2.29.6",
|
|
97
100
|
"@jsse/prettier-config": "^1.0.0",
|
|
98
101
|
"@jsse/tsconfig": "^0.3.0",
|
|
99
102
|
"@types/debug": "^4.1.12",
|
|
100
103
|
"@types/fs-extra": "^11.0.4",
|
|
101
|
-
"@types/node": "^
|
|
104
|
+
"@types/node": "^24.3.0",
|
|
102
105
|
"cac": "^6.7.14",
|
|
103
|
-
"eslint": "^9.
|
|
106
|
+
"eslint": "^9.33.0",
|
|
104
107
|
"eslint-flat-config-utils": "^2.1.1",
|
|
105
108
|
"eslint-typegen": "^2.3.0",
|
|
106
109
|
"execa": "~9.6.0",
|
|
@@ -112,8 +115,8 @@
|
|
|
112
115
|
"prettier": "^3.6.2",
|
|
113
116
|
"react": "~19.1.1",
|
|
114
117
|
"rimraf": "^6.0.1",
|
|
115
|
-
"tsdown": "^0.
|
|
116
|
-
"tsx": "^4.20.
|
|
118
|
+
"tsdown": "^0.14.1",
|
|
119
|
+
"tsx": "^4.20.4",
|
|
117
120
|
"typescript": "5.8.3",
|
|
118
121
|
"vitest": "^3.2.4"
|
|
119
122
|
},
|