@jsse/eslint-config 0.2.25 → 0.2.27

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
@@ -7,6 +7,10 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __commonJS = (cb, mod) => function __require() {
8
8
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
9
  };
10
+ var __export = (target, all) => {
11
+ for (var name in all)
12
+ __defProp(target, name, { get: all[name], enumerable: true });
13
+ };
10
14
  var __copyProps = (to, from, except, desc) => {
11
15
  if (from && typeof from === "object" || typeof from === "function") {
12
16
  for (let key of __getOwnPropNames(from))
@@ -24,9 +28,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
28
  mod
25
29
  ));
26
30
 
27
- // node_modules/.pnpm/globals@15.11.0/node_modules/globals/globals.json
31
+ // node_modules/.pnpm/globals@15.12.0/node_modules/globals/globals.json
28
32
  var require_globals = __commonJS({
29
- "node_modules/.pnpm/globals@15.11.0/node_modules/globals/globals.json"(exports, module) {
33
+ "node_modules/.pnpm/globals@15.12.0/node_modules/globals/globals.json"(exports, module) {
30
34
  module.exports = {
31
35
  amd: {
32
36
  define: false,
@@ -198,6 +202,7 @@ var require_globals = __commonJS({
198
202
  CSSMatrixComponent: false,
199
203
  CSSMediaRule: false,
200
204
  CSSNamespaceRule: false,
205
+ CSSNestedDeclarations: false,
201
206
  CSSNumericArray: false,
202
207
  CSSNumericValue: false,
203
208
  CSSPageDescriptors: false,
@@ -498,7 +503,6 @@ var require_globals = __commonJS({
498
503
  IntersectionObserver: false,
499
504
  IntersectionObserverEntry: false,
500
505
  isSecureContext: false,
501
- Iterator: false,
502
506
  Keyboard: false,
503
507
  KeyboardEvent: false,
504
508
  KeyboardLayoutMap: false,
@@ -1212,6 +1216,7 @@ var require_globals = __commonJS({
1212
1216
  Intl: false,
1213
1217
  isFinite: false,
1214
1218
  isNaN: false,
1219
+ Iterator: false,
1215
1220
  JSON: false,
1216
1221
  Map: false,
1217
1222
  Math: false,
@@ -1923,6 +1928,7 @@ var require_globals = __commonJS({
1923
1928
  Intl: false,
1924
1929
  isFinite: false,
1925
1930
  isNaN: false,
1931
+ Iterator: false,
1926
1932
  JSON: false,
1927
1933
  Map: false,
1928
1934
  Math: false,
@@ -2222,6 +2228,7 @@ var require_globals = __commonJS({
2222
2228
  clearImmediate: false,
2223
2229
  clearInterval: false,
2224
2230
  clearTimeout: false,
2231
+ CloseEvent: false,
2225
2232
  CompressionStream: false,
2226
2233
  console: false,
2227
2234
  CountQueuingStrategy: false,
@@ -2239,7 +2246,6 @@ var require_globals = __commonJS({
2239
2246
  FormData: false,
2240
2247
  global: false,
2241
2248
  Headers: false,
2242
- Iterator: false,
2243
2249
  MessageChannel: false,
2244
2250
  MessageEvent: false,
2245
2251
  MessagePort: false,
@@ -2296,6 +2302,7 @@ var require_globals = __commonJS({
2296
2302
  clearImmediate: false,
2297
2303
  clearInterval: false,
2298
2304
  clearTimeout: false,
2305
+ CloseEvent: false,
2299
2306
  CompressionStream: false,
2300
2307
  console: false,
2301
2308
  CountQueuingStrategy: false,
@@ -2312,7 +2319,6 @@ var require_globals = __commonJS({
2312
2319
  FormData: false,
2313
2320
  global: false,
2314
2321
  Headers: false,
2315
- Iterator: false,
2316
2322
  MessageChannel: false,
2317
2323
  MessageEvent: false,
2318
2324
  MessagePort: false,
@@ -2589,6 +2595,7 @@ var require_globals = __commonJS({
2589
2595
  ByteLengthQueuingStrategy: false,
2590
2596
  clearInterval: false,
2591
2597
  clearTimeout: false,
2598
+ CloseEvent: false,
2592
2599
  CompressionStream: false,
2593
2600
  console: false,
2594
2601
  CountQueuingStrategy: false,
@@ -2604,7 +2611,6 @@ var require_globals = __commonJS({
2604
2611
  File: false,
2605
2612
  FormData: false,
2606
2613
  Headers: false,
2607
- Iterator: false,
2608
2614
  MessageChannel: false,
2609
2615
  MessageEvent: false,
2610
2616
  MessagePort: false,
@@ -2816,7 +2822,6 @@ var require_globals = __commonJS({
2816
2822
  importScripts: false,
2817
2823
  indexedDB: false,
2818
2824
  isSecureContext: false,
2819
- Iterator: false,
2820
2825
  location: false,
2821
2826
  Lock: false,
2822
2827
  LockManager: false,
@@ -2876,6 +2881,7 @@ var require_globals = __commonJS({
2876
2881
  Request: false,
2877
2882
  requestAnimationFrame: false,
2878
2883
  Response: false,
2884
+ RTCDataChannel: false,
2879
2885
  RTCEncodedAudioFrame: false,
2880
2886
  RTCEncodedVideoFrame: false,
2881
2887
  scheduler: false,
@@ -3000,9 +3006,9 @@ var require_globals = __commonJS({
3000
3006
  }
3001
3007
  });
3002
3008
 
3003
- // node_modules/.pnpm/globals@15.11.0/node_modules/globals/index.js
3009
+ // node_modules/.pnpm/globals@15.12.0/node_modules/globals/index.js
3004
3010
  var require_globals2 = __commonJS({
3005
- "node_modules/.pnpm/globals@15.11.0/node_modules/globals/index.js"(exports, module) {
3011
+ "node_modules/.pnpm/globals@15.12.0/node_modules/globals/index.js"(exports, module) {
3006
3012
  "use strict";
3007
3013
  module.exports = require_globals();
3008
3014
  }
@@ -3011,10 +3017,24 @@ var require_globals2 = __commonJS({
3011
3017
  // src/const.ts
3012
3018
  var SLOW_RULES = [
3013
3019
  "@typescript-eslint/no-misused-promises",
3020
+ "@typescript-eslint/no-redeclare",
3014
3021
  "@typescript-eslint/no-unsafe-assignment",
3015
3022
  "@typescript-eslint/no-unsafe-call",
3016
3023
  "@typescript-eslint/no-unsafe-member-access",
3017
3024
  "@typescript-eslint/no-unsafe-return",
3025
+ "import/no-duplicates",
3026
+ "import/no-self-import",
3027
+ "jsdoc/check-access",
3028
+ "jsdoc/check-alignment",
3029
+ "jsdoc/check-property-names",
3030
+ "jsdoc/check-types",
3031
+ "jsdoc/empty-tags",
3032
+ "jsdoc/multiline-blocks",
3033
+ "jsdoc/no-multi-asterisks",
3034
+ "jsdoc/require-property-description",
3035
+ "jsdoc/require-property-name",
3036
+ "jsdoc/require-property",
3037
+ "unicorn/expiring-todo-comments",
3018
3038
  "unicorn/no-unnecessary-polyfills"
3019
3039
  ];
3020
3040
 
@@ -10405,6 +10425,8 @@ var Lager = class {
10405
10425
  }
10406
10426
  }
10407
10427
  };
10428
+
10429
+ // src/log.ts
10408
10430
  var log = new Lager();
10409
10431
 
10410
10432
  // src/utils.ts
@@ -10697,6 +10719,17 @@ var antfu = async (options) => {
10697
10719
  ];
10698
10720
  };
10699
10721
 
10722
+ // src/configs/command.ts
10723
+ import createCommand from "eslint-plugin-command/config";
10724
+ var command = async () => {
10725
+ return [
10726
+ {
10727
+ ...createCommand(),
10728
+ name: "jsse/command/rules"
10729
+ }
10730
+ ];
10731
+ };
10732
+
10700
10733
  // src/configs/comments.ts
10701
10734
  var comments = async () => [
10702
10735
  {
@@ -10715,6 +10748,34 @@ var comments = async () => [
10715
10748
  ];
10716
10749
 
10717
10750
  // src/globs.ts
10751
+ var globs_exports = {};
10752
+ __export(globs_exports, {
10753
+ GLOB_ALL_SRC: () => GLOB_ALL_SRC,
10754
+ GLOB_CSS: () => GLOB_CSS,
10755
+ GLOB_EXCLUDE: () => GLOB_EXCLUDE,
10756
+ GLOB_GRAPHQL: () => GLOB_GRAPHQL,
10757
+ GLOB_HTML: () => GLOB_HTML,
10758
+ GLOB_JS: () => GLOB_JS,
10759
+ GLOB_JSON: () => GLOB_JSON,
10760
+ GLOB_JSON5: () => GLOB_JSON5,
10761
+ GLOB_JSONC: () => GLOB_JSONC,
10762
+ GLOB_JSX: () => GLOB_JSX,
10763
+ GLOB_JS_SRC_EXT: () => GLOB_JS_SRC_EXT,
10764
+ GLOB_LESS: () => GLOB_LESS,
10765
+ GLOB_MARKDOWN: () => GLOB_MARKDOWN,
10766
+ GLOB_MARKDOWN_CODE: () => GLOB_MARKDOWN_CODE,
10767
+ GLOB_MARKDOWN_IN_MARKDOWN: () => GLOB_MARKDOWN_IN_MARKDOWN,
10768
+ GLOB_SCSS: () => GLOB_SCSS,
10769
+ GLOB_SRC: () => GLOB_SRC,
10770
+ GLOB_SRC_EXT: () => GLOB_SRC_EXT,
10771
+ GLOB_STYLE: () => GLOB_STYLE,
10772
+ GLOB_TESTS: () => GLOB_TESTS,
10773
+ GLOB_TOML: () => GLOB_TOML,
10774
+ GLOB_TS: () => GLOB_TS,
10775
+ GLOB_TSCONFIG: () => GLOB_TSCONFIG,
10776
+ GLOB_TSX: () => GLOB_TSX,
10777
+ GLOB_YAML: () => GLOB_YAML
10778
+ });
10718
10779
  var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
10719
10780
  var GLOB_JS_SRC_EXT = "?([cm])js?(x)";
10720
10781
  var GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
@@ -13006,6 +13067,7 @@ var DEBUG = ["1", "true", "t", "on", "yes", "y"].includes(
13006
13067
  );
13007
13068
  function defaultOptions2() {
13008
13069
  return {
13070
+ command: true,
13009
13071
  componentExts: [],
13010
13072
  debug: DEBUG && process6.env.TEST !== "true",
13011
13073
  fast: false,
@@ -13063,7 +13125,7 @@ async function jsse(options = {}, ...userConfigs) {
13063
13125
  typeAware,
13064
13126
  typescript: enableTypeScript
13065
13127
  } = normalizedOptions;
13066
- if (debug) {
13128
+ if (debug || process6.argv.includes("--debug")) {
13067
13129
  log.level = "debug";
13068
13130
  }
13069
13131
  log.debug("@jsse/eslint-config debug=true");
@@ -13110,6 +13172,9 @@ async function jsse(options = {}, ...userConfigs) {
13110
13172
  antfu(),
13111
13173
  perfectionist()
13112
13174
  );
13175
+ if (normalizedOptions.command) {
13176
+ configs.push(command());
13177
+ }
13113
13178
  if (enableTypeScript) {
13114
13179
  const tscfg = typescript({
13115
13180
  ...typeof enableTypeScript === "boolean" ? {} : enableTypeScript,
@@ -13245,6 +13310,9 @@ async function defineConfig(options = {}, ...userConfigs) {
13245
13310
  return jsse(options, ...userConfigs);
13246
13311
  }
13247
13312
 
13313
+ // src/generated/version.ts
13314
+ var VERSION = "0.2.27";
13315
+
13248
13316
  // src/presets.ts
13249
13317
  var jsseReact = (options, ...configs) => {
13250
13318
  return jsse(
@@ -13261,38 +13329,15 @@ var jsseReact = (options, ...configs) => {
13261
13329
  );
13262
13330
  };
13263
13331
  export {
13264
- GLOB_ALL_SRC,
13265
- GLOB_CSS,
13266
- GLOB_EXCLUDE,
13267
- GLOB_GRAPHQL,
13268
- GLOB_HTML,
13269
- GLOB_JS,
13270
- GLOB_JSON,
13271
- GLOB_JSON5,
13272
- GLOB_JSONC,
13273
- GLOB_JSX,
13274
- GLOB_JS_SRC_EXT,
13275
- GLOB_LESS,
13276
- GLOB_MARKDOWN,
13277
- GLOB_MARKDOWN_CODE,
13278
- GLOB_MARKDOWN_IN_MARKDOWN,
13279
- GLOB_SCSS,
13280
- GLOB_SRC,
13281
- GLOB_SRC_EXT,
13282
- GLOB_STYLE,
13283
- GLOB_TESTS,
13284
- GLOB_TOML,
13285
- GLOB_TS,
13286
- GLOB_TSCONFIG,
13287
- GLOB_TSX,
13288
- GLOB_YAML,
13289
13332
  SLOW_RULES,
13333
+ VERSION,
13290
13334
  changeRuleEntrySeverity,
13291
13335
  combine,
13292
13336
  combineAsync,
13293
13337
  jsse as default,
13294
13338
  defineConfig,
13295
13339
  error2warn,
13340
+ globs_exports as globs,
13296
13341
  importJsoncLibs,
13297
13342
  importParserJsonc,
13298
13343
  importPluginJsdoc,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jsse/eslint-config",
3
3
  "type": "module",
4
- "version": "0.2.25",
4
+ "version": "0.2.27",
5
5
  "description": "@jsse/eslint-config ~ WYSIWYG",
6
6
  "author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
7
7
  "license": "MIT",
@@ -32,6 +32,7 @@
32
32
  "files": [
33
33
  "!**/*.test.*",
34
34
  "!**/*.tsbuildinfo",
35
+ "CHANGELOG.md",
35
36
  "README.md",
36
37
  "dist"
37
38
  ],
@@ -66,21 +67,22 @@
66
67
  },
67
68
  "dependencies": {
68
69
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
69
- "@eslint/compat": "^1.2.2",
70
- "@eslint/js": "~9.13.0",
70
+ "@eslint/compat": "^1.2.3",
71
+ "@eslint/js": "~9.15.0",
71
72
  "@eslint/markdown": "^6.2.1",
72
- "@stylistic/eslint-plugin": "2.10.0",
73
- "@typescript-eslint/eslint-plugin": "^8.12.2",
74
- "@typescript-eslint/parser": "^8.12.2",
75
- "@vitest/eslint-plugin": "^1.1.7",
73
+ "@stylistic/eslint-plugin": "2.10.1",
74
+ "@typescript-eslint/eslint-plugin": "^8.15.0",
75
+ "@typescript-eslint/parser": "^8.15.0",
76
+ "@vitest/eslint-plugin": "^1.1.10",
76
77
  "eslint-config-flat-gitignore": "^0.3.0",
77
78
  "eslint-define-config": "^2.1.0",
78
79
  "eslint-merge-processors": "^0.1.0",
79
80
  "eslint-plugin-antfu": "^2.7.0",
80
- "eslint-plugin-import-x": "^4.4.0",
81
- "eslint-plugin-jsdoc": "^50.4.3",
82
- "eslint-plugin-jsonc": "^2.16.0",
83
- "eslint-plugin-n": "^17.12.0",
81
+ "eslint-plugin-command": "^0.2.6",
82
+ "eslint-plugin-import-x": "^4.4.2",
83
+ "eslint-plugin-jsdoc": "^50.5.0",
84
+ "eslint-plugin-jsonc": "^2.18.1",
85
+ "eslint-plugin-n": "^17.13.1",
84
86
  "eslint-plugin-no-only-tests": "^3.3.0",
85
87
  "eslint-plugin-perfectionist": "^3.9.1",
86
88
  "eslint-plugin-react": "~7.37.2",
@@ -93,46 +95,46 @@
93
95
  "eslint-plugin-yml": "^1.15.0",
94
96
  "jsonc-eslint-parser": "^2.4.0",
95
97
  "toml-eslint-parser": "^0.10.0",
96
- "typescript-eslint": "^8.12.2",
98
+ "typescript-eslint": "^8.15.0",
97
99
  "yaml-eslint-parser": "^1.2.3"
98
100
  },
99
101
  "devDependencies": {
100
102
  "@biomejs/biome": "1.9.4",
101
103
  "@changesets/cli": "^2.27.9",
102
104
  "@jsse/prettier-config": "^0.1.0",
103
- "@jsse/tsconfig": "^0.2.2",
104
- "@stylistic/eslint-plugin-jsx": "^2.10.0",
105
+ "@jsse/tsconfig": "^0.2.3",
106
+ "@stylistic/eslint-plugin-jsx": "^2.10.1",
105
107
  "@types/eslint": "^9.6.1",
106
108
  "@types/eslint__js": "~8.42.3",
107
109
  "@types/fs-extra": "^11.0.4",
108
- "@types/node": "^22.8.5",
110
+ "@types/node": "^22.9.0",
109
111
  "cac": "^6.7.14",
110
- "eslint": "^9.13.0",
112
+ "eslint": "^9.15.0",
111
113
  "eslint-flat-config-utils": "^0.4.0",
112
114
  "eslint-plugin-tailwindcss": "^3.17.5",
113
115
  "eslint-typegen": "^0.3.2",
114
116
  "execa": "~9.5.1",
115
117
  "fast-glob": "^3.3.2",
116
118
  "fs-extra": "^11.2.0",
117
- "globals": "^15.11.0",
119
+ "globals": "^15.12.0",
118
120
  "local-pkg": "^0.5.0",
119
121
  "neverthrow": "^8.1.1",
120
122
  "picocolors": "^1.1.1",
121
123
  "prettier": "^3.3.3",
122
124
  "react": "~18.3.1",
123
125
  "rimraf": "^6.0.1",
124
- "tailwindcss": "^3.4.14",
126
+ "tailwindcss": "^3.4.15",
125
127
  "tsup": "^8.3.5",
126
128
  "tsx": "^4.19.2",
127
129
  "typescript": "5.6.3",
128
- "vitest": "^2.1.4"
130
+ "vitest": "^2.1.5"
129
131
  },
130
132
  "prettier": "@jsse/prettier-config",
131
133
  "scripts": {
132
134
  "build": "pnpm gen && pnpm build-fast --dts && pnpm build:tsc && eslint .",
133
135
  "build:tsc": "tsc -b tsconfig.build.json",
134
136
  "build-fast": "tsup src/index.ts src/cli.ts --format esm,cjs --clean",
135
- "gen": "tsx scripts/gen.ts && prettier -w src",
137
+ "gen": "tsx scripts/gen.ts && prettier -w --cache src",
136
138
  "dev": "tsup src/index.ts --format esm,cjs --watch",
137
139
  "fmt": "prettier -w .",
138
140
  "fmtc": "prettier --check .",