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
:
const off = const config = rules: 'no-console': 'error' 'no-debugger': 'error' const offRules = // { semi: 'off', quotes: 'off' }Object moduleexports = config
API
fn(ruleIds)
rules
array ofruleId
s
Returns an object which has
properties named after each of the provided ruleId
s
and in which all of the values are 'off'
.