@debbl/eslint-config 3.8.8 → 3.8.9

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.d.cts CHANGED
@@ -24,6 +24,9 @@ declare const jsonc: JsoncConfig;
24
24
 
25
25
  type MarkdownConfig = (options: {
26
26
  componentExts?: string[];
27
+ /**
28
+ * @deprecated remove this option
29
+ */
27
30
  mdx?: boolean;
28
31
  } & OptionsOverrides) => ReturnType<ConfigFn>;
29
32
  declare const markdown: MarkdownConfig;
package/dist/index.d.ts CHANGED
@@ -24,6 +24,9 @@ declare const jsonc: JsoncConfig;
24
24
 
25
25
  type MarkdownConfig = (options: {
26
26
  componentExts?: string[];
27
+ /**
28
+ * @deprecated remove this option
29
+ */
27
30
  mdx?: boolean;
28
31
  } & OptionsOverrides) => ReturnType<ConfigFn>;
29
32
  declare const markdown: MarkdownConfig;
package/dist/index.js CHANGED
@@ -1,21 +1,4 @@
1
- import {
2
- init_esm_shims
3
- } from "./chunk-VCB7MQKB.js";
4
-
5
- // src/index.ts
6
- init_esm_shims();
7
-
8
- // src/factory.ts
9
- init_esm_shims();
10
-
11
- // src/configs/index.ts
12
- init_esm_shims();
13
-
14
- // src/configs/comments.ts
15
- init_esm_shims();
16
-
17
1
  // src/utils.ts
18
- init_esm_shims();
19
2
  var parserPlain = {
20
3
  meta: {
21
4
  name: "parser-plain"
@@ -68,12 +51,10 @@ async function comments() {
68
51
  }
69
52
 
70
53
  // src/configs/ignores.ts
71
- init_esm_shims();
72
54
  import fs from "node:fs";
73
55
  import path from "node:path";
74
56
 
75
57
  // src/globs.ts
76
- init_esm_shims();
77
58
  var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
78
59
  var GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
79
60
  var GLOB_JS = "**/*.?([cm])js";
@@ -170,7 +151,6 @@ var ignores = async (options) => {
170
151
  };
171
152
 
172
153
  // src/configs/imports.ts
173
- init_esm_shims();
174
154
  async function imports() {
175
155
  const pluginImport = await interopDefault(import("eslint-plugin-import-x"));
176
156
  return [
@@ -197,7 +177,6 @@ async function imports() {
197
177
  }
198
178
 
199
179
  // src/configs/javascript.ts
200
- init_esm_shims();
201
180
  import globals from "globals";
202
181
  var javascript = async (options) => {
203
182
  const { overrides = {} } = options;
@@ -439,7 +418,6 @@ var javascript = async (options) => {
439
418
  };
440
419
 
441
420
  // src/configs/jsdoc.ts
442
- init_esm_shims();
443
421
  async function jsdoc() {
444
422
  return [
445
423
  {
@@ -471,7 +449,6 @@ async function jsdoc() {
471
449
  }
472
450
 
473
451
  // src/configs/jsonc.ts
474
- init_esm_shims();
475
452
  var jsonc = async (options) => {
476
453
  const { overrides = {} } = options;
477
454
  const [pluginJsonc, parserJsonc] = await Promise.all([
@@ -542,30 +519,9 @@ var jsonc = async (options) => {
542
519
  };
543
520
 
544
521
  // src/configs/markdown.ts
545
- init_esm_shims();
546
- async function mdx() {
547
- const pluginMdx = await interopDefault(import("./index.es2015-7TBD5FJT.js"));
548
- return [
549
- {
550
- ...pluginMdx.flat,
551
- processor: pluginMdx.createRemarkProcessor({
552
- lintCodeBlocks: true,
553
- languageMapper: {}
554
- })
555
- },
556
- {
557
- ...pluginMdx.flatCodeBlocks,
558
- rules: {
559
- ...pluginMdx.flatCodeBlocks.rules,
560
- "no-var": "error",
561
- "prefer-const": "error"
562
- }
563
- }
564
- ];
565
- }
566
522
  var markdown = async (options) => {
567
523
  const {
568
- mdx: enableMdx = false,
524
+ mdx: _enableMdx = false,
569
525
  componentExts = [],
570
526
  overrides = {}
571
527
  } = options;
@@ -636,11 +592,10 @@ var markdown = async (options) => {
636
592
  }
637
593
  }
638
594
  ];
639
- return combine(_markdown, enableMdx ? await mdx() : []);
595
+ return _markdown;
640
596
  };
641
597
 
642
598
  // src/configs/node.ts
643
- init_esm_shims();
644
599
  async function node() {
645
600
  const pluginNode = await interopDefault(import("eslint-plugin-n"));
646
601
  return [
@@ -664,7 +619,6 @@ async function node() {
664
619
  }
665
620
 
666
621
  // src/configs/perfectionist.ts
667
- init_esm_shims();
668
622
  async function perfectionist() {
669
623
  const pluginPerfectionist = await interopDefault(
670
624
  import("eslint-plugin-perfectionist")
@@ -722,7 +676,6 @@ async function perfectionist() {
722
676
  }
723
677
 
724
678
  // src/configs/prettier.ts
725
- init_esm_shims();
726
679
  var prettier = async ({ tailwindcss: tailwindcss2, ...options }) => {
727
680
  const [pluginPrettier, configPrettier] = await Promise.all([
728
681
  interopDefault(import("eslint-plugin-prettier")),
@@ -824,7 +777,6 @@ var prettier = async ({ tailwindcss: tailwindcss2, ...options }) => {
824
777
  };
825
778
 
826
779
  // src/configs/sort.ts
827
- init_esm_shims();
828
780
  async function sortPackageJson() {
829
781
  return [
830
782
  {
@@ -1032,7 +984,6 @@ async function sortTsconfig() {
1032
984
  }
1033
985
 
1034
986
  // src/configs/test.ts
1035
- init_esm_shims();
1036
987
  var test = async (options) => {
1037
988
  const { overrides = {} } = options;
1038
989
  const [pluginVitest, pluginNoOnlyTests] = await Promise.all([
@@ -1076,7 +1027,6 @@ var test = async (options) => {
1076
1027
  };
1077
1028
 
1078
1029
  // src/configs/toml.ts
1079
- init_esm_shims();
1080
1030
  var toml = async (options) => {
1081
1031
  const { overrides = {} } = options;
1082
1032
  const [pluginToml, parserToml] = await Promise.all([
@@ -1123,7 +1073,6 @@ var toml = async (options) => {
1123
1073
  };
1124
1074
 
1125
1075
  // src/configs/typescript.ts
1126
- init_esm_shims();
1127
1076
  import process2 from "node:process";
1128
1077
  var typeAwareRules = {
1129
1078
  "dot-notation": "off",
@@ -1275,7 +1224,6 @@ var typescript = async (options) => {
1275
1224
  };
1276
1225
 
1277
1226
  // src/configs/unicorn.ts
1278
- init_esm_shims();
1279
1227
  async function unicorn() {
1280
1228
  const pluginUnicorn = await interopDefault(import("eslint-plugin-unicorn"));
1281
1229
  return [
@@ -1320,7 +1268,6 @@ async function unicorn() {
1320
1268
  }
1321
1269
 
1322
1270
  // src/configs/vue.ts
1323
- init_esm_shims();
1324
1271
  var vue = async (options = {}) => {
1325
1272
  const { overrides = {}, typescript: isTypescript } = options;
1326
1273
  const [pluginVue, parserVue] = await Promise.all([
@@ -1461,7 +1408,6 @@ var vue = async (options = {}) => {
1461
1408
  };
1462
1409
 
1463
1410
  // src/configs/yml.ts
1464
- init_esm_shims();
1465
1411
  var yml = async (options) => {
1466
1412
  const { overrides = {} } = options;
1467
1413
  const [pluginYml, parserYml] = await Promise.all([
@@ -1499,7 +1445,6 @@ var yml = async (options) => {
1499
1445
  };
1500
1446
 
1501
1447
  // src/configs/react.ts
1502
- init_esm_shims();
1503
1448
  async function next() {
1504
1449
  const pluginNext = await interopDefault(import("@next/eslint-plugin-next"));
1505
1450
  return [
@@ -1681,7 +1626,6 @@ var react = async (options) => {
1681
1626
  };
1682
1627
 
1683
1628
  // src/configs/tailwindcss.ts
1684
- init_esm_shims();
1685
1629
  async function tailwindcss() {
1686
1630
  const pluginTailwindcss = await interopDefault(
1687
1631
  // @ts-expect-error missing types
@@ -1786,9 +1730,6 @@ function defineConfig(options = {}) {
1786
1730
  }
1787
1731
  var config = defineConfig;
1788
1732
 
1789
- // src/types.ts
1790
- init_esm_shims();
1791
-
1792
1733
  // src/index.ts
1793
1734
  var src_default = config;
1794
1735
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@debbl/eslint-config",
3
3
  "type": "module",
4
- "version": "3.8.8",
4
+ "version": "3.8.9",
5
5
  "description": "Brendan Dash's ESLint config",
6
6
  "author": "Debbl <me@aiwan.run> (https://github.com/Debbl/)",
7
7
  "license": "MIT",
@@ -66,7 +66,6 @@
66
66
  "@types/react": "^19.0.2",
67
67
  "bumpp": "^9.9.2",
68
68
  "eslint": "^9.17.0",
69
- "eslint-plugin-mdx": "^3.1.5",
70
69
  "execa": "^9.5.2",
71
70
  "fast-glob": "^3.3.2",
72
71
  "fs-extra": "^11.2.0",
@@ -1,60 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
- }) : x)(function(x) {
10
- if (typeof require !== "undefined") return require.apply(this, arguments);
11
- throw Error('Dynamic require of "' + x + '" is not supported');
12
- });
13
- var __esm = (fn, res) => function __init() {
14
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
15
- };
16
- var __commonJS = (cb, mod) => function __require2() {
17
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
- };
19
- var __export = (target, all) => {
20
- for (var name in all)
21
- __defProp(target, name, { get: all[name], enumerable: true });
22
- };
23
- var __copyProps = (to, from, except, desc) => {
24
- if (from && typeof from === "object" || typeof from === "function") {
25
- for (let key of __getOwnPropNames(from))
26
- if (!__hasOwnProp.call(to, key) && key !== except)
27
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
28
- }
29
- return to;
30
- };
31
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
32
- // If the importer is in node compatibility mode or this is not an ESM
33
- // file that has been converted to a CommonJS file using a Babel-
34
- // compatible transform (i.e. "__esModule" has not been set), then set
35
- // "default" to the CommonJS "module.exports" for node compatibility.
36
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
37
- mod
38
- ));
39
-
40
- // node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.4.49_typescript@5.7.2_yaml@2.6.1/node_modules/tsup/assets/esm_shims.js
41
- import { fileURLToPath } from "url";
42
- import path from "path";
43
- var getFilename, getDirname, __dirname;
44
- var init_esm_shims = __esm({
45
- "node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.4.49_typescript@5.7.2_yaml@2.6.1/node_modules/tsup/assets/esm_shims.js"() {
46
- "use strict";
47
- getFilename = () => fileURLToPath(import.meta.url);
48
- getDirname = () => path.dirname(getFilename());
49
- __dirname = /* @__PURE__ */ getDirname();
50
- }
51
- });
52
-
53
- export {
54
- __require,
55
- __commonJS,
56
- __export,
57
- __toESM,
58
- __dirname,
59
- init_esm_shims
60
- };