prettier-config-xo

[![npm](https://img.shields.io/npm/v/prettier-config-xo)](https://www.npmjs.com/package/prettier-config-xo) [![Build Status](https://github.com/jonahsnider/prettier-config-xo/workflows/CI/badge.svg)](https://github.com/jonahsnider/prettier-config-xo/actio

Usage no npm install needed!

<script type="module">
  import prettierConfigXo from 'https://cdn.skypack.dev/prettier-config-xo';
</script>

README

prettier-config-xo

npm Build Status XO code style codecov

Prettier config that follows the XO code style.

Usage

Default config

Add the prettier property to your package.json.

{
    "name": "my-cool-library",
    "version": "1.0.0",
    "prettier": "prettier-config-xo"
}

Extending the configuration

// prettier.config.js, or some other file
module.exports = {
    ...require('prettier-config-xo'),
    semi: false,
};

Spaces

You can use spaces instead of tabs with the space config:

module.exports = require('prettier-config-xo/space');