https://github.com/sinonjs/eslint-config
Common eslint config for Sinon
https://github.com/sinonjs/eslint-config
eslint-config
Last synced: 13 days ago
JSON representation
Common eslint config for Sinon
- Host: GitHub
- URL: https://github.com/sinonjs/eslint-config
- Owner: sinonjs
- License: other
- Created: 2017-02-25T16:17:51.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2026-04-11T06:25:54.000Z (3 months ago)
- Last Synced: 2026-05-12T00:09:54.590Z (about 2 months ago)
- Topics: eslint-config
- Language: JavaScript
- Homepage:
- Size: 558 KB
- Stars: 3
- Watchers: 4
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Shared eslint config for Sinon
The [sharable eslint config][docs] 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
```bash
$ npm install @sinonjs/eslint-config --save-dev
```
The published package now expects a current Node LTS runtime:
`^20.19.0 || ^22.13.0 || >=24`.
Repository development also expects Node 20 or newer because the local
pre-commit tooling is on `lint-staged` 16.x.
## Usage
Add an `eslint.config.js` file to the project root:
```js
"use strict";
module.exports = require("@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](https://browserslist.dev/?q=PiAwLjUlLCBsYXN0IDIgdmVyc2lvbnMsIEZpcmVmb3ggRVNSLCBub3QgZGVhZCwgbm90IElFIDExLCBub3Qgb3BfbWluaSBhbGw%3D) to see what this translates to.
[docs]: https://eslint.org/docs/latest/extend/shareable-configs