npm.io
3.0.0 • Published 1 month ago

prettier-config-xo

Licence
Apache-2.0
Version
3.0.0
Deps
0
Size
16 kB
Vulns
0
Weekly
0
Stars
3

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.mjs, or some other module
import xoConfig from 'prettier-config-xo';

export default {
	...xoConfig,
	semi: false,
};
Spaces

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

// prettier.config.mjs
export {default} from 'prettier-config-xo/space';

Keywords