ESLint config for Voyc
Shareable configs are designed to work with the extends
feature of eslint
files.
You can learn more about
shareable configs on the
official ESLint website.
This project uses node and npm.
Install the configuration as well as eslint
and prettier
$ npm install --save-dev @voyc-ai/eslint-config eslint prettier
Add this to your .eslintrc
file in the root of your project:
{
"extends": "@voyc-ai"
}
Then add the scripts to your package.json
:
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
[![voyc-eslint](https://img.shields.io/badge/ESLint-Voyc-%2343297B)](https://www.voyc.ai/)
- Fork it and create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am "Add some feature"
- Push to the branch:
git push origin my-new-feature
- Submit a pull request