UNPKG

@kodehort/prettier-config

Version:

A curated set of prettier configurations that we use across our projects and can be used in your projects.

78 lines (77 loc) 2.87 kB
"use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/index.ts var src_exports = {}; __export(src_exports, { baseConfig: () => baseConfig, default: () => src_default }); module.exports = __toCommonJS(src_exports); var import_prettier_plugin_sort_imports = require("@ianvs/prettier-plugin-sort-imports"); var sortImports = __toESM(require("@ianvs/prettier-plugin-sort-imports"), 1); var astro = __toESM(require("prettier-plugin-astro"), 1); var curly = __toESM(require("prettier-plugin-curly"), 1); var packageJson = __toESM(require("prettier-plugin-packagejson"), 1); var tailwindcss = __toESM(require("prettier-plugin-tailwindcss"), 1); var baseConfig = { arrowParens: "always", importOrder: ["<BUILTIN_MODULES>", "", "<THIRD_PARTY_MODULES>", "", "^[.]/"], importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"], importOrderTypeScriptVersion: "5.0.0", jsxSingleQuote: false, plugins: [sortImports, astro, curly, packageJson, tailwindcss], printWidth: 80, proseWrap: "always", semi: false, singleAttributePerLine: true, singleQuote: true, tabWidth: 2, trailingComma: "all", overrides: [ { files: ["tsconfig.json"], options: { parser: "jsonc", trailingComma: "none" } }, { files: "*.astro", options: { parser: "astro" } } ] }; var src_default = baseConfig; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { baseConfig }); //# sourceMappingURL=index.cjs.map