30 lines
929 B
JavaScript
30 lines
929 B
JavaScript
|
/**
|
||
|
* @fileoverview Config to enable all rules.
|
||
|
* @author Robert Fletcher
|
||
|
*/
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
//------------------------------------------------------------------------------
|
||
|
// Requirements
|
||
|
//------------------------------------------------------------------------------
|
||
|
|
||
|
const builtInRules = require("../lib/built-in-rules-index");
|
||
|
|
||
|
//------------------------------------------------------------------------------
|
||
|
// Helpers
|
||
|
//------------------------------------------------------------------------------
|
||
|
|
||
|
const enabledRules = Object.keys(builtInRules).reduce((result, ruleId) => {
|
||
|
if (!builtInRules[ruleId].meta.deprecated) {
|
||
|
result[ruleId] = "error";
|
||
|
}
|
||
|
return result;
|
||
|
}, {});
|
||
|
|
||
|
//------------------------------------------------------------------------------
|
||
|
// Public Interface
|
||
|
//------------------------------------------------------------------------------
|
||
|
|
||
|
module.exports = { rules: enabledRules };
|