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