flags.js 674 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * @fileoverview Shared flags for ESLint.
  3. */
  4. "use strict";
  5. /**
  6. * The set of flags that change ESLint behavior with a description.
  7. * @type {Map<string, string>}
  8. */
  9. const activeFlags = new Map([
  10. ["test_only", "Used only for testing."],
  11. ["unstable_config_lookup_from_file", "Look up eslint.config.js from the file being linted."],
  12. ["unstable_ts_config", "Enable TypeScript configuration files."]
  13. ]);
  14. /**
  15. * The set of flags that used to be active but no longer have an effect.
  16. * @type {Map<string, string>}
  17. */
  18. const inactiveFlags = new Map([
  19. ["test_only_old", "Used only for testing."]
  20. ]);
  21. module.exports = {
  22. activeFlags,
  23. inactiveFlags
  24. };