@vinicunca/eslint-config 2.15.1 → 2.15.2

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
@@ -112,25 +112,25 @@ __export(src_exports, {
112
112
  });
113
113
  module.exports = __toCommonJS(src_exports);
114
114
 
115
- // ../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.1_postcss@8.4.49_tsx@4.19.2_typescript@5.7.2_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
115
+ // ../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.1_postcss@8.4.49_tsx@4.19.2_typescript@5.7.2_yaml@2.6.1/node_modules/tsup/assets/cjs_shims.js
116
116
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
117
117
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
118
118
 
119
- // ../node_modules/.pnpm/@vinicunca+perkakas@1.0.6/node_modules/@vinicunca/perkakas/dist/chunk-HLL46USD.js
120
- function r(e3) {
121
- if (typeof e3 != "object" || e3 === null) return false;
122
- let o = Object.getPrototypeOf(e3);
123
- return o === null || o === Object.prototype;
119
+ // ../node_modules/.pnpm/@vinicunca+perkakas@1.1.0/node_modules/@vinicunca/perkakas/dist/chunk-6AFNPQW2.js
120
+ function r(o) {
121
+ if (typeof o != "object" || o === null) return false;
122
+ let e3 = Object.getPrototypeOf(o);
123
+ return e3 === null || e3 === Object.prototype;
124
124
  }
125
125
 
126
- // ../node_modules/.pnpm/@vinicunca+perkakas@1.0.6/node_modules/@vinicunca/perkakas/dist/chunk-AZUJCNUP.js
127
- function e(o) {
128
- return typeof o == "boolean";
126
+ // ../node_modules/.pnpm/@vinicunca+perkakas@1.1.0/node_modules/@vinicunca/perkakas/dist/chunk-Q2HW4RVT.js
127
+ function e(r2) {
128
+ return typeof r2 == "number" && !Number.isNaN(r2);
129
129
  }
130
130
 
131
- // ../node_modules/.pnpm/@vinicunca+perkakas@1.0.6/node_modules/@vinicunca/perkakas/dist/chunk-Q2HW4RVT.js
132
- function e2(r2) {
133
- return typeof r2 == "number" && !Number.isNaN(r2);
131
+ // ../node_modules/.pnpm/@vinicunca+perkakas@1.1.0/node_modules/@vinicunca/perkakas/dist/chunk-AZUJCNUP.js
132
+ function e2(o) {
133
+ return typeof o == "boolean";
134
134
  }
135
135
 
136
136
  // src/base.ts
@@ -537,7 +537,7 @@ async function formatters(options = {}, stylistic2 = {}) {
537
537
  endOfLine: "auto",
538
538
  semi,
539
539
  singleQuote: quotes === "single",
540
- tabWidth: e2(indent) ? indent : 2,
540
+ tabWidth: e(indent) ? indent : 2,
541
541
  trailingComma: "all",
542
542
  useTabs: indent === "tab"
543
543
  },
@@ -551,7 +551,7 @@ async function formatters(options = {}, stylistic2 = {}) {
551
551
  };
552
552
  const dprintOptions = Object.assign(
553
553
  {
554
- indentWidth: e2(indent) ? indent : 2,
554
+ indentWidth: e(indent) ? indent : 2,
555
555
  quoteStyle: quotes === "single" ? "preferSingle" : "preferDouble",
556
556
  useTabs: indent === "tab"
557
557
  },
@@ -1148,7 +1148,7 @@ async function jsonc(options = {}) {
1148
1148
  } = options;
1149
1149
  const {
1150
1150
  indent = 2
1151
- } = e(stylistic2) ? {} : stylistic2;
1151
+ } = e2(stylistic2) ? {} : stylistic2;
1152
1152
  const [
1153
1153
  pluginJsonc,
1154
1154
  parserJsonc
@@ -1896,7 +1896,7 @@ async function svelte(options = {}) {
1896
1896
  const {
1897
1897
  indent = 2,
1898
1898
  quotes = "single"
1899
- } = e(stylistic2) ? {} : stylistic2;
1899
+ } = e2(stylistic2) ? {} : stylistic2;
1900
1900
  const [
1901
1901
  pluginSvelte,
1902
1902
  parserSvelte
@@ -2039,7 +2039,7 @@ async function toml(options = {}) {
2039
2039
  } = options;
2040
2040
  const {
2041
2041
  indent = 2
2042
- } = e(stylistic2) ? {} : stylistic2;
2042
+ } = e2(stylistic2) ? {} : stylistic2;
2043
2043
  const [
2044
2044
  pluginToml,
2045
2045
  parserToml
@@ -2347,7 +2347,7 @@ async function vue(options = {}) {
2347
2347
  const sfcBlocks = options.sfcBlocks === true ? {} : options.sfcBlocks ?? {};
2348
2348
  const {
2349
2349
  indent = 2
2350
- } = e(stylistic2) ? {} : stylistic2;
2350
+ } = e2(stylistic2) ? {} : stylistic2;
2351
2351
  const [
2352
2352
  pluginVue,
2353
2353
  parserVue,
@@ -2517,7 +2517,7 @@ async function yaml(options = {}) {
2517
2517
  const {
2518
2518
  indent = 2,
2519
2519
  quotes = "single"
2520
- } = e(stylistic2) ? {} : stylistic2;
2520
+ } = e2(stylistic2) ? {} : stylistic2;
2521
2521
  const [
2522
2522
  pluginYaml,
2523
2523
  parserYaml
@@ -2637,7 +2637,7 @@ function vinicuncaESLint(options = {}, ...userConfigs) {
2637
2637
  }
2638
2638
  const configs2 = [];
2639
2639
  if (enableGitignore) {
2640
- if (!e(enableGitignore)) {
2640
+ if (!e2(enableGitignore)) {
2641
2641
  configs2.push(interopDefault(import("eslint-config-flat-gitignore")).then((r2) => [r2({
2642
2642
  name: "vinicunca/gitignore",
2643
2643
  ...enableGitignore
@@ -2695,7 +2695,7 @@ function vinicuncaESLint(options = {}, ...userConfigs) {
2695
2695
  }));
2696
2696
  }
2697
2697
  if (enableRegexp) {
2698
- configs2.push(regexp(e(enableRegexp) ? {} : enableRegexp));
2698
+ configs2.push(regexp(e2(enableRegexp) ? {} : enableRegexp));
2699
2699
  }
2700
2700
  if (options.test ?? true) {
2701
2701
  configs2.push(test({
@@ -2779,7 +2779,7 @@ function vinicuncaESLint(options = {}, ...userConfigs) {
2779
2779
  if (options.formatters) {
2780
2780
  configs2.push(formatters(
2781
2781
  options.formatters,
2782
- e(stylisticOptions) ? {} : stylisticOptions
2782
+ e2(stylisticOptions) ? {} : stylisticOptions
2783
2783
  ));
2784
2784
  }
2785
2785
  if ("files" in options) {
@@ -2813,7 +2813,7 @@ function getOverrides(options, key) {
2813
2813
  };
2814
2814
  }
2815
2815
  function resolveSubOptions(options, key) {
2816
- return e(options[key]) ? {} : options[key] || {};
2816
+ return e2(options[key]) ? {} : options[key] || {};
2817
2817
  }
2818
2818
  // Annotate the CommonJS export names for ESM import in node:
2819
2819
  0 && (module.exports = {