index.js 733 B

12345678910111213141516171819
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. /**
  3. * @fileoverview Collection of Zammad rules for Eslint.
  4. * @author Martin Gruner
  5. */
  6. //------------------------------------------------------------------------------
  7. // Requirements
  8. //------------------------------------------------------------------------------
  9. // eslint-disable-next-line @typescript-eslint/no-require-imports
  10. const requireIndex = require('requireindex')
  11. //------------------------------------------------------------------------------
  12. // Plugin Definition
  13. //------------------------------------------------------------------------------
  14. // import all rules in lib/rules
  15. module.exports.rules = requireIndex(`${__dirname}/rules`)