# @opencover/eslint-config-opencover

> ESLint Typescript shareable config for OpenCover's coding style.

Latest version **2.0.5** (published 2024-12-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @opencover/eslint-config-opencover
pnpm add @opencover/eslint-config-opencover
yarn add @opencover/eslint-config-opencover
bun add @opencover/eslint-config-opencover
```

## Health

**Score 40/100 (D)** — status: stable.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 2.0.5 |
| Published | 2024-12-11 |
| First published | 2023-02-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=16.0.0 |
| Dependencies | 12 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Thanos Diamantidis |
| Maintainers | thanos-opencover |
| Keywords | eslint, eslintrc, eslintconfig, config, styleguide, react, node |

## Links

- npm: https://www.npmjs.com/package/@opencover/eslint-config-opencover
- Repository: https://github.com/GeltFinance/eslint-config-opencover
- Homepage: https://github.com/GeltFinance/eslint-config-opencover#readme
- Issues: https://github.com/GeltFinance/eslint-config-opencover/issues
- npm.io page: https://npm.io/package/@opencover/eslint-config-opencover

## Dependencies (12)

- [prettier](https://npm.io/package/prettier.md) ^2.7.1
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.31.10
- [eslint-config-airbnb](https://npm.io/package/eslint-config-airbnb.md) ^19.0.4
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.26.0
- [eslint-plugin-unicorn](https://npm.io/package/eslint-plugin-unicorn.md) ^45.0.2
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^8.5.0
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) ^6.6.1
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^4.2.1
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^5.42.1
- [eslint-plugin-react-hooks](https://npm.io/package/eslint-plugin-react-hooks.md) ^4.6.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^5.42.1
- [eslint-import-resolver-typescript](https://npm.io/package/eslint-import-resolver-typescript.md) ^3.5.2

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 2.0.5 (latest) — 2024-12-11
- 2.0.4 — 2024-10-24
- 2.0.3 — 2024-10-22
- 2.0.2 — 2023-09-05
- 2.0.1 — 2023-09-05
- 2.0.0 — 2023-09-05
- 1.1.0 — 2023-09-05
- 1.0.1 — 2023-02-13

## README

# eslint-config-opencover

> ESLint Typescript shareable config for OpenCover's coding style

## Install

> Make sure you have already installed `eslint` and `typescript` as they are required packages.

```console
yarn add -D eslint-config-opencover
```

Then, add this to your `.eslintrc.js`:

```js
module.exports = {
	extends: "@opencover/eslint-config-opencover",
	rules: {
		// your overrides
	},
};
```

### Usage for React

Adjust your `.eslintrc.js` like this:

```js
module.exports = {
	extends: "@opencover/eslint-config-opencover/with-react",
	rules: {
		// your overrides
	},
};
```

### Add to .eslintignore certain files, for example:

```
*.css
*.svg
```

### (Optional) Add .prettierc.json with this preferred configuration

```
{
    "printWidth": 100,
    "trailingComma": "es5",
    "tabWidth": 4,
    "semi": true,
    "singleQuote": true
}
```


### (Optional) Linting with vscode

If you are using vscode this `.vscode/settings.json` file may come in handy:

```
{
    "editor.defaultFormatter": "dbaeumer.vscode-eslint",
    "editor.formatOnSave": true,
    "eslint.alwaysShowStatus": true,
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
    "editor.rulers": [100]
}
```

---
_Source: https://npm.io/package/@opencover/eslint-config-opencover · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
