@jsse/eslint-config 0.2.25 → 0.2.26

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.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.11.0/node_modules/globals/globals.json
33
+ // node_modules/.pnpm/globals@15.12.0/node_modules/globals/globals.json
34
34
  var require_globals = __commonJS({
35
- "node_modules/.pnpm/globals@15.11.0/node_modules/globals/globals.json"(exports2, module2) {
35
+ "node_modules/.pnpm/globals@15.12.0/node_modules/globals/globals.json"(exports2, module2) {
36
36
  module2.exports = {
37
37
  amd: {
38
38
  define: false,
@@ -204,6 +204,7 @@ var require_globals = __commonJS({
204
204
  CSSMatrixComponent: false,
205
205
  CSSMediaRule: false,
206
206
  CSSNamespaceRule: false,
207
+ CSSNestedDeclarations: false,
207
208
  CSSNumericArray: false,
208
209
  CSSNumericValue: false,
209
210
  CSSPageDescriptors: false,
@@ -504,7 +505,6 @@ var require_globals = __commonJS({
504
505
  IntersectionObserver: false,
505
506
  IntersectionObserverEntry: false,
506
507
  isSecureContext: false,
507
- Iterator: false,
508
508
  Keyboard: false,
509
509
  KeyboardEvent: false,
510
510
  KeyboardLayoutMap: false,
@@ -1218,6 +1218,7 @@ var require_globals = __commonJS({
1218
1218
  Intl: false,
1219
1219
  isFinite: false,
1220
1220
  isNaN: false,
1221
+ Iterator: false,
1221
1222
  JSON: false,
1222
1223
  Map: false,
1223
1224
  Math: false,
@@ -1929,6 +1930,7 @@ var require_globals = __commonJS({
1929
1930
  Intl: false,
1930
1931
  isFinite: false,
1931
1932
  isNaN: false,
1933
+ Iterator: false,
1932
1934
  JSON: false,
1933
1935
  Map: false,
1934
1936
  Math: false,
@@ -2228,6 +2230,7 @@ var require_globals = __commonJS({
2228
2230
  clearImmediate: false,
2229
2231
  clearInterval: false,
2230
2232
  clearTimeout: false,
2233
+ CloseEvent: false,
2231
2234
  CompressionStream: false,
2232
2235
  console: false,
2233
2236
  CountQueuingStrategy: false,
@@ -2245,7 +2248,6 @@ var require_globals = __commonJS({
2245
2248
  FormData: false,
2246
2249
  global: false,
2247
2250
  Headers: false,
2248
- Iterator: false,
2249
2251
  MessageChannel: false,
2250
2252
  MessageEvent: false,
2251
2253
  MessagePort: false,
@@ -2302,6 +2304,7 @@ var require_globals = __commonJS({
2302
2304
  clearImmediate: false,
2303
2305
  clearInterval: false,
2304
2306
  clearTimeout: false,
2307
+ CloseEvent: false,
2305
2308
  CompressionStream: false,
2306
2309
  console: false,
2307
2310
  CountQueuingStrategy: false,
@@ -2318,7 +2321,6 @@ var require_globals = __commonJS({
2318
2321
  FormData: false,
2319
2322
  global: false,
2320
2323
  Headers: false,
2321
- Iterator: false,
2322
2324
  MessageChannel: false,
2323
2325
  MessageEvent: false,
2324
2326
  MessagePort: false,
@@ -2595,6 +2597,7 @@ var require_globals = __commonJS({
2595
2597
  ByteLengthQueuingStrategy: false,
2596
2598
  clearInterval: false,
2597
2599
  clearTimeout: false,
2600
+ CloseEvent: false,
2598
2601
  CompressionStream: false,
2599
2602
  console: false,
2600
2603
  CountQueuingStrategy: false,
@@ -2610,7 +2613,6 @@ var require_globals = __commonJS({
2610
2613
  File: false,
2611
2614
  FormData: false,
2612
2615
  Headers: false,
2613
- Iterator: false,
2614
2616
  MessageChannel: false,
2615
2617
  MessageEvent: false,
2616
2618
  MessagePort: false,
@@ -2822,7 +2824,6 @@ var require_globals = __commonJS({
2822
2824
  importScripts: false,
2823
2825
  indexedDB: false,
2824
2826
  isSecureContext: false,
2825
- Iterator: false,
2826
2827
  location: false,
2827
2828
  Lock: false,
2828
2829
  LockManager: false,
@@ -2882,6 +2883,7 @@ var require_globals = __commonJS({
2882
2883
  Request: false,
2883
2884
  requestAnimationFrame: false,
2884
2885
  Response: false,
2886
+ RTCDataChannel: false,
2885
2887
  RTCEncodedAudioFrame: false,
2886
2888
  RTCEncodedVideoFrame: false,
2887
2889
  scheduler: false,
@@ -3006,9 +3008,9 @@ var require_globals = __commonJS({
3006
3008
  }
3007
3009
  });
3008
3010
 
3009
- // node_modules/.pnpm/globals@15.11.0/node_modules/globals/index.js
3011
+ // node_modules/.pnpm/globals@15.12.0/node_modules/globals/index.js
3010
3012
  var require_globals2 = __commonJS({
3011
- "node_modules/.pnpm/globals@15.11.0/node_modules/globals/index.js"(exports2, module2) {
3013
+ "node_modules/.pnpm/globals@15.12.0/node_modules/globals/index.js"(exports2, module2) {
3012
3014
  "use strict";
3013
3015
  module2.exports = require_globals();
3014
3016
  }
@@ -3017,38 +3019,15 @@ var require_globals2 = __commonJS({
3017
3019
  // src/index.ts
3018
3020
  var src_exports = {};
3019
3021
  __export(src_exports, {
3020
- GLOB_ALL_SRC: () => GLOB_ALL_SRC,
3021
- GLOB_CSS: () => GLOB_CSS,
3022
- GLOB_EXCLUDE: () => GLOB_EXCLUDE,
3023
- GLOB_GRAPHQL: () => GLOB_GRAPHQL,
3024
- GLOB_HTML: () => GLOB_HTML,
3025
- GLOB_JS: () => GLOB_JS,
3026
- GLOB_JSON: () => GLOB_JSON,
3027
- GLOB_JSON5: () => GLOB_JSON5,
3028
- GLOB_JSONC: () => GLOB_JSONC,
3029
- GLOB_JSX: () => GLOB_JSX,
3030
- GLOB_JS_SRC_EXT: () => GLOB_JS_SRC_EXT,
3031
- GLOB_LESS: () => GLOB_LESS,
3032
- GLOB_MARKDOWN: () => GLOB_MARKDOWN,
3033
- GLOB_MARKDOWN_CODE: () => GLOB_MARKDOWN_CODE,
3034
- GLOB_MARKDOWN_IN_MARKDOWN: () => GLOB_MARKDOWN_IN_MARKDOWN,
3035
- GLOB_SCSS: () => GLOB_SCSS,
3036
- GLOB_SRC: () => GLOB_SRC,
3037
- GLOB_SRC_EXT: () => GLOB_SRC_EXT,
3038
- GLOB_STYLE: () => GLOB_STYLE,
3039
- GLOB_TESTS: () => GLOB_TESTS,
3040
- GLOB_TOML: () => GLOB_TOML,
3041
- GLOB_TS: () => GLOB_TS,
3042
- GLOB_TSCONFIG: () => GLOB_TSCONFIG,
3043
- GLOB_TSX: () => GLOB_TSX,
3044
- GLOB_YAML: () => GLOB_YAML,
3045
3022
  SLOW_RULES: () => SLOW_RULES,
3023
+ VERSION: () => VERSION,
3046
3024
  changeRuleEntrySeverity: () => changeRuleEntrySeverity,
3047
3025
  combine: () => combine,
3048
3026
  combineAsync: () => combineAsync,
3049
3027
  default: () => jsse,
3050
3028
  defineConfig: () => defineConfig,
3051
3029
  error2warn: () => error2warn,
3030
+ globs: () => globs_exports,
3052
3031
  importJsoncLibs: () => importJsoncLibs,
3053
3032
  importParserJsonc: () => importParserJsonc,
3054
3033
  importPluginJsdoc: () => importPluginJsdoc,
@@ -3088,10 +3067,24 @@ module.exports = __toCommonJS(src_exports);
3088
3067
  // src/const.ts
3089
3068
  var SLOW_RULES = [
3090
3069
  "@typescript-eslint/no-misused-promises",
3070
+ "@typescript-eslint/no-redeclare",
3091
3071
  "@typescript-eslint/no-unsafe-assignment",
3092
3072
  "@typescript-eslint/no-unsafe-call",
3093
3073
  "@typescript-eslint/no-unsafe-member-access",
3094
3074
  "@typescript-eslint/no-unsafe-return",
3075
+ "import/no-duplicates",
3076
+ "import/no-self-import",
3077
+ "jsdoc/check-access",
3078
+ "jsdoc/check-alignment",
3079
+ "jsdoc/check-property-names",
3080
+ "jsdoc/check-types",
3081
+ "jsdoc/empty-tags",
3082
+ "jsdoc/multiline-blocks",
3083
+ "jsdoc/no-multi-asterisks",
3084
+ "jsdoc/require-property-description",
3085
+ "jsdoc/require-property-name",
3086
+ "jsdoc/require-property",
3087
+ "unicorn/expiring-todo-comments",
3095
3088
  "unicorn/no-unnecessary-polyfills"
3096
3089
  ];
3097
3090
 
@@ -10485,6 +10478,8 @@ var Lager = class {
10485
10478
  }
10486
10479
  }
10487
10480
  };
10481
+
10482
+ // src/log.ts
10488
10483
  var log = new Lager();
10489
10484
 
10490
10485
  // src/utils.ts
@@ -10777,6 +10772,17 @@ var antfu = async (options) => {
10777
10772
  ];
10778
10773
  };
10779
10774
 
10775
+ // src/configs/command.ts
10776
+ var import_config = __toESM(require("eslint-plugin-command/config"), 1);
10777
+ var command = async () => {
10778
+ return [
10779
+ {
10780
+ ...(0, import_config.default)(),
10781
+ name: "jsse/command/rules"
10782
+ }
10783
+ ];
10784
+ };
10785
+
10780
10786
  // src/configs/comments.ts
10781
10787
  var comments = async () => [
10782
10788
  {
@@ -10795,6 +10801,34 @@ var comments = async () => [
10795
10801
  ];
10796
10802
 
10797
10803
  // src/globs.ts
10804
+ var globs_exports = {};
10805
+ __export(globs_exports, {
10806
+ GLOB_ALL_SRC: () => GLOB_ALL_SRC,
10807
+ GLOB_CSS: () => GLOB_CSS,
10808
+ GLOB_EXCLUDE: () => GLOB_EXCLUDE,
10809
+ GLOB_GRAPHQL: () => GLOB_GRAPHQL,
10810
+ GLOB_HTML: () => GLOB_HTML,
10811
+ GLOB_JS: () => GLOB_JS,
10812
+ GLOB_JSON: () => GLOB_JSON,
10813
+ GLOB_JSON5: () => GLOB_JSON5,
10814
+ GLOB_JSONC: () => GLOB_JSONC,
10815
+ GLOB_JSX: () => GLOB_JSX,
10816
+ GLOB_JS_SRC_EXT: () => GLOB_JS_SRC_EXT,
10817
+ GLOB_LESS: () => GLOB_LESS,
10818
+ GLOB_MARKDOWN: () => GLOB_MARKDOWN,
10819
+ GLOB_MARKDOWN_CODE: () => GLOB_MARKDOWN_CODE,
10820
+ GLOB_MARKDOWN_IN_MARKDOWN: () => GLOB_MARKDOWN_IN_MARKDOWN,
10821
+ GLOB_SCSS: () => GLOB_SCSS,
10822
+ GLOB_SRC: () => GLOB_SRC,
10823
+ GLOB_SRC_EXT: () => GLOB_SRC_EXT,
10824
+ GLOB_STYLE: () => GLOB_STYLE,
10825
+ GLOB_TESTS: () => GLOB_TESTS,
10826
+ GLOB_TOML: () => GLOB_TOML,
10827
+ GLOB_TS: () => GLOB_TS,
10828
+ GLOB_TSCONFIG: () => GLOB_TSCONFIG,
10829
+ GLOB_TSX: () => GLOB_TSX,
10830
+ GLOB_YAML: () => GLOB_YAML
10831
+ });
10798
10832
  var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
10799
10833
  var GLOB_JS_SRC_EXT = "?([cm])js?(x)";
10800
10834
  var GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
@@ -13086,6 +13120,7 @@ var DEBUG = ["1", "true", "t", "on", "yes", "y"].includes(
13086
13120
  );
13087
13121
  function defaultOptions2() {
13088
13122
  return {
13123
+ command: true,
13089
13124
  componentExts: [],
13090
13125
  debug: DEBUG && import_node_process6.default.env.TEST !== "true",
13091
13126
  fast: false,
@@ -13143,7 +13178,7 @@ async function jsse(options = {}, ...userConfigs) {
13143
13178
  typeAware,
13144
13179
  typescript: enableTypeScript
13145
13180
  } = normalizedOptions;
13146
- if (debug) {
13181
+ if (debug || import_node_process6.default.argv.includes("--debug")) {
13147
13182
  log.level = "debug";
13148
13183
  }
13149
13184
  log.debug("@jsse/eslint-config debug=true");
@@ -13190,6 +13225,9 @@ async function jsse(options = {}, ...userConfigs) {
13190
13225
  antfu(),
13191
13226
  perfectionist()
13192
13227
  );
13228
+ if (normalizedOptions.command) {
13229
+ configs.push(command());
13230
+ }
13193
13231
  if (enableTypeScript) {
13194
13232
  const tscfg = typescript({
13195
13233
  ...typeof enableTypeScript === "boolean" ? {} : enableTypeScript,
@@ -13325,6 +13363,9 @@ async function defineConfig(options = {}, ...userConfigs) {
13325
13363
  return jsse(options, ...userConfigs);
13326
13364
  }
13327
13365
 
13366
+ // src/generated/version.ts
13367
+ var VERSION = "0.2.26";
13368
+
13328
13369
  // src/presets.ts
13329
13370
  var jsseReact = (options, ...configs) => {
13330
13371
  return jsse(
@@ -13342,37 +13383,14 @@ var jsseReact = (options, ...configs) => {
13342
13383
  };
13343
13384
  // Annotate the CommonJS export names for ESM import in node:
13344
13385
  0 && (module.exports = {
13345
- GLOB_ALL_SRC,
13346
- GLOB_CSS,
13347
- GLOB_EXCLUDE,
13348
- GLOB_GRAPHQL,
13349
- GLOB_HTML,
13350
- GLOB_JS,
13351
- GLOB_JSON,
13352
- GLOB_JSON5,
13353
- GLOB_JSONC,
13354
- GLOB_JSX,
13355
- GLOB_JS_SRC_EXT,
13356
- GLOB_LESS,
13357
- GLOB_MARKDOWN,
13358
- GLOB_MARKDOWN_CODE,
13359
- GLOB_MARKDOWN_IN_MARKDOWN,
13360
- GLOB_SCSS,
13361
- GLOB_SRC,
13362
- GLOB_SRC_EXT,
13363
- GLOB_STYLE,
13364
- GLOB_TESTS,
13365
- GLOB_TOML,
13366
- GLOB_TS,
13367
- GLOB_TSCONFIG,
13368
- GLOB_TSX,
13369
- GLOB_YAML,
13370
13386
  SLOW_RULES,
13387
+ VERSION,
13371
13388
  changeRuleEntrySeverity,
13372
13389
  combine,
13373
13390
  combineAsync,
13374
13391
  defineConfig,
13375
13392
  error2warn,
13393
+ globs,
13376
13394
  importJsoncLibs,
13377
13395
  importParserJsonc,
13378
13396
  importPluginJsdoc,