aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/.eslintrc
blob: d92184566d1047e93d51fa009c811ba18cb0ca62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  "extends": "sonarqube",
  "plugins": ["eslint-plugin-local-rules"],
  "ignorePatterns": ["eslint-local-rules/**/*"],
  "rules": {
    "camelcase": "off",
    "promise/no-return-wrap": "warn",
    "react/jsx-curly-brace-presence": "warn",
    "react/jsx-boolean-value": ["error", "never"],
    "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-deferredspinner": "warn",
    "local-rules/use-jest-mocked": "warn"
  }
}