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.2KB

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