GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 8. März, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

.eslintrc.yml 1.72 KB
Newer Older
Lukas Eipert's avatar
Lukas Eipert committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
---
env:
  browser: true
  es6: true
extends:
  - airbnb-base
  - plugin:vue/recommended
globals:
  __webpack_public_path__: true
  gl: false
  gon: false
  localStorage: false
parserOptions:
  parser: babel-eslint
plugins:
  - filenames
  - import
  - html
  - promise
settings:
  html/html-extensions:
  - ".html"
  - ".html.raw"
  import/resolver:
    webpack:
      config: "./config/webpack.config.js"
rules:
  filenames/match-regex:
    - error
    - "^[a-z0-9_]+$"
  import/no-commonjs: error
  no-multiple-empty-lines:
    - error
    - max: 1
  promise/catch-or-return: error
  no-underscore-dangle:
    - error
    - allow:
      - __
      - _links
41
  no-mixed-operators: off
Lukas Eipert's avatar
Lukas Eipert committed
42 43 44 45 46 47 48 49 50
  vue/html-self-closing:
    - error
    - html:
        void: always
        normal: never
        component: always
      svg: always
      math: always
  ## Conflicting rules with prettier:
51 52 53 54 55 56
  space-before-function-paren: off
  curly: off
  arrow-parens: off
  function-paren-newline: off
  object-curly-newline: off
  padded-blocks: off
57
  # Disabled for now, to make the eslint 3 -> eslint 4 update smoother
Lukas Eipert's avatar
Lukas Eipert committed
58 59 60 61 62 63 64 65 66 67 68 69 70 71
  ## Indent rule. We are using the old for now: https://eslint.org/docs/user-guide/migrating-to-4.0.0#indent-rewrite
  indent: off
  indent-legacy:
    - error
    - 2
    - SwitchCase: 1
      VariableDeclarator: 1
      outerIIFEBody: 1
      FunctionDeclaration:
        parameters: 1
        body: 1
      FunctionExpression:
        parameters: 1
        body: 1
72 73
  ## Destructuring: https://eslint.org/docs/rules/prefer-destructuring
  prefer-destructuring: off
Lukas Eipert's avatar
Lukas Eipert committed
74
  ## no-restricted-globals: https://eslint.org/docs/rules/no-restricted-globals
Lukas Eipert's avatar
Lukas Eipert committed
75
  no-restricted-globals: off
Lukas Eipert's avatar
Lukas Eipert committed
76 77
  ## no-multi-assign: https://eslint.org/docs/rules/no-multi-assign
  no-multi-assign: off