mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
33 lines
973 B
JavaScript
33 lines
973 B
JavaScript
/**
|
|
* @fileoverview Config to enable all rules.
|
|
* @author Robert Fletcher
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
//------------------------------------------------------------------------------
|
|
// Requirements
|
|
//------------------------------------------------------------------------------
|
|
|
|
// FIXME: "../lib/rules" doesn't exist in this package
|
|
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 };
|