eslint-all.js 918 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * @fileoverview Config to enable all rules.
  3. * @author Robert Fletcher
  4. */
  5. "use strict";
  6. //------------------------------------------------------------------------------
  7. // Requirements
  8. //------------------------------------------------------------------------------
  9. const builtInRules = require("../lib/rules");
  10. //------------------------------------------------------------------------------
  11. // Helpers
  12. //------------------------------------------------------------------------------
  13. const allRules = {};
  14. for (const [ruleId, rule] of builtInRules) {
  15. if (!rule.meta.deprecated) {
  16. allRules[ruleId] = "error";
  17. }
  18. }
  19. //------------------------------------------------------------------------------
  20. // Public Interface
  21. //------------------------------------------------------------------------------
  22. /** @type {import("../lib/shared/types").ConfigData} */
  23. module.exports = { rules: allRules };