import type { Config } from "prettier";

const config: Config = {
    arrowParens: "always",
    bracketSpacing: true,
    printWidth: 120,
    quoteProps: "as-needed",
    semi: true,
    singleQuote: false,
    tabWidth: 4,
    trailingComma: "all",
    useTabs: false,
    overrides: [
        {
            files: ["*.json"],
            options: {
                trailingComma: "none",
                printWidth: 80,
            },
        },
        {
            files: ["*.toml"],
            options: {
                printWidth: 80,
            },
        },
        {
            files: ["*.ts", "*.tsx"],
            options: {
                parser: "typescript",
            },
        },
        {
            files: ["*.md", "*.yaml", "*.yml"],
            options: {
                tabWidth: 2,
            },
        },
    ],
    plugins: [
        //"prettier-plugin-sh",
        // "prettier-plugin-toml",
    ],
};

export default config;
