@xoi/prettier-config

1.0.0 • Public • Published

@xoi/prettier-config

CircleCI Version License

A minimal Prettier configuration for JavaScript projects

Installation

This module is distributed via npm which is bundled with node and should be installed as one of your project's devDependencies:

yarn add -D @xoi/prettier-config

This package has peer dependencies. Please make sure you have those installed as well.

yarn add -D eslint@^6.1.0 \
  prettier@^1.18.2

Usage

.eslintrc.*

module.exports = {
  extends: [
    'other-eslint-configs',
    // Add @xoi/prettier-config as the last
    // item in the array so it gets the chance to
    // override other configs.
    '@xoi/prettier-config',
  ],
}

.prettierrc.js

module.exports = require('@xoi/prettier-config')

Editor Integration

Prettier can be integrated with various editors. See the Editor Integration page in the Prettier documentation for details.

Contributing

Open an issue or create a pull request

Package Sidebar

Install

npm i @xoi/prettier-config

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.94 kB

Total Files

5

Last publish

Collaborators

  • xoi-npm