mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-11-25 17:06:52 +01:00
32 lines
918 B
JavaScript
32 lines
918 B
JavaScript
|
/**
|
||
|
* @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 };
|