File: .eslintrc

package info (click to toggle)
murano-dashboard 1%3A10.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,620 kB
  • sloc: python: 15,632; javascript: 1,627; sh: 106; makefile: 38
file content (62 lines) | stat: -rw-r--r-- 1,562 bytes parent folder | download | duplicates (3)
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
# For a detailed list of all options please see here:
# http://eslint.org/docs/configuring/

extends: openstack

env:
# Use jquery global variables
  jquery: true
  browser: true

globals:
  # allow accessing horizon
  horizon: false

  # allow passing TENANT_ID from django templates
  TENANT_ID: false

# Below we adjust rules specific to horizon's usage of openstack's linting
# rules, and its own plugin inclusions.
rules:
  #############################################################################
  # Disabled Rules from eslint-config-openstack
  #############################################################################
  valid-jsdoc: [1, {
    requireParamDescription: false
  }]
  no-undefined: 1
  brace-style: 1
  no-extra-parens: 1
  callback-return: 1
  block-scoped-var: 1
  quote-props: 0
  space-in-parens: 1
  no-use-before-define: 1
  no-unneeded-ternary: 1

# Only support ECMA5, disable everything else.
# NOTE(kzaitsev): blatantly copied from horizon
ecmaFeatures:
  arrowFunctions: false
  binaryLiterals: false
  blockBindings: false
  classes: false
  defaultParams: false
  destructuring: false
  forOf: false
  generators: false
  modules: false
  objectLiteralComputedProperties: false
  objectLiteralDuplicateProperties: false
  objectLiteralShorthandMethods: false
  objectLiteralShorthandProperties: false
  octalLiterals: false
  regexUFlag: false
  regexYFlag: false
  restParams: false
  spread: false
  superInFunctions: false
  templateStrings: false
  unicodeCodePointEscapes: false
  globalReturn: false
  jsx: false