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.

59 lines
1.4KB

  1. extends:
  2. - '@gitlab'
  3. - plugin:promise/recommended
  4. globals:
  5. __webpack_public_path__: true
  6. gl: false
  7. gon: false
  8. localStorage: false
  9. IS_EE: false
  10. plugins:
  11. - import
  12. - "@gitlab/i18n"
  13. - "@gitlab/vue-i18n"
  14. - no-jquery
  15. settings:
  16. import/resolver:
  17. webpack:
  18. config: './config/webpack.config.js'
  19. rules:
  20. "@gitlab/i18n/no-non-i18n-strings": error
  21. "@gitlab/vue-i18n/no-bare-strings": error
  22. "@gitlab/vue-i18n/no-bare-attribute-strings": error
  23. import/no-commonjs: error
  24. no-underscore-dangle:
  25. - error
  26. - allow:
  27. - __
  28. - _links
  29. # Disabled for now, to make the airbnb-base 12.1.0 -> 13.1.0 update smoother
  30. no-else-return:
  31. - error
  32. - allowElseIf: true
  33. import/no-unresolved:
  34. - error
  35. - ignore:
  36. # https://gitlab.com/gitlab-org/gitlab/issues/38226
  37. - '^ee_component/'
  38. import/no-useless-path-segments: off
  39. import/order: off
  40. lines-between-class-members: off
  41. # Disabled for now, to make the plugin-vue 4.5 -> 5.0 update smoother
  42. vue/no-confusing-v-for-v-if: error
  43. vue/no-unused-components: off
  44. vue/no-use-v-if-with-v-for: off
  45. vue/no-v-html: off
  46. vue/use-v-on-exact: off
  47. no-jquery/no-ajax: error
  48. no-jquery/no-ajax-events: error
  49. no-jquery/no-load: error
  50. no-jquery/no-load-shorthand: error
  51. no-jquery/no-serialize: error
  52. promise/always-return: off
  53. promise/no-callback-in-promise: off
  54. overrides:
  55. files:
  56. - '**/spec/**/*'
  57. rules:
  58. "@gitlab/i18n/no-non-i18n-strings": off