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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. root: true
  2. extends:
  3. - eslint-config-airbnb-base
  4. - eslint:recommended
  5. ignorePatterns:
  6. - /web_src/js/vendor
  7. parserOptions:
  8. ecmaVersion: 2020
  9. env:
  10. browser: true
  11. es6: true
  12. jquery: true
  13. node: true
  14. globals:
  15. __webpack_public_path__: true
  16. CodeMirror: false
  17. Dropzone: false
  18. SimpleMDE: false
  19. u2fApi: false
  20. Tribute: false
  21. overrides:
  22. - files: ["web_src/**/*.worker.js", "web_src/js/serviceworker.js"]
  23. env:
  24. worker: true
  25. rules:
  26. no-restricted-globals: [0]
  27. rules:
  28. arrow-body-style: [0]
  29. arrow-parens: [2, always]
  30. camelcase: [0]
  31. comma-dangle: [2, only-multiline]
  32. consistent-return: [0]
  33. default-case: [0]
  34. func-names: [0]
  35. import/extensions: [2, always, {ignorePackages: true}]
  36. import/prefer-default-export: [0]
  37. max-len: [0]
  38. multiline-comment-style: [2, separate-lines]
  39. newline-per-chained-call: [0]
  40. no-alert: [0]
  41. no-cond-assign: [2, except-parens]
  42. no-console: [1, {allow: [info, warn, error]}]
  43. no-continue: [0]
  44. no-empty: [2, {allowEmptyCatch: true}]
  45. no-eq-null: [2]
  46. no-mixed-operators: [0]
  47. no-multi-assign: [0]
  48. no-new: [0]
  49. no-param-reassign: [0]
  50. no-plusplus: [0]
  51. no-restricted-syntax: [0]
  52. no-return-await: [0]
  53. no-shadow: [0]
  54. no-underscore-dangle: [0]
  55. no-unused-vars: [2, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, ignoreRestSiblings: true}]
  56. no-use-before-define: [0]
  57. no-var: [2]
  58. object-curly-newline: [0]
  59. object-curly-spacing: [2, never]
  60. one-var-declaration-per-line: [0]
  61. one-var: [0]
  62. operator-linebreak: [2, after]
  63. prefer-const: [2, {destructuring: all}]
  64. prefer-destructuring: [0]
  65. quotes: [2, single, {avoidEscape: true, allowTemplateLiterals: true}]
  66. radix: [2, as-needed]
  67. semi: [2, always, {omitLastInOneLineBlock: true}]