@jsse/eslint-config 0.2.9 → 0.2.11

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
@@ -2972,12 +2972,12 @@ var require_globals2 = __commonJS({
2972
2972
  });
2973
2973
 
2974
2974
  // src/factory.ts
2975
- import fs2 from "fs";
2976
- import process6 from "process";
2975
+ import fs2 from "node:fs";
2976
+ import process6 from "node:process";
2977
2977
 
2978
2978
  // node_modules/.pnpm/local-pkg@0.5.0/node_modules/local-pkg/dist/index.mjs
2979
- import path3, { dirname as dirname3, win32, join as join2 } from "path";
2980
- import process2 from "process";
2979
+ import path3, { dirname as dirname3, win32, join as join2 } from "node:path";
2980
+ import process2 from "node:process";
2981
2981
 
2982
2982
  // node_modules/.pnpm/acorn@8.12.1/node_modules/acorn/dist/acorn.mjs
2983
2983
  var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
@@ -3787,6 +3787,11 @@ pp$8.parseStatement = function(context, topLevel, exports) {
3787
3787
  }
3788
3788
  }
3789
3789
  return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports);
3790
+ // If the statement does not start with a statement keyword or a
3791
+ // brace, it's an ExpressionStatement or LabeledStatement. We
3792
+ // simply start parsing an expression, and afterwards, if the
3793
+ // next token is a colon and the expression was a simple
3794
+ // Identifier node, we switch to interpreting it as a label.
3790
3795
  default:
3791
3796
  if (this.isAsyncFunction()) {
3792
3797
  if (context) {
@@ -7840,8 +7845,11 @@ pp.readToken_numberSign = function() {
7840
7845
  };
7841
7846
  pp.getTokenFromCode = function(code) {
7842
7847
  switch (code) {
7848
+ // The interpretation of a dot depends on whether it is followed
7849
+ // by a digit or another two dots.
7843
7850
  case 46:
7844
7851
  return this.readToken_dot();
7852
+ // Punctuation tokens.
7845
7853
  case 40:
7846
7854
  ++this.pos;
7847
7855
  return this.finishToken(types$1.parenL);
@@ -7888,6 +7896,8 @@ pp.getTokenFromCode = function(code) {
7888
7896
  return this.readRadixNumber(2);
7889
7897
  }
7890
7898
  }
7899
+ // Anything else beginning with a digit is an integer, octal
7900
+ // number, or float.
7891
7901
  case 49:
7892
7902
  case 50:
7893
7903
  case 51:
@@ -7898,9 +7908,14 @@ pp.getTokenFromCode = function(code) {
7898
7908
  case 56:
7899
7909
  case 57:
7900
7910
  return this.readNumber(false);
7911
+ // Quotes produce strings.
7901
7912
  case 34:
7902
7913
  case 39:
7903
7914
  return this.readString(code);
7915
+ // Operators are parsed inline in tiny state machines. '=' (61) is
7916
+ // often referred to. `finishOp` simply skips the amount of
7917
+ // characters it is given as second argument, and returns a token
7918
+ // of the type given by its first argument.
7904
7919
  case 47:
7905
7920
  return this.readToken_slash();
7906
7921
  case 37:
@@ -8216,12 +8231,14 @@ pp.readInvalidTemplateToken = function() {
8216
8231
  if (this.input[this.pos + 1] !== "{") {
8217
8232
  break;
8218
8233
  }
8234
+ // fall through
8219
8235
  case "`":
8220
8236
  return this.finishToken(types$1.invalidTemplate, this.input.slice(this.start, this.pos));
8221
8237
  case "\r":
8222
8238
  if (this.input[this.pos + 1] === "\n") {
8223
8239
  ++this.pos;
8224
8240
  }
8241
+ // fall through
8225
8242
  case "\n":
8226
8243
  case "\u2028":
8227
8244
  case "\u2029":
@@ -8238,24 +8255,33 @@ pp.readEscapedChar = function(inTemplate) {
8238
8255
  switch (ch) {
8239
8256
  case 110:
8240
8257
  return "\n";
8258
+ // 'n' -> '\n'
8241
8259
  case 114:
8242
8260
  return "\r";
8261
+ // 'r' -> '\r'
8243
8262
  case 120:
8244
8263
  return String.fromCharCode(this.readHexChar(2));
8264
+ // 'x'
8245
8265
  case 117:
8246
8266
  return codePointToString(this.readCodePoint());
8267
+ // 'u'
8247
8268
  case 116:
8248
8269
  return " ";
8270
+ // 't' -> '\t'
8249
8271
  case 98:
8250
8272
  return "\b";
8273
+ // 'b' -> '\b'
8251
8274
  case 118:
8252
8275
  return "\v";
8276
+ // 'v' -> '\u000b'
8253
8277
  case 102:
8254
8278
  return "\f";
8279
+ // 'f' -> '\f'
8255
8280
  case 13:
8256
8281
  if (this.input.charCodeAt(this.pos) === 10) {
8257
8282
  ++this.pos;
8258
8283
  }
8284
+ // '\r\n'
8259
8285
  case 10:
8260
8286
  if (this.options.locations) {
8261
8287
  this.lineStart = this.pos;
@@ -8374,8 +8400,8 @@ Parser.acorn = {
8374
8400
  };
8375
8401
 
8376
8402
  // node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist/index.mjs
8377
- import { builtinModules, createRequire } from "module";
8378
- import fs, { realpathSync, statSync, promises } from "fs";
8403
+ import { builtinModules, createRequire } from "node:module";
8404
+ import fs, { realpathSync, statSync, promises } from "node:fs";
8379
8405
 
8380
8406
  // node_modules/.pnpm/ufo@1.5.3/node_modules/ufo/dist/index.mjs
8381
8407
  var r = String.fromCharCode;
@@ -8431,12 +8457,12 @@ var isAbsolute = function(p) {
8431
8457
  };
8432
8458
 
8433
8459
  // node_modules/.pnpm/mlly@1.7.1/node_modules/mlly/dist/index.mjs
8434
- import { fileURLToPath as fileURLToPath$1, URL as URL$1, pathToFileURL as pathToFileURL$1 } from "url";
8435
- import assert from "assert";
8436
- import process$1 from "process";
8437
- import path2, { dirname as dirname2 } from "path";
8438
- import v8 from "v8";
8439
- import { format as format2, inspect } from "util";
8460
+ import { fileURLToPath as fileURLToPath$1, URL as URL$1, pathToFileURL as pathToFileURL$1 } from "node:url";
8461
+ import assert from "node:assert";
8462
+ import process$1 from "node:process";
8463
+ import path2, { dirname as dirname2 } from "node:path";
8464
+ import v8 from "node:v8";
8465
+ import { format as format2, inspect } from "node:util";
8440
8466
  var BUILTIN_MODULES = new Set(builtinModules);
8441
8467
  function normalizeSlash(path4) {
8442
8468
  return path4.replace(/\\/g, "/");
@@ -9806,86 +9832,6 @@ function resolvePackage(name, options = {}) {
9806
9832
  }
9807
9833
  }
9808
9834
 
9809
- // src/lager.ts
9810
- var levels = {
9811
- trace: 10,
9812
- debug: 20,
9813
- info: 30,
9814
- warn: 40,
9815
- error: 50,
9816
- fatal: 60
9817
- };
9818
- function isLagerLevel(level) {
9819
- return level === "trace" || level === "debug" || level === "info" || level === "warn" || level === "error" || level === "fatal";
9820
- }
9821
- var Lager = class {
9822
- _level = "info";
9823
- id = "lager";
9824
- levelNo = levels[this._level];
9825
- prefix = "";
9826
- constructor(options) {
9827
- const { level, id, prefix } = {
9828
- level: "info",
9829
- id: "lager",
9830
- prefix: "@jsse/eslint-config",
9831
- ...options
9832
- };
9833
- this.id = id;
9834
- this._level = isLagerLevel(level) ? level : "info";
9835
- this.levelNo = levels[this._level];
9836
- this.prefix = prefix;
9837
- this.log = this.log.bind(this);
9838
- this.debug = this.debug.bind(this);
9839
- }
9840
- get level() {
9841
- return this._level;
9842
- }
9843
- set level(level) {
9844
- this._level = level;
9845
- this.levelNo = levels[level];
9846
- }
9847
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
9848
- log(...args) {
9849
- console.log(...args);
9850
- }
9851
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
9852
- trace(...args) {
9853
- if (this.levelNo > levels.trace) {
9854
- return;
9855
- }
9856
- console.trace(...args);
9857
- }
9858
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
9859
- debug(...args) {
9860
- if (this.levelNo > levels.debug) {
9861
- return;
9862
- }
9863
- console.debug(...args);
9864
- }
9865
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
9866
- info(...args) {
9867
- if (this.levelNo > levels.info) {
9868
- return;
9869
- }
9870
- console.info("[@jsse/eslint-config]", ...args);
9871
- }
9872
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
9873
- warn(...args) {
9874
- if (this.levelNo > levels.warn) {
9875
- return;
9876
- }
9877
- console.warn(...args);
9878
- }
9879
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
9880
- error(...args) {
9881
- if (this.levelNo > levels.error) {
9882
- return;
9883
- }
9884
- console.error(...args);
9885
- }
9886
- };
9887
- var log = new Lager();
9888
-
9889
9835
  // src/globs.ts
9890
9836
  var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
9891
9837
  var GLOB_JS_SRC_EXT = "?([cm])js?(x)";
@@ -9903,8 +9849,10 @@ var GLOB_JSON5 = "**/*.json5";
9903
9849
  var GLOB_JSONC = "**/*.jsonc";
9904
9850
  var GLOB_TOML = "**/*.toml";
9905
9851
  var GLOB_MARKDOWN = "**/*.md";
9852
+ var GLOB_GRAPHQL = ["**/*.graphql", "**/*.gql"];
9906
9853
  var GLOB_YAML = "**/*.y?(a)ml";
9907
9854
  var GLOB_HTML = "**/*.htm?(l)";
9855
+ var GLOB_TSCONFIG = ["**/tsconfig.json", "**/tsconfig.*.json"];
9908
9856
  var GLOB_MARKDOWN_CODE = `${GLOB_MARKDOWN}/${GLOB_SRC}`;
9909
9857
  var GLOB_TESTS = [
9910
9858
  `**/__tests__/**/*.${GLOB_SRC_EXT}`,
@@ -9959,7 +9907,7 @@ var GLOB_EXCLUDE = [
9959
9907
  ];
9960
9908
 
9961
9909
  // src/utils.ts
9962
- import process3 from "process";
9910
+ import process3 from "node:process";
9963
9911
  async function combine(...configs) {
9964
9912
  const resolved = await Promise.all(configs);
9965
9913
  return resolved.flat();
@@ -9993,17 +9941,30 @@ function isCI() {
9993
9941
  function isInEditor() {
9994
9942
  return !!((process3.env.VSCODE_PID || process3.env.JETBRAINS_IDE) && !isCI());
9995
9943
  }
9944
+ function uniqueStrings(...strings) {
9945
+ const set = /* @__PURE__ */ new Set();
9946
+ for (const item of strings) {
9947
+ if (typeof item === "string") {
9948
+ set.add(item);
9949
+ } else {
9950
+ for (const str of item) {
9951
+ set.add(str);
9952
+ }
9953
+ }
9954
+ }
9955
+ return [...set];
9956
+ }
9996
9957
 
9997
9958
  // src/plugins.ts
9998
- import { default as default2 } from "eslint-plugin-antfu";
9999
- import { default as default3 } from "eslint-plugin-eslint-comments";
10000
- import * as pluginImport from "eslint-plugin-import-x";
10001
- import { default as default4 } from "eslint-plugin-n";
10002
- import { default as default5 } from "eslint-plugin-perfectionist";
10003
- import { default as default6 } from "eslint-plugin-unicorn";
10004
- import { default as default7 } from "eslint-plugin-unused-imports";
10005
- import { default as default8 } from "@typescript-eslint/eslint-plugin";
9959
+ import { default as default2 } from "@typescript-eslint/eslint-plugin";
10006
9960
  import * as parserTs from "@typescript-eslint/parser";
9961
+ import { default as default3 } from "eslint-plugin-antfu";
9962
+ import { default as default4 } from "eslint-plugin-eslint-comments";
9963
+ import * as pluginImport from "eslint-plugin-import-x";
9964
+ import { default as default5 } from "eslint-plugin-n";
9965
+ import { default as default6 } from "eslint-plugin-perfectionist";
9966
+ import { default as default7 } from "eslint-plugin-unicorn";
9967
+ import { default as default8 } from "eslint-plugin-unused-imports";
10007
9968
  async function importPluginReact() {
10008
9969
  const pluginReact = await interopDefault2(import("eslint-plugin-react"));
10009
9970
  return {
@@ -10099,7 +10060,7 @@ var antfu = async () => {
10099
10060
  {
10100
10061
  name: "jsse/antfu",
10101
10062
  plugins: {
10102
- antfu: default2
10063
+ antfu: default3
10103
10064
  },
10104
10065
  // @ts-expect-error - antfu plugin types err
10105
10066
  rules: {
@@ -10132,7 +10093,7 @@ var comments = async () => [
10132
10093
  name: "jsse/eslint-comments",
10133
10094
  plugins: {
10134
10095
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
10135
- "eslint-comments": default3
10096
+ "eslint-comments": default4
10136
10097
  },
10137
10098
  rules: {
10138
10099
  "eslint-comments/no-aggregating-enable": "error",
@@ -10168,7 +10129,7 @@ var imports = async (options) => {
10168
10129
  "import/no-named-default": "error",
10169
10130
  "import/no-self-import": "error",
10170
10131
  "import/no-webpack-loader-syntax": "error",
10171
- "import/order": "error",
10132
+ "import/order": "off",
10172
10133
  ...stylistic2 ? {
10173
10134
  "import/newline-after-import": [
10174
10135
  "error",
@@ -10216,7 +10177,7 @@ var javascript = async (options) => {
10216
10177
  name: "jsse/javascript",
10217
10178
  plugins: {
10218
10179
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
10219
- "unused-imports": default7
10180
+ "unused-imports": default8
10220
10181
  },
10221
10182
  rules: {
10222
10183
  ...eslintjs.configs.recommended.rules,
@@ -11078,7 +11039,7 @@ var n = async () => {
11078
11039
  {
11079
11040
  name: "jsse/n",
11080
11041
  plugins: {
11081
- n: default4
11042
+ n: default5
11082
11043
  },
11083
11044
  rules: {
11084
11045
  "n/handle-callback-err": ["error", "^(err|error)$"],
@@ -11128,7 +11089,40 @@ var perfectionist = async () => {
11128
11089
  name: "jsse/perfectionist",
11129
11090
  plugins: {
11130
11091
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
11131
- perfectionist: default5
11092
+ perfectionist: default6
11093
+ },
11094
+ rules: {
11095
+ "perfectionist/sort-exports": [
11096
+ "error",
11097
+ { order: "asc", type: "natural" }
11098
+ ],
11099
+ "perfectionist/sort-imports": [
11100
+ "error",
11101
+ {
11102
+ groups: [
11103
+ "type",
11104
+ "builtin",
11105
+ "external",
11106
+ "internal-type",
11107
+ "internal",
11108
+ ["parent-type", "sibling-type", "index-type"],
11109
+ ["parent", "sibling", "index"],
11110
+ "object",
11111
+ "unknown"
11112
+ ],
11113
+ newlinesBetween: "ignore",
11114
+ order: "asc",
11115
+ type: "natural"
11116
+ }
11117
+ ],
11118
+ "perfectionist/sort-named-exports": [
11119
+ "error",
11120
+ { order: "asc", type: "natural" }
11121
+ ],
11122
+ "perfectionist/sort-named-imports": [
11123
+ "error",
11124
+ { order: "asc", type: "natural" }
11125
+ ]
11132
11126
  }
11133
11127
  }
11134
11128
  ];
@@ -11259,7 +11253,7 @@ var prettier = async () => {
11259
11253
  };
11260
11254
 
11261
11255
  // src/configs/ts/typescript-language-options.ts
11262
- import process4 from "process";
11256
+ import process4 from "node:process";
11263
11257
  function typescriptLanguageOptions(options) {
11264
11258
  const { componentExts = [], react: react2, tsconfig } = options || {};
11265
11259
  const tsOptions = tsconfig ? {
@@ -11636,10 +11630,13 @@ var sortPackageJson = async () => {
11636
11630
  };
11637
11631
 
11638
11632
  // src/configs/sort-tsconfig.ts
11639
- var sortTsconfig = async () => {
11633
+ var tsconfigGlobs = (extendGlobs) => {
11634
+ return extendGlobs === void 0 || extendGlobs.length === 0 ? GLOB_TSCONFIG : uniqueStrings(GLOB_TSCONFIG, extendGlobs);
11635
+ };
11636
+ var sortTsconfig = async (options) => {
11640
11637
  return [
11641
11638
  {
11642
- files: ["**/tsconfig.json", "**/tsconfig.*.json"],
11639
+ files: tsconfigGlobs(options?.extendTsconfigGlobs),
11643
11640
  name: "jsse/sort/tsconfig",
11644
11641
  rules: {
11645
11642
  "jsonc/sort-keys": [
@@ -11847,7 +11844,7 @@ var tailwind = async (options) => {
11847
11844
  };
11848
11845
 
11849
11846
  // src/configs/ts/parser.ts
11850
- import process5 from "process";
11847
+ import process5 from "node:process";
11851
11848
  function autoUseParserService(options) {
11852
11849
  if (options.useProjectService !== void 0) {
11853
11850
  return options.useProjectService;
@@ -11954,9 +11951,9 @@ var typescript = async (options) => {
11954
11951
  const tsPrefixTo = prefix?.to ?? "@typescript-eslint";
11955
11952
  const tsRules = {
11956
11953
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
11957
- ...(default8.configs["eslint-recommended"]?.overrides ?? [])[0]?.rules,
11954
+ ...(default2.configs["eslint-recommended"]?.overrides ?? [])[0]?.rules,
11958
11955
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
11959
- ...default8.configs.strict?.rules,
11956
+ ...default2.configs.strict?.rules,
11960
11957
  "no-invalid-this": "off",
11961
11958
  ...typescriptRules({
11962
11959
  typeAware: false
@@ -11969,7 +11966,7 @@ var typescript = async (options) => {
11969
11966
  name: "jsse/typescript/setup",
11970
11967
  plugins: {
11971
11968
  import: pluginImport,
11972
- [tsPrefixTo]: default8
11969
+ [tsPrefixTo]: default2
11973
11970
  }
11974
11971
  },
11975
11972
  ...parserConfigs,
@@ -12048,7 +12045,6 @@ function unicornOff() {
12048
12045
  return {
12049
12046
  "unicorn/catch-error-name": "off",
12050
12047
  "unicorn/consistent-destructuring": "off",
12051
- // "unicorn/no-array-for-each": "off",
12052
12048
  "unicorn/no-array-reduce": "off",
12053
12049
  "unicorn/no-nested-ternary": "off",
12054
12050
  // conflicts with prettier
@@ -12061,7 +12057,7 @@ function unicornOff() {
12061
12057
  };
12062
12058
  }
12063
12059
  function unicornRecommended() {
12064
- const rules = default6.configs.recommended.rules;
12060
+ const rules = default7.configs.recommended.rules;
12065
12061
  if (rules === void 0) {
12066
12062
  throw new Error("Expected rules to be defined in unicorn plugin");
12067
12063
  }
@@ -12073,7 +12069,7 @@ var unicorn = async () => {
12073
12069
  name: "jsse/unicorn",
12074
12070
  plugins: {
12075
12071
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
12076
- unicorn: default6
12072
+ unicorn: default7
12077
12073
  },
12078
12074
  rules: {
12079
12075
  ...unicornRecommended(),
@@ -12162,7 +12158,7 @@ var unicorn = async () => {
12162
12158
  // src/configs/vitest.ts
12163
12159
  var vitest = async (options = {}) => {
12164
12160
  const { overrides = {} } = options;
12165
- const pluginVitest = await interopDefault2(import("eslint-plugin-vitest"));
12161
+ const pluginVitest = await interopDefault2(import("@vitest/eslint-plugin"));
12166
12162
  return [
12167
12163
  {
12168
12164
  name: "jsse/vitest/setup",
@@ -12241,6 +12237,86 @@ var yml = async (options) => {
12241
12237
  ];
12242
12238
  };
12243
12239
 
12240
+ // src/lager.ts
12241
+ var levels = {
12242
+ trace: 10,
12243
+ debug: 20,
12244
+ info: 30,
12245
+ warn: 40,
12246
+ error: 50,
12247
+ fatal: 60
12248
+ };
12249
+ function isLagerLevel(level) {
12250
+ return level === "trace" || level === "debug" || level === "info" || level === "warn" || level === "error" || level === "fatal";
12251
+ }
12252
+ var Lager = class {
12253
+ _level = "info";
12254
+ id = "lager";
12255
+ levelNo = levels[this._level];
12256
+ prefix = "";
12257
+ constructor(options) {
12258
+ const { level, id, prefix } = {
12259
+ level: "info",
12260
+ id: "lager",
12261
+ prefix: "@jsse/eslint-config",
12262
+ ...options
12263
+ };
12264
+ this.id = id;
12265
+ this._level = isLagerLevel(level) ? level : "info";
12266
+ this.levelNo = levels[this._level];
12267
+ this.prefix = prefix;
12268
+ this.log = this.log.bind(this);
12269
+ this.debug = this.debug.bind(this);
12270
+ }
12271
+ get level() {
12272
+ return this._level;
12273
+ }
12274
+ set level(level) {
12275
+ this._level = level;
12276
+ this.levelNo = levels[level];
12277
+ }
12278
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12279
+ log(...args) {
12280
+ console.log(...args);
12281
+ }
12282
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12283
+ trace(...args) {
12284
+ if (this.levelNo > levels.trace) {
12285
+ return;
12286
+ }
12287
+ console.trace(...args);
12288
+ }
12289
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12290
+ debug(...args) {
12291
+ if (this.levelNo > levels.debug) {
12292
+ return;
12293
+ }
12294
+ console.debug(...args);
12295
+ }
12296
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12297
+ info(...args) {
12298
+ if (this.levelNo > levels.info) {
12299
+ return;
12300
+ }
12301
+ console.info("[@jsse/eslint-config]", ...args);
12302
+ }
12303
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12304
+ warn(...args) {
12305
+ if (this.levelNo > levels.warn) {
12306
+ return;
12307
+ }
12308
+ console.warn(...args);
12309
+ }
12310
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12311
+ error(...args) {
12312
+ if (this.levelNo > levels.error) {
12313
+ return;
12314
+ }
12315
+ console.error(...args);
12316
+ }
12317
+ };
12318
+ var log = new Lager();
12319
+
12244
12320
  // src/slow.ts
12245
12321
  var slowRules = [
12246
12322
  "@typescript-eslint/no-misused-promises",
@@ -12422,7 +12498,9 @@ async function jsse(options = {}, ...userConfigs) {
12422
12498
  stylistic: stylisticOptions
12423
12499
  }),
12424
12500
  sortPackageJson(),
12425
- sortTsconfig()
12501
+ sortTsconfig({
12502
+ extendTsconfigGlobs: normalizedOptions.extendTsconfigLintGlobs
12503
+ })
12426
12504
  );
12427
12505
  }
12428
12506
  if (normalizedOptions.tailwind) {
@@ -12537,6 +12615,7 @@ export {
12537
12615
  GLOB_ALL_SRC,
12538
12616
  GLOB_CSS,
12539
12617
  GLOB_EXCLUDE,
12618
+ GLOB_GRAPHQL,
12540
12619
  GLOB_HTML,
12541
12620
  GLOB_JS,
12542
12621
  GLOB_JSON,
@@ -12554,6 +12633,7 @@ export {
12554
12633
  GLOB_TESTS,
12555
12634
  GLOB_TOML,
12556
12635
  GLOB_TS,
12636
+ GLOB_TSCONFIG,
12557
12637
  GLOB_TSX,
12558
12638
  GLOB_YAML,
12559
12639
  combine,
@@ -12579,13 +12659,14 @@ export {
12579
12659
  jsseReact,
12580
12660
  jssestd,
12581
12661
  parserTs,
12582
- default2 as pluginAntfu,
12583
- default3 as pluginEslintComments,
12662
+ default3 as pluginAntfu,
12663
+ default4 as pluginEslintComments,
12584
12664
  pluginImport,
12585
- default4 as pluginN,
12586
- default5 as pluginPerfectionist,
12587
- default8 as pluginTs,
12588
- default6 as pluginUnicorn,
12589
- default7 as pluginUnusedImports,
12590
- renameRules
12665
+ default5 as pluginN,
12666
+ default6 as pluginPerfectionist,
12667
+ default2 as pluginTs,
12668
+ default7 as pluginUnicorn,
12669
+ default8 as pluginUnusedImports,
12670
+ renameRules,
12671
+ uniqueStrings
12591
12672
  };