# eslint-plugin-morecompat

> Checks built-in objects compatibility

Latest version **0.0.5** (published 2022-12-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-morecompat
pnpm add eslint-plugin-morecompat
yarn add eslint-plugin-morecompat
bun add eslint-plugin-morecompat
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2022-12-20 |
| First published | 2022-12-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 5 |
| Unpacked size | 35.4 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 6 |
| Author | qgz |
| Maintainers | guozhao.qi |
| Keywords | eslint, eslintplugin, eslint-plugin |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-morecompat
- Repository: https://github.com/instea/eslint-plugin-builtin-compat
- Homepage: https://github.com/instea/eslint-plugin-builtin-compat#readme
- Issues: https://github.com/instea/eslint-plugin-builtin-compat/issues
- npm.io page: https://npm.io/package/eslint-plugin-morecompat

## Dependencies (5)

- [lodash](https://npm.io/package/lodash.md) ^4.17.5
- [semver](https://npm.io/package/semver.md) ^5.5.0
- [browserslist](https://npm.io/package/browserslist.md) ^3.2.4
- [requireindex](https://npm.io/package/requireindex.md) ~1.1.0
- [@mdn/browser-compat-data](https://npm.io/package/@mdn/browser-compat-data.md) ^5.2.22

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2022-12-20
- 0.0.2 — 2022-12-19

## README

# eslint-plugin-builtin-compat

Checks built-in methods compatibility.
It uses [browser-compat-data](https://github.com/mdn/browser-compat-data) to determine incompatible method calls.

## Installation

You'll first need to install [ESLint](http://eslint.org):

```
$ npm i eslint --save-dev
```

Next, install `eslint-plugin-builtin-compat`:

```
$ npm install eslint-plugin-builtin-compat --save-dev
```

**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-builtin-compat` globally.

## Usage

Add `builtin-compat` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
  "plugins": ["builtin-compat"]
}
```

Then configure the rules you want to use under the rules section.

```json
{
  "rules": {
    "builtin-compat/no-incompatible-builtins": 2
  }
}
```

You can ignore certain built-ins, usually after adding a polyfill:

```json
{
  "settings": {
    "builtin-compat-ignore": ["assign", "startsWith"]
  }
}
```

Configure supported browsers in `package.json` (see [browserslist](https://github.com/browserslist/browserslist)):

```json
{
  "browserslist": ["last 1 versions", "not ie <= 8"]
}
```

## Contributing

Contributions are welcome! Just open an issues with any idea or pull-request if it is no-brainer. Make sure all tests and linting rules pass.

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