UNPKG

@risemaxi/syntactio

Version:

Linting and formatting config for Rise client apps. Supports ESLint, Oxlint, and Oxfmt.

35 lines (34 loc) 1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.oxfmtConfig = void 0; const oxfmt_1 = require("oxfmt"); exports.oxfmtConfig = (0, oxfmt_1.defineConfig)({ singleQuote: true, trailingComma: "none", semi: true, bracketSpacing: true, bracketSameLine: true, useTabs: false, tabWidth: 2, printWidth: 80, embeddedLanguageFormatting: "auto", sortImports: { newlinesBetween: false, groups: [ "type-import", ["value-builtin", "value-external"], "type-internal", "value-internal", ["type-parent", "type-sibling", "type-index"], ["value-parent", "value-sibling", "value-index"], "unknown", ], }, sortTailwindcss: { functions: ["clsx", "cn", "cva", "cx"], }, sortPackageJson: { sortScripts: true, }, ignorePatterns: ["node_modules", "dist", "bun.lock", "package-lock.json", "yarn.lock"], });