Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

.eslintrc.js 906B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // .eslintrc.js
  2. module.exports = {
  3. extends: [require.resolve('umi/eslint'), 'plugin:react-hooks/recommended'],
  4. plugins: ['check-file'],
  5. rules: {
  6. '@typescript-eslint/no-use-before-define': [
  7. 'warn',
  8. {
  9. functions: false,
  10. variables: true,
  11. },
  12. ],
  13. 'check-file/filename-naming-convention': [
  14. 'error',
  15. {
  16. '**/*.{jsx,tsx}': 'KEBAB_CASE',
  17. '**/*.{js,ts}': 'KEBAB_CASE',
  18. },
  19. ],
  20. 'check-file/folder-naming-convention': [
  21. 'error',
  22. {
  23. 'src/**/': 'KEBAB_CASE',
  24. 'mocks/*/': 'KEBAB_CASE',
  25. },
  26. ],
  27. 'react/no-unescaped-entities': [
  28. 'warn',
  29. {
  30. forbid: [
  31. {
  32. char: "'",
  33. alternatives: [''', '''],
  34. },
  35. {
  36. char: '"',
  37. alternatives: ['"', '"'],
  38. },
  39. ],
  40. },
  41. ],
  42. },
  43. };