@sinonjs/eslint-config

Common eslint config for Sinon

Usage no npm install needed!

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

README

Shared eslint config for Sinon

The sharable eslint config for all Sinon.JS projects.

The package includes all the dependencies to have a working eslint setup that works with the configuration. Adopting projects will only need to install @sinonjs/eslint-config.

Install

$ npm install @sinonjs/eslint-config --save-dev

Usage

Add this to the package.json:

{
  "eslintConfig": {
    "extends": "@sinonjs/eslint-config"
  }
}

Create a .browserslistrc in the root of the project

> 0.5%
last 2 versions
Firefox ESR
not dead
not IE 11
not op_mini all
maintained node versions

Visit browserslist.dev to see what this translates to.