summaryrefslogtreecommitdiff
path: root/themes/terminal/.eslintrc.yml
blob: d6c937dbb673ede6773a888d9842131c0779c2bb (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
---

env:
  es6: true

extends:
  # https://github.com/airbnb/javascript
  - airbnb
  - eslint:recommended
  - prettier

parser: babel-eslint

rules:
  # best practices
  arrow-parens:
    - 2
    - as-needed
  semi:
    - 2
    - never
  class-methods-use-this: 0
  comma-dangle:
    - 2
    - always-multiline
  no-console:
    - 2
  no-unused-expressions: 0
  no-param-reassign:
    - 2
    - props: false
  no-useless-escape: 0
  func-names: 0
  quotes:
    - 2
    - single
    - allowTemplateLiterals: true
  no-underscore-dangle: 0
  object-curly-newline: 0
  function-paren-newline: 0
  operator-linebreak:
    - 2
    - after
  no-unused-vars:
    - 2
    - argsIgnorePattern: "^_"
  # jsx a11y
  jsx-a11y/no-static-element-interactions: 0
  jsx-a11y/anchor-is-valid:
    - 2
    - specialLink:
        - to

globals:
  document: true
  requestAnimationFrame: true
  window: true
  self: true
  fetch: true
  Headers: true