Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

.eslintrc.js 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. parser: '@typescript-eslint/parser',
  13. rules: {
  14. 'no-undef': 'off',
  15. 'no-use-before-define': 'off',
  16. '@typescript-eslint/ban-ts-comment': 'off',
  17. '@typescript-eslint/no-empty-function': 'off',
  18. '@typescript-eslint/ban-types': 'off',
  19. '@typescript-eslint/no-explicit-any': 'off',
  20. 'no-prototype-builtins': 'off',
  21. 'no-shadow': 'off',
  22. '@typescript-eslint/no-shadow': [ 'error' ],
  23. 'typescript-sort-keys/interface': 'error',
  24. 'typescript-sort-keys/string-enum': 'error'
  25. },
  26. 'plugins': [ '@typescript-eslint', 'typescript-sort-keys' ],
  27. 'extends': [
  28. 'plugin:@typescript-eslint/eslint-recommended',
  29. 'plugin:@typescript-eslint/recommended'
  30. ]
  31. }
  32. ],
  33. 'rules': {
  34. 'flowtype/no-types-missing-file-annotation': 0,
  35. // XXX remove this eventually.
  36. 'react/jsx-indent-props': 0
  37. },
  38. 'settings': {
  39. 'flowtype': {
  40. 'onlyFilesWithFlowAnnotation': true
  41. },
  42. 'react': {
  43. 'version': 'detect'
  44. }
  45. }
  46. };