@lincy/eslint-config 5.2.6 → 5.2.7
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 +11 -2
- package/dist/index.d.cts +81 -49
- package/dist/index.d.ts +81 -49
- package/dist/index.js +10 -1
- package/package.json +25 -25
package/dist/index.cjs
CHANGED
|
@@ -99,7 +99,7 @@ __export(src_exports, {
|
|
|
99
99
|
});
|
|
100
100
|
module.exports = __toCommonJS(src_exports);
|
|
101
101
|
|
|
102
|
-
// node_modules/.pnpm/tsup@8.3.
|
|
102
|
+
// node_modules/.pnpm/tsup@8.3.5_jiti@2.3.3_postcss@8.4.47_tsx@4.19.2_typescript@5.6.3_yaml@2.6.0/node_modules/tsup/assets/cjs_shims.js
|
|
103
103
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
104
104
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
105
105
|
|
|
@@ -433,8 +433,8 @@ function mergePrettierOptions(options, overrides = {}) {
|
|
|
433
433
|
}
|
|
434
434
|
async function formatters(options = {}, stylistic2 = {}) {
|
|
435
435
|
const defaultIndent = 4;
|
|
436
|
+
const isPrettierPluginXmlInScope = isPackageInScope("@prettier/plugin-xml");
|
|
436
437
|
if (options === true) {
|
|
437
|
-
const isPrettierPluginXmlInScope = isPackageInScope("@prettier/plugin-xml");
|
|
438
438
|
options = {
|
|
439
439
|
css: false,
|
|
440
440
|
graphql: true,
|
|
@@ -443,6 +443,15 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
443
443
|
svg: isPrettierPluginXmlInScope,
|
|
444
444
|
xml: isPrettierPluginXmlInScope
|
|
445
445
|
};
|
|
446
|
+
} else {
|
|
447
|
+
options = {
|
|
448
|
+
css: options.css ?? false,
|
|
449
|
+
graphql: options.graphql ?? true,
|
|
450
|
+
html: options.html ?? true,
|
|
451
|
+
markdown: options.markdown ?? true,
|
|
452
|
+
svg: isPrettierPluginXmlInScope,
|
|
453
|
+
xml: isPrettierPluginXmlInScope
|
|
454
|
+
};
|
|
446
455
|
}
|
|
447
456
|
await ensurePackages([
|
|
448
457
|
"eslint-plugin-format",
|