@debbl/eslint-config 3.8.10 → 3.9.0

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
@@ -28,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
30
  // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
33
  GLOB_ALL_SRC: () => GLOB_ALL_SRC,
34
34
  GLOB_CSS: () => GLOB_CSS,
35
35
  GLOB_EXCLUDE: () => GLOB_EXCLUDE,
@@ -57,8 +57,9 @@ __export(src_exports, {
57
57
  combine: () => combine,
58
58
  comments: () => comments,
59
59
  config: () => config,
60
- default: () => src_default,
60
+ default: () => index_default,
61
61
  defineConfig: () => defineConfig,
62
+ getConfigOptions: () => getConfigOptions,
62
63
  ignores: () => ignores,
63
64
  imports: () => imports,
64
65
  interopDefault: () => interopDefault,
@@ -79,7 +80,7 @@ __export(src_exports, {
79
80
  vue: () => vue,
80
81
  yml: () => yml
81
82
  });
82
- module.exports = __toCommonJS(src_exports);
83
+ module.exports = __toCommonJS(index_exports);
83
84
 
84
85
  // src/utils.ts
85
86
  var parserPlain = {
@@ -110,6 +111,9 @@ async function interopDefault(m) {
110
111
  const resolved = await m;
111
112
  return resolved.default || resolved;
112
113
  }
114
+ function getConfigOptions(options) {
115
+ return options ? typeof options !== "boolean" ? options : {} : {};
116
+ }
113
117
 
114
118
  // src/configs/comments.ts
115
119
  async function comments() {
@@ -133,10 +137,6 @@ async function comments() {
133
137
  ];
134
138
  }
135
139
 
136
- // src/configs/ignores.ts
137
- var import_node_fs = __toESM(require("fs"), 1);
138
- var import_node_path = __toESM(require("path"), 1);
139
-
140
140
  // src/globs.ts
141
141
  var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
142
142
  var GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
@@ -205,20 +205,14 @@ var GLOB_EXCLUDE = [
205
205
  ];
206
206
 
207
207
  // src/configs/ignores.ts
208
- var REGEX_SPLIT_ALL_CRLF = /\r?\n/g;
209
- var splitPattern = (pattern) => pattern.split(REGEX_SPLIT_ALL_CRLF);
210
208
  var ignores = async (options) => {
211
209
  const { enableGitignore = true, files = [] } = options;
212
- let gitIgnores = [];
210
+ const gitIgnores = [];
213
211
  if (enableGitignore) {
214
- let ignorePath = ".gitignore";
215
- if (typeof enableGitignore !== "boolean") {
216
- ignorePath = enableGitignore.ignorePath;
217
- }
218
- const gitignorePath = import_node_path.default.join(process.cwd(), ignorePath);
219
- if (import_node_fs.default.existsSync(gitignorePath)) {
220
- gitIgnores = splitPattern(import_node_fs.default.readFileSync(gitignorePath).toString()).filter((i) => !(i.startsWith("#") || i.length === 0)).map((i) => i.startsWith("/") ? i.slice(1) : i);
221
- }
212
+ const gitignore = await interopDefault(
213
+ import("eslint-config-flat-gitignore")
214
+ );
215
+ gitIgnores.push(...gitignore(getConfigOptions(enableGitignore)).ignores);
222
216
  }
223
217
  let ignores2 = [...GLOB_EXCLUDE, ...gitIgnores];
224
218
  if (typeof files === "function") {
@@ -228,6 +222,7 @@ var ignores = async (options) => {
228
222
  }
229
223
  return [
230
224
  {
225
+ name: "eslint/ignores",
231
226
  ignores: [...GLOB_EXCLUDE, ...ignores2]
232
227
  }
233
228
  ];
@@ -1589,7 +1584,6 @@ var react = async (options) => {
1589
1584
  const [pluginReact, pluginReactHooks, pluginReactRefresh] = await Promise.all(
1590
1585
  [
1591
1586
  interopDefault(import("@eslint-react/eslint-plugin")),
1592
- // @ts-expect-error missing types
1593
1587
  interopDefault(import("eslint-plugin-react-hooks")),
1594
1588
  interopDefault(import("eslint-plugin-react-refresh"))
1595
1589
  ]
@@ -1734,12 +1728,9 @@ async function tailwindcss() {
1734
1728
  }
1735
1729
 
1736
1730
  // src/factory.ts
1737
- function getConfigOption(options) {
1738
- return options ? typeof options !== "boolean" ? options : {} : {};
1739
- }
1740
1731
  function defineConfig(options = {}) {
1741
1732
  const {
1742
- ignores: enableGitignore = true,
1733
+ ignores: enableIgnores = true,
1743
1734
  vue: enableVue,
1744
1735
  react: enableReact,
1745
1736
  solid: enableSolid,
@@ -1749,7 +1740,7 @@ function defineConfig(options = {}) {
1749
1740
  } = options;
1750
1741
  const configs = [];
1751
1742
  configs.push(
1752
- ignores(getConfigOption(enableGitignore)),
1743
+ ignores(getConfigOptions(enableIgnores)),
1753
1744
  javascript(options.javascript ?? {}),
1754
1745
  comments(),
1755
1746
  node(),
@@ -1769,36 +1760,36 @@ function defineConfig(options = {}) {
1769
1760
  );
1770
1761
  }
1771
1762
  if (options.test ?? true) {
1772
- configs.push(test(getConfigOption(options.test)));
1763
+ configs.push(test(getConfigOptions(options.test)));
1773
1764
  }
1774
1765
  if (enableVue) {
1775
1766
  configs.push(
1776
1767
  vue({
1777
- ...getConfigOption(options.vue),
1768
+ ...getConfigOptions(options.vue),
1778
1769
  typescript: !!enableTypeScript
1779
1770
  })
1780
1771
  );
1781
1772
  }
1782
1773
  if (enableReact) {
1783
- configs.push(react(getConfigOption(enableReact)));
1774
+ configs.push(react(getConfigOptions(enableReact)));
1784
1775
  }
1785
1776
  if (options.jsonc ?? true) {
1786
1777
  configs.push(
1787
- jsonc(getConfigOption(options.jsonc)),
1778
+ jsonc(getConfigOptions(options.jsonc)),
1788
1779
  sortPackageJson(),
1789
1780
  sortTsconfig()
1790
1781
  );
1791
1782
  }
1792
1783
  if (options.yml ?? true) {
1793
- configs.push(yml(getConfigOption(options.yml)));
1784
+ configs.push(yml(getConfigOptions(options.yml)));
1794
1785
  }
1795
1786
  if (options.toml ?? true) {
1796
- configs.push(toml(getConfigOption(options.toml)));
1787
+ configs.push(toml(getConfigOptions(options.toml)));
1797
1788
  }
1798
1789
  if (options.markdown ?? true) {
1799
1790
  configs.push(
1800
1791
  markdown({
1801
- ...getConfigOption(options.markdown),
1792
+ ...getConfigOptions(options.markdown),
1802
1793
  componentExts
1803
1794
  })
1804
1795
  );
@@ -1809,7 +1800,7 @@ function defineConfig(options = {}) {
1809
1800
  if (options.prettier ?? true) {
1810
1801
  configs.push(
1811
1802
  prettier({
1812
- ...getConfigOption(options.prettier),
1803
+ ...getConfigOptions(options.prettier),
1813
1804
  tailwindcss: enableTailwindcss === "prettier"
1814
1805
  })
1815
1806
  );
@@ -1820,7 +1811,7 @@ function defineConfig(options = {}) {
1820
1811
  var config = defineConfig;
1821
1812
 
1822
1813
  // src/index.ts
1823
- var src_default = config;
1814
+ var index_default = config;
1824
1815
  // Annotate the CommonJS export names for ESM import in node:
1825
1816
  0 && (module.exports = {
1826
1817
  GLOB_ALL_SRC,
@@ -1851,6 +1842,7 @@ var src_default = config;
1851
1842
  comments,
1852
1843
  config,
1853
1844
  defineConfig,
1845
+ getConfigOptions,
1854
1846
  ignores,
1855
1847
  imports,
1856
1848
  interopDefault,
package/dist/index.d.cts CHANGED
@@ -1,13 +1,12 @@
1
1
  import { ParserOptions } from '@typescript-eslint/parser';
2
2
  import { Linter } from 'eslint';
3
+ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
3
4
  import { RequiredOptions } from 'prettier';
4
5
 
5
6
  declare function comments(): Promise<ConfigItem[]>;
6
7
 
7
8
  type IgnoresConfig = (options: {
8
- enableGitignore?: boolean | {
9
- ignorePath: string;
10
- };
9
+ enableGitignore?: boolean | Omit<FlatGitignoreOptions, "name">;
11
10
  files?: ((files: string[]) => string[]) | string[];
12
11
  }) => ReturnType<ConfigFn>;
13
12
  declare const ignores: IgnoresConfig;
@@ -123,6 +122,12 @@ interface OptionsHasTypeScript {
123
122
  typescript?: boolean;
124
123
  }
125
124
  interface OptionsConfig extends OptionsComponentExts {
125
+ /**
126
+ * Enable gitignore support.
127
+ * Passing an object to configure the options.
128
+ * @default true
129
+ */
130
+ gitignore?: boolean | FlatGitignoreOptions;
126
131
  /**
127
132
  * Enable gitignore support.
128
133
  * Passing an object to configure the options.
@@ -277,5 +282,6 @@ declare function combine(...configs: Awaitable<ConfigItem | ConfigItem[]>[]): Pr
277
282
  declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
278
283
  default: infer U;
279
284
  } ? U : T>;
285
+ declare function getConfigOptions<T>(options: T): {};
280
286
 
281
- export { type Awaitable, type ConfigFn, type ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MDX, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type GetConfigOption, type IgnoresConfig, type JavascriptConfig, type JsoncConfig, type MarkdownConfig, type OptionsComponentExts, type OptionsConfig, type OptionsHasTypeScript, type OptionsOverrides, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type PrettierConfig, type PrettierRequiredOptions, type TestConfig, type TomlConfig, type TypeScriptConfig, type VueConfig, type YmlConfig, combine, comments, config, config as default, defineConfig, ignores, imports, interopDefault, javascript, jsdoc, jsonc, markdown, node, parserPlain, perfectionist, prettier, sortPackageJson, sortTsconfig, test, toml, typescript, unicorn, vue, yml };
287
+ export { type Awaitable, type ConfigFn, type ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MDX, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type GetConfigOption, type IgnoresConfig, type JavascriptConfig, type JsoncConfig, type MarkdownConfig, type OptionsComponentExts, type OptionsConfig, type OptionsHasTypeScript, type OptionsOverrides, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type PrettierConfig, type PrettierRequiredOptions, type TestConfig, type TomlConfig, type TypeScriptConfig, type VueConfig, type YmlConfig, combine, comments, config, config as default, defineConfig, getConfigOptions, ignores, imports, interopDefault, javascript, jsdoc, jsonc, markdown, node, parserPlain, perfectionist, prettier, sortPackageJson, sortTsconfig, test, toml, typescript, unicorn, vue, yml };
package/dist/index.d.ts CHANGED
@@ -1,13 +1,12 @@
1
1
  import { ParserOptions } from '@typescript-eslint/parser';
2
2
  import { Linter } from 'eslint';
3
+ import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
3
4
  import { RequiredOptions } from 'prettier';
4
5
 
5
6
  declare function comments(): Promise<ConfigItem[]>;
6
7
 
7
8
  type IgnoresConfig = (options: {
8
- enableGitignore?: boolean | {
9
- ignorePath: string;
10
- };
9
+ enableGitignore?: boolean | Omit<FlatGitignoreOptions, "name">;
11
10
  files?: ((files: string[]) => string[]) | string[];
12
11
  }) => ReturnType<ConfigFn>;
13
12
  declare const ignores: IgnoresConfig;
@@ -123,6 +122,12 @@ interface OptionsHasTypeScript {
123
122
  typescript?: boolean;
124
123
  }
125
124
  interface OptionsConfig extends OptionsComponentExts {
125
+ /**
126
+ * Enable gitignore support.
127
+ * Passing an object to configure the options.
128
+ * @default true
129
+ */
130
+ gitignore?: boolean | FlatGitignoreOptions;
126
131
  /**
127
132
  * Enable gitignore support.
128
133
  * Passing an object to configure the options.
@@ -277,5 +282,6 @@ declare function combine(...configs: Awaitable<ConfigItem | ConfigItem[]>[]): Pr
277
282
  declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
278
283
  default: infer U;
279
284
  } ? U : T>;
285
+ declare function getConfigOptions<T>(options: T): {};
280
286
 
281
- export { type Awaitable, type ConfigFn, type ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MDX, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type GetConfigOption, type IgnoresConfig, type JavascriptConfig, type JsoncConfig, type MarkdownConfig, type OptionsComponentExts, type OptionsConfig, type OptionsHasTypeScript, type OptionsOverrides, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type PrettierConfig, type PrettierRequiredOptions, type TestConfig, type TomlConfig, type TypeScriptConfig, type VueConfig, type YmlConfig, combine, comments, config, config as default, defineConfig, ignores, imports, interopDefault, javascript, jsdoc, jsonc, markdown, node, parserPlain, perfectionist, prettier, sortPackageJson, sortTsconfig, test, toml, typescript, unicorn, vue, yml };
287
+ export { type Awaitable, type ConfigFn, type ConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MDX, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_YAML, type GetConfigOption, type IgnoresConfig, type JavascriptConfig, type JsoncConfig, type MarkdownConfig, type OptionsComponentExts, type OptionsConfig, type OptionsHasTypeScript, type OptionsOverrides, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type PrettierConfig, type PrettierRequiredOptions, type TestConfig, type TomlConfig, type TypeScriptConfig, type VueConfig, type YmlConfig, combine, comments, config, config as default, defineConfig, getConfigOptions, ignores, imports, interopDefault, javascript, jsdoc, jsonc, markdown, node, parserPlain, perfectionist, prettier, sortPackageJson, sortTsconfig, test, toml, typescript, unicorn, vue, yml };
package/dist/index.js CHANGED
@@ -27,6 +27,9 @@ async function interopDefault(m) {
27
27
  const resolved = await m;
28
28
  return resolved.default || resolved;
29
29
  }
30
+ function getConfigOptions(options) {
31
+ return options ? typeof options !== "boolean" ? options : {} : {};
32
+ }
30
33
 
31
34
  // src/configs/comments.ts
32
35
  async function comments() {
@@ -50,10 +53,6 @@ async function comments() {
50
53
  ];
51
54
  }
52
55
 
53
- // src/configs/ignores.ts
54
- import fs from "node:fs";
55
- import path from "node:path";
56
-
57
56
  // src/globs.ts
58
57
  var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
59
58
  var GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
@@ -122,20 +121,14 @@ var GLOB_EXCLUDE = [
122
121
  ];
123
122
 
124
123
  // src/configs/ignores.ts
125
- var REGEX_SPLIT_ALL_CRLF = /\r?\n/g;
126
- var splitPattern = (pattern) => pattern.split(REGEX_SPLIT_ALL_CRLF);
127
124
  var ignores = async (options) => {
128
125
  const { enableGitignore = true, files = [] } = options;
129
- let gitIgnores = [];
126
+ const gitIgnores = [];
130
127
  if (enableGitignore) {
131
- let ignorePath = ".gitignore";
132
- if (typeof enableGitignore !== "boolean") {
133
- ignorePath = enableGitignore.ignorePath;
134
- }
135
- const gitignorePath = path.join(process.cwd(), ignorePath);
136
- if (fs.existsSync(gitignorePath)) {
137
- gitIgnores = splitPattern(fs.readFileSync(gitignorePath).toString()).filter((i) => !(i.startsWith("#") || i.length === 0)).map((i) => i.startsWith("/") ? i.slice(1) : i);
138
- }
128
+ const gitignore = await interopDefault(
129
+ import("eslint-config-flat-gitignore")
130
+ );
131
+ gitIgnores.push(...gitignore(getConfigOptions(enableGitignore)).ignores);
139
132
  }
140
133
  let ignores2 = [...GLOB_EXCLUDE, ...gitIgnores];
141
134
  if (typeof files === "function") {
@@ -145,6 +138,7 @@ var ignores = async (options) => {
145
138
  }
146
139
  return [
147
140
  {
141
+ name: "eslint/ignores",
148
142
  ignores: [...GLOB_EXCLUDE, ...ignores2]
149
143
  }
150
144
  ];
@@ -1073,7 +1067,7 @@ var toml = async (options) => {
1073
1067
  };
1074
1068
 
1075
1069
  // src/configs/typescript.ts
1076
- import process2 from "node:process";
1070
+ import process from "node:process";
1077
1071
  var typeAwareRules = {
1078
1072
  "dot-notation": "off",
1079
1073
  "no-implied-eval": "off",
@@ -1133,7 +1127,7 @@ var typescript = async (options) => {
1133
1127
  sourceType: "module",
1134
1128
  ...tsconfigPath ? {
1135
1129
  project: [tsconfigPath],
1136
- tsconfigRootDir: process2.cwd()
1130
+ tsconfigRootDir: process.cwd()
1137
1131
  } : {},
1138
1132
  ...parserOptions
1139
1133
  }
@@ -1506,7 +1500,6 @@ var react = async (options) => {
1506
1500
  const [pluginReact, pluginReactHooks, pluginReactRefresh] = await Promise.all(
1507
1501
  [
1508
1502
  interopDefault(import("@eslint-react/eslint-plugin")),
1509
- // @ts-expect-error missing types
1510
1503
  interopDefault(import("eslint-plugin-react-hooks")),
1511
1504
  interopDefault(import("eslint-plugin-react-refresh"))
1512
1505
  ]
@@ -1651,12 +1644,9 @@ async function tailwindcss() {
1651
1644
  }
1652
1645
 
1653
1646
  // src/factory.ts
1654
- function getConfigOption(options) {
1655
- return options ? typeof options !== "boolean" ? options : {} : {};
1656
- }
1657
1647
  function defineConfig(options = {}) {
1658
1648
  const {
1659
- ignores: enableGitignore = true,
1649
+ ignores: enableIgnores = true,
1660
1650
  vue: enableVue,
1661
1651
  react: enableReact,
1662
1652
  solid: enableSolid,
@@ -1666,7 +1656,7 @@ function defineConfig(options = {}) {
1666
1656
  } = options;
1667
1657
  const configs = [];
1668
1658
  configs.push(
1669
- ignores(getConfigOption(enableGitignore)),
1659
+ ignores(getConfigOptions(enableIgnores)),
1670
1660
  javascript(options.javascript ?? {}),
1671
1661
  comments(),
1672
1662
  node(),
@@ -1686,36 +1676,36 @@ function defineConfig(options = {}) {
1686
1676
  );
1687
1677
  }
1688
1678
  if (options.test ?? true) {
1689
- configs.push(test(getConfigOption(options.test)));
1679
+ configs.push(test(getConfigOptions(options.test)));
1690
1680
  }
1691
1681
  if (enableVue) {
1692
1682
  configs.push(
1693
1683
  vue({
1694
- ...getConfigOption(options.vue),
1684
+ ...getConfigOptions(options.vue),
1695
1685
  typescript: !!enableTypeScript
1696
1686
  })
1697
1687
  );
1698
1688
  }
1699
1689
  if (enableReact) {
1700
- configs.push(react(getConfigOption(enableReact)));
1690
+ configs.push(react(getConfigOptions(enableReact)));
1701
1691
  }
1702
1692
  if (options.jsonc ?? true) {
1703
1693
  configs.push(
1704
- jsonc(getConfigOption(options.jsonc)),
1694
+ jsonc(getConfigOptions(options.jsonc)),
1705
1695
  sortPackageJson(),
1706
1696
  sortTsconfig()
1707
1697
  );
1708
1698
  }
1709
1699
  if (options.yml ?? true) {
1710
- configs.push(yml(getConfigOption(options.yml)));
1700
+ configs.push(yml(getConfigOptions(options.yml)));
1711
1701
  }
1712
1702
  if (options.toml ?? true) {
1713
- configs.push(toml(getConfigOption(options.toml)));
1703
+ configs.push(toml(getConfigOptions(options.toml)));
1714
1704
  }
1715
1705
  if (options.markdown ?? true) {
1716
1706
  configs.push(
1717
1707
  markdown({
1718
- ...getConfigOption(options.markdown),
1708
+ ...getConfigOptions(options.markdown),
1719
1709
  componentExts
1720
1710
  })
1721
1711
  );
@@ -1726,7 +1716,7 @@ function defineConfig(options = {}) {
1726
1716
  if (options.prettier ?? true) {
1727
1717
  configs.push(
1728
1718
  prettier({
1729
- ...getConfigOption(options.prettier),
1719
+ ...getConfigOptions(options.prettier),
1730
1720
  tailwindcss: enableTailwindcss === "prettier"
1731
1721
  })
1732
1722
  );
@@ -1737,7 +1727,7 @@ function defineConfig(options = {}) {
1737
1727
  var config = defineConfig;
1738
1728
 
1739
1729
  // src/index.ts
1740
- var src_default = config;
1730
+ var index_default = config;
1741
1731
  export {
1742
1732
  GLOB_ALL_SRC,
1743
1733
  GLOB_CSS,
@@ -1766,8 +1756,9 @@ export {
1766
1756
  combine,
1767
1757
  comments,
1768
1758
  config,
1769
- src_default as default,
1759
+ index_default as default,
1770
1760
  defineConfig,
1761
+ getConfigOptions,
1771
1762
  ignores,
1772
1763
  imports,
1773
1764
  interopDefault,
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@debbl/eslint-config",
3
3
  "type": "module",
4
- "version": "3.8.10",
4
+ "version": "3.9.0",
5
5
  "description": "Brendan Dash's ESLint config",
6
- "author": "Debbl <me@aiwan.run> (https://github.com/Debbl/)",
6
+ "author": "Brendan Dash <me@aiwan.run> (https://github.com/Debbl/)",
7
7
  "license": "MIT",
8
8
  "homepage": "https://github.com/Debbl/eslint-config",
9
9
  "keywords": [
@@ -27,64 +27,66 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
30
- "@eslint-react/eslint-plugin": "^1.23.2",
31
- "@eslint/markdown": "^6.2.1",
32
- "@next/eslint-plugin-next": "^15.1.4",
33
- "@typescript-eslint/eslint-plugin": "^8.19.1",
34
- "@typescript-eslint/parser": "^8.19.1",
35
- "@vitest/eslint-plugin": "^1.1.24",
36
- "eslint-config-prettier": "^9.1.0",
30
+ "@eslint-react/eslint-plugin": "^1.30.0",
31
+ "@eslint/markdown": "^6.2.2",
32
+ "@next/eslint-plugin-next": "^15.2.0",
33
+ "@typescript-eslint/eslint-plugin": "^8.25.0",
34
+ "@typescript-eslint/parser": "^8.25.0",
35
+ "@vitest/eslint-plugin": "^1.1.36",
36
+ "eslint-config-flat-gitignore": "^2.1.0",
37
+ "eslint-config-prettier": "^10.0.2",
37
38
  "eslint-plugin-import-x": "^4.6.1",
38
- "eslint-plugin-jsdoc": "^50.6.1",
39
- "eslint-plugin-jsonc": "^2.18.2",
40
- "eslint-plugin-n": "^17.15.1",
39
+ "eslint-plugin-jsdoc": "^50.6.3",
40
+ "eslint-plugin-jsonc": "^2.19.1",
41
+ "eslint-plugin-n": "^17.16.1",
41
42
  "eslint-plugin-no-only-tests": "^3.3.0",
42
- "eslint-plugin-perfectionist": "^4.6.0",
43
- "eslint-plugin-prettier": "^5.2.1",
43
+ "eslint-plugin-perfectionist": "^4.9.0",
44
+ "eslint-plugin-prettier": "^5.2.3",
44
45
  "eslint-plugin-react-compiler": "latest",
45
- "eslint-plugin-react-hooks": "^5.1.0",
46
- "eslint-plugin-react-refresh": "^0.4.16",
46
+ "eslint-plugin-react-hooks": "^5.2.0",
47
+ "eslint-plugin-react-refresh": "^0.4.19",
47
48
  "eslint-plugin-solid": "^0.14.5",
48
- "eslint-plugin-tailwindcss": "^3.17.5",
49
+ "eslint-plugin-tailwindcss": "^3.18.0",
49
50
  "eslint-plugin-toml": "^0.12.0",
50
- "eslint-plugin-unicorn": "^56.0.1",
51
+ "eslint-plugin-unicorn": "^57.0.0",
51
52
  "eslint-plugin-unused-imports": "^4.1.4",
52
53
  "eslint-plugin-vue": "^9.32.0",
53
- "eslint-plugin-yml": "^1.16.0",
54
- "globals": "^15.14.0",
54
+ "eslint-plugin-yml": "^1.17.0",
55
+ "globals": "^16.0.0",
55
56
  "jsonc-eslint-parser": "^2.4.0",
56
- "prettier": "^3.4.2",
57
- "prettier-plugin-tailwindcss": "^0.6.9",
57
+ "prettier": "^3.5.3",
58
+ "prettier-plugin-tailwindcss": "^0.6.11",
58
59
  "toml-eslint-parser": "^0.10.0",
59
60
  "vue-eslint-parser": "^9.4.3",
60
- "yaml-eslint-parser": "^1.2.3"
61
+ "yaml-eslint-parser": "^1.3.0"
61
62
  },
62
63
  "devDependencies": {
63
- "@eslint/config-inspector": "^0.7.1",
64
+ "@eslint/config-inspector": "^1.0.1",
64
65
  "@types/eslint": "^9.6.1",
65
- "@types/node": "^22.10.5",
66
- "@types/react": "^19.0.4",
67
- "bumpp": "^9.10.0",
68
- "eslint": "^9.17.0",
66
+ "@types/fs-extra": "^11.0.4",
67
+ "@types/node": "^22.13.8",
68
+ "@types/react": "^19.0.10",
69
+ "bumpp": "^10.0.3",
70
+ "eslint": "^9.21.0",
69
71
  "execa": "^9.5.2",
70
72
  "fast-glob": "^3.3.3",
71
- "fs-extra": "^11.2.0",
73
+ "fs-extra": "^11.3.0",
72
74
  "react": "^19.0.0",
73
75
  "sucrase": "^3.35.0",
74
- "tsup": "^8.3.5",
75
- "typescript": "^5.7.3",
76
- "vitest": "^2.1.8"
76
+ "tsup": "^8.4.0",
77
+ "typescript": "^5.8.2",
78
+ "vitest": "^3.0.7"
77
79
  },
78
80
  "scripts": {
79
- "build": "tsup --format esm,cjs --clean --dts",
81
+ "build": "tsup",
80
82
  "stub": "tsup --format esm",
81
- "dev": "npx @eslint/config-inspector --config eslint.config.js",
83
+ "dev": "pnpm build && pnpm dlx @eslint/config-inspector --config eslint.config.js",
82
84
  "build:inspector": "pnpm build && npx @eslint/config-inspector build",
83
85
  "watch": "tsup --format esm,cjs --watch",
84
86
  "test": "vitest",
85
87
  "typecheck": "tsc --noEmit",
86
- "lint": "pnpm run stub && eslint .",
87
- "lint:fix": "pnpm run stub && eslint . --fix",
88
+ "lint": "pnpm run stub && eslint",
89
+ "lint:fix": "pnpm run stub && eslint --fix",
88
90
  "release": "pnpm build && bumpp && pnpm publish"
89
91
  }
90
92
  }