@wonize/editorconfig
Version:
Editorconfig configuration for Wonize packages
87 lines (61 loc) • 2.33 kB
Markdown
<div align="center">
[![BANNER][BANNER]][HOMEPAGE]
<br/>
![version][VERSION_BADGE]
![MIT License][LICENSE_BADGE]
</div>
## Installation
[![npm][INSTALLATION_NPM_BADGE]][INSTALLATION_NPM]
[![Yarn][INSTALLATION_YARN_BADGE]][INSTALLATION_YARN]
[![pnpm][INSTALLATION_PNPM_BADGE]][INSTALLATION_PNPM]
[![bun][INSTALLATION_BUN_BADGE]][INSTALLATION_BUN]
[![deno][INSTALLATION_DENO_BADGE]][INSTALLATION_DENO]
### npm :
```sh
$ npm install --save-dev @wonize/editorconfig editorconfig
```
### yarn :
```sh
$ yarn add --dev @wonize/editorconfig editorconfig
```
### pnpm :
```sh
$ pnpm add --save-dev @wonize/editorconfig editorconfig
```
### Bun :
```sh
$ bun add --dev @wonize/editorconfig editorconfig
```
## Usage
to add `.editorconfig` to project, first change work directory to target directory:
```sh
$ cd [PROJECT DIRECTORY]
```
then execute one of below command by option:
### npm :
```sh
$ npx w-editorconfig .
```
### yarn :
```sh
$ yarn dlx w-editorconfig .
```
### pnpm :
```sh
$ pnpm dlx w-editorconfig .
```
<!-- URL -->
[BANNER]: https://raw.githubusercontent.com/wonize/foundation/main/editorconfig/assets/editorconfig.png
[HOMEPAGE]: https://github.com/wonize/foundation/tree/main/editorconfig
[INSTALLATION_NPM_BADGE]: https://img.shields.io/static/v1?style=for-the-badge&message=npm&color=CB3837&logo=npm&logoColor=FFFFFF&label=
[INSTALLATION_YARN_BADGE]: https://img.shields.io/static/v1?style=for-the-badge&message=Yarn&color=2C8EBB&logo=Yarn&logoColor=FFFFFF&label=
[INSTALLATION_PNPM_BADGE]: https://img.shields.io/static/v1?style=for-the-badge&message=pnpm&color=FF6C37&logo=pnpm&logoColor=FFFFFF&label=
[INSTALLATION_BUN_BADGE]: https://img.shields.io/static/v1?style=for-the-badge&message=bun&color=E2BD8C&logo=bun&logoColor=FFFFFF&label=
[INSTALLATION_DENO_BADGE]: https://img.shields.io/static/v1?style=for-the-badge&message=deno&color=323232&logo=deno&logoColor=FFFFFF&label=
[INSTALLATION_NPM]: #npm-
[INSTALLATION_YARN]: #yarn-
[INSTALLATION_PNPM]: #pnpm-
[INSTALLATION_BUN]: #bun-
[INSTALLATION_DENO]: https://deno.land/manual@v1.36.4/examples/manage_dependencies
[VERSION_BADGE]: https://img.shields.io/npm/v/@wonize/editorconfig?color=00273F&label=VERSION&style=flat-square
[LICENSE_BADGE]: https://img.shields.io/npm/l/@wonize/editorconfig?color=00273F&label=LICENSE&style=flat-square