eslint-config-riophae
The customized ESLint shareable configs for the development of my open-source projects.
Usage
First, install this package and its peer dependencies. The command to run is depending on your npm version.
npm Version | Command | Notes |
---|
v7 or later | npm install --save-dev eslint-config-riophae | npm will automatically install peer deps for you. |
prior to v6 | npm install --save-dev eslint eslint-plugin-node eslint-plugin-unicorn eslint-plugin-import eslint-config-riophae | |
Secondly, choose a preset from the following:
Preset Name | Description | Notes |
---|
riophae | For linting ES6+. | |
riophae/vue-v3 for Vue 3 | For linting ES6+ & .vue files. | Install one more dependency:
eslint-plugin-vue |
riophae/vue-v2 for Vue 2 |
riophae/legacy | For linting ES5. | |
Thirdly and lastly, add the preset you just chose to your ESLint config file in the extends
field:
{
"extends": [ "riophae" ],
"rules": {
}
}
License
MIT © Riophae Lee