@condor-labs/prettier-config

This module provides the standard Prettier configuration for every project in Condor Labs

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@condor-labs/prettier-config
1.1.18 months agoa year agoMinified + gzip package size for @condor-labs/prettier-config in KB

Readme

This module defines standard Prettier rules for code formatting to help format the code in all of our projects.
See the official Prettier documentation here.

Compatibility

  • npm v7 or higher.

How to use it

To use the library you just need to follow these steps:
  • Install the library with npm

npm i @condor-labs/prettier-config

  • Create the config file .prettierrc and import the library:

├── Example Proyect
    ├── node_modules
    ├── src
    ├── package-lock.json
    ├── package.json
    └── .prettierrc

'@condor-labs/prettier-config';

Rules contained in this library. more information.

module.exports = {
  printWidth: 120,
  tabWidth: 2,
  useTabs: false,
  semi: true,
  singleQuote: true,
  quoteProps: 'as-needed',
  jsxSingleQuote: false,
  trailingComma: 'es5',
  bracketSpacing: true,
  bracketSameLine: false,
  jsxBracketSameLine: false, // Deprecated in v2.4.0
  arrowParens: 'always',
  requirePragma: false,
  insertPragma: false,
  proseWrap: 'preserve',
  htmlWhitespaceSensitivity: 'css',
  endOfLine: 'lf',
};

How to Publish

Increasing package version

You will need to update the package.json file placed in the root folder.
identify the property version and increase the right number in plus one.

Login in NPM by console.

npm login
[Enter username]
[Enter password]
[Enter email]

If all is ok the console will show you something like this : Logged in as USERNAME on https://registry.npmjs.org/.

Uploading a new version

npm publish --access public

Ref: https://docs.npmjs.com/getting-started/publishing-npm-packages
Note: you will need to have a NPM account, if you don't have one create one here: https://www.npmjs.com/signup

Contributors

The original authors and current lead maintainers of this module is the @condor-labs development team.
More about Condor Labs Here.

License

MIT