aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc
blob: 76e6f8c48dfa30a6e710db671e51a6313f321a26 (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
root: true

extends:
  - eslint-config-airbnb-base
  - eslint:recommended

ignorePatterns:
  - /web_src/js/vendor

parserOptions:
  ecmaVersion: 2020

env:
  browser: true
  es6: true
  jquery: true
  node: true

globals:
  __webpack_public_path__: true
  CodeMirror: false
  Dropzone: false
  emojify: false
  SimpleMDE: false
  u2fApi: false

rules:
  arrow-body-style: [0]
  arrow-parens: [2, always]
  camelcase: [0]
  comma-dangle: [2, only-multiline]
  consistent-return: [0]
  default-case: [0]
  func-names: [0]
  import/extensions: [2, always, {ignorePackages: true}]
  import/prefer-default-export: [0]
  max-len: [0]
  multiline-comment-style: [2, separate-lines]
  newline-per-chained-call: [0]
  no-alert: [0]
  no-cond-assign: [2, except-parens]
  no-console: [1, {allow: [info, warn, error]}]
  no-continue: [0]
  no-eq-null: [2]
  no-mixed-operators: [0]
  no-multi-assign: [0]
  no-new: [0]
  no-param-reassign: [0]
  no-plusplus: [0]
  no-restricted-syntax: [0]
  no-shadow: [0]
  no-unused-vars: [2, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, ignoreRestSiblings: true}]
  no-use-before-define: [0]
  no-var: [2]
  object-curly-spacing: [2, never]
  one-var-declaration-per-line: [0]
  one-var: [0]
  operator-linebreak: [2, after]
  prefer-const: [2, {destructuring: all}]
  prefer-destructuring: [0]
  quotes: [2, single, {avoidEscape: true, allowTemplateLiterals: true}]
  radix: [2, as-needed]
  semi: [2, always, {omitLastInOneLineBlock: true}]