Fuel Web UI
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.yaml 1.2KB

1234567891011121314151617181920212223242526272829303132333435
  1. ---
  2. root: true
  3. extends: openstack
  4. rules:
  5. # disabled rules from openstack config
  6. no-extra-parens: 0 # extra parens are preferred with JSX
  7. no-warning-comments: 0 # we're ok with FIXMEs
  8. no-process-env: 0 # we use it in a few places and are ok with it
  9. # overridden rules from openstack config
  10. curly: [2, multi-line, consistent] # openstack config uses 'all' mode, but we're ok with braceless one-liners
  11. no-empty: [2, {allowEmptyCatch: true}] # we use empty blocks with try-catch
  12. operator-linebreak: [2, after, {overrides: {'?': ignore, ':': ignore}}] # disabled for ternary operator due to its heavy use in JSX
  13. # extra rules
  14. no-unexpected-multiline: 2
  15. dot-location: [2, property]
  16. yoda: 2
  17. no-undef: 2
  18. array-bracket-spacing: 2
  19. comma-spacing: 2
  20. id-match: [2, '^([A-Za-z\d_$]+)$', {properties: true}]
  21. key-spacing: 2
  22. keyword-spacing: 2
  23. new-cap: [2, {newIsCap: true, capIsNew: false}]
  24. no-array-constructor: 2
  25. no-lonely-if: 2
  26. no-new-object: 2
  27. no-spaced-func: 2
  28. object-curly-spacing: 2
  29. padded-blocks: [2, never]
  30. quotes: [2, single, avoid-escape]
  31. space-before-function-paren: [2, never]
  32. env:
  33. node: true