1.0.5 • Published 10 months ago

@emerson-eps/prettier-config v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Shared Prettier Config

GitHub Workflow Status GitHub license npm (scoped) semantic-release Conventional Commits

This is the home of the shared Emerson E&P Software Prettier config. For consistency this config should be used by all projects in E&P Software.

This config should normally be used in conjunction with @emerson-eps/eslint-config. Refer to that repository for instructions on using the two together.

Usage

npm install --save-dev @emerson-eps/prettier-config

The simplest way to include the prettier config is to reference the shared prettier config in the package.json file:

{
  "name": "my-library",
  "version": "1.0.0",
  "prettier": "@emerson-eps/prettier-config"
}

Alternatively add a .prettierrc.js to the project, which is also a requirement if you need to override some of the options, and import the module:

module.exports = {
  ...require("@emerson-eps/prettier-config"),
  // Additional rules...
};

Try not to override the shared config unless you really need to. If you must override it please consider proposing the override as a change to this repository first to avoid divergence of code styles in different projects.

For further Prettier configuration help including precedence of configuration options consult the Prettier documentation.

Integration with Visual Studio Code

If not already installed, install the Prettier extension.

1.0.5

10 months ago

1.0.4

2 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago