Skip to content

Combeenation/cbn-prettier-config

Repository files navigation

@combeenation/prettier-config

Combeenation Prettier config.

Usage

  • Install:
    $ npm i --save-dev @combeenation/prettier-config
  • Edit package.json:
    {
      // ...
      "prettier": "@combeenation/prettier-config"
    }
  • Remove existing prettier config files like .prettierrc.json etc.
  • Create .prettierignore which could look this this:
    build/
    node_modules/
    

Overwrite settings

This method does not offer a way to overwrite some properties from the shared configuration. In order to do so, one has to create a dedicated .prettierrc.js file and use node imports like this:

module.exports = {
  ...require("@combeenation/prettier-config"),
  semi: false,
};

Included plugins

This package comes with the following plugins pre-installed:

All options provided by those plugin can be adjusted using the method described above in section Overwrite settings.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published