1.0.2 • Published 3 years ago
sharec-editorconfig-hook v1.0.2
sharec-editorconfig-hook
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.