.eslintrc.cjs 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. module.exports = {
  2. root: true,
  3. env: { browser: true, es2021: true, node: true },
  4. parserOptions: { ecmaVersion: 2020, sourceType: 'module', ecmaFeatures: { jsx: true } },
  5. plugins: ['header', 'react-hooks'],
  6. overrides: [
  7. {
  8. files: ['**/*.{js,jsx}'],
  9. rules: {
  10. 'header/header': [2, 'block', [
  11. '',
  12. 'Copyright (C) 2025 QuantumNous',
  13. '',
  14. 'This program is free software: you can redistribute it and/or modify',
  15. 'it under the terms of the GNU Affero General Public License as',
  16. 'published by the Free Software Foundation, either version 3 of the',
  17. 'License, or (at your option) any later version.',
  18. '',
  19. 'This program is distributed in the hope that it will be useful,',
  20. 'but WITHOUT ANY WARRANTY; without even the implied warranty of',
  21. 'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the',
  22. 'GNU Affero General Public License for more details.',
  23. '',
  24. 'You should have received a copy of the GNU Affero General Public License',
  25. 'along with this program. If not, see <https://www.gnu.org/licenses/>.',
  26. '',
  27. 'For commercial licensing, please contact support@quantumnous.com',
  28. ''
  29. ]],
  30. 'no-multiple-empty-lines': ['error', { max: 1 }]
  31. }
  32. }
  33. ]
  34. };