Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

.eslintrc.js 1.1KB

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