@jsse/eslint-config 0.2.28 → 0.2.30

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @jsse/eslint-config
2
2
 
3
+ ## 0.2.30
4
+
5
+ ### Patch Changes
6
+
7
+ - updated dependencies
8
+
9
+ ## 0.2.29
10
+
11
+ ### Patch Changes
12
+
13
+ - fbc6cdd: perfectionist v4
14
+ - 907c61f: fix error caused by unicorn expiring todos
15
+
3
16
  ## 0.2.28
4
17
 
5
18
  ### Patch Changes
package/dist/cli.cjs CHANGED
@@ -280,8 +280,8 @@ var Command = class {
280
280
  this.config.ignoreOptionDefaultValue = true;
281
281
  return this;
282
282
  }
283
- version(version2, customFlags = "-v, --version") {
284
- this.versionNumber = version2;
283
+ version(version, customFlags = "-v, --version") {
284
+ this.versionNumber = version;
285
285
  this.option(customFlags, "Display version number");
286
286
  return this;
287
287
  }
@@ -453,8 +453,8 @@ var CAC = class extends import_events.EventEmitter {
453
453
  this.showHelpOnExit = true;
454
454
  return this;
455
455
  }
456
- version(version2, customFlags = "-v, --version") {
457
- this.globalCommand.version(version2, customFlags);
456
+ version(version, customFlags = "-v, --version") {
457
+ this.globalCommand.version(version, customFlags);
458
458
  this.showVersionOnExit = true;
459
459
  return this;
460
460
  }
@@ -611,8 +611,8 @@ var CAC = class extends import_events.EventEmitter {
611
611
  };
612
612
  var cac = (name = "") => new CAC(name);
613
613
 
614
- // package.json
615
- var version = "0.2.28";
614
+ // src/generated/version.ts
615
+ var VERSION = "0.2.30";
616
616
 
617
617
  // src/cli.ts
618
618
  var cli = cac("jsselint");
@@ -696,9 +696,9 @@ cli.command("init", "create eslint config file").option("--force", "force create
696
696
  console.log(`made eslint.config.js (type: ${packageJson.type})`);
697
697
  });
698
698
  cli.command("version", "echo version").action(() => {
699
- console.log(version);
699
+ console.log(VERSION);
700
700
  });
701
- cli.version(typeof version === "string" ? version : "unknown");
701
+ cli.version(typeof VERSION === "string" ? VERSION : "unknown");
702
702
  cli.help();
703
703
  async function main(args) {
704
704
  const argv = args ?? import_node_process.default.argv.slice(2);
package/dist/cli.js CHANGED
@@ -256,8 +256,8 @@ var Command = class {
256
256
  this.config.ignoreOptionDefaultValue = true;
257
257
  return this;
258
258
  }
259
- version(version2, customFlags = "-v, --version") {
260
- this.versionNumber = version2;
259
+ version(version, customFlags = "-v, --version") {
260
+ this.versionNumber = version;
261
261
  this.option(customFlags, "Display version number");
262
262
  return this;
263
263
  }
@@ -429,8 +429,8 @@ var CAC = class extends EventEmitter {
429
429
  this.showHelpOnExit = true;
430
430
  return this;
431
431
  }
432
- version(version2, customFlags = "-v, --version") {
433
- this.globalCommand.version(version2, customFlags);
432
+ version(version, customFlags = "-v, --version") {
433
+ this.globalCommand.version(version, customFlags);
434
434
  this.showVersionOnExit = true;
435
435
  return this;
436
436
  }
@@ -587,8 +587,8 @@ var CAC = class extends EventEmitter {
587
587
  };
588
588
  var cac = (name = "") => new CAC(name);
589
589
 
590
- // package.json
591
- var version = "0.2.28";
590
+ // src/generated/version.ts
591
+ var VERSION = "0.2.30";
592
592
 
593
593
  // src/cli.ts
594
594
  var cli = cac("jsselint");
@@ -672,9 +672,9 @@ cli.command("init", "create eslint config file").option("--force", "force create
672
672
  console.log(`made eslint.config.js (type: ${packageJson.type})`);
673
673
  });
674
674
  cli.command("version", "echo version").action(() => {
675
- console.log(version);
675
+ console.log(VERSION);
676
676
  });
677
- cli.version(typeof version === "string" ? version : "unknown");
677
+ cli.version(typeof VERSION === "string" ? VERSION : "unknown");
678
678
  cli.help();
679
679
  async function main(args) {
680
680
  const argv = args ?? process2.argv.slice(2);
package/dist/esm/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import fs from "node:fs";
3
3
  import process from "node:process";
4
4
  import { cac } from "cac";
5
- import { version } from "../package.json";
5
+ import { VERSION } from "./generated/version.js";
6
6
  const cli = cac("jsselint");
7
7
  const CONFIG_OPTIONS_STRING = `
8
8
  {
@@ -92,9 +92,9 @@ cli
92
92
  console.log(`made eslint.config.js (type: ${packageJson.type})`);
93
93
  });
94
94
  cli.command("version", "echo version").action(() => {
95
- console.log(version);
95
+ console.log(VERSION);
96
96
  });
97
- cli.version(typeof version === "string" ? version : "unknown");
97
+ cli.version(typeof VERSION === "string" ? VERSION : "unknown");
98
98
  cli.help();
99
99
  async function main(args) {
100
100
  const argv = args ?? process.argv.slice(2);
@@ -22,10 +22,10 @@ export const perfectionist = async () => {
22
22
  {
23
23
  customGroups: {
24
24
  type: {
25
- react: ["react", "react-*", "react-*/*"],
25
+ react: ["^react$", "^react-.+", "^react-.+/.+$"],
26
26
  },
27
27
  value: {
28
- react: ["react", "react-*", "react-*/*"],
28
+ react: ["^react$", "^react-.+", "^react-.+/.+$"],
29
29
  },
30
30
  },
31
31
  groups: [
@@ -40,7 +40,7 @@ export const perfectionist = async () => {
40
40
  "object",
41
41
  "unknown",
42
42
  ],
43
- internalPattern: ["~/**", "@/**"],
43
+ internalPattern: ["^~/.+", "^@/.+"],
44
44
  newlinesBetween: "ignore",
45
45
  order: "asc",
46
46
  type: "natural",
@@ -384,6 +384,7 @@ export const fixableRules = {
384
384
  "vitest/prefer-to-have-length",
385
385
  "vitest/prefer-todo",
386
386
  "vitest/prefer-vi-mocked",
387
+ "vitest/valid-expect",
387
388
  "vitest/valid-title",
388
389
  ],
389
390
  };
@@ -1 +1 @@
1
- export declare const VERSION = "0.2.28";
1
+ export declare const VERSION = "0.2.30";
@@ -1 +1 @@
1
- export const VERSION = "0.2.28";
1
+ export const VERSION = "0.2.30";
@@ -386,7 +386,7 @@ export declare function importPluginReactHooks(): Promise<{
386
386
  pluginReactHooks: any;
387
387
  }>;
388
388
  export declare function importPluginReactRefresh(): Promise<{
389
- pluginReactRefresh: any;
389
+ pluginReactRefresh: typeof import("eslint-plugin-react-refresh");
390
390
  }>;
391
391
  export declare function importReactPlugins(): Promise<{
392
392
  pluginReact: {
@@ -762,7 +762,7 @@ export declare function importReactPlugins(): Promise<{
762
762
  };
763
763
  };
764
764
  pluginReactHooks: any;
765
- pluginReactRefresh: any;
765
+ pluginReactRefresh: typeof import("eslint-plugin-react-refresh");
766
766
  }>;
767
767
  export declare function importParserJsonc(): Promise<{
768
768
  parserJsonc: typeof import("jsonc-eslint-parser");
@@ -1704,7 +1704,7 @@ export declare function importPluginMarkdown(): Promise<{
1704
1704
  }>;
1705
1705
  export declare function importPluginJsdoc(): Promise<{
1706
1706
  pluginJsdoc: import("eslint").ESLint.Plugin & {
1707
- configs: Record<"recommended" | "recommended-error" | "recommended-typescript" | "recommended-typescript-error" | "recommended-typescript-flavor" | "recommended-typescript-flavor-error" | "flat/recommended" | "flat/recommended-error" | "flat/recommended-typescript" | "flat/recommended-typescript-error" | "flat/recommended-typescript-flavor" | "flat/recommended-typescript-flavor-error", import("eslint").Linter.FlatConfig>;
1707
+ configs: Record<`flat/${import("eslint-plugin-jsdoc").ConfigGroups}${import("eslint-plugin-jsdoc").ConfigVariants}${import("eslint-plugin-jsdoc").ErrorLevelVariants}`, import("eslint").Linter.Config>;
1708
1708
  };
1709
1709
  }>;
1710
1710
  export declare function importPluginTsdoc(): Promise<{
@@ -29,9 +29,7 @@ export async function importPluginReactHooks() {
29
29
  };
30
30
  }
31
31
  export async function importPluginReactRefresh() {
32
- const pluginReactRefresh = await interopDefault(
33
- // @ts-expect-error - bad types
34
- import("eslint-plugin-react-refresh"));
32
+ const pluginReactRefresh = await interopDefault(import("eslint-plugin-react-refresh"));
35
33
  return {
36
34
  pluginReactRefresh,
37
35
  };
@@ -41,7 +39,6 @@ export async function importReactPlugins() {
41
39
  interopDefault(import("eslint-plugin-react")),
42
40
  // @ts-expect-error - bad types
43
41
  interopDefault(import("eslint-plugin-react-hooks")),
44
- // @ts-expect-error - bad types
45
42
  interopDefault(import("eslint-plugin-react-refresh")),
46
43
  ]);
47
44
  return { pluginReact, pluginReactHooks, pluginReactRefresh };
package/dist/index.cjs CHANGED
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
- // node_modules/.pnpm/globals@15.12.0/node_modules/globals/globals.json
33
+ // node_modules/.pnpm/globals@15.13.0/node_modules/globals/globals.json
34
34
  var require_globals = __commonJS({
35
- "node_modules/.pnpm/globals@15.12.0/node_modules/globals/globals.json"(exports2, module2) {
35
+ "node_modules/.pnpm/globals@15.13.0/node_modules/globals/globals.json"(exports2, module2) {
36
36
  module2.exports = {
37
37
  amd: {
38
38
  define: false,
@@ -193,6 +193,7 @@ var require_globals = __commonJS({
193
193
  CSSKeywordValue: false,
194
194
  CSSLayerBlockRule: false,
195
195
  CSSLayerStatementRule: false,
196
+ CSSMarginRule: false,
196
197
  CSSMathClamp: false,
197
198
  CSSMathInvert: false,
198
199
  CSSMathMax: false,
@@ -1158,12 +1159,15 @@ var require_globals = __commonJS({
1158
1159
  XRDepthInformation: false,
1159
1160
  XRDOMOverlayState: false,
1160
1161
  XRFrame: false,
1162
+ XRHand: false,
1161
1163
  XRHitTestResult: false,
1162
1164
  XRHitTestSource: false,
1163
1165
  XRInputSource: false,
1164
1166
  XRInputSourceArray: false,
1165
1167
  XRInputSourceEvent: false,
1166
1168
  XRInputSourcesChangeEvent: false,
1169
+ XRJointPose: false,
1170
+ XRJointSpace: false,
1167
1171
  XRLayer: false,
1168
1172
  XRLightEstimate: false,
1169
1173
  XRLightProbe: false,
@@ -2803,6 +2807,10 @@ var require_globals = __commonJS({
2803
2807
  GPUUncapturedErrorEvent: false,
2804
2808
  GPUValidationError: false,
2805
2809
  Headers: false,
2810
+ HID: false,
2811
+ HIDConnectionEvent: false,
2812
+ HIDDevice: false,
2813
+ HIDInputReportEvent: false,
2806
2814
  IDBCursor: false,
2807
2815
  IDBCursorWithValue: false,
2808
2816
  IDBDatabase: false,
@@ -3008,9 +3016,9 @@ var require_globals = __commonJS({
3008
3016
  }
3009
3017
  });
3010
3018
 
3011
- // node_modules/.pnpm/globals@15.12.0/node_modules/globals/index.js
3019
+ // node_modules/.pnpm/globals@15.13.0/node_modules/globals/index.js
3012
3020
  var require_globals2 = __commonJS({
3013
- "node_modules/.pnpm/globals@15.12.0/node_modules/globals/index.js"(exports2, module2) {
3021
+ "node_modules/.pnpm/globals@15.13.0/node_modules/globals/index.js"(exports2, module2) {
3014
3022
  "use strict";
3015
3023
  module2.exports = require_globals();
3016
3024
  }
@@ -10771,7 +10779,6 @@ async function importPluginReactHooks() {
10771
10779
  }
10772
10780
  async function importPluginReactRefresh() {
10773
10781
  const pluginReactRefresh = await interopDefault2(
10774
- // @ts-expect-error - bad types
10775
10782
  import("eslint-plugin-react-refresh")
10776
10783
  );
10777
10784
  return {
@@ -10784,7 +10791,6 @@ async function importReactPlugins() {
10784
10791
  interopDefault2(import("eslint-plugin-react")),
10785
10792
  // @ts-expect-error - bad types
10786
10793
  interopDefault2(import("eslint-plugin-react-hooks")),
10787
- // @ts-expect-error - bad types
10788
10794
  interopDefault2(import("eslint-plugin-react-refresh"))
10789
10795
  ]
10790
10796
  );
@@ -12043,10 +12049,10 @@ var perfectionist = async () => {
12043
12049
  {
12044
12050
  customGroups: {
12045
12051
  type: {
12046
- react: ["react", "react-*", "react-*/*"]
12052
+ react: ["^react$", "^react-.+", "^react-.+/.+$"]
12047
12053
  },
12048
12054
  value: {
12049
- react: ["react", "react-*", "react-*/*"]
12055
+ react: ["^react$", "^react-.+", "^react-.+/.+$"]
12050
12056
  }
12051
12057
  },
12052
12058
  groups: [
@@ -12062,7 +12068,7 @@ var perfectionist = async () => {
12062
12068
  "object",
12063
12069
  "unknown"
12064
12070
  ],
12065
- internalPattern: ["~/**", "@/**"],
12071
+ internalPattern: ["^~/.+", "^@/.+"],
12066
12072
  newlinesBetween: "ignore",
12067
12073
  order: "asc",
12068
12074
  type: "natural"
@@ -13483,7 +13489,7 @@ async function defineConfig(options = {}, ...userConfigs) {
13483
13489
  }
13484
13490
 
13485
13491
  // src/generated/version.ts
13486
- var VERSION = "0.2.28";
13492
+ var VERSION = "0.2.30";
13487
13493
 
13488
13494
  // src/presets.ts
13489
13495
  var jsseReact = (options, ...configs) => {