Eslint + Prettier + Vetur shareable config
A shareable eslint + prettier config
Prerequisites
This project requires NodeJS (version 16 or later) and Yarn.
Node and Yarn are really easy to install.
To make sure you have them available on your machine,
try running the following command.
$ yarn -v && node -v
1.22.5
v16.4.2
Table of contents
Installation
To install and set up the library, run:
$ npm install --save-dev @hstech/vetur-lint
Or if you prefer using Yarn:
$ yarn add --dev @hstech/vetur-lint
Usage
Eslint
Reference it in your package.json:
{
"eslintConfig": {
"extends": "./node_modules/@hstech/vetur-lint/.eslintrc"
}
}
Prettier
Sharing a Prettier configuration is simple: just publish a module that exports a configuration object, say @hstech/vetur-lint, and reference it in your package.json:
{
"prettier": "@hstech/vetur-lint"
}
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Add your changes:
git add .
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :sunglasses:
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
License
MIT License © Andrea SonnY