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 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. module.exports = {
  2. 'env': {
  3. 'browser': true,
  4. 'commonjs': true,
  5. 'es6': true
  6. },
  7. 'extends': [
  8. 'eslint:recommended',
  9. 'plugin:flowtype/recommended'
  10. ],
  11. 'globals': {
  12. // The globals that (1) are accessed but not defined within many of our
  13. // files, (2) are certainly defined, and (3) we would like to use
  14. // without explicitly specifying them (using a comment) inside of our
  15. // files.
  16. '__filename': false
  17. },
  18. 'parser': 'babel-eslint',
  19. 'parserOptions': {
  20. 'ecmaFeatures': {
  21. 'experimentalObjectRestSpread': true
  22. },
  23. 'sourceType': 'module'
  24. },
  25. 'plugins': [
  26. 'flowtype'
  27. ],
  28. 'rules': {
  29. 'new-cap': [
  30. 'error',
  31. {
  32. 'capIsNew': false // Behave like JSHint's newcap.
  33. }
  34. ],
  35. // While it is considered a best practice to avoid using methods on
  36. // console in JavaScript that is designed to be executed in the browser
  37. // and ESLint includes the rule among its set of recommended rules, (1)
  38. // the general practice is to strip such calls before pushing to
  39. // production and (2) we prefer to utilize console in lib-jitsi-meet
  40. // (and jitsi-meet).
  41. 'no-console': 'off',
  42. 'semi': 'error'
  43. }
  44. };