Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@sinonjs/eslint-config

sinonjs1.2kBSD-3-Clause5.0.3

Common eslint config for Sinon

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.

changelog

Changes

5.0.3

  • 0ae5053 Upgrade packages: eslint-plugin-compat blocking Eslint 9 (Carl-Erik Kopseng)

    Eslint-plugin-compat has not been maintained for 7 months. Version 9 of Eslint has long been out and a PR exists for fixing the compatibility. We might need to either fork or find something else. https://github.com/amilajack/eslint-plugin-compat/pull/609

Released by Carl-Erik Kopseng on 2024-04-25.

5.0.2

  • 9753796 chore: update browserslist (Morgan Roderick)

Released by Morgan Roderick on 2023-12-27.

5.0.1

  • c2ad115 Use Typescript flavored JSDoc (Carl-Erik Kopseng)

Released by Carl-Erik Kopseng on 2023-11-28.

5.0.0

  • eab78ee Upgrade packages to support Node >= 20 (Carl-Erik Kopseng)

Released by Carl-Erik Kopseng on 2023-11-28.

4.1.0

4.0.5

  • 2b0f92b Upgrade dependencies (Carl-Erik Kopseng)
  • 097f653 Target all extensions matching .test. and -test. (Carl-Erik Kopseng)

    Fixes an issue where .mjs test files were not checked with this config.

Released by Carl-Erik Kopseng on 2022-01-28.

4.0.4

Released by Morgan Roderick on 2021-07-08.

4.0.3

Released by Morgan Roderick on 2021-05-29.

4.0.2

  • 9874e52 disable arrow-parens (Carl-Erik Kopseng)

Released by Carl-Erik Kopseng on 2021-05-11.

4.0.1

  • 166b2bb Include .browserlistrc in included files (Carl-Erik Kopseng)

    See sinonjs/sinon#2366

    Makes it possible to reuse it.

Released by Morgan Roderick on 2021-05-04.

4.0.0

Released by Morgan Roderick on 2021-03-12.