You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.eslintrc.js 1.1KB

12345678910111213141516171819202122232425262728293031323334
  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. 'sourceType': 'module'
  17. },
  18. 'rules': {
  19. 'new-cap': [
  20. 'error',
  21. {
  22. 'capIsNew': false // Behave like JSHint's newcap.
  23. }
  24. ],
  25. // While it is considered a best practice to avoid using methods on
  26. // console in JavaScript that is designed to be executed in the browser
  27. // and ESLint includes the rule among its set of recommended rules, (1)
  28. // the general practice is to strip such calls before pushing to
  29. // production and (2) we prefer to utilize console in lib-jitsi-meet
  30. // (and jitsi-meet).
  31. 'no-console': 'off',
  32. 'semi': 'error'
  33. }
  34. };