eslint-config-riophae

0.16.0 • Public • Published

eslint-config-riophae npm Build Known vulnerabilities

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": {
    // override if necessary
  }
}

License

MIT © Riophae Lee

Package Sidebar

Install

npm i eslint-config-riophae

Weekly Downloads

34

Version

0.16.0

License

MIT

Unpacked Size

33.6 kB

Total Files

28

Last publish

Collaborators

  • riophae