@hexadrop/eslint-config 0.0.2 → 0.1.1

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,12 +28,12 @@ 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
  combine: () => combine,
34
34
  default: () => hexadrop
35
35
  });
36
- module.exports = __toCommonJS(src_exports);
36
+ module.exports = __toCommonJS(index_exports);
37
37
 
38
38
  // src/factory.ts
39
39
  var import_eslint_flat_config_utils = require("eslint-flat-config-utils");
@@ -78,7 +78,7 @@ function extractTypedFlatConfigItem(config) {
78
78
  // src/utils/interop-default.ts
79
79
  async function interopDefault(m) {
80
80
  const resolved = await m;
81
- return resolved.default || resolved;
81
+ return resolved.default ?? resolved;
82
82
  }
83
83
 
84
84
  // src/utils/plugin-config-override-rules.ts
@@ -366,7 +366,7 @@ async function markdown(options) {
366
366
  if (!markdown2) {
367
367
  return [];
368
368
  }
369
- const pluginMarkdown = await interopDefault(import("eslint-plugin-markdown"));
369
+ const pluginMarkdown = await interopDefault(import("@eslint/markdown"));
370
370
  const processors = pluginMarkdown.processors;
371
371
  const processor = processors?.["markdown"];
372
372
  return [
@@ -391,6 +391,7 @@ async function markdown(options) {
391
391
  files: GLOB_MARKDOWN,
392
392
  languageOptions: {
393
393
  parser: {
394
+ meta: import_eslint_parser_plain.meta,
394
395
  parseForESLint: import_eslint_parser_plain.parseForESLint
395
396
  }
396
397
  },
@@ -1924,6 +1925,7 @@ function defaultOptions(options = {}) {
1924
1925
  ignore: typeof options.ignore === "object" ? {
1925
1926
  ...options.ignore,
1926
1927
  files: typeof options.ignore.files === "string" ? options.ignore.files : options.ignore.files?.filter(Boolean) ?? [],
1928
+ filesGitModules: typeof options.ignore.filesGitModules === "string" ? options.ignore.filesGitModules : options.ignore.filesGitModules?.filter(Boolean) ?? [],
1927
1929
  globs: options.ignore.globs?.filter(Boolean) ?? []
1928
1930
  } : options.ignore ?? true,
1929
1931
  imports: options.imports ?? true,