# eslint-off-rules

> Returns an ESLint rules config object of all provided `ruleId`s set to "off"

Latest version **1.0.0** (published 2016-12-03) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install eslint-off-rules
pnpm add eslint-off-rules
yarn add eslint-off-rules
bun add eslint-off-rules
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-12-03 |
| First published | 2016-12-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Shahar Or |
| Maintainers | mightyiam |
| Keywords | eslint, off, ignore, rules, config |

## Links

- npm: https://www.npmjs.com/package/eslint-off-rules
- Repository: https://github.com/mightyiam/eslint-off-rules
- Homepage: https://github.com/mightyiam/eslint-off-rules#readme
- Issues: https://github.com/mightyiam/eslint-off-rules/issues
- npm.io page: https://npm.io/package/eslint-off-rules

## 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
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-12-03

## README

[![Build Status](https://travis-ci.org/mightyiam/eslint-off-rules.svg?branch=master)](https://travis-ci.org/mightyiam/eslint-off-rules)
[![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)

# eslint-off-rules

Returns an ESLint rules config object of all provided `ruleId`s set to "off".

## Why?

Because you may like to ignore some rules.

## How?

### Example

`.eslintrc.js`:
```js
const off = require('eslint-off-rules')

const config = {
  rules: {
    'no-console': 'error',
    'no-debugger': 'error'
  }
}

const offRules = off(['semi', 'quotes']) // { semi: 'off', quotes: 'off' }
Object.assign(config.rules, offRules)

module.exports = config
```

### API

#### fn(ruleIds)

- `rules`
  array of [`ruleId`s](http://eslint.org/docs/rules/)

Returns an object which has
properties named after each of the provided `ruleId`s
and in which all of the values are `'off'`.

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