github-pages-deploy-action/node_modules/eslint/conf/eslint-all.js

32 lines
918 B
JavaScript
Raw Normal View History

2020-03-07 11:45:40 +08:00
/**
* @fileoverview Config to enable all rules.
* @author Robert Fletcher
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
2020-03-31 20:40:00 +08:00
const builtInRules = require("../lib/rules");
2020-03-07 11:45:40 +08:00
//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
2020-03-31 20:40:00 +08:00
const allRules = {};
for (const [ruleId, rule] of builtInRules) {
if (!rule.meta.deprecated) {
allRules[ruleId] = "error";
2020-03-07 11:45:40 +08:00
}
2020-03-31 20:40:00 +08:00
}
2020-03-07 11:45:40 +08:00
//------------------------------------------------------------------------------
// Public Interface
//------------------------------------------------------------------------------
2020-03-31 20:40:00 +08:00
/** @type {import("../lib/shared/types").ConfigData} */
module.exports = { rules: allRules };