2.0.0 • Published 2 years ago
@form8ion/prettier v2.0.0
prettier
form8ion plugin for projects that manage code style with prettier
Table of Contents
Features
- Configures prettier in the scaffolded project to extend the provided shareable config
- Installs the provided shareable config
- Installs the related eslint config and configures eslint to use it
Notes
- prettier will only be configured if a config scope is defined
- the shareable config is expected to define a dependency on
prettier
, so the scaffolded project will not be configured to depend directly onprettier
- the pretter and eslint config names are defined by convention, so packages
that are named as
@<your-scope>/prettier-config
and@<your-scope>/eslint-config-prettier
are expected to exist
Usage
Installation
$ npm install @form8ion/prettier --save-prod
Example
Import
import {scaffold} from '@form8ion/prettier';
Execute
(async () => {
await scaffold({projectRoot: process.cwd(), config: {scope: '@foo'}});
})();
Contributing
Dependencies
$ nvm install
$ npm install
Verification
$ npm test
2.0.0
2 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
1.0.0-alpha.7
3 years ago
1.0.0-alpha.6
3 years ago
1.0.0-alpha.5
3 years ago
1.0.0-alpha.4
3 years ago
1.0.0-alpha.3
3 years ago
1.0.0-alpha.2
3 years ago
1.0.0-alpha.1
3 years ago