This package has been deprecated

Author message:

Value seems too low to maintain.

eslint-off-rules

1.0.0 • Public • Published

Build Status JavaScript Style Guide

eslint-off-rules

Returns an ESLint rules config object of all provided ruleIds set to "off".

Why?

Because you may like to ignore some rules.

How?

Example

.eslintrc.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)

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

Package Sidebar

Install

npm i eslint-off-rules

Weekly Downloads

10

Version

1.0.0

License

ISC

Last publish

Collaborators

  • mightyiam