Documentation for Simbo's Packages
    Preparing search index...

    Module @simbo/prettier-config - v1.0.6

    Simbo's Prettier Configuration

    📦 @simbo/prettier-config

    A shared Prettier configuration.

    Install Prettier, the required plugins, and the @simbo/prettier-config from the npm registry:

    npm i -D prettier @ianvs/prettier-plugin-sort-imports prettier-plugin-organize-attributes @simbo/prettier-config
    

    Create a Prettier configuration file in the root of your project.

    echo '"@simbo/prettier-config"' > .prettierrc
    

    Add prettier commands to your package.json scripts:

        "check:format": "prettier --check .",
    "fix:format": "prettier --write .",

    And your done. 🍻

    "@simbo/prettier-config"
    

    Extending the shared configuration is only possible using JavaScript or TypeScript.

    import simboPrettierConfig from '@simbo/prettier-config';

    /**
    * @see https://prettier.io/docs/configuration
    * @type {import("prettier").Config}
    */
    export default {
    ...simboPrettierConfig,
    // add custom settings here
    };

    MIT © Simon Lepel

    Variables

    default