You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
918 B

4 years ago
  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 };