@jsse/eslint-config 0.7.0 → 0.7.2

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.js CHANGED
@@ -1,5 +1,5 @@
1
- import { n as __exportAll, r as __toESM, t as __commonJSMin } from "./chunk-CSNpwdVU.js";
2
- import { n as SLOW_RULES, r as VERSION, t as DEBUG } from "./const-DzlQZWYA.js";
1
+ import { n as __exportAll, r as __toESM, t as __commonJSMin } from "./chunk-N93fKeF6.js";
2
+ import { n as SLOW_RULES, r as VERSION, t as DEBUG } from "./const-Xv2V3w-8.js";
3
3
  import { builtinModules, createRequire } from "node:module";
4
4
  import process$1 from "node:process";
5
5
  import fs, { realpathSync, statSync } from "node:fs";
@@ -3533,23 +3533,21 @@ var ecma10BinaryProperties = ecma9BinaryProperties + " Extended_Pictographic";
3533
3533
  var ecma11BinaryProperties = ecma10BinaryProperties;
3534
3534
  var ecma12BinaryProperties = ecma11BinaryProperties + " EBase EComp EMod EPres ExtPict";
3535
3535
  var ecma13BinaryProperties = ecma12BinaryProperties;
3536
- var ecma14BinaryProperties = ecma13BinaryProperties;
3537
3536
  var unicodeBinaryProperties = {
3538
3537
  9: ecma9BinaryProperties,
3539
3538
  10: ecma10BinaryProperties,
3540
3539
  11: ecma11BinaryProperties,
3541
3540
  12: ecma12BinaryProperties,
3542
3541
  13: ecma13BinaryProperties,
3543
- 14: ecma14BinaryProperties
3542
+ 14: ecma13BinaryProperties
3544
3543
  };
3545
- var ecma14BinaryPropertiesOfStrings = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji";
3546
3544
  var unicodeBinaryPropertiesOfStrings = {
3547
3545
  9: "",
3548
3546
  10: "",
3549
3547
  11: "",
3550
3548
  12: "",
3551
3549
  13: "",
3552
- 14: ecma14BinaryPropertiesOfStrings
3550
+ 14: "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"
3553
3551
  };
3554
3552
  var unicodeGeneralCategoryValues = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu";
3555
3553
  var ecma9ScriptValues = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb";
@@ -3557,14 +3555,13 @@ var ecma10ScriptValues = ecma9ScriptValues + " Dogra Dogr Gunjala_Gondi Gong Han
3557
3555
  var ecma11ScriptValues = ecma10ScriptValues + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
3558
3556
  var ecma12ScriptValues = ecma11ScriptValues + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
3559
3557
  var ecma13ScriptValues = ecma12ScriptValues + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
3560
- var ecma14ScriptValues = ecma13ScriptValues + " " + scriptValuesAddedInUnicode;
3561
3558
  var unicodeScriptValues = {
3562
3559
  9: ecma9ScriptValues,
3563
3560
  10: ecma10ScriptValues,
3564
3561
  11: ecma11ScriptValues,
3565
3562
  12: ecma12ScriptValues,
3566
3563
  13: ecma13ScriptValues,
3567
- 14: ecma14ScriptValues
3564
+ 14: ecma13ScriptValues + " " + scriptValuesAddedInUnicode
3568
3565
  };
3569
3566
  var data = {};
3570
3567
  function buildUnicodeData(ecmaVersion) {
@@ -6638,9 +6635,6 @@ async function importPluginReactRefresh() {
6638
6635
  async function importPluginMarkdown() {
6639
6636
  return { pluginMarkdown: await interopDefault(import("@eslint/markdown")) };
6640
6637
  }
6641
- async function importPluginTsdoc() {
6642
- return { pluginTsdoc: await interopDefault(import("eslint-plugin-tsdoc")) };
6643
- }
6644
6638
  async function importPluginStylistic() {
6645
6639
  return { pluginStylistic: await interopDefault(import("@stylistic/eslint-plugin")) };
6646
6640
  }
@@ -6821,7 +6815,7 @@ const imports = async (options) => {
6821
6815
  }];
6822
6816
  };
6823
6817
  //#endregion
6824
- //#region node_modules/.pnpm/globals@17.4.0/node_modules/globals/globals.json
6818
+ //#region node_modules/.pnpm/globals@17.5.0/node_modules/globals/globals.json
6825
6819
  var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6826
6820
  module.exports = {
6827
6821
  "amd": {
@@ -6927,6 +6921,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6927
6921
  "AudioNode": false,
6928
6922
  "AudioParam": false,
6929
6923
  "AudioParamMap": false,
6924
+ "AudioPlaybackStats": false,
6930
6925
  "AudioProcessingEvent": false,
6931
6926
  "AudioScheduledSourceNode": false,
6932
6927
  "AudioSinkInfo": false,
@@ -7718,6 +7713,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7718
7713
  "RTCSessionDescription": false,
7719
7714
  "RTCStatsReport": false,
7720
7715
  "RTCTrackEvent": false,
7716
+ "Sanitizer": false,
7721
7717
  "scheduler": false,
7722
7718
  "Scheduler": false,
7723
7719
  "Scheduling": false,
@@ -7919,6 +7915,9 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7919
7915
  "TextTrackList": false,
7920
7916
  "TextUpdateEvent": false,
7921
7917
  "TimeEvent": false,
7918
+ "TimelineTrigger": false,
7919
+ "TimelineTriggerRange": false,
7920
+ "TimelineTriggerRangeList": false,
7922
7921
  "TimeRanges": false,
7923
7922
  "ToggleEvent": false,
7924
7923
  "toolbar": false,
@@ -8364,6 +8363,7 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8364
8363
  "PromiseRejectionEvent": false,
8365
8364
  "prompt": false,
8366
8365
  "queueMicrotask": false,
8366
+ "QuotaExceededError": false,
8367
8367
  "ReadableByteStreamController": false,
8368
8368
  "ReadableStream": false,
8369
8369
  "ReadableStreamBYOBReader": false,
@@ -9154,6 +9154,70 @@ var require_globals$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9154
9154
  "WeakRef": false,
9155
9155
  "WeakSet": false
9156
9156
  },
9157
+ "es2027": {
9158
+ "AggregateError": false,
9159
+ "Array": false,
9160
+ "ArrayBuffer": false,
9161
+ "Atomics": false,
9162
+ "BigInt": false,
9163
+ "BigInt64Array": false,
9164
+ "BigUint64Array": false,
9165
+ "Boolean": false,
9166
+ "DataView": false,
9167
+ "Date": false,
9168
+ "decodeURI": false,
9169
+ "decodeURIComponent": false,
9170
+ "encodeURI": false,
9171
+ "encodeURIComponent": false,
9172
+ "Error": false,
9173
+ "escape": false,
9174
+ "eval": false,
9175
+ "EvalError": false,
9176
+ "FinalizationRegistry": false,
9177
+ "Float16Array": false,
9178
+ "Float32Array": false,
9179
+ "Float64Array": false,
9180
+ "Function": false,
9181
+ "globalThis": false,
9182
+ "Infinity": false,
9183
+ "Int16Array": false,
9184
+ "Int32Array": false,
9185
+ "Int8Array": false,
9186
+ "Intl": false,
9187
+ "isFinite": false,
9188
+ "isNaN": false,
9189
+ "Iterator": false,
9190
+ "JSON": false,
9191
+ "Map": false,
9192
+ "Math": false,
9193
+ "NaN": false,
9194
+ "Number": false,
9195
+ "Object": false,
9196
+ "parseFloat": false,
9197
+ "parseInt": false,
9198
+ "Promise": false,
9199
+ "Proxy": false,
9200
+ "RangeError": false,
9201
+ "ReferenceError": false,
9202
+ "Reflect": false,
9203
+ "RegExp": false,
9204
+ "Set": false,
9205
+ "SharedArrayBuffer": false,
9206
+ "String": false,
9207
+ "Symbol": false,
9208
+ "SyntaxError": false,
9209
+ "TypeError": false,
9210
+ "Uint16Array": false,
9211
+ "Uint32Array": false,
9212
+ "Uint8Array": false,
9213
+ "Uint8ClampedArray": false,
9214
+ "undefined": false,
9215
+ "unescape": false,
9216
+ "URIError": false,
9217
+ "WeakMap": false,
9218
+ "WeakRef": false,
9219
+ "WeakSet": false
9220
+ },
9157
9221
  "es3": {
9158
9222
  "Array": false,
9159
9223
  "Boolean": false,
@@ -11414,10 +11478,9 @@ const n = async () => {
11414
11478
  //#region src/configs/no-only-tests.ts
11415
11479
  const noOnlyTests = async (options = {}) => {
11416
11480
  const { isInEditor = false, overrides = {} } = options;
11417
- const pluginNoOnlyTests = await interopDefault(import("eslint-plugin-no-only-tests"));
11418
11481
  return [{
11419
11482
  name: "jsse/no-only-tests/setup",
11420
- plugins: { "no-only-tests": pluginNoOnlyTests }
11483
+ plugins: { "no-only-tests": await interopDefault(import("eslint-plugin-no-only-tests")) }
11421
11484
  }, {
11422
11485
  files: GLOB_TESTS,
11423
11486
  name: "jsse/no-only-tests/rules",
@@ -11779,7 +11842,7 @@ function reactRules() {
11779
11842
  */
11780
11843
  function reactRecomendedRules() {
11781
11844
  return {
11782
- "react/display-name": 2,
11845
+ "react/display-name": 0,
11783
11846
  "react/jsx-key": 2,
11784
11847
  "react/jsx-no-comment-textnodes": 2,
11785
11848
  "react/jsx-no-duplicate-props": 2,
@@ -11790,7 +11853,7 @@ function reactRecomendedRules() {
11790
11853
  "react/no-children-prop": 2,
11791
11854
  "react/no-danger-with-children": 2,
11792
11855
  "react/no-deprecated": 2,
11793
- "react/no-direct-mutation-state": 2,
11856
+ "react/no-direct-mutation-state": 0,
11794
11857
  "react/no-find-dom-node": 2,
11795
11858
  "react/no-is-mounted": 2,
11796
11859
  "react/no-render-return-value": 2,
@@ -12272,17 +12335,6 @@ const typescript = async (options) => {
12272
12335
  return tsEslintConfigs;
12273
12336
  };
12274
12337
  //#endregion
12275
- //#region src/configs/tsdoc.ts
12276
- const tsdoc = async () => {
12277
- const { pluginTsdoc } = await importPluginTsdoc();
12278
- return [{
12279
- files: ["*.ts", "*.tsx"],
12280
- name: "jsse/tsdoc",
12281
- plugins: { tsdoc: pluginTsdoc },
12282
- rules: { "tsdoc/syntax": "warn" }
12283
- }];
12284
- };
12285
- //#endregion
12286
12338
  //#region src/configs/unicorn.ts
12287
12339
  function unicornOff() {
12288
12340
  return {
@@ -12558,7 +12610,7 @@ async function jsse(options = {}, ...userConfigs) {
12558
12610
  react: enableReact,
12559
12611
  typeAware: effectiveTypeAware
12560
12612
  });
12561
- configs.push(tscfg, tsdoc());
12613
+ configs.push(tscfg);
12562
12614
  }
12563
12615
  if (enableMarkdown) configs.push(markdown());
12564
12616
  if (enableYaml) {
@@ -12631,4 +12683,4 @@ const jsseReact = (options, ...configs) => {
12631
12683
  }, ...configs);
12632
12684
  };
12633
12685
  //#endregion
12634
- export { SLOW_RULES, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defineConfig, error2warn, globs_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, importPluginTsdoc, interopDefault, isCI, isInEditor, jsseReact, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, turnOffRules, uniqueStrings, warn2error };
12686
+ export { SLOW_RULES, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defineConfig, error2warn, globs_exports as globs, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, interopDefault, isCI, isInEditor, jsseReact, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, turnOffRules, uniqueStrings, warn2error };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jsse/eslint-config",
3
3
  "type": "module",
4
- "version": "0.7.0",
4
+ "version": "0.7.2",
5
5
  "description": "@jsse/eslint-config ~ WYSIWYG",
6
6
  "author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
7
7
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "dist"
37
37
  ],
38
38
  "peerDependencies": {
39
- "@eslint-react/eslint-plugin": "^2.0.4",
39
+ "@eslint-react/eslint-plugin": "^4.2.3",
40
40
  "eslint": "^9.39.1",
41
41
  "eslint-plugin-react": "^7.37.5",
42
42
  "eslint-plugin-react-hooks": "^7.0.0",
@@ -61,67 +61,68 @@
61
61
  },
62
62
  "dependencies": {
63
63
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
64
- "@eslint/compat": "^2.0.3",
64
+ "@eslint/compat": "^2.0.5",
65
65
  "@eslint/js": "^9.39.4",
66
- "@eslint/markdown": "^7.5.1",
66
+ "@eslint/markdown": "^8.0.1",
67
67
  "@stylistic/eslint-plugin": "5.10.0",
68
- "@typescript-eslint/eslint-plugin": "^8.57.0",
69
- "@typescript-eslint/parser": "^8.57.0",
70
- "@typescript-eslint/rule-tester": "^8.57.0",
71
- "@vitest/eslint-plugin": "^1.6.11",
68
+ "@typescript-eslint/eslint-plugin": "^8.59.0",
69
+ "@typescript-eslint/parser": "^8.59.0",
70
+ "@typescript-eslint/rule-tester": "^8.59.0",
71
+ "@vitest/eslint-plugin": "^1.6.16",
72
72
  "debug": "^4.4.3",
73
- "eslint-config-flat-gitignore": "^2.2.1",
73
+ "eslint-config-flat-gitignore": "^2.3.0",
74
74
  "eslint-merge-processors": "^2.0.0",
75
75
  "eslint-plugin-antfu": "^3.2.2",
76
76
  "eslint-plugin-command": "^3.5.2",
77
77
  "eslint-plugin-de-morgan": "^2.1.1",
78
- "eslint-plugin-import-lite": "^0.5.2",
79
- "eslint-plugin-jsdoc": "^62.8.0",
78
+ "eslint-plugin-import-lite": "^0.6.0",
79
+ "eslint-plugin-jsdoc": "^62.9.0",
80
80
  "eslint-plugin-jsonc": "^3.1.2",
81
81
  "eslint-plugin-n": "^17.24.0",
82
82
  "eslint-plugin-no-only-tests": "^3.3.0",
83
- "eslint-plugin-perfectionist": "^5.6.0",
83
+ "eslint-plugin-perfectionist": "^5.9.0",
84
84
  "eslint-plugin-pnpm": "^1.6.0",
85
85
  "eslint-plugin-react": "^7.37.5",
86
- "eslint-plugin-react-hooks": "^7.0.1",
86
+ "eslint-plugin-react-hooks": "^7.1.1",
87
87
  "eslint-plugin-react-refresh": "^0.5.2",
88
88
  "eslint-plugin-toml": "^1.3.1",
89
- "eslint-plugin-tsdoc": "^0.5.2",
90
- "eslint-plugin-unicorn": "^63.0.0",
89
+ "eslint-plugin-unicorn": "^64.0.0",
91
90
  "eslint-plugin-unused-imports": "^4.4.1",
92
91
  "eslint-plugin-yml": "^3.3.1",
93
92
  "jsonc-eslint-parser": "^3.1.0",
94
93
  "toml-eslint-parser": "^1.0.3",
95
- "typescript-eslint": "^8.57.0",
94
+ "typescript-eslint": "^8.59.0",
96
95
  "yaml-eslint-parser": "^2.0.0"
97
96
  },
98
97
  "devDependencies": {
99
- "@changesets/cli": "^2.30.0",
98
+ "@changesets/cli": "^2.31.0",
99
+ "@emnapi/core": "^1.10.0",
100
+ "@emnapi/runtime": "^1.10.0",
100
101
  "@jsse/prettier-config": "^1.0.2",
101
- "@jsse/tsconfig": "^0.4.0",
102
- "@types/debug": "^4.1.12",
102
+ "@jsse/tsconfig": "^0.5.0",
103
+ "@types/debug": "^4.1.13",
103
104
  "@types/fs-extra": "^11.0.4",
104
105
  "@types/node": "^25.5.0",
105
106
  "cac": "^7.0.0",
106
107
  "eslint": "^9.39.4",
107
- "eslint-flat-config-utils": "^3.0.2",
108
+ "eslint-flat-config-utils": "^3.1.0",
108
109
  "eslint-typegen": "^2.3.1",
109
110
  "execa": "~9.6.1",
110
111
  "fast-equals": "^6.0.0",
111
112
  "fast-glob": "^3.3.3",
112
113
  "fs-extra": "^11.3.4",
113
- "globals": "^17.4.0",
114
+ "globals": "^17.5.0",
114
115
  "local-pkg": "^1.1.2",
115
- "oxfmt": "^0.38.0",
116
- "oxlint": "^1.55.0",
116
+ "oxfmt": "^0.46.0",
117
+ "oxlint": "^1.61.0",
117
118
  "picocolors": "^1.1.1",
118
- "prettier": "^3.8.1",
119
- "react": "~19.2.4",
119
+ "prettier": "^3.8.3",
120
+ "react": "~19.2.5",
120
121
  "rimraf": "^6.1.3",
121
- "tsdown": "^0.21.2",
122
+ "tsdown": "^0.21.9",
122
123
  "tsx": "^4.21.0",
123
- "typescript": "~5.9.3",
124
- "vitest": "^4.1.0"
124
+ "typescript": "~6.0.3",
125
+ "vitest": "^4.1.5"
125
126
  },
126
127
  "prettier": "@jsse/prettier-config",
127
128
  "scripts": {