2020-02-07 19:40:04 -06:00
|
|
|
{
|
|
|
|
"extends": ["@grafana/eslint-config"],
|
2020-08-11 10:52:44 -05:00
|
|
|
"root": true,
|
2022-04-22 08:33:13 -05:00
|
|
|
"plugins": ["@emotion", "lodash", "jest", "import"],
|
|
|
|
"settings": {
|
|
|
|
"import/internal-regex": "^(app/)|(@grafana)",
|
|
|
|
"import/external-module-folders": ["node_modules", ".yarn"]
|
|
|
|
},
|
2021-01-19 04:06:27 -06:00
|
|
|
"rules": {
|
2021-04-01 07:15:23 -05:00
|
|
|
"react/prop-types": "off",
|
2021-04-21 02:38:00 -05:00
|
|
|
"@emotion/jsx-import": "error",
|
2022-02-11 08:59:30 -06:00
|
|
|
"lodash/import-scope": [2, "member"],
|
2022-04-22 08:33:13 -05:00
|
|
|
"jest/no-focused-tests": "error",
|
|
|
|
"import/order": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"groups": [["builtin", "external"], "internal", "parent", "sibling", "index"],
|
|
|
|
"newlines-between": "always",
|
|
|
|
"alphabetize": { "order": "asc" }
|
|
|
|
}
|
|
|
|
]
|
2021-01-19 04:06:27 -06:00
|
|
|
},
|
2020-08-11 10:52:44 -05:00
|
|
|
"overrides": [
|
|
|
|
{
|
2021-03-25 06:42:14 -05:00
|
|
|
"files": ["packages/grafana-ui/src/components/uPlot/**/*.{ts,tsx}"],
|
2020-08-11 10:52:44 -05:00
|
|
|
"rules": {
|
|
|
|
"react-hooks/rules-of-hooks": "off",
|
2021-01-19 04:06:27 -06:00
|
|
|
"react-hooks/exhaustive-deps": "off"
|
2020-08-11 10:52:44 -05:00
|
|
|
}
|
2021-04-08 06:00:58 -05: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 10:52:44 -05:00
|
|
|
}
|
|
|
|
]
|
2020-02-07 19:40:04 -06:00
|
|
|
}
|