.eslintrc.cjs 1.4 KB

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