Нет описания

.eslintrc.json 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {
  2. "root": true,
  3. "extends": "../.eslintrc-browser.json",
  4. "env": {
  5. // In source the browser env is not enabled but unit tests rely on them
  6. // too much and we don't run them in non-browser environments anyway.
  7. "browser": true
  8. },
  9. "globals": {
  10. "require": false,
  11. "Promise": false,
  12. "Symbol": false,
  13. "QUnit": false,
  14. "ajaxTest": false,
  15. "testIframe": false,
  16. "createDashboardXML": false,
  17. "createXMLFragment": false,
  18. "moduleTeardown": false,
  19. "url": false,
  20. "q": false,
  21. "jQuery": true,
  22. "sinon": true,
  23. "amdDefined": true,
  24. "fireNative": true,
  25. "Globals": true,
  26. "hasPHP": true,
  27. "isLocal": true,
  28. "supportjQuery": true,
  29. "originaljQuery": true,
  30. "$": true,
  31. "original$": true,
  32. "baseURL": true,
  33. "externalHost": true
  34. },
  35. "rules": {
  36. // See https://github.com/eslint/eslint/issues/2342
  37. "no-unused-vars": "off",
  38. // Too many errors
  39. "max-len": "off",
  40. "brace-style": "off",
  41. "key-spacing": "off",
  42. "camelcase": "off",
  43. "one-var": "off",
  44. "strict": "off",
  45. // Not really too many - waiting for autofix features for these rules
  46. "lines-around-comment": "off",
  47. "dot-notation": "off"
  48. },
  49. "overrides": [
  50. {
  51. "files": [
  52. "data/core/jquery-iterability-transpiled-es6.js",
  53. "data/testinit-jsdom.js"
  54. ],
  55. "parserOptions": {
  56. "ecmaVersion": 2015
  57. }
  58. }
  59. ]
  60. }