Selfpub's base JS ESLint config.

Usage no npm install needed!

<script type="module">
  import selfpubEslintConfig from 'https://cdn.skypack.dev/@selfpub/eslint-config';



NpmLicense NPM version

Selfpub’s config for eslint.


Install this package, as well as the parts of Babel you wish to use:

With Yarn

$ yarn add  --dev --exact eslint @selfpub/eslint-config

With npm

npm install eslint @selfpub/eslint-config --save-dev --save-exact


Via .eslintrc (Recommended)

Then, in your Eslint configuration, extend your eslint config you’d like:

  "extends": "@selfpub/eslint-config"

A few ESLint plugins are supported as well:

  • [eslint-plugin-flowtype]
  • [eslint-plugin-react]
  • [eslint-plugin-standard]
  • [eslint-plugin-unicorn]

Add extra exclusions for the plugins you use like so:

  "extends": [