Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

.eslintrc.js 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. module.exports = {
  2. 'extends': [
  3. '../.eslintrc.js',
  4. '@jitsi/eslint-config/flow',
  5. '@jitsi/eslint-config/jsdoc',
  6. '@jitsi/eslint-config/react',
  7. '.eslintrc-react-native.js'
  8. ],
  9. 'overrides': [
  10. {
  11. 'files': [ '*.ts', '*.tsx' ],
  12. extends: [ '@jitsi/eslint-config/typescript' ],
  13. parserOptions: {
  14. sourceType: 'module',
  15. project: [ './tsconfig.web.json', './tsconfig.native.json' ]
  16. },
  17. rules: {
  18. '@typescript-eslint/naming-convention': [
  19. 'error',
  20. {
  21. 'selector': 'interface',
  22. 'format': [ 'PascalCase' ],
  23. 'custom': {
  24. 'regex': '^I[A-Z]',
  25. 'match': true
  26. }
  27. }
  28. ]
  29. }
  30. }
  31. ],
  32. 'rules': {
  33. 'flowtype/no-types-missing-file-annotation': 0,
  34. // XXX remove this eventually.
  35. 'react/jsx-indent-props': 0
  36. },
  37. 'settings': {
  38. 'flowtype': {
  39. 'onlyFilesWithFlowAnnotation': true
  40. },
  41. 'react': {
  42. 'version': 'detect'
  43. }
  44. }
  45. };