Read about our upcoming Code of Conduct on this issue

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