1.0.2 • Published 8 years ago
eslint-failing-rules-off-config v1.0.2
eslint-failing-rules-off-config
Returns an ESLint config rules
object with all the failing rules "off".
Usage
Example
const { writeFileSync } = require('fs')
const offConfig = require('eslint-failing-rules-off-config')
const eslint = require('eslint')
const config = {
rules: offConfig(eslint, ['**/*.js'])
}
writeFileSync('.eslintrc.json', JSON.stringify(config))
API
fn(eslint, files)
eslint
: Whateslint@^3
exportsfiles
: Same as input forexecuteOnFiles
Checks for failing rules using eslint-failing-rules.
Returns an ESLint config rules
object which has all of the failing rules set to "off".