1.0.2 • Published 3 years ago

sharec-editorconfig-hook v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

sharec-editorconfig-hook

.github/workflows/main.yml npm MIT License

Allows to format your sharec configs with .editorconfig.

Usage

Install the hook:

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:

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.