mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
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 };
|