2020-02-07 20:40:04 -05:00
|
|
|
{
|
|
|
|
"extends": ["@grafana/eslint-config"],
|
2020-08-11 17:52:44 +02:00
|
|
|
"root": true,
|
2021-04-21 08:38:00 +01:00
|
|
|
"plugins": ["no-only-tests", "@emotion", "lodash"],
|
2021-01-19 11:06:27 +01:00
|
|
|
"rules": {
|
|
|
|
"no-only-tests/no-only-tests": "error",
|
2021-04-01 14:15:23 +02:00
|
|
|
"react/prop-types": "off",
|
2021-04-21 08:38:00 +01:00
|
|
|
"@emotion/jsx-import": "error",
|
|
|
|
"lodash/import-scope": [2, "member"]
|
2021-01-19 11:06:27 +01:00
|
|
|
},
|
2020-08-11 17:52:44 +02:00
|
|
|
"overrides": [
|
|
|
|
{
|
2021-03-25 12:42:14 +01:00
|
|
|
"files": ["packages/grafana-ui/src/components/uPlot/**/*.{ts,tsx}"],
|
2020-08-11 17:52:44 +02:00
|
|
|
"rules": {
|
|
|
|
"react-hooks/rules-of-hooks": "off",
|
2021-01-19 11:06:27 +01:00
|
|
|
"react-hooks/exhaustive-deps": "off"
|
2020-08-11 17:52:44 +02:00
|
|
|
}
|
2021-04-08 13:00:58 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": ["packages/grafana-ui/src/components/ThemeDemos/**/*.{ts,tsx}"],
|
|
|
|
"rules": {
|
|
|
|
"@emotion/jsx-import": "off",
|
|
|
|
"react/jsx-uses-react": "off",
|
|
|
|
"react/react-in-jsx-scope": "off"
|
|
|
|
}
|
2020-08-11 17:52:44 +02:00
|
|
|
}
|
|
|
|
]
|
2020-02-07 20:40:04 -05:00
|
|
|
}
|