You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
918 B
32 lines
918 B
2 years ago
|
/**
|
||
|
* @fileoverview Config to enable all rules.
|
||
|
* @author Robert Fletcher
|
||
|
*/
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
//------------------------------------------------------------------------------
|
||
|
// Requirements
|
||
|
//------------------------------------------------------------------------------
|
||
|
|
||
|
const builtInRules = require("../lib/rules");
|
||
|
|
||
|
//------------------------------------------------------------------------------
|
||
|
// Helpers
|
||
|
//------------------------------------------------------------------------------
|
||
|
|
||
|
const allRules = {};
|
||
|
|
||
|
for (const [ruleId, rule] of builtInRules) {
|
||
|
if (!rule.meta.deprecated) {
|
||
|
allRules[ruleId] = "error";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//------------------------------------------------------------------------------
|
||
|
// Public Interface
|
||
|
//------------------------------------------------------------------------------
|
||
|
|
||
|
/** @type {import("../lib/shared/types").ConfigData} */
|
||
|
module.exports = { rules: allRules };
|