.eslintrc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. "extends": "eslint:recommended",
  3. "parserOptions": {
  4. "ecmaVersion": 6,
  5. "sourceType": "module"
  6. },
  7. "env": {
  8. "browser": true
  9. },
  10. "rules": {
  11. "no-console": 0,
  12. "no-extra-parens": 1,
  13. "block-scoped-var": 1,
  14. "curly": 1,
  15. "eqeqeq": 1,
  16. "no-global-assign": 1,
  17. "no-implicit-globals": 1,
  18. "no-labels": 1,
  19. "no-multi-str": 1,
  20. "comma-spacing": 1,
  21. "comma-style": 1,
  22. "func-call-spacing": 1,
  23. "indent": 1,
  24. "keyword-spacing": 1,
  25. "linebreak-style": 1,
  26. "lines-around-comment": 1,
  27. "no-multiple-empty-lines": 1,
  28. "space-infix-ops": 1,
  29. "arrow-spacing": 1,
  30. "no-var": 1,
  31. "prefer-const": 1,
  32. "no-unsafe-negation": 1,
  33. "array-callback-return": 1,
  34. "dot-location": 1,
  35. "dot-notation": 1,
  36. "no-eval": 1,
  37. "no-extend-native": 1,
  38. "no-extra-label": 1,
  39. "semi": 1,
  40. "space-before-blocks": 1,
  41. "space-before-function-paren": 1,
  42. "space-in-parens": 1,
  43. "space-unary-ops": 1,
  44. "spaced-comment": 1,
  45. "arrow-body-style": 1,
  46. "arrow-parens": 1,
  47. "no-restricted-imports": 1,
  48. "no-duplicate-imports": 1,
  49. "no-useless-computed-key": 1,
  50. "no-useless-rename": 1,
  51. "rest-spread-spacing": 1,
  52. "no-trailing-spaces": 1,
  53. "quotes": [1, "single"]
  54. },
  55. "globals": {
  56. "require": false,
  57. "module": false,
  58. "Hls": false,
  59. "flvjs": false,
  60. "dashjs": false,
  61. "WebTorrent": false
  62. }
  63. }