aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/.eslintrc
blob: e249b4c013b96a5ba02a35ab0234912fe5b17b7d (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
{
  "extends": "sonarqube",
  "plugins": ["eslint-plugin-local-rules"],
  "ignorePatterns": ["eslint-local-rules/**/*"],
  "root": true,
  "parserOptions": {
    "project": "./tsconfig.json"
  },
  "rules": {
    "camelcase": "off",
    "promise/no-return-wrap": "warn",
    "react/forbid-elements": [
      "warn",
      {
        "forbid": [
          {
            "element": "img",
            "message": "use <Image> from components/common instead"
          }
        ]
      }
    ],
    "react/jsx-curly-brace-presence": "warn",
    "testing-library/render-result-naming-convention": "off",
    /* Local rules, defined in ./eslint-local-rules/ */
    "local-rules/use-componentqualifier-enum": "warn",
    "local-rules/use-metrickey-enum": "warn",
    "local-rules/use-metrictype-enum": "warn",
    "local-rules/use-visibility-enum": "warn",
    "local-rules/convert-class-to-function-component": "warn",
    "local-rules/no-conditional-rendering-of-spinner": "warn",
    "local-rules/use-jest-mocked": "warn",
    "local-rules/use-await-expect-async-matcher": "warn",
    "local-rules/no-implicit-coercion": "warn",
    "local-rules/no-api-imports": "warn",
    "local-rules/no-within": "warn"
  }
}