# sharec-editorconfig-hook

> Apply .editorconfig formatting for your configs

Latest version **1.0.2** (published 2022-04-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install sharec-editorconfig-hook
pnpm add sharec-editorconfig-hook
yarn add sharec-editorconfig-hook
bun add sharec-editorconfig-hook
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-04-17 |
| First published | 2022-04-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 8.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Konstantin Epishev |
| Maintainers | lamartire |

## Links

- npm: https://www.npmjs.com/package/sharec-editorconfig-hook
- Repository: https://github.com/sharecjs/sharec-editorconfig-hook
- Homepage: https://github.com/sharecjs/sharec-editorconfig-hook#readme
- Issues: https://github.com/sharecjs/sharec-editorconfig-hook/issues
- npm.io page: https://npm.io/package/sharec-editorconfig-hook

## Dependencies (3)

- [micromatch](https://npm.io/package/micromatch.md) ^4.0.5
- [editorconfig](https://npm.io/package/editorconfig.md) ^0.15.3
- [sharec-utils](https://npm.io/package/sharec-utils.md) ^3.1.0

## Recent versions

- 1.0.2 (latest) — 2022-04-17
- 1.0.1 — 2022-04-17
- 1.0.0 — 2022-04-16

## README

# `sharec-editorconfig-hook`

<img src="https://raw.githubusercontent.com/lamartire/sharec/d91504a64409b3f3db531a7bca749295a3b20d92/packages/sharec-docs/static/images/logo-alt.svg" alt="Sharec logo by Ivashkina Xenia <xeniaowl112@mail.ru>" align="right" width="100">

[![.github/workflows/main.yml](https://github.com/sharecjs/sharec-editorconfig-hook/workflows/.github/workflows/main.yml/badge.svg)](https://github.com/sharecjs/sharec-editorconfig-hook/actions)
[![npm](https://img.shields.io/npm/v/sharec-editorconfig-hook)](https://npmjs.com/sharec-editorconfig-hook)
![MIT License](https://camo.githubusercontent.com/4481c7672053be9c676fbc983c040ca59fddfa19/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f6c2f6c6f6775782d70726f636573736f722e737667)

Allows to format your [sharec](https://github.com/sharecjs/sharec) configs with `.editorconfig`.

## Usage

Install the hook:

```shell
npm i --save-dev sharec-editorconfig-hook
# or with yarn
yarn add -D sharec-editorconfig-hook
```

Create `.sharecrc.js` file in your project with following content:

```js
const editorconfigHook = require('sharec-editorconfig-hook')

module.exports = {
  afterMerge: editorconfigHook,
}
```

## How it works

The hook is looking for `.editorconfig` inside upcoming configs or inside a target project.

---
_Source: https://npm.io/package/sharec-editorconfig-hook · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
